joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10036fd4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1003702d
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10036fd4
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10036fe3
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043cc86
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10037034
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001deaa
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100370d3
add edi, 4
add eax, 2
dec ecx
jne 0x10037019
call 0x10037080
loope 0x10037076
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100370d0
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100370e1
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10037094
cmp eax, ecx
ja 0x10037094
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1003711e
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10037114
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001e389
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10036fe3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1003702d
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10036fd4
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10036fe3
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043cc86
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10037034
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001deaa
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100370d3
add edi, 4
add eax, 2
dec ecx
jne 0x10037019
call 0x10037080
loope 0x10037076
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100370d0
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100370e1
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10037094
cmp eax, ecx
ja 0x10037094
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1003711e
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10037114
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001e389
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x404ab8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404b1e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403ee0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402bdc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404b08
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404b25
lea eax, [ebp - 0x10]
call fcn.00403c8c
ret

Function at 0x406c9c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406cd5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d7c
jmp 0x406cde
mov eax, ebx
mov edx, esi
call fcn.00403ce0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406ce8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406d09
mov al, byte [esp]
jmp 0x406d0b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4073a0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407208
mov eax, dword [0x40d4ac]
cmp byte [eax], 0
je 0x40741c
mov eax, dword [0x40d3fc]
call fcn.00402acc
call fcn.00402998
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040615c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x407464
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x407452
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40d3dc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40e660]
call fcn.00404488
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x407e70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407ed4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403ee0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406024
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407edb
lea eax, [ebp - 0xc]
call fcn.00403c8c
ret

Function at 0x408e28
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x408e6e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00408d8c
mov eax, dword [ebp - 4]
call fcn.0040410c
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e75
lea eax, [ebp - 4]
call fcn.00403c8c
ret

Function at 0x409130
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.0040621c
add esp, 0x104
pop ebx
ret
Function at 0x409274
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x409395
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40937f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x4092cd
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x40937f
cmp dword [ebp - 0xc], 0
jne 0x4092e2
mov eax, dword [ebp - 4]
call fcn.00403c8c
mov bl, 1
jmp 0x40937f
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.00403d7c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.0040415c
push eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x409299
test eax, eax
jne 0x40937f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x409329
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x40937f
jmp 0x409329
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
je 0x40933c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0
je 0x409326
cmp dword [ebp - 8], 7
jne 0x40934b
cmp dword [ebp - 0xc], 0
je 0x40934b
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00404200
cmp dword [ebp - 8], 7
jne 0x409372
cmp dword [ebp - 0xc], 0
je 0x409372
lea eax, [ebp - 0x10]
call fcn.0040415c
mov edx, dword [ebp - 0xc]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00403ce0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40939c
lea eax, [ebp - 0x10]
call fcn.00403c8c
ret

Function at 0x409cb0
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40e7d4
mov eax, esi
mov edx, 8
test al, 1
je 0x409ccc
shr eax, 1
xor eax, 0xedb88320
jmp 0x409cce
shr eax, 1
dec edx
jne 0x409cbf
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x409cb8
pop esi
ret

Function at 0x409ce4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40e7d0], 0
jne 0x409d08
call fcn.00409cb0
push 1
push 0x40e7d0
call sub.kernel32.dll_InterlockedExchange
mov dword [esp], edi
test esi, esi
je 0x409d38
mov eax, ebx
and eax, 0xff
mov edx, dword [esp]
movzx edx, byte [edx]
xor ax, dx
movzx eax, ax
mov eax, dword [eax*4 + 0x40e7d4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
dec esi
inc dword [esp]
test esi, esi
jne 0x409d0f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40b650
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040b604
test al, al
jne 0x40b671
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40b6bd
xor eax, eax
push ebp
push 0x40b6ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040410c
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b6b4
lea eax, [ebp - 0xc]
call fcn.0040b640
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b9fc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40ba04
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40baf1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040915c
mov edx, dword [ebp - 8]
mov ecx, 0x40bb08
xor eax, eax
call fcn.0040b8ec
push 0
mov eax, dword [ebp - 4]
call fcn.0040410c
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40babf
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40ba1e
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.0040b3fc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00405ffc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040962c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.0040b3cc
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x405404]
call fcn.00407498
call fcn.004036c4
jmp 0x40ba1e
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403ce0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40baf8
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403cb0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403cb0
ret

Function at 0x40bb44
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x40d4fc]
cmp dword [eax], 2
jne 0x40bbb2
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40bb6a
call fcn.0040bb18
jmp 0x40bbc4
lea eax, [esp + 8]
push eax
push 0x40bbc8
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x40bbb2
call fcn.0040bb18
jmp 0x40bbc4
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x40bbc4
call fcn.0040bb18
add esp, 0x14
ret
Function at 0x40bbdc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40bc36
inc esi
xor edi, edi
cmp edi, 1
jne 0x40bc02
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x40bc10
cmp edi, 1
jle 0x40bc10
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040b650
test eax, eax
jne 0x40bc36
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x40bc36
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x40bc36
inc edi
dec esi
jne 0x40bbf2
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40c034
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x78]
xor eax, eax
push ebp
push 0x40c126
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40c13c
push esi
push 0x40c148
push edi
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403fcc
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402ba0
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040410c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40c0b8
mov al, 0x62
call fcn.0040bc78
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x40c0cf
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x40c0c3
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40c0cf
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c12d
lea eax, [ebp - 8]
call fcn.00403c8c
ret
Function at 0x40c1e8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov ebp, eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov dword [esp], ebp
push 0x1c
push esi
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40c2ba
jmp 0x40c2af
cmp dword [esi + 0x10], 0x1000
jne 0x40c296
test byte [esi + 0x15], 1
jne 0x40c296
mov byte [esp + 4], 0
mov edi, dword [esi + 0x14]
cmp edi, 1
je 0x40c247
cmp edi, 2
je 0x40c247
cmp edi, 0x10
je 0x40c247
cmp edi, 0x20
jne 0x40c263
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40c263
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40c274
mov eax, dword [esi]
add eax, ebx
call fcn.0040c1e0
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40c267
cmp byte [esp + 4], 0
je 0x40c296
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
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 dword [esp], eax
push 0x1c
push esi
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40c2ba
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x40c21c
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40cfd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48e24b
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.00482bdf
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d052
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00480538
mov eax, dword [eax]
push 0x4de1f4
push eax
call fcn.0046f7a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00482e6a
test bl, bl
je 0x40d052
push 0x4de1f4
lea ecx, [esp + 0xc]
call fcn.004831fa
push 0x4e1d6c
lea ecx, [esp + 0xc]
call fcn.004831fa
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 0x40d08e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00482e6a
jmp 0x40d159
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 0x40d112
lea edx, [esp + 0x7c]
push 0x4e1d68
push edx
call fcn.0046f7a4
add esp, 8
test eax, eax
je 0x40d112
lea eax, [esp + 0x7c]
push 0x4e1d64
push eax
call fcn.0046f7a4
add esp, 8
test eax, eax
je 0x40d112
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 0x40d0a2
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.00482e6a
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 0x40d950
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 0x40d9b2
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 0x40d9c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48e2cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x595eb8]
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 0x40daf8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40da26
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00482e6a
xor eax, eax
jmp 0x40db6f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00482fa7
push esi
lea ecx, [esp + 0xc]
call fcn.00483236
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 0x40db4d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040d950
test eax, eax
jne 0x40db4d
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 closesocket
mov ecx, edi
call fcn.0040d950
test eax, eax
jne 0x40db4d
lea eax, [esp + 0x14]
push 0x4e1d80
push eax
call fcn.00470910
mov esi, eax
add esp, 8
test esi, esi
jne 0x40db2c
lea ecx, [esp + 0x14]
push 0x4e1d7c
push ecx
call fcn.00470890
mov esi, eax
add esp, 8
test esi, esi
jne 0x40db2c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40db2f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00482f57
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40da3e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00482e6a
xor eax, eax
jmp 0x40db6f
mov byte [esi], 0
push 0x4e1d78
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.00482e6a
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