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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00406b00
xor ebx, ebx
cmp dword [0x5c50b8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40bbe4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40bcc4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40bcc4
push eax
call fcn.00406a92
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5c50b8], eax
call esi
push eax
call fcn.00406a92
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5c50bc], eax
call esi
push eax
call fcn.00406a92
mov dword [0x5c50c0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00407201
test eax, eax
pop ecx
pop ecx
je 0x40bbb2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404294
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40bbe4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00406a92
cmp eax, ebx
pop ecx
mov dword [0x5c50c8], eax
je 0x40bbe4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406a92
pop ecx
mov dword [0x5c50c4], eax
mov eax, dword [0x5c50c4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40bc69
cmp dword [0x5c50c8], ecx
je 0x40bc69
push eax
call fcn.00406b09
push dword [0x5c50c8]
mov esi, eax
call fcn.00406b09
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40bc69
cmp edi, ebx
je 0x40bc69
call esi
cmp eax, ebx
je 0x40bc36
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bc36
test byte [ebp - 0x18], 1
jne 0x40bc69
lea eax, [ebp - 0x10]
push eax
call fcn.00407238
test eax, eax
pop ecx
je 0x40bc51
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404294
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40bc60
or dword [ebp + 0x10], 0x200000
jmp 0x40bca4
or dword [ebp + 0x10], 0x40000
jmp 0x40bca4
mov eax, dword [0x5c50bc]
cmp eax, dword [ebp - 8]
je 0x40bca4
push eax
call fcn.00406b09
cmp eax, ebx
pop ecx
je 0x40bca4
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40bca4
mov eax, dword [0x5c50c0]
cmp eax, dword [ebp - 8]
je 0x40bca4
push eax
call fcn.00406b09
cmp eax, ebx
pop ecx
je 0x40bca4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5c50b8]
call fcn.00406b09
cmp eax, ebx
pop ecx
je 0x40bcc4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bcc6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409250
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4644ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00458fc6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4092d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00456edd
mov eax, dword [eax]
push 0x47c1c0
push eax
call fcn.00449d44
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00459251
test bl, bl
je 0x4092d2
push 0x47c1c0
lea ecx, [esp + 0xc]
call fcn.004595e1
push 0x47fd3c
lea ecx, [esp + 0xc]
call fcn.004595e1
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40930e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00459251
jmp 0x4093d9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x409392
lea edx, [esp + 0x7c]
push 0x47fd38
push edx
call fcn.00449d44
add esp, 8
test eax, eax
je 0x409392
lea eax, [esp + 0x7c]
push 0x47fd34
push eax
call fcn.00449d44
add esp, 8
test eax, eax
je 0x409392
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409322
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00459251
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x409bd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409c32
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x409c40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46452b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4861e0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x409d78
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409ca6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00459251
xor eax, eax
jmp 0x409def
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045938e
push esi
lea ecx, [esp + 0xc]
call fcn.0045961d
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x409dcd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00409bd0
test eax, eax
jne 0x409dcd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.00409bd0
test eax, eax
jne 0x409dcd
lea eax, [esp + 0x14]
push 0x47fd50
push eax
call fcn.0044ad80
mov esi, eax
add esp, 8
test esi, esi
jne 0x409dac
lea ecx, [esp + 0x14]
push 0x47fd4c
push ecx
call fcn.0044ad00
mov esi, eax
add esp, 8
test esi, esi
jne 0x409dac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409daf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045933e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409cbe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00459251
xor eax, eax
jmp 0x409def
mov byte [esi], 0
push 0x47fd48
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00459251
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41a400
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41a46e
cmp si, 0x69
ja 0x41a46e
add esi, 0xffd0
cmp si, 0x11
je 0x41a43e
push 0x11
call edi
test ax, ax
jge 0x41a43e
or esi, 0x2000
cmp si, 0x10
je 0x41a453
push 0x10
call edi
test ax, ax
jge 0x41a453
or esi, 0x4000
cmp si, 0x12
je 0x41a468
push 0x12
call edi
test ax, ax
jge 0x41a468
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41a47b
mov esi, 0xbd
jmp 0x41a42f
cmp si, 0x6e
jne 0x41a488
mov esi, 0xbe
jmp 0x41a42f
cmp si, 0x6f
jne 0x41a429
mov esi, 0xbf
jmp 0x41a42f

Function at 0x41bb20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x496838]
xor edx, edx
cmp eax, edx
jne 0x41bb46
xor eax, eax
mov byte [eax + 0x496738], al
inc eax
cmp eax, 0x100
jl 0x41bb2e
mov dword [0x496838], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x496738
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41bbd7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41bbaa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41bb78
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41bc50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41bca3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41bc8a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d940
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4663d8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00428240
test eax, eax
je 0x42da48
lea ecx, [esp + 0xc]
call fcn.00401760
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00428240
mov ecx, eax
call fcn.00425a00
test eax, eax
je 0x42da2f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42da2f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42da2f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00401960
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42da11
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42da2f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x496c88]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x46d170
call fcn.00401960
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42da90
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00428240
test eax, eax
je 0x42db7f
mov ecx, edi
call fcn.00428240
mov ecx, eax
call fcn.004258b0
test eax, eax
jne 0x42db7f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42db7f
mov eax, dword [0x496c88]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42daf2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00428240
mov ecx, eax
call fcn.00425ae0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42db7f
cmp ebx, eax
jne 0x42db7f
cmp dword [esp + 0x10], eax
jne 0x42db65
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4307b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x466668
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4307e9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4308fc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4307fd
mov eax, 0xffffffc7
jmp 0x4308fe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43080e
cmp dword [esi + 8], eax
jne 0x4307fd
cmp dword [esi + 8], eax
jne 0x430827
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x430827
mov eax, 0xffffffc7
jmp 0x4308fe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43083b
push eax
mov ecx, ebx
call fcn.0042ffe0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401760
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43086c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401780
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042f750
test eax, eax
mov dword [esp + 0x38], eax
je 0x43089f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46d170
call fcn.00401960
mov eax, dword [esp + 0x38]
jmp 0x4308fe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00430610
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4308e3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00430630
mov esi, eax
test esi, esi
jne 0x430913
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00430610
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4308b5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46d170
call fcn.00401960
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46d170
call fcn.00401960
mov eax, esi
jmp 0x4308fe

Function at 0x433a40
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x433aa0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x433aa0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x433aa0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x433aa0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x433ae0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x402b30
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x411a5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x904
push esi
mov esi, ecx
lea eax, [esp + 0x108]
lea ecx, [esp + 0x108]
push eax
lea edx, [esp + 0x50c]
push ecx
mov ecx, dword [esi + 0x90]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea edx, [esp + 8]
mov ecx, 0x419d00
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x508]
mov ecx, 0x419d00
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [0x419d00]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [esi + 0x90]
mov ecx, 0x419d00
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x5c
mov ecx, 0x419d00
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 8]
push eax
mov ecx, 0x419d00
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, 0x419d00
mov dword [esp + 0x914], 0
call fcn.0040996c
lea ecx, [esp + 4]
mov dword [esp + 0x910], 0xffffffff
call fcn.004096fc
push 0x4190ac
mov ecx, 0x419d00
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x908]
pop esi
mov dword fs:[0], ecx
add esp, 0x910
ret
Function at 0x409230
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x412639
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebx, 1
mov dword [esp + 0x10], esi
mov dword [esi], 0x4140f8
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], 0xffffff
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
lea ecx, [esi + 0x38]
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_CString::CString_3
push fcn.004021a0
push 0x4096e0
lea ebp, [esi + 0x40]
push 3
push 8
push ebp
mov byte [esp + 0x30], bl
call fcn.00409c34
push 0x419060
push 0x20
push edi
push edi
push edi
push edi
push edi
push ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateFontA]
push edi
push 0x190
push edi
push edi
push edi
push 0xc
mov byte [esp + 0x54], 2
mov dword [esi], 0x414160
mov dword [esi + 0x3c], edi
call ebx
push eax
lea ecx, [esi + 0x48]
call sub.MFC42.DLL_CGdiObject::Attach
push 0x419060
push 0x20
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x190
push edi
push edi
push edi
push 0xc
call ebx
push eax
lea ecx, [esi + 0x50]
call sub.MFC42.DLL_CGdiObject::Attach
push 0x419060
push 0x20
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x190
push edi
push edi
push edi
push 0xc
call ebx
push eax
mov ecx, ebp
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x58], 0x6d6d6d
mov dword [esi + 0x60], 0x1bad33
mov dword [esi + 0x5c], 0x187bfa
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40b670
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x2e0]
test eax, eax
jne 0x40b683
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 4]
test eax, eax
je 0x40b68f
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 0x454]
test eax, eax
jne 0x40b69e
xor eax, eax
pop esi
pop ecx
ret
lea eax, [esp + 4]
mov dword [esi + 8], 0
push eax
push 0
push esi
push 0x40bc00
push 0
push 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 4], eax
test eax, eax
setne cl
mov eax, ecx
pop esi
pop ecx
ret

Function at 0x40b6e0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40b729
call fcn.0040b760
mov eax, dword [esi + 4]
push 0x3e8
push eax
mov dword [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40b718
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
pop esi
ret

Function at 0x40b730
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40b74f
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x40b74f
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [esi + 0xc], 1
pop esi
ret
Function at 0x40b760
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40b77f
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40b77f
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [esi + 0xc], 0
pop esi
ret
Function at 0x40ea00
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push esi
mov esi, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40ea32
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
add ecx, edx
mov dword [eax], ecx
mov eax, ecx
xor ecx, ecx
cmp eax, esi
setle cl
mov eax, ecx
pop esi
ret

Function at 0x40ea50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414588
push 0x409e9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x2c]
push ecx
push 0x20019
push edi
push str.SYSTEMCurrentControlSetControlClass
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call ebx
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov dword [ebp - 0x24], esi
jne 0x40eb34
lea edx, [ebp - 0x1c]
push edx
push 0x20019
push edi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call ebx
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov dword [ebp - 0x24], esi
jne 0x40eb34
mov dword [ebp - 0x20], edi
cmp edi, 5
jge 0x40eb34
push edi
push str._04d
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call ebx
test eax, eax
je 0x40eb0c
inc edi
jmp 0x40ead5
cmp edi, 5
jge 0x40eb34
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x30]
push edx
push 0
mov eax, 0x419658
push eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0xffffffff
call fcn.0040eb5b
xor eax, eax
test esi, esi
sete al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret