joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa93ee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x54f000]
push edi
or ebp, 0xffffffff
jmp 0xa93f02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa93f09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa93ef8
mov eax, 1
add ebx, ebx
jne 0xa93f1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa93f2c
jne 0xa93f4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa93f4b
dec eax
add ebx, ebx
jne 0xa93f38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa93f10
add ebx, ebx
jne 0xa93f47
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa93f9d
xor ecx, ecx
sub eax, 3
jb 0xa93f63
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa93fd2
sar eax, 1
mov ebp, eax
jmp 0xa93f6e
add ebx, ebx
jne 0xa93f6e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa93f3c
inc ecx
add ebx, ebx
jne 0xa93f7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa93f3c
add ebx, ebx
jne 0xa93f89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa93f7e
jne 0xa93f9a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa93f7e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa93fbc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa93fae
jmp 0xa93efe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa93fbc
add edi, ecx
jmp 0xa93efe
pop esi
mov edi, esi
mov ecx, 0x12269
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa93fda
cmp byte [edi], 0x2f
jne 0xa93fda
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 0xa93fdf
lea edi, [esi + 0x690000]
mov eax, dword [edi]
or eax, eax
je 0xa94057
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x695d10]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x695e50]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa9400c
mov ecx, edi
jns 0xa9403b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x695e54]
or eax, eax
je 0xa94051
mov dword [ebx], eax
add ebx, 4
jmp 0xa94029
call dword [esi + 0x695e64]
mov ebp, dword [esi + 0x695e58]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0xa9408b
sub esp, 0xffffff80
jmp 0x61b424
Function at 0x40a161
Capabilities:
Encode data using xor

Disassembly:
ljmp 0xdad9:0x4537427c
aas
jne 0x40a074
inc byte [edi]
lock inc dword [eax]
inc dword [eax]
inc ebp
int3
mov eax, dword [0xe540f85]
wait
sub bh, byte [edi + 0x38903c9a]
aad 0xcd
push ds
push 0xffffffffffffffbf
je 0x40a0ed
nop
movsb byte es:[edi], byte ds:[esi]
jge 0x40a0aa
add bl, byte [edx - 0x507e1909]
xlatb
lcall 0xf447, 0x735cb237
push esp
aas
and eax, 0x8d92bd31
mov edx, 0x3aa01ba6
mov ecx, 0x92976e84
add edx, dword [edi]
inc eax
xlatb
stc
and edx, ebx
aaa
inc ebx
sub al, byte [ebx]
jmp 0x40a1b8
jns 0x40a105
dec edi
mov dl, 0x5d
pop ecx
inc esi
clc
ljmp 0xcba1
or byte [ecx + 0x5aaee8be], 0x23
adc al, 0xa
add ah, byte [edx + 0x288a208a]
add byte [edx], 0x8a
or byte [eax + 0x40148488], ah
push esp
inc ecx
adc al, 0x10
and ah, byte [edx + 0x4282228]
push ecx
add al, 0x26
dec edx
adc esp, dword [edx]
mov ch, byte [ecx]
push ebx
and byte [eax - 0x5dfd7560], cl
pop ss
inc ebp
add eax, 0x6d513753
mov bh, 0xa
mov bh, 0xbb
pop edi
mov edx, ebx
dec ebx
cmp byte [ecx + 0x725573f8], 0x37
dec ebx
dec ecx
in al, 0x7c
rol dword [ebx], 0x42
outsd dx, dword [esi]
sbb byte [eax + eax*8], bl
mov dl, 0xa4
in eax, 0xd7
jmp 0x191a5d8a

Function at 0x40a9ec
Capabilities:
Encode data using xor

Disassembly:
pop ds
lcall 0x9c40, 0xf523bf06
inc eax
pushfd
invalid
jno 0x40aa52
cmp al, 0x3b
test eax, 0x2341899e
je 0x40aa06
jae 0x40a9c8
cmp ah, byte cs:[eax]
adc al, 0xf9
sub cl, byte [0x3a02cac6]
and edx, esi
enter 0xfffffffffffff946, 0x41
enter 0xfffffffffffff946, 0x41
aaa
fsub dword [eax]
pop esp
jp 0x40aa6a
dec ebx
test al, 0x80
pop edi
stosb byte es:[edi], al
lcall 0x7597, 0x9a471889
stc
and byte [esi], bl
and al, 0x6c
ja 0x40aa76
test dword [edx - 0x1c], 0xd486aa0e
movsd dword es:[edi], dword [esi]
fcmovnbe st(0), st(5)
or edi, esi
sub al, byte [edx]
mov byte [0x4539a008], al
add al, 0xc1
rcl dword [ecx + 0x11], 0x41
adc al, 5
adc al, 0x14
inc eax
retf 0x1420
out dx, al
add ebx, 0xee831dbd
xor byte [edi + 0x3da6ae9a], 0x4c
aam 0xdf
cmp esi, dword [edx]
aad 0x63
or bh, byte [eax + edx*4]
cmp eax, 0x3bdfd44c
xor dl, ch
arpl word [edx], cx
cmp al, 0x90
jno 0x40aa7b
wait
jne 0x40aa4a
fldenv [ebx - 0x3fca6123]
popfd
in al, dx
jl 0x40aafe
pushal
ret
mov eax, dword [0xf1cbebfe]
pop eax
lds edi, [edi + ecx*8]
popf
aaa
pop ss
mov esp, ebx
invalid
mov dl, 0xb3
push ecx
xchg edx, eax
xchg ebp, eax
fdivr st(4), st(0)
lodsb al, byte [esi]
shl byte [esi + 0x57], 1
xchg ebx, eax
lahf
dec edi
inc edx
mov cl, 0x1d
or esp, eax
insb byte es:[edi], dx
jmp 0x40aaa2
Function at 0x41b3b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x41b3d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41b3d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41b3c8
mov eax, 1
add ebx, ebx
jne 0x41b3eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41b3e0
jne 0x41b3fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41b3e0
xor ecx, ecx
sub eax, 3
jb 0x41b410
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41b482
mov ebp, eax
add ebx, ebx
jne 0x41b41b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41b428
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41b44c
inc ecx
add ebx, ebx
jne 0x41b438
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41b42d
jne 0x41b449
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41b42d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41b46c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41b45d
jmp 0x41b3ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41b46c
add edi, ecx
jmp 0x41b3ce
pop esi
mov edi, esi
mov ecx, 0x170
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41b48a
cmp byte [edi], 5
jne 0x41b48a
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 0x41b48f
lea edi, [esi + 0x19000]
mov eax, dword [edi]
or eax, eax
je 0x41b507
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e4dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e540]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41b4bc
mov ecx, edi
jns 0x41b4eb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1e544]
or eax, eax
je 0x41b501
mov dword [ebx], eax
add ebx, 4
jmp 0x41b4d9
call dword [esi + 0x1e54c]
mov ebp, dword [esi + 0x1e548]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x41b53b
sub esp, 0xffffff80
jmp 0x40b05f
Function at 0x496494
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5af248]
cmp dword [eax], 2
je 0x4964b5
mov ecx, 0x30e
mov edx, 0x4964e8
mov eax, 0x49653c
call fcn.0040441c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x496434
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5b0ff8], eax
cmp dword [0x5b0ff8], 0
jne 0x4964dc
call fcn.00410774
pop ebp
ret

Function at 0x49683c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, dword [0x5aecc8]
cmp byte [eax], 0
jne 0x49686a
mov ecx, 0xaf
mov edx, 0x4968b8
mov eax, 0x49690c
call fcn.0040441c
mov eax, ebx
call fcn.00404bf8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4968a9
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00404db0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x496920
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [0x5aecc8]
cmp byte [eax], 0
jne 0x496946
mov ecx, 0xbd
mov edx, 0x496988
mov eax, 0x4969dc
call fcn.0040441c
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
mov edi, eax
mov eax, ebx
add eax, 0xffffffd0
sub ax, 0xa
jae 0x496979
mov esi, ebx
sub si, 0x30
add si, 0x30
cmp si, di
je 0x496979
push esi
call sub.user32.dll_VkKeyScanW
cmp al, bl
jne 0x496979
mov edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4996e4
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49975c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5af248]
cmp dword [eax], 2
jne 0x499720
mov eax, dword [ebp + 8]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_GetDiskFreeSpaceExW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
jmp 0x499746
mov eax, dword [ebp + 8]
push eax
push edi
push esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004046f8
mov eax, dword [ebp - 4]
call fcn.004049ac
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499763
lea eax, [ebp - 4]
call fcn.004044c0
ret
Function at 0x4019af
Capabilities:
Print debug messages
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x34
call fcn.00401bf0
mov dword [esp + 4], 0x40a054
mov dword [esp], str.file.txt
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4019f8
mov dword [esp], str.Error_opening_file_n
call fcn.004014f0
mov eax, 0xffffffff
jmp 0x401b45
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_ftell
mov dword [ebp - 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x401a71
mov dword [esp], str.Memory_allocation_failed_n
call fcn.004014f0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, 0xfffffffe
jmp 0x401b45
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [ebp - 0xc], 0
jmp 0x401abb
mov dword [esp], 0x40a08e
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call eax
sub esp, 4
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x8646f
jle 0x401aa6
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov dword [esp], eax
call sub.msvcrt.dll_srand
call fcn.00401587
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_FlsAlloc]
call eax
sub esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x401b35
mov edx, dword [str.zxcSDHGy23jfasd]
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0040152c
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00401600
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x401b35
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], str.Error_occurred:__d_n
call fcn.004014f0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x401db0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00407ea0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00407ea0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x401e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d068]
test esi, esi
jle 0x401f30
mov eax, dword [0x40d06c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401e44
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401ec7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401e30
mov dword [esp], ebx
call fcn.00402820
mov edi, eax
test eax, eax
je 0x401f57
mov eax, dword [0x40d06c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402960
mov edx, dword [0x40d06c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401f37
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401ec0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401ed0
add dword [0x40d068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d06c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401db0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401e4e
mov eax, dword [0x40d06c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401db0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401db0
lea esi, [esi]
nop

Function at 0x402470
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d07c]
sub esp, 4
test ebx, ebx
je 0x4024c5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4024be
test esi, esi
je 0x4024be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4024a0
mov dword [esp], 0x40d084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4026f0
Capabilities:
Parse pe header
Terminate process

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_exit]
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__exit]
mov eax, dword [esp + 4]
xor edx, edx
cmp word [eax], 0x5a4d
jne 0x402728
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
je 0x402730
mov eax, edx
ret
xor edx, edx
cmp word [eax + 0x18], 0x10b
sete dl
mov eax, edx
ret

Function at 0x402820
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402845
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402850
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402845
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402898
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40288e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40289a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402880
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401000
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0
jne 0x40101b
mov eax, dword [ebp + 8]
push eax
call fcn.004017a0
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 8], 0x1505
mov dword [ebp - 4], 0
jmp 0x401034
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jae 0x401055
mov eax, dword [ebp - 8]
shl eax, 5
add eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
add eax, edx
mov dword [ebp - 8], eax
jmp 0x40102b
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4014d0
Capabilities:
Resolve function by djb2 hash

Disassembly:
push ebp
mov ebp, esp
push 0x5fbff0fb
mov eax, dword [0x627b2c]
push eax
call fcn.004018a0
add esp, 8
mov dword [0x627b3c], eax
push 0x44c1e8
call dword [0x627b3c]
mov dword [0x627b28], eax
push str.user32.dll
call dword [0x627b3c]
mov dword [0x627b30], eax
push 0
push 0xe1db2410
mov ecx, dword [0x627b2c]
push ecx
call fcn.004018a0
add esp, 8
call eax
push eax
push 0xe321461e
mov edx, dword [0x627b30]
push edx
call fcn.004018a0
add esp, 8
call eax
push 0xc6580d02
mov eax, dword [0x627b2c]
push eax
call fcn.004018a0
add esp, 8
mov dword [0x627b40], eax
push 0xc0b381da
mov ecx, dword [0x627b28]
push ecx
call fcn.004018a0
add esp, 8
mov dword [0x627b44], eax
push 0x82962c8
mov edx, dword [0x627b28]
push edx
call fcn.004018a0
add esp, 8
mov dword [0x627b34], eax
push 0x6793c34c
mov eax, dword [0x627b28]
push eax
call fcn.004018a0
add esp, 8
mov dword [0x627b38], eax
pop ebp
ret

Function at 0x402386
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4023c5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4023c5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4023c5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4023c5
cmp dword [ecx + 0x74], 0xe
jbe 0x4023c5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40ebc4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ec03
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ec03
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ec03
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ec03
cmp dword [ecx + 0x74], 0xe
jbe 0x40ec03
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42e9a9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042e87d
Function at 0x42f4a4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x627100]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42f4ef
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042f944
test al, al
jne 0x42f4e9
sub edx, 2
cmp edx, edi
jne 0x42f4cf
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42f511
lea eax, [edi + 2]
cmp edx, eax
je 0x42f511
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042f16b
add esp, 0x10
jmp 0x42f60b
push esi
lea ecx, [ebp - 0x255]
call fcn.0042f944
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42f554
push dword [ebp - 0x25c]
jmp 0x42f501
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42f591
cmp word [ebp - 0x226], 0
je 0x42f5b2
cmp word [ebp - 0x226], ax
jne 0x42f591
cmp word [ebp - 0x224], 0
je 0x42f5b2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042f16b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42f5fe
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42f56b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42f5e6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42f60b
push 0x42ebbb
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043a5c0
add esp, 0x10
jmp 0x42f5db
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402ac6
leave
ret