joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x434a20
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x44561c]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
mov eax, dword [0x44561c]
xor eax, esp
push eax
lea eax, [esp + 0x214]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x21c], 1
mov eax, dword [esi + 0x10]
mov ebp, dword [esp + 0x224]
mov ebx, dword [esp + 0x228]
push eax
push 0xff
lea eax, [esp + 0x18]
push eax
push 0x43bcec
push ebp
push ebx
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.00401900
lea eax, [ebp - 0x10]
mov byte [esp + 0x21c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4010a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x21c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4010cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.0041ed95
add esp, 0x214
ret 8

Function at 0x401440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
jne 0x401459
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov esi, eax
test esi, esi
je 0x401494
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401490
lea ebx, [ebx]
cmp esi, eax
jae 0x401494
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401480
cmp esi, eax
jb 0x40149a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4040b2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x44561c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x4040ef
push 0x436b50
push 4
push eax
call fcn.0041fc5b
push eax
call fcn.004014b0
add esp, 0x10
jmp 0x404101
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x40416c
push edi
call fcn.0041fd3d
mov edi, dword [eax]
call fcn.0041fd3d
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0041fce3
add esp, 0x18
mov ebx, eax
call fcn.0041fd3d
cmp dword [eax], 0
je 0x40414c
call fcn.0041fd3d
push dword [eax]
call fcn.004038ed
pop ecx
jmp 0x404153
call fcn.0041fd3d
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x40416c
cmp ebx, esi
jae 0x40416c
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryW]
jmp 0x40416e
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ed95
leave
ret
Function at 0x405fe2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x406028
call fcn.0040d3aa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x406028
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40606b
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x406054
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x406054
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x406068
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40762b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x433867
call fcn.0041fa71
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0040d3aa
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x407676
call fcn.0040d3aa
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x407687
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_LockResource_1]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x407694
or eax, 0xffffffff
jmp 0x4077f0
mov ecx, esi
call fcn.0040717d
mov dword [ebp - 0x14], eax
call fcn.0040a022
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x407712
call dword [sym.imp.user32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x407712
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x407712
push 0
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00404099
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x407712
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x407712
mov ecx, ebx
call fcn.0040d909
test eax, eax
je 0x407712
push 0
mov ecx, ebx
call fcn.0040d924
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040b9a1
push dword [ebp - 0x14]
call fcn.00409f7a
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00407433
xor edi, edi
cmp eax, edi
je 0x40776f
test byte [esi + 0x3c], 0x10
je 0x407759
push 4
pop edi
mov ecx, esi
call fcn.0040d81a
test ax, 0x100
je 0x40774f
push 5
pop edi
push edi
mov ecx, esi
call fcn.00409b10
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40776f
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040daf3
or dword [ebp - 4], 0xffffffff
jmp 0x40779a
cmp dword [ebp - 0x28], edi
je 0x4077a8
push 1
mov ecx, ebx
call fcn.0040d924
cmp dword [ebp - 0x2c], edi
je 0x4077b8
push 1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4077d1
call dword [sym.imp.user32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4077d1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004071b7
cmp dword [esi + 0x58], edi
je 0x4077ed
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0041fb16
ret
Function at 0x40cabb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40cafe
call fcn.0040d3aa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x40cafe
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40cb19
push edi
call dword [sym.imp.kernel32.dll_LockResource_1]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040c675
test ebx, ebx
mov esi, eax
je 0x40cb17
test edi, edi
je 0x40cb17
push edi
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41026e
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 0x41029c
push dword [esi]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4102ba
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004101d8
jmp 0x4102ba
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4102ba
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004101d8
test edi, edi
mov eax, edi
jne 0x4102a4
pop edi
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x448750]
test ecx, ecx
je 0x41037d
jmp 0x41026d
ret 8

Function at 0x41ed95
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44561c]
jne 0x41ed9f
repz ret
jmp fcn.00424172
Function at 0x422f97
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4457b0]
je 0x422fb2
inc edi
cmp edi, 0x17
jb 0x422fa3
cmp edi, 0x17
jae 0x423132
push ebp
push 3
call fcn.0042b8c0
cmp eax, 1
pop ecx
je 0x4230fe
push 3
call fcn.0042b8c0
test eax, eax
pop ecx
jne 0x422fe6
cmp dword [0x4455fc], 1
je 0x4230fe
cmp ebx, 0xfc
je 0x423131
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x448ab0
push ebp
call fcn.0042b85b
add esp, 0xc
test eax, eax
je 0x42301c
push esi
push esi
push esi
push esi
push esi
call fcn.004245ef
add esp, 0x14
push 0x104
mov esi, 0x448ac9
push esi
push 0
mov byte [0x448bcd], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x423060
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042b85b
add esp, 0xc
test eax, eax
je 0x423060
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004245ef
add esp, 0x14
push esi
call fcn.0042b7d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4230a5
push esi
call fcn.0042b7d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x448dc4
push 0x43a0a4
sub ecx, eax
push ecx
push eax
call fcn.0042b710
add esp, 0x14
test eax, eax
je 0x4230a5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004245ef
add esp, 0x14
jmp 0x4230a7
xor esi, esi
push 0x43a0a0
push ebx
push ebp
call fcn.0042b69f
add esp, 0xc
test eax, eax
je 0x4230c7
push esi
push esi
push esi
push esi
push esi
call fcn.004245ef
add esp, 0x14
push dword [edi*8 + 0x4457b4]
push ebx
push ebp
call fcn.0042b69f
add esp, 0xc
test eax, eax
je 0x4230e9
push esi
push esi
push esi
push esi
push esi
call fcn.004245ef
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042b4e2
add esp, 0xc
jmp 0x423131
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x423131
cmp ebp, 0xffffffff
je 0x423131
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4457b4]
push dword [esi]
call fcn.0042b7d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.kernel32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42b4e2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00423b47
xor ebx, ebx
cmp dword [0x4495a8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42b5b8
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42b698
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42b698
push eax
call fcn.00423ad9
mov dword [esp], 0x43a2e4
push edi
mov dword [0x4495a8], eax
call esi
push eax
call fcn.00423ad9
mov dword [esp], 0x43a2d0
push edi
mov dword [0x4495ac], eax
call esi
push eax
call fcn.00423ad9
mov dword [0x4495b0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041fe5c
test eax, eax
pop ecx
pop ecx
je 0x42b586
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004245ef
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42b5b8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00423ad9
cmp eax, ebx
pop ecx
mov dword [0x4495b8], eax
je 0x42b5b8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00423ad9
pop ecx
mov dword [0x4495b4], eax
mov eax, dword [0x4495b4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42b63d
cmp dword [0x4495b8], ecx
je 0x42b63d
push eax
call fcn.00423b50
push dword [0x4495b8]
mov esi, eax
call fcn.00423b50
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42b63d
cmp edi, ebx
je 0x42b63d
call esi
cmp eax, ebx
je 0x42b60a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42b60a
test byte [ebp - 0x18], 1
jne 0x42b63d
lea eax, [ebp - 0x10]
push eax
call fcn.0041fe93
test eax, eax
pop ecx
je 0x42b625
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004245ef
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42b634
or dword [ebp + 0x10], 0x200000
jmp 0x42b678
or dword [ebp + 0x10], 0x40000
jmp 0x42b678
mov eax, dword [0x4495ac]
cmp eax, dword [ebp - 8]
je 0x42b678
push eax
call fcn.00423b50
cmp eax, ebx
pop ecx
je 0x42b678
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42b678
mov eax, dword [0x4495b0]
cmp eax, dword [ebp - 8]
je 0x42b678
push eax
call fcn.00423b50
cmp eax, ebx
pop ecx
je 0x42b678
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4495a8]
call fcn.00423b50
cmp eax, ebx
pop ecx
je 0x42b698
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42b69a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4331e4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44561c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00433179
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004203e0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x433233
cmp dword [ebp - 0x1c], 5
jb 0x43324b
jmp 0x433247
cmp dword [ebp - 0x10], 1
jne 0x43324b
cmp dword [ebp - 0x1c], 4
ja 0x433247
jne 0x43324b
cmp dword [ebp - 0x18], 0
jbe 0x43324b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43bcc8
call fcn.0043306a
test eax, eax
jge 0x43326c
mov byte [0x44974c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041ed95
add ebp, 0x78
leave
ret
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
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 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x100014f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10001582
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x10001574
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x1000156c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x10001535
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x40a6c0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48952d
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x78], edi
jne 0x40a72e
push 8
call fcn.0047aae1
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0x154], edi
je 0x40a70a
mov ecx, eax
call fcn.0047982b
jmp 0x40a70c
xor eax, eax
push 0xff00ff
push edi
push 0x10
push 0x407
mov ecx, eax
mov dword [esp + 0x164], 0xffffffff
mov dword [ebx + 0x78], eax
call fcn.00479918
mov eax, dword [ebx + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffff0000
push edi
push 0x1101
push eax
mov dword [esp + 0x20], edi
call ebp
mov eax, dword [ebx + 0x40]
lea esi, [ebx + 0x40]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a77c
lea ecx, [esp + 0x48]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40a88e
lea edx, [esp + 0x48]
mov ecx, esi
push edx
call fcn.0047aedd
jmp 0x40a7a3
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x40a7ad
mov eax, dword [eax + 4]
mov ecx, dword [ebx + 0x1c]
push eax
push 0
push 0x1109
push ecx
call ebp
push eax
call fcn.004798bd
lea edx, [esp + 0x48]
push 0x4a71e0
push edx
mov esi, 0xffff0000
call fcn.0046b54b
add esp, 8
test eax, eax
je 0x40a830
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push eax
push 0
push 0x1100
push ecx
mov dword [esp + 0x28], 0xffff0002
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], 3
mov dword [esp + 0x2c], 0x23
call ebp
push 0x4a71e0
push 0
mov esi, eax
inc edi
call fcn.0046b54b
add esp, 8
test eax, eax
jne 0x40a7dc
mov dword [esp + 0x10], edi
mov edx, dword [ebx + 0x1c]
xor edi, edi
push edi
push edi
push 0x110a
push edx
call ebp
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x40a878
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x1c]
push esi
push 2
push 0x1102
push eax
mov edi, esi
call ebp
mov ecx, dword [ebx + 0x1c]
push esi
push 4
push 0x110a
push ecx
call ebp
mov esi, eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x40a84d
mov edx, dword [ebx + 0x1c]
push edi
push 9
push 0x110b
push edx
call ebp
push edi
mov ecx, ebx
call fcn.0040a8b0
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret
Function at 0x40a8b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48954b
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.0047ab15
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a932
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004783dc
mov eax, dword [eax]
push 0x4a71e0
push eax
call fcn.0046a594
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047ada0
test bl, bl
je 0x40a932
push 0x4a71e0
lea ecx, [esp + 0xc]
call fcn.0047b130
push 0x4aad64
lea ecx, [esp + 0xc]
call fcn.0047b130
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 0x40a96e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047ada0
jmp 0x40aa39
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 0x40a9f2
lea edx, [esp + 0x7c]
push 0x4aad60
push edx
call fcn.0046a594
add esp, 8
test eax, eax
je 0x40a9f2
lea eax, [esp + 0x7c]
push 0x4aad5c
push eax
call fcn.0046a594
add esp, 8
test eax, eax
je 0x40a9f2
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 0x40a982
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.0047ada0
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 0x40b250
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 0x40b2b2
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 0x40b2c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4895cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b1520]
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 0x40b3f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b326
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047ada0
xor eax, eax
jmp 0x40b46f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047aedd
push esi
lea ecx, [esp + 0xc]
call fcn.0047b16c
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 0x40b44d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040b250
test eax, eax
jne 0x40b44d
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.0040b250
test eax, eax
jne 0x40b44d
lea eax, [esp + 0x14]
push 0x4aad78
push eax
call fcn.0046b680
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b42c
lea ecx, [esp + 0x14]
push 0x4aad74
push ecx
call fcn.0046b600
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b42c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b42f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047ae8d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b33e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047ada0
xor eax, eax
jmp 0x40b46f
mov byte [esi], 0
push 0x4aad70
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.0047ada0
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