joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e817
Capabilities:
Authenticate hmac

Disassembly:
mov ch, 0xc3
sar dword [eax + ebp*2 + 0x78], cl
dec esp
pop esp
fadd dword [ebp - 0x5e420292]
add byte [edi], ah
rcr eax, 0x59
mov dword [0x32777fec], eax
jg 0x46e890
xor al, byte [edx]
push edi
and byte [edi + 0x341f1ac9], ch
jo 0x46e802
push es
jg 0x46e890
xor al, byte [edx]
push edi
and byte [edi + 0x341f1ac9], ch
jo 0x46e802
push es
adc esp, dword [esi]
jnp 0x46e82b
add ebx, dword [ebx]
and dl, byte [ebp - 0x46]
jmp [ebp - 0x1d345728]
sub eax, 0x1fd6685c
lds ebp, [edi - 0x42]
rol bh, 1
jge 0x46e8fd
and ah, dl
aam 0x36
adc dword [eax + 0x742f9d35], ebx
add dl, bl
invalid
scasb al, byte es:[edi]
das
jp 0x46e872
inc ebx
pop ebx
fcom dword [ebx]
push ss
lodsd eax, dword [esi]
mov dl, 0x5c
push 0xffffffffffffff9c
rep outsb dx, byte [esi]
invalid
fild word [ecx + 0x1e]
mov al, byte [0xd027c0a4]
lahf
cli
jge 0x46e8f3
mov bh, 0xc6
fdivr dword [ebp - 0x6973210e]
pop ebp
xchg ecx, eax
std
dec eax
lahf
push eax
sbb byte [ecx], ah
leave
pop edi
scasb al, byte es:[edi]
dec eax
in eax, dx
fadd dword [eax + 0x33a083b5]
loope 0x46e939
movsd dword es:[edi], dword [esi]
or dword [eax + 0x43], ebx
mov al, byte [0x802d5e95]
rol dl, 1
loop 0x46e969
cli
push cs
fidivr word [esi - 0x118a03b]
lea ecx, [0x211923a2]
mov al, byte [0xbc40ff64]
inc dword fs:[eax - 0x44]
cmp esp, dword [ecx]
movsb byte es:[edi], byte [esi]
jo 0x46e98e
inc edi
enter 0xffffffffffffab8a, 0xffffffffffffff9d
sbb al, 0x73
rol byte fs:[ebp - 8], cl
sbb byte [eax], 0x74
leave
ror dword [ebx + 0x5ad58962], cl
push edi
fnsave dword [ecx]
xchg esi, eax
mov ch, byte [ebx]
push cs
adc ecx, dword [edx]
invalid
sub eax, 0xa3ab9196
adc al, 0x69
wait
mov byte [0xdda2917], al
mov ecx, 0x77dde5d7
mov ecx, 0x48352522
xor edi, dword [ecx - 0x596732de]
mov bl, 0xe6
adc bl, dl
in al, dx
mov ecx, 0x40709db5
jo 0x46e9d0
out dx, al
push 0xffffffffffffffe6
jmp 0xbff382c9
lodsb al, byte [esi]
and eax, 0x6a0f1d40
jge 0x46ea4f
jl 0x46ea31
ljmp 0xec6b:0xcc6d8877
imul byte [edi + 0x67]
cmp ebx, edi
adc al, 0xf8
xchg edx, eax
sbb al, 0x39
in al, dx
lodsd eax, dword [esi]
mov dword [ebp + 0x7e], ecx
mov ebx, 0x69977730
mov ecx, 0xeb18ff40
les esp, [esi - 0x56]
ja 0x46e9ca
imul edi, dword [ecx - 0x14e700c0], 0x77aa66c4
std
stosb byte es:[edi], al
ja 0x46ea3b
int1
mov cl, 0x2e
daa
cmp eax, 0xa376af09
mov ah, 0x77
test eax, 0xa8c44968
jmp 0x46ea20

Function at 0x46e8b3
Capabilities:
Authenticate hmac

Disassembly:
popfd
das
je 0x46e88b
rol esi, cl
xchg esi, eax
sbb bh, byte [edx + 0x18]
sbb eax, 0xde7a2fae
out 0x7d, al
outsd dx, dword [esi]
adc eax, 0x9e5539d
fistp qword gs:[edi]
mov al, byte [0xf533b8a2]
rol byte [ebx - 3], cl
test dword [ebx], ebp
loopne 0x46e885
stc
enter 0xffffffffffff9608, 0x1d
jle 0x46e895
fstp qword [ebp - 0xf]
inc ecx
jge 0x46e8c8
xor word [ecx - 0x30230354], di
and dh, bl
pushal
test eax, 0x9e868ac1
cmp dword [ebx + 0x5396cb4d], edi
mov al, 0x72
adc byte [0xdf9c0176], bl
inc ecx
push ds
Function at 0x629bc1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6313b0
cmp edx, dword [eax]
je 0x629be3
add eax, 8
inc ecx
cmp eax, 0x631440
jl 0x629bd4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6313b0]
jne 0x629d11
mov eax, dword [0x637dd0]
cmp eax, 1
je 0x629ceb
test eax, eax
jne 0x629c14
cmp dword [0x6312dc], 1
je 0x629ceb
cmp edx, 0xfc
je 0x629d11
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x629c4b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062a5a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062aa30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x629c8e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062aa30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62e8ec
push edi
call fcn.0062c900
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062a5a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062a5b0
lea eax, [ebp - 0xa0]
push 0x62e8cc
push eax
call fcn.0062a5b0
push dword [esi + 0x6313b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062a5b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062c874
add esp, 0x2c
pop edi
jmp 0x629d11
lea eax, [ebp + 8]
lea esi, [esi + 0x6313b4]
push 0
push eax
push dword [esi]
call fcn.0062aa30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7f573e2
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..text
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2461799
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x405bc4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x405f58
call fcn.00405e88
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x405c24
cmp eax, 0xffffffff
je 0x405c24
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x405c1d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x405c1d
cmp edx, 0x10000000
jae 0x405c1d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x405c1a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x405c90
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 0x405cce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x405cc6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x405cd0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x405cb6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405da0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x405dd1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405dd1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x405dd1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x40a175
cmp dword [esp + 0x54], 0x40
jne 0x40a175
cmp word [esp + 0x10], 0x5a4d
jne 0x40a175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x40a175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x410960
push esi
call ebx
test eax, eax
je 0x40a175
cmp dword [esp + 0x54], 0xf8
jne 0x40a175
cmp dword [0x410960], 0x4550
jne 0x40a175
mov eax, dword [0x410976]
test ah, 0x20
jne 0x40a175
mov edx, dword [0x410a80]
xor eax, eax
mov ax, word [0x410966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x410a58], eax
je 0x40a175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x410a6c], eax
xor eax, eax
mov ax, word [0x410966]
mov edx, dword [0x410a58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x40a175
cmp dword [esp + 0x54], edi
jne 0x40a175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x410a80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x4109b4]
cmp edx, eax
ja 0x40a175
mov edi, dword [0x410a58]
mov ecx, dword [0x410988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x40a175
xor eax, eax
push 2
mov ax, word [0x410966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x40a175
cmp dword [edi - 0x20], ebx
ja 0x40a175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x40c769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410190
cmp edx, dword [eax]
je 0x40c78b
add eax, 8
inc ecx
cmp eax, 0x410220
jl 0x40c77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410190]
jne 0x40c8b9
mov eax, dword [0x410bb0]
cmp eax, 1
je 0x40c893
test eax, eax
jne 0x40c7bc
cmp dword [0x4100e4], 1
je 0x40c893
cmp edx, 0xfc
je 0x40c8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040d670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040d490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040d490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f45c
push edi
call fcn.0040df00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040d670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040d680
lea eax, [ebp - 0xa0]
push 0x40f43c
push eax
call fcn.0040d680
push dword [esi + 0x410194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040d680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040de75
add esp, 0x2c
pop edi
jmp 0x40c8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x410194]
push 0
push eax
push dword [esi]
call fcn.0040d490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x354154a2
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x26133ecf
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x104c769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1050190
cmp edx, dword [eax]
je 0x104c78b
add eax, 8
inc ecx
cmp eax, 0x1050220
jl 0x104c77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1050190]
jne 0x104c8b9
mov eax, dword [0x1050bb0]
cmp eax, 1
je 0x104c893
test eax, eax
jne 0x104c7bc
cmp dword [0x10500e4], 1
je 0x104c893
cmp edx, 0xfc
je 0x104c8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x104c7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0104d670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0104d490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x104c836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0104d490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x104f45c
push edi
call fcn.0104df00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0104d670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0104d680
lea eax, [ebp - 0xa0]
push 0x104f43c
push eax
call fcn.0104d680
push dword [esi + 0x1050194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0104d680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0104de75
add esp, 0x2c
pop edi
jmp 0x104c8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x1050194]
push 0
push eax
push dword [esi]
call fcn.0104d490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x45a02a
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
test ebx, ebx
je 0x45a097
cmp byte [ebx], 0
je 0x45a097
mov esi, dword [esp + 0x10]
test esi, esi
je 0x45a04d
push esi
call fcn.0045b048
pop ecx
mov edi, eax
jmp 0x45a04f
xor edi, edi
push ebx
call fcn.0045b048
pop ecx
lea eax, [eax + edi + 1]
test esi, esi
push eax
je 0x45a074
push esi
call fcn.0045b279
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x45a087
push 1
call fcn.0045b186
call fcn.0045aab5
mov esi, eax
pop ecx
test esi, esi
jne 0x45a087
push 1
call fcn.0045b186
lea eax, [esi + edi]
push ebx
push eax
call fcn.0045af58
pop ecx
mov eax, esi
pop ecx
jmp 0x45a09b
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
ret

Function at 0x45a34a
Capabilities:
Terminate process

Disassembly:
sub esp, 0x190
push 1
push 0x100
call dword [fcn.0040702c]
call dword [fcn.00407028]
lea eax, [esp]
push eax
push 2
call fcn.0045a96a
test eax, eax
push 1
je 0x45a37a
call fcn.0045b186
push 0x401a15
call dword [fcn.00407024]
add esp, 0x190
ret

Function at 0x45a868
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.0045a34a
cmp dword [ebp + 8], 1
jle 0x45a889
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call fcn.0045b14e
pop ecx
mov dword [0x408eb0], eax
jmp 0x45a88e
mov eax, dword [0x408eb0]
cmp eax, 0x270f
jg 0x45a89c
cmp eax, 0x1f40
jge 0x45a8a6
mov eax, 0x2000
mov dword [0x408eb0], eax
push esi
push edi
push eax
push 0
call fcn.00459a6c
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
jge 0x45a8c2
push 1
call fcn.0045b186
pop edi
pop esi
call fcn.0045a2e6
push dword [ebp + 8]
call fcn.00459b17
mov edi, eax
pop ecx
test edi, edi
jl 0x45a8c2
push 0x48
call fcn.0045aab5
mov esi, eax
pop ecx
test esi, esi
jne 0x45a8ed
push edi
call fcn.0045a3aa
pop ecx
jmp 0x45a8c2
push 0x48
push 0
push esi
call fcn.0045a9d8
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x40], 1
mov dword [esi], edi
mov eax, dword [0x409244]
push esi
push 0x10000
mov dword [esi + 0x44], eax
push 0x401f18
mov dword [0x409244], esi
call fcn.0045b53d
add esp, 0x18
jmp 0x45a8c2
Function at 0x3024300
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x30ed8a8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x302432c
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x3024334
mov eax, dword [ebp - 8]
jmp 0x30244ab
push 0x105
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0303a730
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x438]
push edx
call fcn.0307c9f8
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
call fcn.03029960
test eax, eax
jne 0x3024378
xor eax, eax
jmp 0x30244ab
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0xffffffff
jne 0x30243ad
xor eax, eax
jmp 0x30244ab
push 0
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x30243d7
cmp dword [ebp - 0x224], 0x104
jbe 0x30243e1
jmp 0x3024492
push 0x104
push 0
lea eax, [ebp - 0x330]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
lea ecx, [ebp - 0x440]
push ecx
mov edx, dword [ebp - 0x224]
push edx
lea eax, [ebp - 0x330]
push eax
mov ecx, dword [ebp - 0x43c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x3024423
jmp 0x3024492
mov edx, dword [ebp - 0x440]
cmp edx, dword [ebp - 0x224]
je 0x3024435
jmp 0x3024492
mov dword [ebp - 8], 1
lea eax, [ebp - 0x330]
mov dword [ebp - 4], eax
jmp 0x3024450
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x302447a
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0xa
je 0x3024470
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0xd
jne 0x3024478
mov edx, dword [ebp - 4]
mov byte [edx], 0
jmp 0x302447a
jmp 0x3024447
lea eax, [ebp - 0x330]
push eax
push 0x105
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0307c9f8
add esp, 0xc
cmp dword [ebp - 0x43c], 0
je 0x30244a8
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.030554d2
mov esp, ebp
pop ebp
ret 8
Function at 0x302b240
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x302b257
push 0x57
call fcn.030226d0
jmp 0x302b2b4
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x302b27a
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 8], eax
jae 0x302b2b2
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0xc]
jb 0x302b2a7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0x10], ecx
jae 0x302b2a7
mov eax, dword [ebp - 4]
jmp 0x302b2b4
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x302b271
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x302b350
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30e7cd0
push 0x307c3cb
mov eax, dword fs:[0]
push eax
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, dword [0x30ed8a8]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x302b400
cmp dword [ebp + 8], 0xffffffff
je 0x302b400
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x302b3e0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x3c], 0
jl 0x302b3e0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0x10000000
jae 0x302b3e0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x4550
je 0x302b3e0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x302b400
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x30348b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x14], 0
jne 0x30348d6
cmp dword [ebp + 0x18], 0
je 0x30348ca
cmp dword [ebp + 0x1c], 0
jne 0x30348d6
push 0x57
call fcn.030226d0
jmp 0x3034a25
mov eax, dword [ebp + 8]
push eax
call fcn.030454b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x30348f4
push 6
call fcn.030226d0
jmp 0x3034a25
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.03045db0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x303491c
push 0x7e
call fcn.030226d0
jmp 0x3034a25
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x30349db
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 0x14]
push ecx
call dword [0x30ef64c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x303495e
push 0x57
call fcn.030226d0
jmp 0x3034a25
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 0x1c], eax
cmp dword [ebp + 0x1c], 0
jne 0x3034989
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x57
call fcn.030226d0
jmp 0x3034a25
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.0302b6a0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x30349cf
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x30349cf
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x1c]
je 0x30349cf
mov ecx, dword [ebp - 4]
push ecx
call fcn.0302b6f0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x3034a01
mov eax, dword [ebp + 0x1c]
push eax
call fcn.0302b6a0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x3034a01
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x3034a10
push 0x57
call fcn.030226d0
jmp 0x3034a25
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0302e740
mov esp, ebp
pop ebp
ret 0x18
Function at 0x3040290
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0x32
push eax
call fcn.03022bf0
test eax, eax
je 0x30402cd
mov ecx, dword [ebp + 8]
add ecx, 0x32
push ecx
push 0x105
mov edx, dword [ebp + 8]
add edx, 0x890
push edx
call fcn.0307ccf6
add esp, 0xc
mov eax, 1
jmp 0x30403c7
mov eax, dword [ebp + 8]
add eax, 0x32
push eax
call fcn.0303e620
test eax, eax
je 0x3040320
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], 0x200
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x448]
mov dword [edx + 0x868], ecx
mov edx, dword [ebp + 8]
add edx, 0x32
push edx
push 0x105
mov eax, dword [ebp + 8]
add eax, 0x65c
push eax
call fcn.0307ccf6
add esp, 0xc
mov eax, 1
jmp 0x30403c7
mov ecx, dword [0x30eb358]
and ecx, 0x20000
jne 0x30403c2
call fcn.030226f0
test eax, eax
je 0x3040359
mov edx, dword [ebp + 8]
add edx, 0xd58
push edx
push 0x3004318
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call fcn.03044e60
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x3041ce0
mov eax, dword [ebp + 8]
add eax, 0x32
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 8]
add eax, 0xd58
push eax
call sym.dbghelp.dll_FindExecutableImageExW
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x448], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x448], 0
jne 0x3040397
xor eax, eax
jmp 0x30403c7
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
jne 0x30403b7
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.03040a20
mov eax, 1
pop ebp
ret 4