joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b1d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 4], ecx
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
lea ebx, [esi + esi]
push ebx
mov edi, eax
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0x10
push dword [ebp + 0xc]
push edi
call dword [sym.imp.kernel32.dll_lstrcpyW]
push ebx
push 0
push dword [ebp + 0xc]
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, 0x25c
push eax
push esi
push dword [ebp + 0xc]
push edi
push dword [ebp + 8]
push str.labels
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringW]
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp + 0xc]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x404040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x23c
mov eax, 0x40b352
call fcn.0040a8e9
movzx eax, word [ebp + 8]
mov esi, dword [0x41225c]
push pe_nt_image_headers32
push eax
push esi
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 1
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4041c3
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4041c3
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4041c3
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4041c3
mov ecx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x224], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x404137
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x220]
and dword [ebp - 4], 0
push 0
push 0x143
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x404112
and dword [ebp - 0x21c], 0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x4041b0
push dword [ebp - 0x114]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
jmp 0x4041b0
mov ecx, 0x1234
cmp cx, ax
jne 0x4041b0
or dword [ebp - 0x244], 0xffffffff
push 3
lea eax, [ebp - 0x214]
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x248], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x240], eax
cmp eax, ecx
je 0x40418a
push eax
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
lea eax, [ebp - 0x248]
push eax
mov eax, dword [ebp - 0x220]
push 0
push 0x40b
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x4041b0
and dword [ebp - 0x21c], 0
add esi, dword [ebp - 0x224]
cmp dword [ebp - 0x21c], 0
jne 0x4040a5
mov eax, dword [ebp - 0x21c]
call fcn.0040a933
ret 4
Function at 0x404bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x404bcf
pop dword [ebp - 0x28]
mov eax, 0x9d4c5ded
sub eax, 0x9d0c121e
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3c579
push 0
mov eax, 0xa73a4636
sub eax, 0xa6f98556
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x5a64
mov edi, eax
mov edx, 0x534ab65c
add edx, 0xacf6b1a4
add edx, dword [ebp - 0x28]
mov esi, 0xd5e2c80
add esi, 0x95e026e4
sub dword [ebp - 0xc], ebx
mov ebx, dword [edx]
xor dword [ebp - 0x1c], 0x1e2278f7
xor ebx, esi
sub dword [ebp - 0xc], 0x1acdd91d
mov dword [edi], ebx
xor dword [ebp - 0x18], edx
add edi, 4
add edx, 4
loop 0x404c28
add eax, 0x1992683f
sub eax, 0x19910bdc
xor ebx, ebx
add ebx, eax
add eax, 0xf963c91e
sub eax, 0xf963c919
mov ecx, 0x612525fd
sub ecx, 0x60e525fd
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401070
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45c030]
jne 0x40107a
repz ret
jmp fcn.00401ac1

Function at 0x409195
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404bf5
and dword [ebp - 4], 0
cmp dword [0x45e794], 0
mov ebx, eax
jne 0x409246
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4092f7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4092f7
push eax
call fcn.00404b83
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45e794], eax
call esi
push eax
call fcn.00404b83
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45e798], eax
call esi
push eax
call fcn.00404b83
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45e79c], eax
call esi
push eax
call fcn.00404b83
pop ecx
mov dword [0x45e7a4], eax
test eax, eax
je 0x409246
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404b83
pop ecx
mov dword [0x45e7a0], eax
mov eax, dword [0x45e7a0]
cmp eax, ebx
je 0x40929e
cmp dword [0x45e7a4], ebx
je 0x40929e
push eax
call fcn.00404bfe
push dword [0x45e7a4]
mov esi, eax
call fcn.00404bfe
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40929e
test edi, edi
je 0x40929e
call esi
test eax, eax
je 0x409295
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409295
test byte [ebp - 0xc], 1
jne 0x40929e
or dword [ebp + 0x10], 0x200000
jmp 0x4092d7
mov eax, dword [0x45e798]
cmp eax, ebx
je 0x4092d7
push eax
call fcn.00404bfe
pop ecx
test eax, eax
je 0x4092d7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4092d7
mov eax, dword [0x45e79c]
cmp eax, ebx
je 0x4092d7
push eax
call fcn.00404bfe
pop ecx
test eax, eax
je 0x4092d7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e794]
call fcn.00404bfe
pop ecx
test eax, eax
je 0x4092f7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4092f9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b010
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x45c030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2c3c01c]
push ebx
mov ebx, dword [0x2c3be68]
push esi
mov esi, dword [0x45cf60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40b051
push str.pirebewaxamicafivojazirisibilig
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2c3c01c]
mov dword [0x45e8f4], esi
cmp eax, 0x114e
jne 0x40b07b
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
lea eax, [esp + 0x14]
push eax
push str.sosepukuvupafizafaguwiferayiv
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov eax, dword [0x2c3c01c]
cmp eax, 0x2f
jne 0x40b0b5
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
call fcn.0040af50
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401070
add esp, 0x428
ret
Function at 0x40d528
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408c67
mov dword [ebp - 0x14], eax
cmp dword [0x45a3e0], esi
jne 0x40d61b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d5a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d6fb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d6fb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d6fb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x45a3e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x45a3e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45a3e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45a3f0], eax
test eax, eax
je 0x40d618
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45a3ec], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d640
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d633
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d655
push 4
pop eax
jmp 0x40d6fd
cmp dword [ebp - 0x14], esi
je 0x40d655
push dword [0x45a3e0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d63a
mov eax, dword [0x45a3ec]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d6b3
cmp dword [0x45a3f0], edi
je 0x40d6b3
push eax
call ebx
push dword [0x45a3f0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d6b3
test eax, eax
je 0x40d6b3
call ecx
test eax, eax
je 0x40d6a8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d6a8
test byte [ebp - 8], 1
jne 0x40d6b3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d6e3
mov eax, dword [0x45a3e4]
cmp eax, edi
je 0x40d6e0
push eax
call ebx
test eax, eax
je 0x40d6e0
call eax
mov esi, eax
test esi, esi
je 0x40d6e0
mov eax, dword [0x45a3e8]
cmp eax, edi
je 0x40d6e0
push eax
call ebx
test eax, eax
je 0x40d6e0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x45a3e0]
call ebx
test eax, eax
je 0x40d6fb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d6fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040d0
mov esp, ebp
pop ebp
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x401c66
pop dword [ebp - 0x18]
mov eax, 0x3b6372e0
add eax, 0xc4dca986
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x83d64eec
add dword [ebp - 0x28], 0xca7bf65f
mov dword [ebp - 0x24], 0xb263027b
add dword [ebp - 0x24], 0x7fd049ca
mov dword [ebp - 0x20], 0x6bb423d5
add dword [ebp - 0x20], 0xe0982059
mov dword [ebp - 0x1c], 0x8f027551
add dword [ebp - 0x1c], 0x70fd8aaf
lea eax, [ebp - 0x28]
push eax
mov eax, 0x1e1aacd1
sub eax, 0x1dda7c7d
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x6fc9db88
sub dword [ebp - 0x28], 0xfb577232
mov dword [ebp - 0x24], 0x2b25a453
sub dword [ebp - 0x24], 0xe9b942de
mov dword [ebp - 0x20], 0x971cecb
sub dword [ebp - 0x20], 0xa602625f
mov dword [ebp - 0x1c], 0xf0122750
sub dword [ebp - 0x1c], 0xf0122750
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3bd16
push 0
call eax
mov ecx, 0x5d59
xor edx, edx
add edx, eax
mov ebx, 0x800cd745
add ebx, 0x803398bb
add ebx, dword [ebp - 0x18]
mov edi, 0xce3845f0
sub edi, 0xddb276b8
add dword [ebp - 8], esi
mov esi, dword [ebx]
mov dword [ebp - 0xc], 0xa9949311
add esi, edi
xor dword [ebp - 0x14], eax
mov dword [edx], esi
add dword [ebp - 8], 0x41acb63c
add edx, 0x1c361c7f
add edx, 0xe3c9e385
add ebx, 4
loop 0x401d7f
add eax, 0xcbcd9f0
add eax, 0xf3448e47
mov ebx, eax
add eax, 5
mov ecx, 0x8c605447
sub ecx, 0x8c205447
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x10008bf4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x1000deef
call fcn.1000c808
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x10008dc8
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.10005e2b
add esp, 0xc
test eax, eax
js 0x10008dc2
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x10008c90
push esi
call fcn.100055f7
pop ecx
test al, al
je 0x10008c90
mov eax, esi
call fcn.1000c873
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10008c9c
push esi
lea ecx, [ebp - 0x428]
call fcn.10005e2b
push 3
push esi
push edi
push eax
call fcn.10005e2b
test eax, eax
je 0x10008dc2
push 2
push ebx
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], edi
test edi, edi
jne 0x10008cd0
call fcn.10005825
mov esi, eax
jmp 0x10008da7
push dword [ebp - 0x424]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x10008cf3
call fcn.10005825
jmp 0x10008d9e
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x10008ce9
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x420], esi
cmp eax, esi
jae 0x10008d23
mov esi, 0x8007000e
jmp 0x10008da0
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10005e2b
mov dword [ebp - 4], 1
jmp 0x10008d62
cmp dword [ebp - 0x418], 0
je 0x10008d1c
push esi
push dword [ebp - 0x424]
push esi
push dword [ebp - 0x418]
call fcn.10005e2b
mov eax, dword [ebp - 0x418]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.10005e2b
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10008de2
lea ecx, [ebp - 0x418]
call fcn.10008e4b
jmp 0x10008de2
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x10008ddd
lea ecx, [ebp - 0x418]
call fcn.10008e4b
mov esi, 0x8007000e
lea ecx, [ebp - 0x428]
call fcn.1000575f
mov eax, esi
lea esp, [ebp - 0x444]
call fcn.1000c861
ret 0x10
Function at 0x1000ba05
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10001f94]
jne 0x1000c940
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10011bc8], eax
mov dword [0x10011bc4], ecx
mov dword [0x10011bc0], edx
mov dword [0x10011bbc], ebx
mov dword [0x10011bb8], esi
mov dword [0x10011bb4], edi
mov word [0x10011be0], ss
mov word [0x10011bd4], cs
mov word [0x10011bb0], ds
mov word [0x10011bac], es
mov word [0x10011ba8], fs
mov word [0x10011ba4], gs
pushfd
pop dword [0x10011bd8]
mov eax, dword [ebp]
mov dword [0x10011bcc], eax
mov eax, dword [ebp + 4]
mov dword [0x10011bd0], eax
lea eax, [ebp + 8]
mov dword [0x10011bdc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x10011b18], 0x10001
mov eax, dword [0x10011bd0]
mov dword [0x10011acc], eax
mov dword [0x10011ac0], 0xc0000409
mov dword [0x10011ac4], 1
mov eax, dword [0x10001f94]
mov dword [ebp - 0x328], eax
mov eax, dword [0x100117c4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x10011b10], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10002190
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x10011b10], 0
jne 0x1000ca2c
push 1
call sub.MSVCR100.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 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x10038d25
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x10038d34
pop dword [ebp - 0x48]
mov eax, 0xe5793633
add eax, 0x2a8a5701
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xea47ef1c
add dword [ebp - 0x58], 0x640a562f
mov dword [ebp - 0x54], 0x29cb427c
add dword [ebp - 0x54], 0x86809c9
mov dword [ebp - 0x50], 0xf8d798f0
add dword [ebp - 0x50], 0x5374ab3e
mov dword [ebp - 0x4c], 0x1464fa28
add dword [ebp - 0x4c], 0xeb9b05d8
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xe0eecfdb
add dword [ebp - 0x58], 0x9383997b
mov dword [ebp - 0x54], 0x84c4bac4
add dword [ebp - 0x54], 0xbca7a6b1
mov dword [ebp - 0x50], 0xa26000b0
sub dword [ebp - 0x50], 0x3ef09444
mov dword [ebp - 0x4c], 0xa4d28787
add dword [ebp - 0x4c], 0x5b2d7879
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x2f6e4053
add eax, 0xe0974fed
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x60747
push 0
call eax
mov ecx, 0x53a1
xor edi, edi
add edi, eax
mov esi, 0x10069400
add esi, dword [ebp - 0x48]
mov ebx, 0x106601c0
sub ebx, 0x4260b89f
xor dword [ebp - 0x24], 0x4c20d44a
mov edx, dword [esi]
add dword [ebp - 0x40], 0xfb6a4680
xor edx, ebx
xor dword [ebp - 0x3c], edi
mov dword [edi], edx
add dword [ebp - 0x44], edx
add edi, 4
add esi, 4
loop 0x10038e47
add eax, 0x14157
mov ebx, eax
add eax, 0x11dc82bc
sub eax, 0x11dc82b7
mov ecx, 0x2b4ec88
sub ecx, 0xf2b4ec88
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x401e60
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x401f47
test edx, edx
je 0x401f47
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x401eaa
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x401eb1
inc edi
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
mov ecx, esi
cmp ebp, edi
jne 0x401e90
jmp 0x401eb3
mov esi, 0x1505
jmp 0x401eb3
mov esi, ecx
mov dword [esp + 8], edx
mov ecx, dword [esp]
mov ebp, dword [ecx + 0x20]
lea ebx, [ebp - 1]
mov edx, ebp
sub edx, 1
jb 0x401f47
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
jmp 0x401ee4
inc ebx
dec ebp
je 0x401f45
mov eax, ebx
and eax, edx
mov edi, dword [esp + 0x10]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x401f45
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401ee0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408c00
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401ee0
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00408c20
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x401ee0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x401f47
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402090
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
fldz
fstp qword [esp + 0x10]
cmp dword [esp + 0x2c], 0
je 0x4020f8
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4020f8
push esi
call fcn.00408c00
add esp, 4
test eax, eax
je 0x4020da
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x4020e1
inc edi
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
mov ecx, ebp
cmp eax, edi
jne 0x4020c0
jmp 0x4020e3
mov ebp, 0x1505
jmp 0x4020e3
mov ebp, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx + 0x20]
lea ebx, [edi - 1]
mov edx, edi
sub edx, 1
jae 0x402104
fld qword [esp + 0x10]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x402124
inc ebx
dec edi
je 0x4020f8
mov eax, ebx
and eax, edx
mov esi, dword [esp + 0xc]
mov esi, dword [esi + eax*4]
cmp esi, 0xffffffff
je 0x4020f8
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x402120
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 8], eax
push eax
call fcn.00408c00
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402120
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x38]
call fcn.00408c20
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x402120
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4020f8
cmp dword [eax + 4], 3
jne 0x4020f8
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x4020f8
Function at 0x4021d0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x4022d9
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4022d9
push ebx
call fcn.00408c00
add esp, 4
test eax, eax
je 0x40222a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x402231
inc ebp
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
mov ecx, esi
cmp eax, ebp
jne 0x402210
jmp 0x402233
mov esi, 0x1505
jmp 0x402233
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov edx, ebx
sub edx, 1
jb 0x4022d9
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x402264
inc ebp
dec ebx
je 0x4022d7
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x4022d7
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402260
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00408c00
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402260
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.00408c20
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402260
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4022d7
cmp dword [eax + 4], 5
mov edi, 0
jne 0x4022d9
mov edi, dword [eax + 8]
jmp 0x4022d9
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret