joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x466124]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call dword [0x45110c]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x408e59
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x408e59
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.0042c5b0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call dword [0x451094]
test eax, eax
je 0x408e59
push 4
push 0x1000
push 4
push 0
call dword [0x4510f0]
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call dword [0x451080]
test eax, eax
je 0x408e59
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0x45dbb0
push dword [esp + 0x30]
call dword [0x451090]
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x408d7c
push 0x45dbb4
push 0x45dbcc
call dword [0x4510c8]
push eax
call dword [0x451084]
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call dword [0x451110]
mov dword [esp + 0x14], eax
test eax, eax
je 0x408e59
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call dword [0x451108]
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x408e13
mov dword [esp + 0xc], eax
call fcn.00408ab0
push eax
call dword [0x4510b8]
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [0x451108]
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x408dc2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call dword [0x451108]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call dword [0x45109c]
push dword [esp + 0x24]
call dword [0x4510cc]
push 0x8000
push 0
push esi
call dword [0x4510fc]
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0042a920
mov esp, ebp
pop ebp
ret
Function at 0x40da00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4499bb
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x466124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x414], ebx
push 0
mov dword [ebp - 0x414], ebx
call fcn.00432a73
push eax
call fcn.0042f06c
add esp, 8
call fcn.0042f04b
cdq
mov ecx, 0x3313
idiv ecx
mov edi, edx
call fcn.0042f04b
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, edi
call fcn.0042f04b
imul edx, eax, 0x4d
lea ecx, [ebp - 0x444]
add edx, 0x64
add edx, esi
call fcn.00404fe0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 0x10
lea edx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x444]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x40dab0
lea esi, [ebp - 0x410]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40dac6
push 0x40
push 0
push 0x46bc98
sub esi, ecx
call fcn.0042c5b0
add esp, 0xc
mov dword [0x46bc8c], 0
mov edx, esi
mov dword [0x46bc88], 0
lea ecx, [ebp - 0x410]
mov dword [0x46bc78], 0x67452301
mov dword [0x46bc7c], 0xefcdab89
mov dword [0x46bc80], 0x98badcfe
mov dword [0x46bc84], 0x10325476
call fcn.004067a0
call fcn.00406860
mov ecx, 0x469cd8
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40db60
sub ecx, edx
push ecx
push 0x469cd8
lea ecx, [ebp - 0x42c]
call fcn.004251b0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x40dbbb
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dbb1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc81
push edx
push ecx
call fcn.0042af96
add esp, 8
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp eax, 1
jb 0x40dc7c
dec eax
mov ecx, 0xa
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push ecx
inc eax
mov ecx, ebx
push eax
call fcn.004251b0
mov edx, dword [ebp - 0x418]
cmp edx, 0x10
jb 0x40dc5e
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dc54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc81
push edx
push ecx
call fcn.0042af96
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a920
mov esp, ebp
pop ebp
ret
call fcn.004256c0
call fcn.0042fca5
int3
Function at 0x424a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x466124]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x424afa
cmp byte [esi + 0x3d], 0
je 0x424afa
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x424ae8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x424ab0
sub eax, 1
je 0x424ab4
sub eax, 2
jne 0x424ae8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a920
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x424ad1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00431e06
add esp, 0x10
cmp edi, eax
jne 0x424ae8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a920
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a920
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0042a920
mov esp, ebp
pop ebp
ret

Function at 0x425370
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c5e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x466124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], 0x45de58
call fcn.0042ad15
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004297ae
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x439ac1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439937
Function at 0x40110b
Capabilities:
Accept command line arguments

Disassembly:
push 0x5c
push 0x423e08
call fcn.00403e28
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x24], 0xbaadc0de
jne 0x40112f
push dword [ebp - 0x28]
call fcn.00401768
pop ecx
push 0x44
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.00401287
add esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x401164
mov esi, 0x41d4a0
mov dword [ebp - 0x20], esi
mov al, 0x20
mov byte [ebp - 0x19], al
mov cl, byte [esi]
test cl, cl
je 0x401179
cmp cl, al
jg 0x401179
inc esi
mov dword [ebp - 0x20], esi
jmp 0x401169
mov cl, byte [esi]
cmp cl, al
jle 0x401193
cmp cl, 0x22
jne 0x40118d
movsx eax, al
xor eax, 0x20
mov byte [ebp - 0x19], al
inc esi
mov dword [ebp - 0x20], esi
jmp 0x401179
mov cl, byte [esi]
test cl, cl
je 0x4011a3
cmp cl, al
jg 0x4011a3
inc esi
mov dword [ebp - 0x20], esi
jmp 0x401193
call fcn.00401842
push ecx
push esi
call fcn.00401757
mov ecx, eax
call fcn.004158be
push eax
push 0
call fcn.00401772
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
push ecx
push dword [eax]
call fcn.00404550
pop ecx
pop ecx
ret

Function at 0x401842
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x62900c], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x629008], eax
pushaw
mov eax, 1
cpuid
shr edx, 0x1a
and edx, 1
mov dword [0x629010], edx
popaw
call fcn.00404528
test eax, eax
je 0x4018ed
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
xor edi, edi
mov ebx, 0x629068
inc edi
push 0xfffffffffffffff6
mov dword [0x629078], ebx
mov dword [0x629084], edi
call esi
push 0xfffffffffffffff5
mov dword [0x629088], eax
mov dword [0x629098], ebx
mov dword [0x6290a4], edi
call esi
push 0xfffffffffffffff4
mov dword [0x6290a8], eax
mov dword [0x6290b8], ebx
mov dword [0x6290c4], edi
call esi
push 0x41d140
push 0x41d13c
mov dword [0x6290c8], eax
call fcn.00401736
push 0x41d138
push 0x41d0e8
call fcn.00401736
add esp, 0x10
pop edi
pop esi
pop ebx
ret
push 0xffffffffffffffff
push 0x243
call fcn.00401772
int3
Function at 0x40408a
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x1c]
imul edi, dword [esp + 0x20]
test edi, edi
jne 0x4040a2
xor eax, eax
jmp 0x4041c8
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
mov ebx, dword [ebp + 0xc]
test bl, 2
je 0x4040b7
xor eax, eax
jmp 0x4041c6
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], eax
and ebx, 1
je 0x4040d5
push edi
call fcn.00401b43
pop ecx
mov dword [esp + 0x2c], eax
jmp 0x4040db
mov eax, esi
mov dword [esp + 0x2c], esi
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x4040ff
or dword [ebp + 0xc], 0x8000
jmp 0x404107
test eax, eax
jne 0x40410f
or dword [ebp + 0xc], 2
test eax, eax
je 0x4041c5
test ebx, ebx
je 0x4041bf
mov ebx, dword [esp + 0x2c]
xor edi, edi
test eax, eax
je 0x4041b4
xor ecx, ecx
inc ecx
mov dword [esp + 0x14], ecx
mov dl, byte [edi + ebx]
cmp dl, 0xd
je 0x404138
mov byte [esi], dl
jmp 0x4041a5
cmp ecx, eax
jae 0x40414b
cmp byte [edi + ebx + 1], 0xa
jne 0x4041a2
mov byte [esi], 0xa
inc esi
inc edi
inc ecx
jmp 0x4041a6
cmp eax, 1
jbe 0x4041a2
xor eax, eax
push eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x30], al
lea eax, [esp + 0x20]
push eax
push 1
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x1c], 0
jne 0x404187
mov al, byte [edi + ebx]
mov byte [esi], al
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x4041a5
cmp byte [esp + 0x2c], 0xa
jne 0x404193
mov byte [esi], 0xa
jmp 0x40417d
push 1
push 0xffffffffffffffff
push ebp
call fcn.004041cd
add esp, 0xc
jmp 0x404178
mov byte [esi], 0xd
inc esi
inc edi
inc ecx
mov dword [esp + 0x14], ecx
cmp edi, eax
jb 0x40412c
push ebx
call fcn.00401b29
mov eax, dword [esp + 0x14]
pop ecx
xor edx, edx
div dword [esp + 0x28]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
Function at 0x404200
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
imul esi, dword [esp + 0x14]
test esi, esi
jne 0x404216
xor eax, eax
jmp 0x4042e8
mov eax, dword [esp + 0x18]
xor ecx, ecx
and dword [esp + 4], ecx
test byte [eax + 0xc], 1
push ebx
push edi
mov edi, dword [eax + 0x10]
mov dword [esp + 0x1c], ecx
je 0x4042c7
xor edx, edx
xor eax, eax
test esi, esi
je 0x4042de
mov ebx, dword [esp + 0x14]
push ebp
lea ebp, [eax + 1]
cmp byte [ebx + ebp - 1], 0xa
jne 0x40429d
test eax, eax
je 0x404259
cmp byte [ebx + eax - 1], 0xd
je 0x40429d
cmp eax, edx
jbe 0x40427a
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
lea eax, [edx + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
add dword [esp + 0x20], eax
push 0
lea eax, [esp + 0x14]
push eax
push 2
push 0x41d298
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x20]
add ecx, dword [esp + 0x10]
mov edx, ebp
mov dword [esp + 0x20], ecx
mov eax, ebp
cmp eax, esi
jb 0x404244
pop ebp
cmp eax, edx
jbe 0x4042de
push 0
lea ecx, [esp + 0x10]
push ecx
sub eax, edx
push eax
lea eax, [edx + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0xc]
jmp 0x4042de
push 0
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
mov eax, ecx
xor edx, edx
div dword [esp + 0x18]
pop edi
pop ebx
pop esi
pop ecx
ret

Function at 0x40ed1c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 4]
push edi
mov edi, ecx
test esi, esi
jns 0x40ed4a
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffe
and esi, 0x7fffffff
push eax
add esi, edx
push esi
call fcn.0040edcb
add esp, 0xc
jmp 0x40edc7
push ebx
mov ecx, 0x7fffffff
and esi, ecx
add esi, edx
lea eax, [ebp + 8]
mov ebx, dword [esi]
and dword [ebp + 8], 0
push eax
push 4
push dword [esi + 4]
and ebx, ecx
add ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40edc6
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
mov ecx, dword [eax + 0x1c]
push 0
sub ecx, edi
test byte [ebp + 0xc], 0x40
pop eax
setne al
lea eax, [eax*2 - 1]
push eax
mov eax, dword [0x62e104]
imul eax, dword [esi]
push eax
mov eax, dword [0x62e10c]
imul eax, dword [esi]
push eax
mov eax, dword [0x62e100]
mov edx, dword [esi + 4]
xor eax, ecx
push eax
mov ecx, ebx
call fcn.0040f265
add esp, 0x14
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x40f312
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41b500
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
mov esi, ecx
push edi
mov ebx, edx
test esi, esi
je 0x40f3da
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi + 0x7c], 0
je 0x40f3da
mov eax, dword [edi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ecx, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x24]
add ecx, esi
add edx, esi
cmp byte [ebx], 0xff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
je 0x40f395
push ebx
call fcn.00401566
push eax
push ebx
call fcn.0041184d
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
jmp 0x40f39f
mov ecx, dword [ebx + 1]
xor ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
xor ebx, ebx
cmp dword [eax + 0x18], ebx
jbe 0x40f3da
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x40f3d0
add eax, esi
push eax
mov dword [esp + 0x20], eax
call fcn.00401566
push eax
push dword [esp + 0x24]
call fcn.0041184d
add esp, 0xc
cmp dword [esp + 0x10], eax
je 0x40f3ee
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, dword [eax + 0x18]
jb 0x40f3a6
xor eax, eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
movzx eax, word [eax + ebx*2]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [edi + 0x78]
jb 0x40f4e5
mov eax, dword [edi + 0x7c]
add eax, dword [edi + 0x78]
cmp ecx, eax
jae 0x40f4e5
lea eax, [ecx + esi]
push eax
lea ecx, [esp + 0x2c]
call fcn.00404792
xor ebx, ebx
mov dword [esp + 0x64], ebx
push 1
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x18], 0x2e
call fcn.004110c0
mov esi, eax
cmp esi, 0xffffffff
je 0x40f47c
push esi
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00410dd8
mov byte [esp + 0x64], 1
cmp dword [eax + 0x14], 0x10
jb 0x40f461
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
call fcn.004047bf
test edi, edi
jne 0x40f48f
int3
or dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004047bf
jmp 0x40f3da
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00410dd8
mov byte [esp + 0x64], 2
cmp dword [eax + 0x14], 0x10
jb 0x40f4b0
mov eax, dword [eax]
push dword [ebp + 0xc]
mov edx, eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0040f312
pop ecx
pop ecx
mov esi, eax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
call fcn.004047bf
or dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004047bf
mov eax, esi
jmp 0x40f3dc
lea eax, [ecx + esi]
jmp 0x40f3dc
Function at 0x40f523
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x41b3b5
call fcn.00403df8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
and eax, 0xf
or dword [edi + 4], 0xffffffff
mov dword [edi], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [ebp - 4], ebx
push 0x40
lea eax, [edi + 0x30]
push ebx
push eax
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x168], ebx
call fcn.00401287
add esp, 0xc
lea eax, [edi + 0x70]
push 0xf8
push ebx
push eax
call fcn.00401287
mov eax, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, edi
mov dword [ebp - 0x14], esi
call fcn.0040f61c
mov dword [edi + 4], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14

Function at 0x40f83b
Capabilities:
Parse pe header

Disassembly:
push 8
push 0x4227b0
call fcn.00403e28
mov esi, ecx
and dword [ebp - 4], 0
lea edi, [esi + 0x30]
push dword [ebp + 0xc]
push 0x40
push 0
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40f92e
or dword [ebp - 4], 0xffffffff
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x40f91d
cmp dword [esi + 0x6c], 0
je 0x40f91d
mov dword [ebp - 4], 1
lea edi, [esi + 0x70]
push dword [ebp + 0xc]
push 0xf8
push dword [esi + 0x6c]
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40f92e
or dword [ebp - 4], 0xffffffff
cmp dword [edi], 0x4550
jne 0x40f91d
mov eax, 0x10b
cmp word [esi + 0x88], ax
jne 0x40f91d
movzx eax, word [esi + 0x76]
test ax, ax
je 0x40f91d
mov edi, eax
imul edi, edi, 0x28
movzx ecx, word [esi + 0x84]
mov ebx, dword [esi + 0x6c]
add ecx, 0x18
add ebx, ecx
push edi
call fcn.00401b43
pop ecx
mov dword [esi + 0x168], eax
test eax, eax
jne 0x40f8f2
push 8
jmp 0x40f934
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
push edi
push ebx
push eax
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40f92e
or dword [ebp - 4], 0xffffffff
lea eax, [ebx + edi]
mov dword [esi + 0x18], eax
xor eax, eax
jmp 0x40f935
push 0xb
jmp 0x40f934
or dword [ebp - 4], 0xffffffff
push 0x1e
pop eax
call fcn.00403e17
ret 8
Function at 0x41184d
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ecx, 0x621e7fa5
test edi, edi
je 0x411886
movzx eax, byte [ebx]
cdq
push 0
xor esi, edx
push 0x1000193
xor ecx, eax
push esi
push ecx
inc ebx
call fcn.0041abf0
xor esi, esi
mov ecx, eax
dec edi
jne 0x411868
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41188f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x6305e8]
or eax, dword [0x6305ec]
push ebx
push esi
mov ebx, edx
push edi
mov dword [esp + 0xc], ebx
mov edi, ecx
jne 0x4118ef
xor esi, esi
mov eax, esi
push 8
cdq
pop ebx
mov ecx, eax
shrd eax, edx, 1
and ecx, 1
shr edx, 1
or ecx, 0
je 0x4118d1
xor eax, 0xd7870f42
xor edx, 0xc96c5795
dec ebx
jne 0x4118b6
mov dword [esi*8 + 0x62fdf0], eax
mov dword [esi*8 + 0x62fdf4], edx
inc esi
cmp esi, 0x100
jl 0x4118b0
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
not ecx
not edx
test edi, edi
je 0x411920
movzx eax, byte [edi]
xor eax, ecx
shrd ecx, edx, 8
and eax, 0xff
shr edx, 8
xor ecx, dword [eax*8 + 0x62fdf0]
xor edx, dword [eax*8 + 0x62fdf4]
inc edi
dec ebx
jne 0x4118fd
pop edi
not ecx
pop esi
not edx
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret