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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc7f000]
push edi
or ebp, 0xffffffff
jmp 0x10c2072
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10c2079
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10c2068
mov eax, 1
add ebx, ebx
jne 0x10c208b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10c209c
jne 0x10c20bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10c20bb
dec eax
add ebx, ebx
jne 0x10c20a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10c2080
add ebx, ebx
jne 0x10c20b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10c210d
xor ecx, ecx
sub eax, 3
jb 0x10c20d3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10c2142
sar eax, 1
mov ebp, eax
jmp 0x10c20de
add ebx, ebx
jne 0x10c20de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10c20ac
inc ecx
add ebx, ebx
jne 0x10c20ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10c20ac
add ebx, ebx
jne 0x10c20f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10c20ee
jne 0x10c210a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10c20ee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10c212c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10c211e
jmp 0x10c206e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10c212c
add edi, ecx
jmp 0x10c206e
pop esi
mov edi, esi
mov ecx, 0x2fa4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10c214a
cmp byte [edi], 0x16
jne 0x10c214a
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 0x10c214f
lea edi, [esi + 0xcbd000]
mov eax, dword [edi]
or eax, eax
je 0x10c21c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18e4000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18e412c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10c217c
mov ecx, edi
jns 0x10c21ab
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 + 0x18e4130]
or eax, eax
je 0x10c21c1
mov dword [ebx], eax
add ebx, 4
jmp 0x10c2199
call dword [esi + 0x18e4140]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10c21f8
cmp al, 0xef
ja 0x10c21eb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10c21cd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10c21da
mov ebp, dword [esi + 0x18e4134]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x10c222c
sub esp, 0xffffff80
jmp 0x43c260
Function at 0x425e46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00432f65
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x425e7f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00425a83
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x425edd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x425f01
cmp dword [edi + 0x74], 0
jne 0x425f01
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00432f65
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00425e9e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42cf8a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x42cfd1
call fcn.00432f65
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42cfd1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42cfed
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042ca8a
mov esi, eax
test edi, edi
je 0x42cfeb
test ebx, ebx
je 0x42cfeb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42d817
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x54415a
call fcn.00525ebc
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x42d83c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42d88e
call fcn.00423a0e
push eax
lea ecx, [ebp - 0x10]
call fcn.00401e50
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00525fc6
push eax
call fcn.004052e0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401ee0
mov eax, esi
call fcn.00525f94
ret 8
Function at 0x42fc20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42fc68
call fcn.00432f65
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42fc68
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42fcab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x42fc94
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42fc94
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x42fca8
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x431db1
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x431ddc
call fcn.00432f65
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x431dff
push eax
push dword [esi + 4]
call fcn.00431d37
push esi
push eax
mov ecx, 0x5a770c
call fcn.004319d4
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x432603
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x540dd1
call fcn.00525ebc
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push ebx
call fcn.004325c3
and dword [ebp - 4], 0
mov dword [esi], vtable.CFtpConnection.0
call fcn.00423a0e
push eax
lea ecx, [esi + 0x18]
call fcn.00401e50
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00405520
push dword [esi + 8]
mov eax, dword [ebp + 0x20]
mov ebx, dword [ebx + 8]
neg eax
sbb eax, eax
and eax, 0x8000000
push eax
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x43268b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
call fcn.00431d37
push dword [esi + 0xc]
mov ecx, 0x5a770c
push eax
call fcn.004319d4
mov eax, esi
call fcn.00525f94
ret 0x1c
Function at 0x404006
Capabilities:
Parse pe header

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

Function at 0x414f30
Capabilities:
Parse pe header

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

Function at 0x10036ca
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003bd0
call fcn.01003884
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1005390
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10034df
cmp eax, esi
jne 0x10034d2
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10034e2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10034b9
xor esi, esi
inc esi
mov eax, dword [0x100538c]
cmp eax, esi
jne 0x10034f5
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1003530
mov eax, dword [0x100538c]
test eax, eax
jne 0x100352a
mov dword [0x100538c], esi
push 0x10011e0
push 0x10011d4
call fcn.01003436
pop ecx
pop ecx
test eax, eax
je 0x1003530
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10035fa
mov dword [0x1005050], esi
mov eax, dword [0x100538c]
cmp eax, esi
jne 0x1003554
push 0x10011d0
push 0x10011c8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100538c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1003561
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1005394], ebx
je 0x1003582
push 0x1005394
call fcn.010037f9
pop ecx
test eax, eax
je 0x1003582
push ebx
push 2
push ebx
call dword [0x1005394]
push dword [0x1005038]
push dword [0x100503c]
push dword [0x1005034]
call fcn.0100339f
add esp, 0xc
mov dword [0x100504c], eax
cmp dword [0x1005040], ebx
jne 0x10035e0
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1005050], ebx
jne 0x10035ee
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100504c]
call fcn.010038c9
ret
call fcn.010039d1
jmp 0x1003497
Function at 0x401220
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43a790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4360e0
lea ecx, [ebp - 0x28]
call fcn.00405dc0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405540
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401297
mov byte [ebp - 0x2b], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405560
mov al, byte [ebp - 0x2b]
jmp 0x4012d1
call fcn.004072a0
movzx eax, al
test eax, eax
je 0x4012bb
mov byte [ebp - 0x2a], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405560
mov al, byte [ebp - 0x2a]
jmp 0x4012d1
mov byte [ebp - 0x29], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405560
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041103f
mov esp, ebp
pop ebp
ret

Function at 0x405f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43a790]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x43679c
push ecx
lea eax, [ebp - 0x14]
mov edi, edx
push eax
xor esi, esi
call fcn.00411d7b
mov eax, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
je 0x405fac
push esi
push 0x64
push eax
call fcn.00411e4f
add esp, 0xc
cmp eax, 0xffffffff
je 0x405f8f
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push 1
push 0xa
push eax
call fcn.00412355
add esp, 0x10
cmp eax, 1
jne 0x405f8f
lea eax, [ebp - 0x10]
push eax
call fcn.00412401
push 0
push 0x73
push dword [ebp - 0x14]
mov esi, eax
call fcn.00411e4f
add esp, 0x10
cmp eax, 0xffffffff
je 0x405f8f
push dword [ebp - 0x14]
push 1
push 0x4f
push edi
call fcn.00412355
xor ecx, ecx
add esp, 0x10
cmp eax, 1
cmovne esi, ecx
push dword [ebp - 0x14]
call fcn.00412119
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041103f
mov esp, ebp
pop ebp
ret
push str.fopen_error
call fcn.00412433
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.0041103f
mov esp, ebp
pop ebp
ret
Function at 0x406400
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43a790]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x1c], eax
mov bl, 1
mov eax, dword [ebp + 0xc]
push 0x4367c0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], ecx
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call fcn.00411d7b
add esp, 0xc
test eax, eax
je 0x406459
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041103f
mov esp, ebp
pop ebp
ret 0xc
push esi
push edi
push dword [ebp - 8]
call fcn.00412915
push 2
push 0
push dword [ebp - 8]
mov esi, eax
call fcn.00411e4f
push dword [ebp - 8]
call fcn.00412915
push 0
push esi
push dword [ebp - 8]
mov edi, eax
call fcn.00411e4f
push edi
call fcn.00410c3f
push dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 1
push edi
push eax
call fcn.00412355
lea eax, [edi + edi*2]
push eax
mov dword [ebp - 0x10], eax
call fcn.00410c3f
mov esi, eax
mov eax, dword [ebp - 0x18]
sub edi, eax
push edi
mov edi, dword [ebp - 0x14]
add eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0040a5e0
add esp, 0x48
test eax, eax
je 0x4064ca
xor bl, bl
jmp 0x4064f7
push 0x4367c4
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
call fcn.00411d7b
add esp, 0xc
test eax, eax
je 0x4064e6
xor bl, bl
jmp 0x4064f7
push dword [ebp - 0xc]
push 1
push dword [ebp - 0x10]
push esi
call fcn.0041202b
add esp, 0x10
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x406507
push eax
call fcn.00412119
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x406517
push eax
call fcn.00412119
add esp, 4
test edi, edi
je 0x406524
push edi
call fcn.0041104e
add esp, 4
test esi, esi
je 0x406531
push esi
call fcn.0041104e
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041103f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a190
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b2f9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x43a790]
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 dword [ebp - 0x2c], edx
mov ebx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 1
call fcn.00405510
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], 1
call fcn.00405510
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.00405490
lea ecx, [ebp + 8]
xor edi, edi
call fcn.00401d10
test eax, eax
je 0x40a25b
lea ecx, [ebp + 8]
call fcn.004056d0
mov ecx, ebx
lea esi, [eax + edi*2]
call fcn.004056d0
lea ecx, [eax + edi*2]
mov ax, word [ebp - 0x2c]
shr ax, 8
xor ax, word [esi]
mov word [ecx], ax
mov ecx, ebx
call fcn.004056d0
movzx ecx, byte [eax + edi*2]
add cx, word [ebp - 0x2c]
lea eax, [eax + edi*2]
inc edi
mov eax, 0x3193
imul cx, ax
mov eax, 0x58bf
sub ax, cx
lea ecx, [ebp + 8]
movzx eax, ax
mov dword [ebp - 0x2c], eax
call fcn.00401d10
cmp edi, eax
jb 0x40a202
push ebx
lea ecx, [ebp + 8]
call fcn.00405490
push 0
mov ecx, ebx
call fcn.00405c70
xor esi, esi
lea ecx, [ebp + 8]
mov dword [ebp - 0x2c], esi
call fcn.00401d10
test eax, eax
je 0x40a2ef
mov edi, edi
lea ecx, [ebp + 8]
call fcn.004056d0
movzx edi, byte [eax + esi*2]
lea ecx, [ebp - 0x28]
push 0x436fc8
lea eax, [eax + esi*2]
call fcn.00401cf0
mov eax, 0x4ec4ec4f
lea ecx, [ebp - 0x28]
imul edi
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
call fcn.004056d0
mov ecx, eax
lea eax, [esi + 0x41]
mov word [ecx], ax
lea ecx, [ebp - 0x28]
imul eax, esi, 0x1a
sub edi, eax
add edi, 0x41
call fcn.004056d0
mov ecx, ebx
mov word [eax + 2], di
lea eax, [ebp - 0x28]
push eax
call fcn.004021e0
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp + 8]
inc esi
mov dword [ebp - 0x2c], esi
call fcn.00401d10
cmp esi, eax
jb 0x40a280
lea ecx, [ebp - 0x28]
call fcn.00405560
lea ecx, [ebp + 8]
call fcn.00405560
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.0041103f
mov esp, ebp
pop ebp
ret
Function at 0x4015e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 9
push 0
push ecx
mov byte [ebp - 1], dl
call dword [0x40f018]
mov ebx, eax
test ebx, ebx
je 0x401712
mov eax, 0x5a4d
mov dword [ebp - 0x1c], 0x414520
mov dword [ebp - 0x18], ebx
cmp word [ebx], ax
jne 0x401712
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x401712
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x401712
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x401712
xor edx, edx
xor esi, esi
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edx
movzx eax, word [ecx + ebx + 6]
cmp edx, eax
jae 0x401702
movzx eax, word [ecx + ebx + 0x14]
add eax, esi
lea esi, [ebx + 0x18]
add esi, ecx
add esi, eax
je 0x401702
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
cmp eax, dword [esi + 0x10]
lea edx, [esi + 0x10]
cmovb edx, ecx
mov eax, dword [edx]
test eax, eax
je 0x4016f3
movzx ecx, byte [ebp - 1]
imul ecx, eax
mov eax, 0x51eb851f
mov dword [ebp - 8], 1
mul ecx
lea eax, [ebp - 8]
shr edx, 5
lea ecx, [ebp - 0x14]
cmp edx, 1
mov dword [ebp - 0x14], edx
cmovae eax, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x4016f3
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4016c6
xor edi, edi
jmp 0x4016c9
lea edi, [eax + ebx]
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401b90
cmp esi, eax
jne 0x401712
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x1c]
dec eax
add eax, edi
push eax
call fcn.00401b90
cmp esi, eax
jne 0x401712
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.004013c0
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
inc edx
add esi, 0x28
jmp 0x40164c
push ebx
call dword [section..rdata]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401720
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e6db
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [0x418268], 0
jne 0x40179e
push 0x28
call fcn.0040261f
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x401776
mov ecx, eax
call fcn.00401c60
mov esi, eax
jmp 0x401778
xor esi, esi
push 0
push esi
push 0x418268
mov dword [ebp - 4], 0xffffffff
call dword [0x40f03c]
test eax, eax
je 0x40179e
test esi, esi
je 0x40179e
push esi
call fcn.004025f4
add esp, 4
mov eax, dword [0x418268]
cmp dword [eax], 1
jle 0x401869
push 0
push 0x8000000
push 3
push 0
push 7
push 0x80000000
push edi
call dword [0x40f024]
mov esi, eax
cmp esi, 0xffffffff
je 0x4017f1
test esi, esi
je 0x4017f1
push 4
push 0x1000
push 0x100000
push 0
call dword [0x40f028]
mov edi, eax
test edi, edi
jne 0x401805
push esi
call dword [0x40f030]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
lea eax, [ebp - 0x10]
push ebx
push eax
push 0x100000
push edi
push esi
call dword [0x40f020]
test eax, eax
je 0x401840
lea ecx, [ecx]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401840
push 0
add ebx, eax
lea eax, [ebp - 0x10]
push eax
push 0x100000
push edi
push esi
call dword [0x40f020]
test eax, eax
jne 0x401820
push 0x8000
push 0
push edi
call dword [0x40f01c]
push esi
call dword [0x40f030]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 9
push 0
push edi
call dword [0x40f018]
mov esi, eax
test esi, esi
je 0x4017f1
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4017f1
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x4017f1
mov ecx, 0xe0
cmp word [eax + esi + 0x14], cx
jne 0x4017f1
mov ecx, 0x10b
cmp word [eax + esi + 0x18], cx
jne 0x4017f1
mov eax, dword [eax + esi + 0x50]
lea ecx, [ebp - 0x14]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x10]
mov dword [ebp - 0x14], 0xffffffff
cmovae edx, ecx
mov ecx, esi
mov edx, dword [edx]
call fcn.004013c0
push esi
call dword [section..rdata]
mov al, 1
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 0x401b90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ecx + 4]
xor edx, edx
push edi
mov dword [ebp - 4], esi
mov ebx, dword [esi + 0x3c]
add ebx, esi
xor edi, edi
movzx ecx, word [ebx + 6]
cmp edx, ecx
jae 0x401beb
movzx eax, word [ebx + 0x14]
lea ecx, [ebx + 0x18]
add eax, edi
add ecx, eax
je 0x401beb
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x401bc6
xor esi, esi
jmp 0x401bcd
add esi, eax
cmp esi, dword [ebp + 8]
ja 0x401bd7
mov eax, dword [ecx + 8]
add eax, esi
cmp eax, dword [ebp + 8]
ja 0x401be0
mov esi, dword [ebp - 4]
inc edx
add edi, 0x28
jmp 0x401ba6
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401c00
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x401c10
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401c0d
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x401c0d
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete al
ret