joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x4062e8
push 0x4062cc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401035
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x40647c
push ebx
call edi
test esi, esi
mov dword [0x40647c], esi
je 0x404499
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x409000], 0x44bf19b1
pop ebx
leave
ret
mov dword [0x40647c], 0xbb40e64e
jmp 0x401093
Function at 0x40111e
Capabilities:
Terminate process

Disassembly:
call section..text
push 0x5c
push 0x406430
call fcn.00401556
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x409050
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x404524
xor esi, esi
inc esi
mov eax, dword [0x40904c]
cmp eax, esi
je 0x404543
mov eax, dword [0x40904c]
test eax, eax
jne 0x401226
mov dword [0x40904c], esi
push 0x4062c8
push 0x4062c0
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
jne 0x4045de
mov eax, dword [0x40904c]
cmp eax, esi
jne 0x4011d1
push 0x4062bc
push 0x40629c
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x40904c], 2
cmp dword [ebp - 0x20], ebx
jne 0x4011de
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x409054], ebx
jne 0x404550
mov eax, dword [sym.imp.MSVCR80.dll__wcmdln]
cmp dword [eax], ebx
je 0x4045de
mov eax, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
jbe 0x40121a
cmp cx, 0x22
je 0x40457b
inc eax
inc eax
jmp 0x401200
cmp cx, bx
je 0x401231
cmp dword [ebp - 0x1c], ebx
je 0x401231
jmp 0x40120c
mov dword [0x409144], esi
jmp 0x4011ad
movzx ecx, word [eax]
cmp cx, bx
je 0x401df0
cmp cx, 0x20
ja 0x401df0
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x401231
test byte [ebp - 0x40], 1
jne 0x404572
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call 0x401e22
mov dword [0x409118], eax
cmp dword [0x409060], ebx
jne 0x4045bb
push eax
call dword [sym.imp.MSVCR80.dll_exit]
call fcn.00402275
ret 0x10
cmp eax, esi
jne 0x404533
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x401174
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401160
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x4011ad
push 0x409054
call fcn.00404f69
pop ecx
test eax, eax
je 0x4011ea
push ebx
push 2
push ebx
call dword [0x409054]
jmp 0x4011ea
movzx ecx, word [ebp - 0x3c]
jmp 0x401dfd
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x401216
cmp dword [0x409144], ebx
jne 0x4045c9
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x409118]
jmp 0x4045ea
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00401457
ret
Function at 0x401496
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x40647c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040159b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x401517
cmp dword [ebp - 0x1c], 5
jb 0x4014e7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4062fc
call fcn.0040152b
test eax, eax
jl 0x4046ca
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401dc8
add ebp, 0x78
leave
ret
cmp dword [ebp - 0x10], 1
je 0x4046b5
jmp 0x4014e7
cmp dword [ebp - 0x18], 0
ja 0x4014e3
jmp 0x4014e7
cmp dword [ebp - 0x1c], 4
ja 0x4014e3
je 0x401523
jmp 0x4014e7
mov byte [0x40946c], 1
jmp 0x401505

Function at 0x401d15
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x40647c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea edi, [ebp - 0x61d]
call fcn.00401d4b
test al, al
je 0x402ea0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00401dc8
leave
ret
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x61c]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402fcf
lea eax, [ebp - 0x61c]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
cmp eax, edi
pop ecx
pop ecx
je 0x402fcf
push ebx
push esi
mov word [eax + 2], di
lea eax, [ebp - 0x414]
push edi
push eax
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call edi
mov ebx, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x406a48
lea eax, [ebp - 0x414]
push esi
push eax
call ebx
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.MSVCR80.dll_memset
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
add esp, 0x3c
cmp byte [ebp - 0x61d], 0
lea eax, [ebp - 0x20c]
je 0x402f50
push 0x406a70
jmp 0x402f55
push 0x406a80
push esi
push eax
call ebx
add esp, 0xc
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x674]
push esi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x61c]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x674], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop ebx
je 0x402fcf
push 0xffffffffffffffff
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x62c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x630]
call esi
lea edi, [ebp - 0x61d]
call fcn.00401d4b
pop esi
jmp 0x401d3e
Function at 0x401dc8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40647c]
jne 0x404db9
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x409250], eax
mov dword [0x40924c], ecx
mov dword [0x409248], edx
mov dword [0x409244], ebx
mov dword [0x409240], esi
mov dword [0x40923c], edi
mov word [0x409268], ss
mov word [0x40925c], cs
mov word [0x409238], ds
mov word [0x409234], es
mov word [0x409230], fs
mov word [0x40922c], gs
pushfd
pop dword [0x409260]
mov eax, dword [ebp]
mov dword [0x409254], eax
mov eax, dword [ebp + 4]
mov dword [0x409258], eax
lea eax, [ebp + 8]
mov dword [0x409264], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4091a0], 0x10001
mov eax, dword [0x409258]
mov dword [0x409154], eax
mov dword [0x409148], 0xc0000409
mov dword [0x40914c], 1
mov eax, dword [0x40647c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x409000]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x409198], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x406978
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x409198], 0
jne 0x404ea9
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x103a7334
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103a733e
pushal
call 0x103a7344
pop ebp
sub ebp, 0x10
sub ebp, 0x3a7334
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103a7368
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103a7371
mov eax, 0x3a7334
add eax, ebp
add eax, 0x63
mov ecx, 0x5ff
mov edx, 0x5c3ff949
xor byte [eax], dl
inc eax
dec ecx
jne 0x103a7388
jmp 0x103a739b
ret 0xc284

Function at 0x930350
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x930356
pop ebp
sub ebp, 6
sub ebp, 0x530350
jmp 0x9303b4
jmp 0x9303bd
mov eax, 0x530350
add eax, ebp
add eax, 0x93
mov ecx, 0x637
mov edx, 0x1a0d314e
xor byte [eax], dl
inc eax
dec ecx
jne 0x9303d4
jmp 0x9303e7
and al, 0xe
dec esi
pop esi
dec esi
dec esi
dec esi
and byte [edx + 0x4e], 0xcf
mov esi, 0x6385e1b8
iretd
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
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 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
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 edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x1003596d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushfd
lea esp, [esp + 0x14]
je 0x1003555a
dec si
btr dx, 0xd
not si
mov esi, dword [eax + 0x3c]
rol dh, cl
dec dh
test ax, 0xec21
add esi, eax
ror dx, cl
jmp 0x1004b8a6

Function at 0x1004f86f
Capabilities:
Check for software breakpoints

Disassembly:
call 0x1004b8f8
cmp si, bp
sub ecx, ebx
bsr si, bp
push ebp
lea esi, [esp + 4]
push dword [esp]
stc
cmp al, dh
sub edi, 4
clc
cmp di, ax
bt cx, 3
clc
push dword [edi]
pop dword [esp + 4]
cmp bh, 0xcc
push 0x8d4b9035
cmp edi, ebx
jmp 0x1004bf72
push esp
lea esp, [esp + 0x20]
jne 0x1003555a
ror cx, cl
bt bx, di
mov ecx, edi
shr esi, 0x1c
jmp 0x1004dbd5
Function at 0x40644e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40645d
pop dword [ebp - 0x38]
mov eax, 0x40645d
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x93979721
sub dword [ebp - 0x48], 0x454551d6
mov dword [ebp - 0x44], 0xe491487d
add dword [ebp - 0x44], 0x4da203c8
mov dword [ebp - 0x40], 0x4afde0ac
add dword [ebp - 0x40], 0x14e6382
mov dword [ebp - 0x3c], 0x9bcbe347
add dword [ebp - 0x3c], 0x64341cb9
lea eax, [ebp - 0x48]
push eax
mov eax, 0x26354b86
sub eax, 0x25f4cb0e
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xeb24f431
sub dword [ebp - 0x48], 0x76b28adb
mov dword [ebp - 0x44], 0xe51e6385
add dword [ebp - 0x44], 0x5c4dfdf0
mov dword [ebp - 0x40], 0x6f7c84a6
sub dword [ebp - 0x40], 0xc0d183a
mov dword [ebp - 0x3c], 0x71569e33
sub dword [ebp - 0x3c], 0x71569e33
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x72577b68
sub eax, 0x7216faec
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x36fcf
push 0
call eax
mov ecx, 0x47be
xor edx, edx
add edx, eax
mov esi, 0x97c83c28
sub esi, 0x97832828
add esi, dword [ebp - 0x38]
mov ebx, 0x48e7937
sub ebx, 0x3c3c8d37
mov dword [ebp - 0x2c], 0x92f12659
mov edi, dword [esi]
sub dword [ebp - 0x28], edi
add edi, ebx
sub dword [ebp - 0x14], edi
mov dword [edx], edi
xor dword [ebp - 0x28], 0x6246d61d
add edx, 0x3aa59b71
sub edx, 0x3aa59b6d
add esi, 4
loop 0x406576
add eax, 0x4335bce2
sub eax, 0x4334ab17
xor ebx, ebx
add ebx, eax
add eax, 0xf2e5b42c
add eax, 0xd1a4bd9
mov ecx, 0x8c649ed6
add ecx, 0x73db612a
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x4068f3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc
Function at 0x4018e5
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
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 0x401913
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x40190a
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x401902
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x401934
mov esp, ebp
pop ebp
ret

Function at 0x401938
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x4019a4
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 0x4019d1
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x4019c0
xor ecx, eax
xor edx, ebx
dec edi
jne 0x4019b1
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x4019f7
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x401998
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 + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x401a23
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402019
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x402029
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
cmp dword [ebp + 8], 0
jle 0x40207e
push dword [ebp + 8]
call fcn.0040222a
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x5a4d
jne 0x40207e
xor eax, eax
jmp 0x402083
mov eax, 1
test eax, eax
je 0x402095
mov eax, 0
jmp 0x402224
push 0x3c
push dword [ebp + 8]
call fcn.0040226c
push eax
call fcn.00402246
push eax
push dword [ebp + 8]
call fcn.0040226c
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.00402246
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4550
jne 0x4020f0
push 0x7c
push dword [ebp - 4]
call fcn.0040226c
push eax
call fcn.00402246
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4020f0
xor eax, eax
jmp 0x4020f5
mov eax, 1
test eax, eax
je 0x402107
mov eax, 0
jmp 0x402224
push 0x78
push dword [ebp - 4]
call fcn.0040226c
push eax
call fcn.00402246
push eax
push dword [ebp + 8]
call fcn.0040226c
mov dword [ebp - 8], eax
push 0x20
push dword [ebp - 8]
call fcn.0040226c
push eax
call fcn.00402246
push eax
push dword [ebp + 8]
call fcn.0040226c
push eax
call fcn.00402246
push eax
push dword [ebp + 8]
call fcn.0040226c
mov dword [ebp - 0xc], eax
push 0x18
push dword [ebp - 8]
call fcn.0040226c
push eax
call fcn.00402246
mov dword [ebp - 0x10], eax
push 1
push dword [ebp - 0x10]
call fcn.00402293
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x402217
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.0040226c
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.004022ba
test eax, eax
je 0x4021fa
push 0x1c
push dword [ebp - 8]
call fcn.0040226c
push eax
call fcn.00402246
push eax
push dword [ebp + 8]
call fcn.0040226c
mov dword [ebp - 0x24], eax
push 4
push dword [ebp - 0x10]
call fcn.004022ee
push eax
push dword [ebp - 0x24]
call fcn.0040226c
push eax
call fcn.00402246
push eax
push dword [ebp + 8]
call fcn.0040226c
jmp 0x402224
push dword [ebp - 0x14]
call fcn.00402316
push eax
push dword [ebp - 0x18]
call fcn.0040226c
mov dword [ebp - 0x18], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x402183
add esp, 0xc
mov eax, 0
jmp 0x402224
mov esp, ebp
pop ebp
ret 8
Function at 0x49dae0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x56b2ab
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.0055ecd6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x49db62
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0055ba99
mov eax, dword [eax]
push 0x9eb300
push eax
call fcn.0053c5f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0055ef61
test bl, bl
je 0x49db62
push 0x9eb300
lea ecx, [esp + 0xc]
call fcn.0055f2f1
push 0x9eefc4
lea ecx, [esp + 0xc]
call fcn.0055f2f1
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 0x49db9e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0055ef61
jmp 0x49dc69
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 0x49dc22
lea edx, [esp + 0x7c]
push 0x9eefc0
push edx
call fcn.0053c5f4
add esp, 8
test eax, eax
je 0x49dc22
lea eax, [esp + 0x7c]
push 0x9eefbc
push eax
call fcn.0053c5f4
add esp, 8
test eax, eax
je 0x49dc22
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 0x49dbb2
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.0055ef61
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 0x49e460
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 0x49e4c2
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