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

Disassembly:
sub esp, 0x68
push ebx
mov ebx, dword [esp + 0x70]
call fcn.00406f34
add esp, 0xfffffff8
push pe_nt_image_headers32
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.KERNEL32.dll_SetPriorityClass
push 0xf
add esp, 0xfffffff8
call sub.KERNEL32.dll_GetCurrentThread
add esp, 8
push eax
call sub.KERNEL32.dll_SetThreadPriority
add esp, 8
add esp, 0xfffffff8
push 0x419c40
push 0x64ded0
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [0x6df180]
add esp, 8
add esp, 0xfffffff8
push 0x419c40
push 0x536f50
call sub.KERNEL32.dll_lstrcpyA
add esp, 8
mov eax, dword [0x6df150]
add esp, 0xfffffff8
mov eax, dword [eax + 0x78]
push eax
push 0x536f50
call sub.KERNEL32.dll_lstrcatA
mov eax, dword [0x435730]
push eax
push 0x64ded0
call sub.KERNEL32.dll_lstrcatA
push 0x536f50
push 0x64d9a0
call sub.KERNEL32.dll_lstrcpyA
push 0x419c4b
push 0x4f0580
call sub.KERNEL32.dll_lstrcpyA
add esp, 8
mov dword [esp + 0x10], 0x30
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 0x41c7d8
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ebx
add esp, 0xfffffff8
push 0x6b
push ebx
call sub.USER32.dll_LoadIconA
mov dword [esp + 0x30], eax
push 0x7f00
push 0
call sub.USER32.dll_LoadCursorA
mov dword [esp + 0x34], eax
add esp, 0xfffffffc
push 4
call sub.GDI32.dll_GetStockObject
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x407c8c
add esp, 0xfffffff4
push 0x6c
mov eax, dword [esp + 0x40]
push eax
call sub.USER32.dll_LoadIconA
mov dword [esp + 0x54], eax
add esp, 0xfffffffc
lea eax, [esp + 0x2c]
push eax
call sub.USER32.dll_RegisterClassExA
add esp, 0x1c
add esp, 0xfffffff4
mov eax, dword [esp + 0x84]
push eax
call fcn.00408dec
add esp, 0xfffffff8
mov eax, dword [esp + 0x94]
push eax
push ebx
call fcn.00419e60
add esp, 0x20
test eax, eax
jne 0x419e26
mov eax, dword [0x698ff0]
add esp, 0xfffffff4
push eax
call sub.USER32.dll_IsWindow
add esp, 0xc
test eax, eax
je 0x419ddd
mov eax, dword [0x698ff0]
push 0
push 1
push 0x111
push eax
call sub.USER32.dll_SendMessageA
call fcn.00408b98
mov eax, dword [0x537060]
test eax, eax
je 0x419e22
add esp, 0xfffffff4
push eax
call sub.USER32.dll_DestroyWindow
add esp, 0xc
test eax, eax
jne 0x419e15
mov eax, dword [0x6df150]
push 0x10
push 0x40709b
mov eax, dword [eax + 0x320]
push eax
push 0
call sub.USER32.dll_MessageBoxA
add esp, 0xfffffff4
push 0xffffffffffffffff
call sub.USER32.dll_PostQuitMessage
add esp, 0xc
xor eax, eax
jmp 0x419e56
lea ebx, [esp + 0x40]
jmp 0x419e42
add esp, 0xfffffff4
push ebx
call sub.USER32.dll_TranslateMessage
push ebx
call sub.USER32.dll_DispatchMessageA
add esp, 0xc
push 0
push 0
push 0
push ebx
call sub.USER32.dll_GetMessageA
test eax, eax
jne 0x419e30
mov eax, dword [esp + 0x48]
pop ebx
add esp, 0x68
ret 0x10
Function at 0x42318c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push ebx
sub esp, 0x54
and esp, 0xfffffff0
call fcn.0042335c
call fcn.004232ec
call sub.KERNEL32.dll_GetCommandLineA
lea edx, [ebp - 0x58]
sub esp, 0xc
mov ebx, eax
push edx
call sub.KERNEL32.dll_GetStartupInfoA
add esp, 0xc
test ebx, ebx
je 0x4231ed
mov al, byte [ebx]
cmp al, 0x20
je 0x42323c
cmp al, 9
je 0x42323c
cmp al, 0x22
je 0x423229
cmp al, 0x20
je 0x42321c
cmp al, 9
je 0x4231e5
test al, al
je 0x4231e5
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x42321c
cmp al, 9
je 0x4231e5
test al, al
jne 0x4231d6
cmp al, 0x20
je 0x42321c
cmp al, 9
je 0x42321c
test dword [ebp - 0x2c], 1
je 0x423214
mov eax, dword [ebp - 0x28]
and eax, 0xffff
push eax
push ebx
push 0
push 0
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call fcn.00419c54
mov ebx, dword [ebp - 4]
leave
ret
mov eax, 0xa
jmp 0x4231fe
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x42321c
cmp al, 9
je 0x42321c
jmp 0x4231ed
inc ebx
mov al, byte [ebx]
cmp al, 0x22
je 0x423236
test al, al
jne 0x423229
jmp 0x4231e5
inc ebx
mov al, byte [ebx]
jmp 0x4231e5
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x42323c
cmp al, 9
je 0x42323c
jmp 0x4231c6
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x4079d9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x4079e8
pop dword [ebp - 0x38]
mov eax, 0xacda420f
add eax, 0x536637d9
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x35012
push 0
mov eax, 0x3cf20802
add eax, 0xc34ed8d6
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x1198a1
sub ecx, 0x1162d7
xor esi, esi
add esi, eax
mov edx, 0x32340ef6
sub edx, 0x31f2d332
add edx, dword [ebp - 0x38]
mov ebx, 0x12e35cf
sub ebx, 0xf7ceee27
sub dword [ebp - 4], 0x67ff1377
mov edi, dword [edx]
sub dword [ebp - 0x20], edx
xor edi, ebx
xor dword [ebp - 4], esi
mov dword [esi], edi
add dword [ebp - 0x14], 0xc302b948
add esi, 0xfb54bbf2
add esi, 0x4ab4412
add edx, 0xa842f735
add edx, 0x57bd08cf
loop 0x407a49
add eax, 0xc9fb
mov ebx, eax
add eax, 0x9cb8de55
add eax, 0x634721b0
mov ecx, 0x5b512316
add ecx, 0xa4eedcea
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4010b0
Capabilities:
Create thread
Open clipboard
Read clipboard data
Set console window title

Disassembly:
push esi
push str.Keylogger
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push str.Keylogger_v2.3_by_Ivan_Sincek._n
call fcn.00401170
push str.GitHub_repository_at_github.com_ivan_sincek_keylogger._n
call fcn.00401170
add esp, 8
call fcn.00401d80
test al, al
je 0x401139
call fcn.00402180
push 0x437c4c
push 0
push 0
push 0x403e40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x40110e
push str.Cannot_create_a_new_hook_thread_n
call fcn.00401170
add esp, 4
jmp 0x401139
push 0x403f50
push 2
call fcn.0040e276
add esp, 8
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 2
call fcn.0040e276
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
pop esi
ret
Function at 0x404230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x404316
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x404305
jg 0x404270
test edx, edx
je 0x404305
nop dword [eax]
call fcn.00405b30
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4042c4
jg 0x404287
test esi, esi
je 0x4042c4
cmp ebx, eax
jg 0x404297
jl 0x404291
cmp edi, esi
jae 0x404297
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00408710
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4042e9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x4042ff
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x404270
jl 0x4042ff
test edi, edi
jne 0x404270
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x404338
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40433a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4043b8
jg 0x40434d
test esi, esi
je 0x4043b8
test eax, eax
jl 0x40439c
jg 0x404357
test ebx, ebx
je 0x40439c
cmp edi, eax
jg 0x404367
jl 0x404361
cmp esi, ebx
jae 0x404367
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00408710
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x4043b8
jg 0x40439f
test esi, esi
je 0x4043b8
jmp 0x40439f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4043b8
push eax
push esi
push 1
push edx
call fcn.0040d6e8
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4043d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x404402
jl 0x4043f5
test ecx, ecx
jne 0x404402
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4044c2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00405b50
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40446e
jg 0x40442d
test esi, esi
je 0x40446e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x404445
mov eax, dword [esp + 0x10]
jl 0x40443f
cmp eax, esi
jae 0x404445
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00408710
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40448f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4044ab
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x404414
jl 0x4044ab
test ecx, ecx
jne 0x404414
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x404501
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x404501
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00408710
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x404570
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x404527
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x404559
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0040dd5a
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x404584
cmp edi, eax
ja 0x404535
test ecx, ecx
je 0x404570
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0040dd5a
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4048f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x436008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x404920
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063dd
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40495c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40495c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063dd
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x404a44
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x404984
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4049b7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040b267
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063dd
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x404a17
sub eax, 1
je 0x404a17
sub eax, 2
jne 0x404a44
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0040b267
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063dd
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404a34
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040d6e8
add esp, 0x10
cmp edi, eax
jne 0x404a44
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x404947
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004063dd
mov esp, ebp
pop ebp
ret 4
Function at 0x405860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x436008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40591a
cmp byte [esi + 0x3d], 0
je 0x40591a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x405908
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4058d0
sub eax, 1
je 0x4058d4
sub eax, 2
jne 0x405908
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063dd
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4058f1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040d6e8
add esp, 0x10
cmp edi, eax
jne 0x405908
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063dd
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063dd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004063dd
mov esp, ebp
pop ebp
ret

Function at 0x4175df
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417455

Function at 0x41ae50
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a9a3
Function at 0x42cafc
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov al, byte [ecx]
and dword [esp + 0x14], 0
push ebx
push ebp
mov byte [edx], al
lea eax, [edx + 1]
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.0042caa5
test eax, eax
je 0x42cc55
lea ecx, [esp + 0x18]
call fcn.0042caa5
lea ecx, [esp + 0x18]
test eax, eax
je 0x42cbc4
call fcn.0042caa5
test eax, eax
je 0x42cb86
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call fcn.0042caa5
lea edi, [eax + edi*2]
dec ebx
jne 0x42cb5c
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x42cb7d
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x42cb80
mov byte [edx], 0
inc edx
jmp 0x42cc67
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x42cbbc
test ecx, ecx
je 0x42cc50
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x42cbae
jmp 0x42cc4c
xor ebp, ebp
inc ebp
jmp 0x42cc50
call fcn.0042cadb
test edi, edi
jne 0x42cbf9
cmp eax, 2
jne 0x42cbf4
lea ecx, [esp + 0x18]
call fcn.0042cadb
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x42cc50
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x42cbe9
jmp 0x42cc4c
sub eax, 3
jmp 0x42cbfc
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.0042cadb
mov ecx, eax
cmp esi, 0x7d00
jb 0x42cc23
inc ecx
cmp esi, 0x500
jb 0x42cc2c
inc ecx
cmp esi, 0x80
jae 0x42cc37
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x42cc50
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x42cc43
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x42cc6d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x42cb2c
sub edx, dword [esp + 0x14]
pop edi
mov eax, edx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42cdf2
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x42ce24
mov al, byte [esp + 0x14]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [esp + 0x10]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x42ce05
jmp 0x42ce28
mov eax, dword [esp + 0x10]
test edi, edi
je 0x42ce32
xor byte [esi], al
inc esi
dec edi
jne 0x42ce2c
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x40b150
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b48b
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.0046fc63
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b1d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046d62d
mov eax, dword [eax]
push 0x5d81e0
push eax
call fcn.004604a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046feee
test bl, bl
je 0x40b1d2
push 0x5d81e0
lea ecx, [esp + 0xc]
call fcn.0047027e
push 0x5dbd54
lea ecx, [esp + 0xc]
call fcn.0047027e
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 0x40b20e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046feee
jmp 0x40b2d9
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 0x40b292
lea edx, [esp + 0x7c]
push 0x5dbd50
push edx
call fcn.004604a4
add esp, 8
test eax, eax
je 0x40b292
lea eax, [esp + 0x7c]
push 0x5dbd4c
push eax
call fcn.004604a4
add esp, 8
test eax, eax
je 0x40b292
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 0x40b222
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.0046feee
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 0x40bf60
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 0x40bfc2
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 0x40bfd0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b54b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5e7ef0]
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 0x40c108
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c036
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046feee
xor eax, eax
jmp 0x40c17f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047002b
push esi
lea ecx, [esp + 0xc]
call fcn.004702ba
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 0x40c15d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040bf60
test eax, eax
jne 0x40c15d
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.0040bf60
test eax, eax
jne 0x40c15d
lea eax, [esp + 0x14]
push 0x5dbd68
push eax
call fcn.004614e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c13c
lea ecx, [esp + 0x14]
push 0x5dbd64
push ecx
call fcn.00461460
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c13c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c13f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046ffdb
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c04e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046feee
xor eax, eax
jmp 0x40c17f
mov byte [esi], 0
push 0x5dbd60
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.0046feee
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