joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f1c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45f1f3
push esi
call fcn.0046d560
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45f1ec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45f279
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45f262
mov eax, dword [esi + 8]
test eax, eax
je 0x45f217
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45f25e
cmp eax, 2
je 0x45f262
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45f20a
cmp eax, 3
je 0x45f23d
cmp eax, 1
jne 0x45f20a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45f20a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45f20a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045f2a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45f288
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045f2a0
add esp, 4
pop esi
ret

Function at 0x45fb10
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x45fb31
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x45fb31
mov eax, dword [eax + 0x44]
test eax, eax
je 0x45fb31
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x47a860
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x47a903
test eax, eax
jbe 0x47a903
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x47a903
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47a8ae
xor esi, esi
jmp 0x47a8b4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47a8df
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00418d20
add esi, eax
push esi
mov ebx, esi
call fcn.00418d20
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x47a8c0
pop ebp
test edi, edi
pop edi
jne 0x47a903
test ebx, ebx
je 0x47a903
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00481a90
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x47aa65
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47ab7d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47ab7d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00492f86
mov esi, eax
test esi, esi
je 0x47ab7d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47ab7d
mov ecx, esi
call fcn.0047a9f0
cmp edi, eax
jge 0x47ab7d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x47ab03
mov dword [esp + 0x34], 1
jmp 0x47ab5e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47ab7d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00479fb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x493929
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x493961
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004919e0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004919b8
jmp 0x49396d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49501b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49505d
call fcn.0049b1d5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49505d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x495054
xor eax, eax
jmp 0x495065
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049506b
pop edi
pop esi
pop ebx
ret 4
Function at 0x49b705
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49b733
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49b751
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049b66b
jmp 0x49b751
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49b751
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049b66b
test edi, edi
mov eax, edi
jne 0x49b73b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42211b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42215a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42215a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42215a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42215a
cmp dword [ecx + 0x74], 0xe
jbe 0x42215a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10001e50
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10001e8e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10001e86
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10001e90
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10001e76
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10001f60
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10001f91
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10001f91
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x10001f91
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405fbb
Capabilities:
Query or enumerate registry value

Disassembly:
call dword [ebx - 0x27]
inc edx
outsb dx, byte [esi]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x405f2e
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00403d6a
out 0x49, eax
test al, 0xe0
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00403d6a
inc ecx
xor dword [esi + 0x49], esi
dec ecx
mov esi, dword [ebx + ecx*4]
mov eax, dword [ebx]
idiv dword [eax + 0x50746547]
mov eax, dword [ebx]
idiv dword [eax + 0x50746547]
cmp dword [esi], eax
jne 0x405f57
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x405f57
call fcn.00403d6a
cli
ja 0x405f14
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add al, 0x8b
add eax, edi
push eax
call fcn.00403d6a
std
and al, 0x54
add bh, bh
jne 0x405fa1
push dword [ebp + 4]
push dword [ebp]
call fcn.0040456a
jne 0x405fba
in eax, 0xff
push dword [ebp + 0x14]
push ecx
push dword [ebp + 0x10]
push ecx
push ecx
push ecx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop ebp
ret 0x10
add byte [ebp - 0x75], dl
in al, dx
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405f5a
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x40602a
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x40602a
cmp dword [ebp + 0xc], 1
je 0x40602d
cmp dword [ebp + 0xc], 2
je 0x40602d
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x4063fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406422
xor eax, eax
test eax, eax
je 0x406434
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406434
xor ecx, ecx
jmp 0x406437
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4
Function at 0x42013b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041dcb5
and dword [ebp - 0x14], 0
cmp dword [0x42cf74], 0
mov dword [ebp - 0x18], eax
jne 0x4201ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x420296
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x420296
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42cf74], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42cf78], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42cf7c], eax
call edi
push eax
call esi
mov dword [0x42cf84], eax
test eax, eax
je 0x4201ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42cf80], eax
mov eax, dword [0x42cf80]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x420247
cmp dword [0x42cf84], ecx
je 0x420247
push eax
call esi
push dword [0x42cf84]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x420247
test ebx, ebx
je 0x420247
call edi
test eax, eax
je 0x42023e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42023e
test byte [ebp - 8], 1
jne 0x420247
or dword [ebp + 0x10], 0x200000
jmp 0x42027a
mov eax, dword [0x42cf78]
cmp eax, dword [ebp - 0x18]
je 0x42027a
push eax
call esi
test eax, eax
je 0x42027a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42027a
mov eax, dword [0x42cf7c]
cmp eax, dword [ebp - 0x18]
je 0x42027a
push eax
call esi
test eax, eax
je 0x42027a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42cf74]
call esi
test eax, eax
je 0x420296
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x420298
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f46d
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x418b10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x418b32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x418b39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x418b28
mov eax, 1
add ebx, ebx
jne 0x418b4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x418b40
jne 0x418b5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x418b40
xor ecx, ecx
sub eax, 3
jb 0x418b70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418be2
mov ebp, eax
add ebx, ebx
jne 0x418b7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x418b88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x418bac
inc ecx
add ebx, ebx
jne 0x418b98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x418b8d
jne 0x418ba9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x418b8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x418bcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x418bbd
jmp 0x418b2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x418bcc
add edi, ecx
jmp 0x418b2e
pop esi
mov edi, esi
mov ecx, 0x19
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x418bea
cmp byte [edi], 3
jne 0x418bea
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 eax, ebx
loop 0x418bef
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x418c67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18c70]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18cac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x418c1c
mov ecx, edi
jns 0x418c4b
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 + 0x18cb0]
or eax, eax
je 0x418c61
mov dword [ebx], eax
add ebx, 4
jmp 0x418c39
call dword [esi + 0x18cb4]
popal
jmp 0x401158
Function at 0x402e10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
push dword [0x408218]
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
mov edi, eax
lea ecx, [eax*2 + 2]
mov eax, dword fs:[0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
push ecx
push 0
push dword [eax + 0x18]
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x402f80
mov esi, eax
inc edi
push edi
push eax
push dword [0x408218]
call dword [sym.imp.user32.dll_GetWindowTextW]
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
push 0
push 0
push 0xb8
push dword [0x408218]
call ebx
mov edi, eax
push dword [0x408218]
call dword [sym.imp.user32.dll_DestroyWindow]
lea eax, [ebp - 0x20]
push eax
push dword [0x408210]
call dword [sym.imp.user32.dll_GetClientRect]
cmp dword [0x408288], 0
mov eax, 0x50a00044
je 0x402eaa
mov eax, 0x50b000c4
push 0
push dword [0x40820c]
push 0
push dword [0x408210]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0
push 0
push eax
push 0
push 0x406044
push 0x200
call dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [0x408218], eax
push 0
push dword [0x40821c]
push 0x30
push eax
call ebx
push esi
push dword [0x408218]
call dword [sym.imp.user32.dll_SetWindowTextW]
push 0
push edi
push 0xb9
push dword [0x408218]
call ebx
push dword [0x408218]
call dword [sym.imp.user32.dll_SetFocus]
mov eax, dword fs:[0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.kernel32.dll_HeapFree]
xor ebx, ebx
cmp dword [0x408288], 0
sete bl
mov dword [0x408288], ebx
shl ebx, 3
push dword [0x408210]
call dword [sym.imp.user32.dll_GetMenu]
push ebx
push 0x119
push eax
call dword [sym.imp.user32.dll_CheckMenuItem]
push 0
push 0
push sym._EDIT_CallBackProc_24
push dword [0x408218]
call dword [sym.imp.comctl32.dll_SetWindowSubclass]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call sym._updateWindowSize
add esp, 8
jmp 0x402f85
call sym._ShowLastError
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4037c0
Capabilities:
Get graphical window text
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ebx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x4037e0
push dword [0x408218]
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
mov edi, eax
lea ecx, [eax*2 + 2]
mov eax, dword fs:[0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
push ecx
push 0
push dword [eax + 0x18]
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x4038f7
sar ebx, 1
inc edi
push edi
push eax
push dword [0x408218]
mov esi, eax
call dword [sym.imp.user32.dll_GetWindowTextW]
lea eax, [ebp - 0x10]
push eax
push 0
push 0xb0
push dword [0x408218]
call dword [sym.imp.user32.dll_SendMessageW]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
and eax, 5
jmp dword [eax*4 + 0x406168]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405400
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push 1
call sym.__configure_narrow_argv
add esp, 4
call sym.__initialize_narrow_environment
call sym.___p___argc
mov edi, dword [eax]
call sym.___p___argv
mov ebx, dword [eax]
call sym.__get_initial_narrow_environment
mov esi, eax
call sym._get_nt_header
xor ecx, ecx
cmp word [eax + 0x5c], 2
sete cl
inc ecx
push ecx
call sym.__set_app_type
add esp, 4
push esi
push ebx
push edi
call sym._main
add esp, 0xc
push eax
call sym._exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x405480
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
xor ebx, ebx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov esi, eax
xor eax, eax
jmp 0x4054a9
xor edx, edx
test eax, eax
je 0x4054f5
inc esi
mov ebx, edx
movzx ecx, byte [esi]
cmp ecx, 9
je 0x4054a0
test ecx, ecx
je 0x4054f5
cmp cl, 0x20
jne 0x4054be
test eax, eax
je 0x4054f5
xor edx, edx
cmp ecx, 0x22
je 0x4054cf
cmp ecx, 0x5c
jne 0x4054a6
inc ebx
mov edx, ebx
jmp 0x4054a6
xor ecx, ecx
test eax, eax
sete byte [ebp - 0xd]
test bl, 1
jne 0x4054a6
movzx eax, byte [ebp - 0xd]
mov cl, al
mov eax, ecx
jmp 0x4054a6
movzx ecx, byte [esi + 1]
inc esi
cmp cl, 0x20
je 0x4054f0
movzx eax, cl
cmp eax, 9
je 0x4054f0
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x28], 1
jne 0x40551f
mov word [ebp - 0x24], 1
mov edi, 1
jmp 0x405523
movzx edi, word [ebp - 0x24]
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push edi
push esi
push 0
push eax
call sym._WinMain_16
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4099a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x69
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x438c8d
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
sub ebx, 0x13789d04
call fcn.00438ccb
sub ebx, 0x947a70a6
xor dword [esi], edx
sub esp, 4
mov dword [esp], 0x6a7ec5a9
pop edi
and edi, edi
sub ebx, edi
inc esi
and ebx, ebx
cmp esi, ecx
jne fcn.00438c8d
and edi, edi
sub ebx, 0xa37b5acc
add ebx, 0xc79ab376
ret