joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460384
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46052f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x460510
mov dl, 1
mov eax, dword [0x41776c]
call fcn.004037d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040456c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4604ff
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044de18
test al, al
je 0x4604f2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x460540
lea eax, [ebp - 0x254]
call fcn.00409924
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4604f2
xor eax, eax
push ebp
push 0x4604eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x460578
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4604d4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047d4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4604d4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4604f2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4603f5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b8c8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460536
lea eax, [ebp - 0x260]
call fcn.0040456c
ret

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

Disassembly:
push ecx
mov eax, dword [0x46ec28]
cmp byte [eax + 0xa5], 0
jne 0x460ed5
cmp dword [0x46ec40], 0
jne 0x460e96
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x460e20
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46ec40], eax
cmp dword [0x46ec3c], 0
jne 0x460eb1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46ec3c], eax
cmp dword [0x46ec44], 0
jne 0x460ed5
push esp
push 0
push 0
push 0x460dc4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46ec44], eax
pop edx
ret
Function at 0x460fcc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x460fe3
add esp, 0xfffffff0
call fcn.00403b64
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004212bc
mov eax, dword [0x46d1f0]
cmp word [eax + 2], 0
jne 0x46100b
mov eax, dword [0x46d1f0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00462600
mov eax, dword [0x46d290]
cmp word [eax + 2], 0
jne 0x461025
mov eax, dword [0x46d290]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004627f8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41727c]
call fcn.004037d0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41727c]
call fcn.004037d0
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4237a4]
call fcn.0042b018
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4611ac
mov eax, dword [0x46d120]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b3e8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x462d68
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46d120]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040be00
test eax, eax
je 0x46111a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040926c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040be28
test eax, eax
je 0x46112e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004047d4
mov eax, dword [0x46d00c]
cmp byte [eax], 0
jne 0x461162
mov eax, ebx
call fcn.004612d4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00462f44
mov eax, ebx
call fcn.004638f4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4611a2
call fcn.00403bbc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461548
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46ec28]
cmp dword [eax + 0x30], 0
je 0x4615f2
cmp dword [ebx + 0x94], 0
jne 0x4615ec
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4614d8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4615ec
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4615b2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4615ec
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041991c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4615c1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4620d0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x462105
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040465c
jmp 0x462112
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004045c0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x463120
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x463161
mov eax, esi
call fcn.00449554
test al, al
je 0x463161
mov eax, dword [ebx + 0x84]
call fcn.00449250
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x463161
push 0
mov eax, dword [ebx + 0x84]
call fcn.00449250
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x463fa4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00463c2c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404a1c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x464002
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46d208]
mov dl, 1
mov eax, dword [0x463b24]
call fcn.0040b270
call fcn.00403fcc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46400c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404a1c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x464064
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46d400]
mov dl, 1
mov eax, dword [0x463b24]
call fcn.0040b270
call fcn.00403fcc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00463c5c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x468124
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x468295
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x468270
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.0040474c
lea eax, [ebp - 0x118]
mov edx, 0x4682ac
call fcn.0040482c
mov eax, dword [ebp - 0x118]
call fcn.00404a1c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4681e2
lea eax, [ebp - 0x111]
call fcn.00409230
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.0040465c
jmp 0x4681e9
mov eax, esi
call fcn.0040456c
cmp bl, 0x61
jae 0x46820a
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040bcd4
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.004045c0
jmp 0x468224
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040bc48
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.004045c0
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4682b8
call fcn.004099a4
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.004045c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468277
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4017d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x4017f6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40188a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401845
cmp eax, 0x40
je 0x401845
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4017e9
cmp eax, 0x40
je 0x4017e9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x4017e9
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x4151c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x4151e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4151e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4151d8
mov eax, 1
add ebx, ebx
jne 0x4151fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4151f0
jne 0x41520c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4151f0
xor ecx, ecx
sub eax, 3
jb 0x415220
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x415292
mov ebp, eax
add ebx, ebx
jne 0x41522b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x415238
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41525c
inc ecx
add ebx, ebx
jne 0x415248
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41523d
jne 0x415259
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41523d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41527c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41526d
jmp 0x4151de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41527c
add edi, ecx
jmp 0x4151de
pop esi
mov edi, esi
mov ecx, 0x22b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41529a
cmp byte [edi], 5
jne 0x41529a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41529f
lea edi, [esi + 0x13000]
mov eax, dword [edi]
or eax, eax
je 0x41530e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x199ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19a20]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4152cc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19a28]
or eax, eax
je 0x415308
mov dword [ebx], eax
add ebx, 4
jmp 0x4152e9
call dword [esi + 0x19a24]
mov ebp, dword [esi + 0x19a2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x415342
sub esp, 0xffffff80
jmp 0x403008
Function at 0x401544
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov cl, byte [0x402050]
mov edx, eax
mov ebx, eax
shl edx, cl
mov eax, 0x402054
add edx, dword [0x402050]
call fcn.0040147e
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x401f35
push edx
sub edi, fcn.00401700
push edi
xor eax, eax
push fcn.00401700
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x4015b6
mov eax, fcn.00401700
mov ebx, esi
mov edx, edi
call fcn.0040147e
mov edx, 0x1be00
mov eax, 0x402054
mov ebx, esi
call fcn.00401370
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401648
Capabilities:
Encode data using base64 via winapi
Initialize winsock library

Disassembly:
push ecx
push edx
enter 0x2cc, 0
lea eax, [ebp - 0x2cc]
push eax
push 2
call dword [sym.imp.WS2_32.DLL_WSAStartup]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x1c], 6
xor eax, eax
push 0x7f00
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.DLL_LoadIconA]
push 0x7f00
push 0
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.DLL_LoadCursorA]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.DLL_RegisterClassA]
push 0
push 0
call dword [sym.imp.USER32.DLL_LoadAcceleratorsA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push 1
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x13c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
call dword [sym.imp.WS2_32.DLL_WSACleanup]
movzx eax, byte [ebp - 0x10]
sub eax, 0x47
add eax, dword [ebp - 4]
leave
pop edx
pop ecx
ret
Function at 0x401700
Capabilities:
Encode data using base64 via winapi

Disassembly:
jb 0x401752
jb 0x40168e
jb 0x40176b
inc ebp
inc ebp
push ebx
push ecx
xor dword [edx - 0x77], esi
inc ecx
outsb dx, byte gs:[esi]
inc ebp
inc ebp
enter 0xffffffffffffc764, 0x74
inc ebp
inc ebp
insb byte es:[edi], dx
invalid
pushal
arpl word [ebp - 0x39], sp
push esi
add byte [esi + 0x6f], dh
ret
inc edi
je 0x40176e
mov dword [eax + 0x72], edx
push dword [edx + 0x45]
inc esi
outsb dx, byte [esi]
mov dword [eax], eax
lea eax, [esi - 1]
jbe 0x4017d3
outsb dx, byte [esi]
invalid
jp 0x40182b
arpl word [edx + 0x6e], si
inc esi
rcl byte [ebx], 0x74
inc ebp
jp 0x401844
inc ebp
imul ecx, dword [ecx - 0x389b91aa], 0x5c508dc7
outsb dx, byte fs:[esi]
jb 0x40185b
inc ebp
push ebx
outsb dx, byte [esi]
jbe 0x401859
jb 0x401847
inc ebp
invalid
inc edi
outsd dx, dword [esi]
xor dword [ebx + 0x74], edx
popal
push esi
push eax
inc esi
pop eax
dec ebp
push esi
inc ebp
mov dword [edi + 0x6e], ecx
inc ebp
inc esi
push eax
jp 0x401890
mov dword gs:[esi + 0x69], esi
je 0x40189a
imul esi, dword [ebx + edx*2 + 0x46], 0x727045c7
outsb dx, byte [esi]
add byte [ebp + 0x70], dl
inc esi
inc esi
mov dword [ebp + 0x70], 0x6e6672
push ebp
jo 0x401898
dec dword [ecx + 0x456c506e]
insb byte es:[edi], dx
inc ebp
imul eax, dword [ebp + 0x64], 0x49737250
inc ebp
push eax
jb 0x4018d3
dec ecx
jb 0x4018c8
mov edi, eax
inc ebp
jb 0x4018df
lea ecx, [ebp + 0x7e530089]
invalid
inc ebp
je 0x4018c3
invalid
call 0x8a3ff75c
invalid
add byte [eax], al
add byte [eax], dl
call dword [esi + 0x47]
dec esi
jb 0x4018fa
push eax
inc esi
add byte [ebx - 0x387c178d], al
inc ebp
out dx, al
push edx
invalid
cli
outsb dx, byte [esi]
add byte [eax], al
add byte [ebp - 6], dh
jne 0x4018c4
pop esi
add al, 0xc3
mov edi, 0x2b645e0e
popal
fistp dword [eax]
invalid
ror dword [eax + edx*2], 0x64
aas
add byte [ebp + 0x78036378], al
add byte [ebp + 0x72], al
dec eax
ja 0x40187b
invalid
jae 0x4018fc
add byte [edx + 0x4c], ch
mov dword [ebp + 3], esp
jmp dword [eax + 0x393d4589]
Function at 0x40c950
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47e91b
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.004731dc
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c9d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00470b9d
mov eax, dword [eax]
push 0x4ac210
push eax
call fcn.00463964
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00473467
test bl, bl
je 0x40c9d2
push 0x4ac210
lea ecx, [esp + 0xc]
call fcn.004737f7
push 0x4afd84
lea ecx, [esp + 0xc]
call fcn.004737f7
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 0x40ca0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00473467
jmp 0x40cad9
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 0x40ca92
lea edx, [esp + 0x7c]
push 0x4afd80
push edx
call fcn.00463964
add esp, 8
test eax, eax
je 0x40ca92
lea eax, [esp + 0x7c]
push 0x4afd7c
push eax
call fcn.00463964
add esp, 8
test eax, eax
je 0x40ca92
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 0x40ca22
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.00473467
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 0x40d760
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 0x40d7c2
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 0x40d7d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47e9db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4bbc40]
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 0x40d908
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40d836
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00473467
xor eax, eax
jmp 0x40d97f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004735a4
push esi
lea ecx, [esp + 0xc]
call fcn.00473833
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 0x40d95d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040d760
test eax, eax
jne 0x40d95d
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.0040d760
test eax, eax
jne 0x40d95d
lea eax, [esp + 0x14]
push 0x4afd98
push eax
call fcn.004649a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d93c
lea ecx, [esp + 0x14]
push 0x4afd94
push ecx
call fcn.00464920
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d93c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40d93f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00473554
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40d84e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00473467
xor eax, eax
jmp 0x40d97f
mov byte [esi], 0
push 0x4afd90
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.00473467
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