joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402afa
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x408c28
push ebx
push esi
call fcn.00408b54
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00408ae8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x408bd5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408c27
push edi
push eax
call fcn.004075b0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x408bf5
call fcn.0040770b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408c26
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408ae8
add esp, 0x20
test eax, eax
jne 0x408c14
push edi
call fcn.0040770b
jmp 0x408c1c
push ebx
call fcn.0040770b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x409e37
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412008
push 0x412000
push str.FlsAlloc
push 0x1f
call fcn.00409cf6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409e6b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41011c]
call esi
jmp 0x409e71
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409eb5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412018
push 0x412010
push str.FlsGetValue
push 0x21
call fcn.00409cf6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409eec
push dword [ebp + 8]
mov ecx, esi
call dword [0x41011c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x409ef4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412020
push 0x412018
push str.FlsSetValue
push 0x22
call fcn.00409cf6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409f2e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41011c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40f0b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f0dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f0dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.3299saww]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.3299saww]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.3299saww]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.3299saww]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.3299saww]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.3299saww]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401b7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, 0
mov dword [esp], 0
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp + 4], 0x40e000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
mov eax, 0
test edi, edi
je 0x401c23
jmp 0x401bc1
mov eax, 0
jmp 0x401c23
test byte [edi + 0xc], 0x10
jne 0x401c00
inc ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
je 0x401bba
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [eax + ebx - 1]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test byte [edi + 0xc], 0x10
je 0x401bc7
lea eax, [ebx - 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401b44
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x915328
Capabilities:
Encode data using xor

Disassembly:
jmp 0x915332
pushal
call 0x915338
pop ebp
sub ebp, 0x10
sub ebp, 0x515328
jmp 0x91534e
mov eax, 0x515328
add eax, ebp
add eax, 0x4c
mov ecx, 0x5eb
mov edx, 0x9f29780e
xor byte [eax], dl
inc eax
dec ecx
jne 0x915365
jmp 0x915378
test ebx, eax
test dword [edi + 0xe0e0e32], eax
invalid
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
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 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
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 + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x929720
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x66400d
lea edi, [esi - 0x26300d]
push edi
or ebp, 0xffffffff
jmp 0x929742
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x929749
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x929738
mov eax, 1
add ebx, ebx
jne 0x92975b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x929750
jne 0x92976c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x929750
xor ecx, ecx
sub eax, 3
jb 0x929780
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9297f2
mov ebp, eax
add ebx, ebx
jne 0x92978b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x929798
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x9297bc
inc ecx
add ebx, ebx
jne 0x9297a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x92979d
jne 0x9297b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x92979d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9297dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9297cd
jmp 0x92973e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9297dc
add edi, ecx
jmp 0x92973e
pop esi
mov edi, esi
mov ecx, 0x1734
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9297fa
cmp byte [edi], 0x11
jne 0x9297fa
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 0x9297ff
lea edi, [esi + 0x525000]
mov eax, dword [edi]
or eax, eax
je 0x92986e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5310ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x531144]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x92982c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x53114c]
or eax, eax
je 0x929868
mov dword [ebx], eax
add ebx, 4
jmp 0x929849
call dword [esi + 0x531148]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x92989f
cmp al, 0xef
ja 0x929892
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x929874
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x929881
mov ebp, dword [esi + 0x531150]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
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 0x9298d3
sub esp, 0xffffff80
jmp 0x40c4cc
Function at 0x4073f8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423cd0]
jne 0x407402
repz ret
jmp fcn.00409913

Function at 0x407872
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.004041aa
and dword [ebp - 4], 0
cmp dword [0x425b9c], 0
mov ebx, eax
jne 0x407923
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4079d4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4079d4
push eax
call fcn.00404138
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x425b9c], eax
call esi
push eax
call fcn.00404138
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x425ba0], eax
call esi
push eax
call fcn.00404138
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x425ba4], eax
call esi
push eax
call fcn.00404138
pop ecx
mov dword [0x425bac], eax
test eax, eax
je 0x407923
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404138
pop ecx
mov dword [0x425ba8], eax
mov eax, dword [0x425ba8]
cmp eax, ebx
je 0x40797b
cmp dword [0x425bac], ebx
je 0x40797b
push eax
call fcn.004041b3
push dword [0x425bac]
mov esi, eax
call fcn.004041b3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40797b
test edi, edi
je 0x40797b
call esi
test eax, eax
je 0x407972
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407972
test byte [ebp - 0xc], 1
jne 0x40797b
or dword [ebp + 0x10], 0x200000
jmp 0x4079b4
mov eax, dword [0x425ba0]
cmp eax, ebx
je 0x4079b4
push eax
call fcn.004041b3
pop ecx
test eax, eax
je 0x4079b4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4079b4
mov eax, dword [0x425ba4]
cmp eax, ebx
je 0x4079b4
push eax
call fcn.004041b3
pop ecx
test eax, eax
je 0x4079b4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x425b9c]
call fcn.004041b3
pop ecx
test eax, eax
je 0x4079d4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4079d6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30dbd55
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x30f8968]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x20
push 0x3010b34
push eax
mov esi, ecx
mov dword [ebp - 0x54], eax
call fcn.030d7506
mov edi, eax
xor ebx, ebx
add esp, 0xc
cmp edi, ebx
jne 0x30dbd9e
push ebx
push 0x12
push dword [ebp - 0x54]
mov ecx, esi
call fcn.030db638
xor al, al
jmp 0x30dbee5
push edi
push 1
lea eax, [ebp - 0x50]
push 0x30
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x30dbdcc
push ebx
push 0xb
push dword [ebp - 0x54]
mov ecx, esi
call fcn.030db638
push edi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
jmp 0x30dbd97
mov eax, 0x4944
cmp word [ebp - 0x50], ax
jne 0x30dbdb5
mov eax, dword [ebp - 0x38]
imul eax, eax, 0x28
add eax, dword [ebp - 0x34]
push 1
push eax
push edi
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x30dbdb5
push edi
call dword [sym.imp.msvcrt.dll_ftell]
pop ecx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x30]
push 0x1c
xor edx, edx
pop ecx
div ecx
mov dword [ebp - 0x58], eax
cmp eax, ebx
je 0x30dbe52
dec dword [ebp - 0x58]
push edi
push 1
lea eax, [ebp - 0x20]
push 0x1c
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x30dbdb5
cmp byte [esi + 0xc94], bl
jne 0x30dbe4d
cmp dword [ebp - 0x14], 2
jne 0x30dbe4d
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc98], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xc9c], ebx
mov dword [esi + 0xca0], eax
cmp dword [ebp - 0x58], ebx
jne 0x30dbe0d
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [esi + 0xc80]
je 0x30dbe73
mov eax, dword [esi + 0xc84]
cmp eax, ebx
je 0x30dbe6b
cmp ecx, eax
je 0x30dbe73
push ebx
push 0x14
jmp 0x30dbdb8
push dword [ebp - 0x54]
call dword [sym.imp.msvcrt.dll__wcsdup]
pop ecx
push ebx
push ebx
push dword [ebp - 0x54]
mov ecx, esi
mov dword [esi + 0xc90], eax
mov dword [esi + 0xc8c], edi
call fcn.030db638
push ebx
push dword [ebp - 0x5c]
push edi
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x30dbee3
mov eax, dword [ebp - 0x30]
push 0x1c
xor edx, edx
pop ecx
div ecx
mov dword [ebp - 0x58], eax
cmp eax, ebx
je 0x30dbee3
dec dword [ebp - 0x58]
push edi
push 1
lea eax, [ebp - 0x20]
push 0x1c
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x30dbee3
lea eax, [ebp - 0x20]
push eax
push ebx
mov ecx, esi
call fcn.030db5ac
cmp dword [ebp - 0x58], ebx
jne 0x30dbeb8
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0306b4ac
leave
ret 4
Function at 0x30ec53c
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x30ec531
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x30ec54f
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
add byte [eax], al
add byte [eax], al
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x30ec5ad
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x30ec594
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x30ec59d
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x30ec5a7
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x30ec589
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x30ec513
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x30ec5fa
dec eax
je 0x30ec5f1
sub eax, 3
je 0x30ec5e8
or edi, eax
inc ebp
cld
inc eax
add byte [eax], al
add bl, ch
das
mov dword [ebp - 4], 0x40
jmp 0x30ec617
mov dword [ebp - 4], 4
jmp 0x30ec5fd
mov dword [ebp - 4], 0x20
jmp 0x30ec5fd
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x30ec649
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x30ec5c9
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.030ebe5a
jbe 0x30ec5de
pop edi
jnp 0x30ec63d
push dword [ebp + 0x14]
jne 0x30ec654
push 1
push esi
call edi
mov eax, esi
jmp 0x30ec655
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x12e1abe
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, 0x5a4d
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
cmp word [esi], ax
jne 0x12e1c21
mov ebx, dword [esi + 0x3c]
add ebx, esi
cmp dword [ebx], 0x4550
jne 0x12e1c21
mov eax, dword [edi + 0x688]
test eax, eax
je 0x12e1c21
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0xffffffffffffffff
call eax
test eax, eax
je 0x12e1c21
mov eax, 0x1c0
cmp word [ebp - 4], ax
je 0x12e1b26
mov eax, 0xaa64
cmp word [ebp - 4], ax
jne 0x12e1c21
cmp dword [ebx + 8], 0x27debf2c
jne 0x12e1b51
push 0x4b2e8f83
push 0x4b2e8de3
push 0x4b280000
mov edx, esi
mov ecx, edi
call fcn.012e1a38
add esp, 0xc
xor eax, eax
jmp 0x12e1c26
cmp dword [ebx + 8], 0x88330560
jne 0x12e1b66
push 0x4b3fabde
push 0x4b3fa92b
jmp 0x12e1b39
cmp dword [ebx + 8], 0xe892dd44
jne 0x12e1b7b
push 0x4b406b8e
push 0x4b4068db
jmp 0x12e1b39
and dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push 0
push 1
push ecx
push 0x2bcd03a7
push esi
mov ecx, edi
call fcn.012e2131
test eax, eax
js 0x12e1c26
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x12e1c21
lea eax, [ebx - 0x140]
mov dword [ebp - 0x1c], 0x3f3f3fe8
push 8
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x18], 0x843f
push ecx
mov edx, 0x140
mov byte [ebp - 0x16], 0xc0
mov ecx, eax
mov dword [ebp - 0x24], 0x1b8
mov word [ebp - 0x20], 0x8400
mov byte [ebp - 0x1e], 0xc0
mov dword [ebp - 0x10], eax
call fcn.012e26c9
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x12e1bf1
mov ecx, dword [ebp - 0x10]
mov edx, 0x140
jmp 0x12e1c0e
push 7
lea eax, [ebp - 0x1c]
mov edx, 0x200
push eax
mov ecx, ebx
call fcn.012e26c9
test eax, eax
jne 0x12e1c2b
mov edx, 0x200
mov ecx, ebx
push 8
lea eax, [ebp - 0x24]
push eax
call fcn.012e26c9
test eax, eax
jne 0x12e1b4a
mov eax, 0xe0010001
pop edi
pop esi
pop ebx
leave
ret
push eax
push dword [ebp - 0x14]
push esi
jmp 0x12e1b3e

Function at 0x12e2551
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x12e256f
mov eax, dword [ecx + 0x3c]
cmp eax, 0x400
jg 0x12e256f
add eax, ecx
cmp dword [eax], 0x4550
je 0x12e2571
xor eax, eax
ret