joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c014
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4e7380
call fcn.0040c250
mov edi, 0x94
mov eax, edi
call fcn.0040bb20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4eaee8], ecx
mov eax, dword [esi + 4]
mov dword [0x4eaef4], eax
mov edx, dword [esi + 8]
mov dword [0x4eaef8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4eaeec], esi
cmp ecx, 2
je 0x40c074
or esi, 0x8000
mov dword [0x4eaeec], esi
shl eax, 8
add eax, edx
mov dword [0x4eaef0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40c0af
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c0af
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40c0c7
cmp eax, 0x20b
je 0x40c0b4
mov dword [ebp - 0x1c], esi
jmp 0x40c0db
cmp dword [ecx + 0x84], 0xe
jbe 0x40c0af
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40c0d5
cmp dword [ecx + 0x74], 0xe
jbe 0x40c0af
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040ce26
pop ecx
test eax, eax
jne 0x40c107
cmp dword [0x4eaf34], 1
jne 0x40c0f4
call fcn.0040f978
push 0x1c
call fcn.0040f801
push 0xff
call fcn.0040b763
pop ecx
pop ecx
call fcn.0040e99b
mov dword [ebp - 4], esi
call fcn.0040ff76
test eax, eax
jge 0x40c120
push 0x1b
call fcn.0040bfef
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4ec4e4], eax
call fcn.0040fe54
mov dword [0x4eaf2c], eax
call fcn.0040fdb2
test eax, eax
jge 0x40c146
push 8
call fcn.0040bfef
pop ecx
call fcn.0040fb7f
test eax, eax
jge 0x40c157
push 9
call fcn.0040bfef
pop ecx
push 1
call fcn.0040b793
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40c16d
push eax
call fcn.0040bfef
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040fb22
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40c18e
movzx eax, word [ebp - 0x40]
jmp 0x40c191
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004041d0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40c1af
push edi
call fcn.0040b8be
call fcn.0040b8e0
jmp 0x40c1e1
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040c28b
ret
Function at 0x40e07d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40e0ab
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40e0b2
cmp ebx, dword [eax + 4]
jae 0x40e0b2
xor eax, eax
jmp 0x40e2a2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40e0c3
xor eax, eax
inc eax
jmp 0x40e2a1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40e0d9
cmp ecx, edx
jae 0x40e21e
cmp dword [eax + 4], 0
je 0x40e0e2
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40e0ca
cmp dword [ebp + 8], 0
je 0x40e104
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40e21e
cmp eax, esi
jae 0x40e21e
mov eax, dword [0x4eaf58]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40e129
cmp dword [esi*4 + 0x4eaf60], edi
je 0x40e222
inc esi
cmp esi, eax
jl 0x40e117
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e29e
cmp dword [ebp - 8], 0x1000000
jne 0x40e29e
test byte [ebp - 0xc], 0xcc
je 0x40e1a7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40e29e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40e29e
cmp word [eax + 0x18], 0x10b
jne 0x40e29e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40e29e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40e1a7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40e1a7
test byte [ecx + 0x27], 0x80
jne 0x40e21e
push 1
push 0x4eafa0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40e0bb
mov ecx, dword [0x4eaf58]
test ecx, ecx
mov edx, ecx
jle 0x40e1db
lea eax, [ecx*4 + 0x4eaf5c]
cmp dword [eax], edi
je 0x40e1db
dec edx
sub eax, 4
test edx, edx
jg 0x40e1cf
test edx, edx
jne 0x40e20c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40e1e8
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40e200
lea eax, [edx*4 + 0x4eaf60]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40e1ee
cmp ecx, 0x10
jge 0x40e20c
inc ecx
mov dword [0x4eaf58], ecx
push 0
push 0x4eafa0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40e0bb
xor eax, eax
jmp 0x40e2a1
test esi, esi
jle 0x40e0bb
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4eafa0
call ebx
test eax, eax
jne 0x40e0bb
cmp dword [esi*4 + 0x4eaf60], edi
je 0x40e278
mov eax, dword [0x4eaf58]
lea esi, [eax - 1]
test esi, esi
jl 0x40e266
cmp dword [esi*4 + 0x4eaf60], edi
je 0x40e262
dec esi
jns 0x40e256
test esi, esi
jge 0x40e276
cmp eax, 0x10
jge 0x40e271
inc eax
mov dword [0x4eaf58], eax
lea esi, [eax - 1]
jmp 0x40e278
je 0x40e290
xor ecx, ecx
test esi, esi
jl 0x40e290
lea eax, [ecx*4 + 0x4eaf60]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40e27e
push 0
push 0x4eafa0
call ebx
jmp 0x40e0bb
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f801
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4ea33c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4ea4c0]
je 0x40f836
inc eax
cmp eax, 0x13
jb 0x40f827
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4ea4c0]
jne 0x40f95c
mov eax, dword [0x4eaf34]
cmp eax, 1
je 0x40f934
cmp eax, edx
jne 0x40f866
cmp dword [0x4ea364], 1
je 0x40f934
cmp ecx, 0xfc
je 0x40f95c
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f89c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004105d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040df30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40f8d0
mov eax, edi
push eax
call fcn.0040df30
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4e7434
push edi
call fcn.004106d0
add esp, 0x10
push edi
call fcn.0040df30
push dword [esi + 0x4ea4c4]
mov ebx, eax
call fcn.0040df30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040bb20
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004105d0
push edi
push ebx
call fcn.004105e0
push 0x4e7430
push ebx
call fcn.004105e0
push dword [esi + 0x4ea4c4]
push ebx
call fcn.004105e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004104d5
add esp, 0x2c
jmp 0x40f95c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4ea4c4]
push dword [esi]
call fcn.0040df30
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040b1f3
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4104d5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4eb0fc], ebx
push esi
push edi
jne 0x410555
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x410590
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4e8034
push edi
call esi
test eax, eax
mov dword [0x4eb0fc], eax
je 0x410590
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4eb100], eax
call esi
cmp dword [0x4eaee8], 2
mov dword [0x4eb104], eax
jne 0x410555
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4eb10c], eax
je 0x410555
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4eb108], eax
mov eax, dword [0x4eb108]
test eax, eax
je 0x41059a
call eax
test eax, eax
je 0x410581
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4eb10c]
test eax, eax
je 0x410581
test byte [ebp - 8], 1
jne 0x41059a
cmp dword [0x4eaef4], 4
jb 0x410594
or byte [ebp + 0x12], 0x20
jmp 0x4105b9
xor eax, eax
jmp 0x4105c9
or byte [ebp + 0x12], 4
jmp 0x4105b9
mov eax, dword [0x4eb100]
test eax, eax
je 0x4105b9
call eax
mov ebx, eax
test ebx, ebx
je 0x4105b9
mov eax, dword [0x4eb104]
test eax, eax
je 0x4105b9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4eb0fc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411290
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x4ec164]
mov eax, dword [0x4ea33c]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x411456
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4ec180]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x411456
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x4112fa
xor eax, eax
jmp 0x41146a
test al, 0x20
je 0x41130b
push 2
push edi
push edi
push ecx
call fcn.00412286
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4113e0
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x411427
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x41136d
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41135e
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x411340
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4113ad
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4113b9
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x411334
jmp 0x4113bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x411451
cmp dword [ebp + 0x3a4], edi
je 0x411427
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x411419
mov dword [0x4eaee0], eax
jmp 0x41145d
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41140b
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x4113bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x4113bb
push dword [ebp + 0x3a4]
call fcn.00412171
pop ecx
jmp 0x411467
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41143f
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4112f3
mov dword [0x4eaedc], 0x1c
mov dword [0x4eaee0], edi
jmp 0x411467
sub eax, dword [ebp - 0x7c]
jmp 0x41146a
and dword [0x4eaee0], 0
mov dword [0x4eaedc], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040b1f3
add ebp, 0x39c
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4035d5
Capabilities:
Terminate process

Disassembly:
jmp 0x452b69
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x452b7a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058f3
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403706
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c102
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c113
pop esi
ret
push ebx
push edi
push esi
call fcn.0049bfe9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fd0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c13b
push ebx
push esi
push edi
call fcn.004056e1
add esp, 0xc
push 0
call fcn.00406235
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40579f
Capabilities:
Parse pe header

Disassembly:
jmp 0x441d41
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x441d80
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x441d80
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x441d80
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x441d80
cmp dword [ecx + 0x74], 0xe
jbe 0x441d80
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x492353
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d84
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405e43
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x492395
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4924f1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405f97
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x508cc8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403256
mov ecx, dword [esi*4 + 0x508cc8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4924ea
cmp eax, dword [edi + ecx + 0x24]
jne 0x4924ea
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4924ea
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403256
add esp, 0x14
test edx, edx
jl 0x4924ea
jg 0x492460
test eax, eax
jb 0x4924ea
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4924ea
jl 0x49247a
cmp dword [ebp - 0x1008], eax
ja 0x4924ea
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x492498
test ebx, ebx
je 0x4924d1
cmp ecx, edi
jae 0x4924d1
mov al, byte [ecx]
cmp al, 0xd
jne 0x4924b2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4924be
cmp byte [ecx + 1], 0xa
jne 0x4924be
inc ecx
jmp 0x4924be
movzx eax, al
movsx eax, byte [eax + 0x505378]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x492498
cmp edx, ebx
jne 0x492498
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4924ef
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040303f
leave
ret
Function at 0x492c30
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x508cc8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x492c70
cmp byte [ebx], 0xa
jne 0x492c70
or byte [eax + edi + 0x28], 4
jmp 0x492c75
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x492d73
mov al, byte [edx]
cmp al, 0x1a
je 0x492d55
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x492ca4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x492cc9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x492cd3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x492c86
jmp 0x492d73
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492d50
cmp dword [ebp - 0xc], 0
je 0x492d50
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x508cc8]
test byte [eax + edi + 0x28], 0x48
je 0x492d2a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x492d15
mov byte [esi], dl
jmp 0x492d26
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x508cc8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x492d73
cmp byte [ebp - 1], 0xa
jne 0x492d39
cmp esi, ebx
jne 0x492d39
mov byte [esi], 0xa
jmp 0x492d72
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040192e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x492d73
mov byte [esi], 0xd
jmp 0x492d72
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x508cc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x492d6f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x492d73
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x492dcf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x508cc8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x492e12
cmp word [esi], dx
jne 0x492e12
or byte [edi + eax + 0x28], 4
jmp 0x492e17
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x492f6a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x492f4a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x492e59
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x492e8f
cmp eax, edx
jae 0x492e9b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x492e31
jmp 0x492f6a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492f46
cmp dword [ebp - 0x14], 0
je 0x492f46
mov eax, dword [ebx*4 + 0x508cc8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x492f1e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x492ee7
mov word [esi], cx
jmp 0x492f1a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x508cc8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x508cc8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x508cc8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x492f6a
pop ebx
cmp word [ebp - 4], bx
jne 0x492f2f
cmp esi, dword [ebp + 0xc]
jne 0x492f2f
mov word [esi], bx
jmp 0x492f67
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040192e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x492f6a
push 0xd
jmp 0x492f63
mov ecx, dword [ebx*4 + 0x508cc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x492f61
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x492f6a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret