joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439fa0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45218c]
cmp byte [eax + 0xc], 0
je 0x43a10d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43a106
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x453b64], 0
jne 0x439ff4
push 0x43a114
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43a11c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b64], eax
cmp dword [0x451b70], 0
jne 0x43a0ef
push 0x43a12c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x451b70], eax
cmp dword [0x451b70], 0
je 0x43a0ef
push 0x43a138
mov eax, dword [0x451b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b68], eax
push 0x43a148
mov eax, dword [0x451b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b6c], eax
push 0x43a15c
mov eax, dword [0x451b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b70], eax
push 0x43a174
mov eax, dword [0x451b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b74], eax
push 0x43a18c
mov eax, dword [0x451b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b78], eax
push 0x43a1a0
mov eax, dword [0x451b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b7c], eax
push 0x43a1b8
mov eax, dword [0x451b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b80], eax
push 0x43a1d0
mov eax, dword [0x451b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b84], eax
push 0x43a1ec
mov eax, dword [0x451b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b88], eax
push 0x43a1f8
mov eax, dword [0x451b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a10d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43df98
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403e10
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43dfe7
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404080
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x445724
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x445774]
test si, 4
je 0x445738
or bl, 1
test si, 8
je 0x445742
or bl, 4
test si, 1
je 0x44574c
or bl, 8
test si, 2
je 0x445756
or bl, 0x10
test si, 0x10
je 0x445760
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44576f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x445778
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4457b0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445791
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4457a0
or bl, 4
test esi, 0x20000000
je 0x4457ab
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44be58
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44be6a
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004190a4
mov eax, dword [0x451e68]
mov dword [eax + 4], ebx
mov dword [eax], 0x44c1fc
mov eax, dword [0x451e74]
mov dword [eax + 4], ebx
mov dword [eax], 0x44c208
mov eax, ebx
call fcn.0044c214
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411378]
call fcn.004030a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411378]
call fcn.004030a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411378]
call fcn.004030a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411378]
call fcn.004030a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411378]
call fcn.004030a8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x448630
push eax
push 0
push 0
mov eax, dword [0x451fb4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41aad0]
call fcn.0041bf14
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41aad0]
call fcn.0041bf14
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41aad0]
call fcn.0041bf14
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044c634
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c510
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c510
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c510
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44bfa7
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44c2f4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44c49f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44c480
mov dl, 1
mov eax, dword [0x411794]
call fcn.004030a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e10
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44c46f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043a300
test al, al
je 0x44c462
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44c4b0
lea eax, [ebp - 0x254]
call fcn.004088e0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44c462
xor eax, eax
push ebp
push 0x44c45b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44c4e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44c444
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404080
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44c444
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c462
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44c365
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415294
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c4a6
lea eax, [ebp - 0x260]
call fcn.00403e10
ret

Function at 0x44cdd4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x453bb0]
cmp byte [eax + 0xa5], 0
jne 0x44ce45
cmp dword [0x453bc8], 0
jne 0x44ce06
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44cd90
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x453bc8], eax
cmp dword [0x453bc4], 0
jne 0x44ce21
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x453bc4], eax
cmp dword [0x453bcc], 0
jne 0x44ce45
push esp
push 0
push 0
push 0x44cd34
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x453bcc], eax
pop edx
ret
Function at 0x44cf3c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44cf53
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004190a4
mov eax, dword [0x451fa0]
cmp word [eax + 2], 0
jne 0x44cf7b
mov eax, dword [0x451fa0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044e614
mov eax, dword [0x452048]
cmp word [eax + 2], 0
jne 0x44cf95
mov eax, dword [0x452048]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044e80c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411378]
call fcn.004030a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411378]
call fcn.004030a8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b280]
call fcn.00420ec8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44d11c
mov eax, dword [0x451ec8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421298
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44edac
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x451ec8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bf1c
test eax, eax
je 0x44d08a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004082d4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bf44
test eax, eax
je 0x44d09e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404080
mov eax, dword [0x451dc8]
cmp byte [eax], 0
jne 0x44d0d2
mov eax, ebx
call fcn.0044d244
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044ef88
mov eax, ebx
call fcn.0044f94c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44d112
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d4c4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x453bb0]
cmp dword [eax + 0x30], 0
je 0x44d56e
cmp dword [ebx + 0x94], 0
jne 0x44d568
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44d454
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44d568
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44d52e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44d568
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413704
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44d53d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44e0d0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44e105
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f00
jmp 0x44e112
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e64
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44f164
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44f1a5
mov eax, esi
call fcn.00435a74
test al, al
je 0x44f1a5
mov eax, dword [ebx + 0x84]
call fcn.00435770
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44f1a5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00435770
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x9c8850
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x42d000]
lea eax, [edi + 0x556db0]
push dword [eax]
mov dword [eax], 0xb13f2c09
push eax
push edi
jmp 0x9c887a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9c8881
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9c8870
mov eax, 1
add ebx, ebx
jne 0x9c8893
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9c88a4
jne 0x9c88c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9c88c3
dec eax
add ebx, ebx
jne 0x9c88b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x9c8888
add ebx, ebx
jne 0x9c88bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x9c8915
xor ecx, ecx
sub eax, 3
jb 0x9c88db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9c894a
sar eax, 1
mov ebp, eax
jmp 0x9c88e6
add ebx, ebx
jne 0x9c88e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9c88b4
inc ecx
add ebx, ebx
jne 0x9c88f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9c88b4
add ebx, ebx
jne 0x9c8901
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9c88f6
jne 0x9c8912
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9c88f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9c8934
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9c8926
jmp 0x9c8876
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9c8934
add edi, ecx
jmp 0x9c8876
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x16b69
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9c8956
cmp byte [edi], 0x97
jne 0x9c8956
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x9c895b
lea edi, [esi + 0x5a7000]
mov eax, dword [edi]
or eax, eax
je 0x9c89d3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5cff7c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5d013c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9c8988
mov ecx, edi
jns 0x9c89b7
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5d0144]
or eax, eax
je 0x9c89cd
mov dword [ebx], eax
add ebx, 4
jmp 0x9c89a5
call dword [esi + 0x5d0140]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x9c8a04
cmp al, 0xef
ja 0x9c89f7
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x9c89d9
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x9c89e6
mov ebp, dword [esi + 0x5d0148]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x267]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x9c8a38
sub esp, 0xffffff80
jmp 0x5dbcbe
Function at 0x404e4c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004052fc
mov byte [esp], al
cmp byte [esp], 0
jne 0x404fd5
test edi, edi
je 0x404fd5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x404f15
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x404ef0
cmp edi, 0xffffffff
je 0x404eb1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404eb1
mov byte [esp], 0
jmp 0x404fd5
cmp dword [esi], 1
jg 0x404ef0
cmp dword [esi], 0
jne 0x404ee2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x404ee2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x404fd5
lea eax, [esp + 0xc]
call fcn.00404b08
dec ebp
test ebp, ebp
jg 0x404e96
cmp edi, 0xffffffff
je 0x404f15
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404f13
mov byte [esp], 0
jmp 0x404fd5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x404e5a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x404f15
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405050
mov edx, eax
mov ebx, dword [0x45c8e0]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x404f79
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x404f77
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x404f79
xor edi, edi
cmp byte [esp], 0
je 0x404f9f
mov ebx, dword [esi]
test bl, 1
jne 0x404fb5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x404f7f
mov byte [esp + 1], 1
jmp 0x404fb5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x404f9f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x404f2c
cmp byte [esp], 0
je 0x404fd5
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x405b14
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45c040], 0
je 0x405b7b
cmp word [0x45c32c], 0xd7b2
jne 0x405b3d
cmp dword [0x45c334], 0
jbe 0x405b3d
mov eax, 0x45c328
call dword [0x45c344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x405ba8
call fcn.00406404
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41201a], 0
jne 0x405b97
push 0
push 0x41276e
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408458
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4098fc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov edi, edx
mov esi, eax
test esi, esi
jne 0x40992b
push 0x20a
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, edi
call fcn.00405ef8
jmp 0x40997e
call sub.kernel32.dll_GetCommandLineW
call fcn.004098ac
mov ebx, eax
mov eax, ebx
call fcn.004098c0
dec esi
test esi, esi
jge 0x409930
mov edx, eax
sub edx, ebx
sar edx, 1
jns 0x40994e
adc edx, 0
cmp edx, 2
jl 0x40996a
cmp word [ebx], 0x22
jne 0x40996a
mov edx, eax
sub edx, 2
cmp word [edx], 0x22
jne 0x40996a
add ebx, 2
sub eax, 2
mov ecx, eax
sub ecx, ebx
sar ecx, 1
jns 0x409975
adc ecx, 0
mov eax, edi
mov edx, ebx
call fcn.00405ef8
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409a14
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406504
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x409a2d
test al, 0x10
je 0x409a31
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409c58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, edx
mov ebx, eax
mov dword [esp + 8], 4
xor eax, eax
mov dword [esp], eax
test ebx, ebx
je 0x409c9c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
mov eax, esi
call fcn.00406504
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409c9c
cmp dword [esp + 4], 4
je 0x409ca1
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop esi
pop ebx
ret

Function at 0x409cac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00406504
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
sete al
pop ebp
ret
Function at 0x40a084
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp + 8]
push eax
push ecx
push esi
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
je 0x40a0ed
push ebx
push esi
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 8], eax
push ebx
push esi
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x40a0ed
push ebx
call sub.kernel32.dll_GlobalLock
mov esi, eax
test esi, esi
jne 0x40a0d4
call sub.kernel32.dll_GetLastError
cmp eax, 6
jne 0x40a0ed
mov esi, ebx
mov edx, esi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00409ddc
mov edi, eax
cmp esi, ebx
je 0x40a0ed
push ebx
call sub.kernel32.dll_GlobalUnlock
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x40c628
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
mov eax, ecx
test edx, edx
jle 0x40c64f
mov ecx, eax
and cl, 0xff
xor cl, byte [esi]
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x45f5a8]
shr eax, 8
xor ecx, eax
mov eax, ecx
inc esi
dec edx
test edx, edx
jg 0x40c631
pop esi
ret
Function at 0x40cbdc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], edx
mov ebx, eax
xor eax, eax
mov dword [esp + 4], eax
test ebx, ebx
je 0x40cc80
mov eax, ebx
mov edx, dword [eax + 0x3c]
add edx, eax
mov eax, edx
mov esi, eax
mov edx, dword [esi + 0x78]
mov eax, ebx
call fcn.0040c818
mov esi, eax
mov ebp, dword [esi + 0x18]
dec ebp
test ebp, ebp
jb 0x40cc80
inc ebp
xor edi, edi
mov edx, dword [esi + 0x20]
mov eax, ebx
call fcn.0040c818
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
mov edx, dword [esp + 8]
mov eax, ebx
call fcn.0040c818
mov dword [esp + 0xc], eax
mov eax, dword [esp]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x40cc7c
mov edx, dword [esi + 0x24]
mov eax, ebx
call fcn.0040c818
movzx eax, word [eax + edi*2]
mov word [esp + 0x10], ax
mov edx, dword [esi + 0x1c]
mov eax, ebx
call fcn.0040c818
movzx edx, word [esp + 0x10]
mov eax, dword [eax + edx*4]
mov edx, eax
mov eax, ebx
call fcn.0040c818
mov dword [esp + 4], eax
inc edi
dec ebp
jne 0x40cc18
mov eax, dword [esp + 4]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret