joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4721d0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x472273
test eax, eax
jbe 0x472273
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x472273
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47221e
xor esi, esi
jmp 0x472224
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47224f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040afe0
add esi, eax
push esi
mov ebx, esi
call fcn.0040afe0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x472230
pop ebp
test edi, edi
pop edi
jne 0x472273
test ebx, ebx
je 0x472273
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00483750
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4723b5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4724cd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4724cd
mov eax, dword [esi + 0x3c]
push eax
call fcn.00494fa6
mov esi, eax
test esi, esi
je 0x4724cd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4724cd
mov ecx, esi
call fcn.00472320
cmp edi, eax
jge 0x4724cd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x472453
mov dword [esp + 0x34], 1
jmp 0x4724ae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4724cd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00470bd0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x47cbb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x47cbfc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x47cbfc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x47cbe6
push eax
call ebp
test ax, ax
jl 0x47cbf4
inc esi
add edi, 4
cmp esi, 6
jb 0x47cbd8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0047c8b0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x480960
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4809c0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4809c0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4809c0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4809c0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4809d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x49594a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x495982
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004939ef
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004939c7
jmp 0x49598e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x497149
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49718b
call fcn.0049d575
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49718b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x497182
xor eax, eax
jmp 0x497193
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00497199
pop edi
pop esi
pop ebx
ret 4

Function at 0x49daa5
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 0x49dad3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49daf1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049da0b
jmp 0x49daf1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49daf1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049da0b
test edi, edi
mov eax, edi
jne 0x49dadb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x408450
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4931b1
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x4aeea0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x40]
call fcn.0040dbd0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040d4a0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push 0
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4084c5
xor bl, bl
jmp 0x4085d3
lea ecx, [ebp - 0x28]
call fcn.0040dd90
call fcn.00408aa0
test al, al
je 0x408578
lea ecx, [ebp - 0x28]
call fcn.0040dd90
push ecx
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
call fcn.00402100
mov byte [ebp - 4], 2
sub esp, 8
lea ecx, [ebp - 0xf8]
mov dword [ebp - method.ResOutStream.virtual_0], vtable.ResOutStream.0
call fcn.0040b8d0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], 8
push 0xc8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push str.DATA
push eax
lea ecx, [ebp - 0x108]
call fcn.0040b590
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 4
call fcn.0040b7d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x108]
test al, al
jne 0x408573
call fcn.0040b660
xor bl, bl
jmp 0x4085d3
call fcn.0040b660
lea ecx, [ebp - 0x28]
call fcn.0040dd90
sub esp, 0x18
mov ecx, esp
push str..SERVER
call fcn.004028f0
lea ecx, [ebp - 0x28]
call fcn.00407fa0
add esp, 0x18
test al, al
jne 0x4085a2
xor bl, bl
jmp 0x4085d3
lea ecx, [ebp - 0x28]
call fcn.0040dd90
mov ecx, esi
call fcn.0040dfb0
cmp dword [esi + 0x14], 8
jb 0x4085b9
mov esi, dword [esi]
cmp dword [ebp - 0x14], 8
push 0xb
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bl
cmp dword [ebp - 0x14], 8
jb 0x4085e4
push dword [ebp - 0x28]
call fcn.0045b2a0
add esp, 4
xor eax, eax
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x408609
push dword [ebp - 0x40]
call fcn.0045b2a0
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a8cf
mov esp, ebp
pop ebp
ret
Function at 0x402200
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
or edi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
xor esi, esi
mov edx, dword [0x4040c8]
add edx, 0x24
mov esi, edx
cmp dword [edx], 0xffffffff
je 0x40223e
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x402239
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 8]
jbe 0x402239
mov esi, edx
add edx, 0x10
jmp 0x402222
mov edx, esi
cmp dword [edx], 0xffffffff
je 0x402352
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x402352
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x402350
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
je 0x402350
mov cl, byte [edx]
sub cl, 0x3c
jne 0x402286
jmp 0x402350
sub cl, 3
jne 0x4022a0
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x40234b
inc cl
jne 0x4022b4
movzx ecx, word [edx + 1]
add edi, ecx
add edx, 3
jmp 0x40234b
inc cl
jne 0x4022c8
movzx ecx, word [edx + 1]
add edi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x4022db
movzx ecx, byte [edx]
shr ecx, 6
add edi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x4022e5
mov esi, eax
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp + 0x10]
jl 0x402342
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x4022f8
cmp byte [ebp - 0x25], 0
jne 0x402340
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x14]
jle 0x40232e
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + ecx]
xor dl, 0xaa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], dl
jmp 0x402309
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esi, dword [ebp - 0x18]
mov eax, esi
jmp 0x402352
jmp 0x402350
mov esi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x25], 0
jmp 0x402278
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402760
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.0040273c
call fcn.00402f88
mov dword [0x4040c8], eax
lea edx, [eax + 0x18]
mov dword [0x404128], edx
pop edx
call fcn.0040260c
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x4040f4], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x404108], eax
mov dword [0x404130], eax
call fcn.00402c1c
cmp eax, 3
setb byte [0x4040d1]
call fcn.004030f0
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x40281c
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]
Function at 0x402aac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
call sub.kernel32.dll_WriteFile
test eax, eax
setne al
movsx eax, al
push eax
call fcn.0040294c
mov esi, eax
cmp dword [0x404218], 0xffffffff
je 0x402b0d
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x404214]
jne 0x402b0d
lea eax, [ebp - 0x1c]
push eax
push dword [0x404214]
call sub.kernel32.dll_GetConsoleScreenBufferInfo
movsx eax, word [ebp - 0x18]
mov dword [0x404220], eax
movsx eax, word [ebp - 0x16]
mov dword [0x404224], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402c1c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push esi
push edi
mov edi, 3
push 0x404320
call fcn.00402668
mov esi, dword [eax]
push 0x404320
call fcn.00402668
mov dword [eax], 0x40
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x38c]
push eax
push 0
call fcn.00401fe4
call fcn.00401e60
lea eax, [ebp - 0x150]
push eax
push 1
call fcn.00401eec
call fcn.00401134
test eax, eax
jne 0x402d5d
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 0x40
push 0
call fcn.00401fc4
call fcn.00401134
test eax, eax
jne 0x402cd3
cmp word [ebp - 0x190], 0x5a4d
jne 0x402cd3
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00401f08
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 2
push 0
call fcn.00401fc4
jmp 0x402cdd
mov dword [ebp - 0x154], 0
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00401f08
call fcn.00401134
test eax, eax
jne 0x402d41
cmp word [ebp - 0x190], 0x4550
jne 0x402d41
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x288]
push eax
push 0xf8
push 0
call fcn.00401fc4
call fcn.00401134
test eax, eax
jne 0x402d41
cmp dword [ebp - 0x288], 0x4550
jne 0x402d41
cmp word [ebp - 0x22c], 3
jne 0x402d41
mov edi, 2
lea eax, [ebp - 0x150]
push eax
call fcn.00401f38
push 0x404318
call fcn.00402668
mov dword [eax], 0
push 0x404320
call fcn.00402668
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402df4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
cmp dword [0x4042a8], 0
je 0x402e16
mov eax, dword [0x4042a8]
mov dword [ebp - 4], eax
jmp 0x402eab
push 0x104
call fcn.004011d4
mov dword [ebp - 4], eax
push 0x104
push dword [ebp - 4]
push 0
call sub.kernel32.dll_GetModuleFileNameA
push dword [ebp - 4]
call fcn.004030f8
inc eax
mov ebx, eax
call sub.kernel32.dll_GetCommandLineA
mov esi, eax
mov al, byte [esi]
dec al
cmp al, 0x1f
jbe 0x402e5b
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00402d8c
mov esi, eax
inc esi
push esi
call fcn.004030f8
inc eax
mov edi, eax
lea eax, [ebp - 4]
push eax
mov eax, ebx
add eax, edi
inc eax
push eax
call fcn.00401234
call sub.kernel32.dll_AreFileApisANSI
test eax, eax
jne 0x402e8c
push edi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push esi
call sub.user32.dll_CharToOemBuffA
jmp 0x402e99
push esi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push edi
call fcn.00401764
mov eax, dword [ebp - 4]
add eax, ebx
add eax, edi
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov dword [0x4042a8], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402f88
Capabilities:
Contain obfuscated stackstrings
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov dword [ebp - 0x24], 0x52414853
mov dword [ebp - 0x20], 0x454d4445
mov dword [ebp - 0x1c], 0x5356354d
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0xb
call fcn.00401718
xor eax, eax
mov bl, 0
cmp dword [0x404250], 0
jne 0x402fd6
push 0x4040a8
push 1
call fcn.00402908
mov dword [0x404250], eax
cmp dword [0x404250], 0
jne 0x402fef
push 0x8000
call fcn.004011d4
mov esi, eax
mov bl, 1
jmp 0x403029
lea eax, [ebp - 0x24]
push eax
push 0
push 6
call dword [0x404250]
test eax, eax
jne 0x403019
lea eax, [ebp - 0x24]
push eax
push 0x8000
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov bl, 1
push 0
push 0
push 0
push 6
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test bl, bl
je 0x403052
push esi
push 0x8000
push 0xff
call fcn.004017c0
push esi
push 0x24
push 0
call fcn.004017c0
mov eax, esi
add eax, 0xc
push eax
call fcn.004012bc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418bb2
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x418bd3
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x418bca
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x418bc2
mov eax, ebx
leave
ret

Function at 0x418bf9
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 8]
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 8]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x418c58
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x418c85
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x418c74
xor ecx, eax
xor edx, ebx
dec edi
jne 0x418c65
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x418cab
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x418c4c
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x4194eb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword ds:[ebp - 0x20], 0xff8bff8b
mov dword ds:[ebp - 0x14], 0xff8bff8b
mov dword ds:[ebp - 0x1c], 0xff8bff8b
push 0x7fc
push dword [ebp - 0x20]
call fcn.00418b78
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 4]
mov ebx, eax
pop ecx
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x4196ca
push dword [ebp - 4]
call fcn.00418b5c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4195bb
jmp 0x4196ca
push dword [ebp - 4]
call fcn.00418b5c
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x41960f
lea eax, [ebp - 4]
push eax
call fcn.004194d1
mov dword [ebp - 0x28], eax
push 0
push 4
push dword [ebp - 0x28]
push dword [ebp - 4]
push 0xffffffff
push dword [ebp - 0x14]
call fcn.00418d83
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x41960f
mov eax, 1
jmp 0x419611
xor eax, eax
test eax, eax
je 0x4196bf
push ebx
push esi
push edx
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x3c]
mov eax, dword [eax]
add eax, ebx
lea eax, [eax + 0x78]
mov eax, dword [eax]
lea esi, [eax + ebx]
mov dword [ebp - 0x10], esi
lea edx, [esi + 0x20]
mov edx, dword [edx]
add edx, ebx
mov edx, dword [edx]
add edx, ebx
mov dword [ebp - 0x18], edx
lea eax, [esi + 0x18]
mov eax, dword [eax]
dec eax
mov dword [ebp - 4], eax
pop ebx
pop esi
pop edx
push dword [ebp - 4]
lea eax, [ebp - 4]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x4196b7
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [ebp - 0x1c]
call fcn.004192ee
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4196a6
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
lea eax, [eax + 0x1c]
mov eax, dword [eax]
add eax, dword [ebp + 8]
lea eax, [eax + edi*4]
mov eax, dword [eax]
add eax, dword [ebp + 8]
pop edi
leave
ret 8
push dword [ebp - 0xc]
call fcn.004194aa
add dword [ebp - 8], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x419659
add esp, 0xc
jmp 0x4196ca
pop ebx
pop ecx
pop edx
add ecx, 4
jmp 0x419594
add esp, 0xc
mov edi, edi
mov edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, 0
jmp 0x4196eb
mov esp, ebp
pop ebp
ret 8
Function at 0x445050
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cda2b
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.004c181b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4450d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004bf373
mov eax, dword [eax]
push 0x77d254
push eax
call fcn.004b0c94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004c1aa6
test bl, bl
je 0x4450d2
push 0x77d254
lea ecx, [esp + 0xc]
call fcn.004c1e36
push 0x780de0
lea ecx, [esp + 0xc]
call fcn.004c1e36
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 0x44510e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004c1aa6
jmp 0x4451d9
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 0x445192
lea edx, [esp + 0x7c]
push 0x780ddc
push edx
call fcn.004b0c94
add esp, 8
test eax, eax
je 0x445192
lea eax, [esp + 0x7c]
push 0x780dd8
push eax
call fcn.004b0c94
add esp, 8
test eax, eax
je 0x445192
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 0x445122
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.004c1aa6
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 0x4459d0
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 0x445a32
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