joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401563
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push dword [0x81329c]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x812d88], eax
ret

Function at 0x401773
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x426474]
mov dword [0x81329c], eax
cmp eax, 0xc
jne 0x4017b4
push esi
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push esi
call fcn.004022c4
push esi
call fcn.0040259d
push esi
push esi
call fcn.00402560
push esi
call fcn.004026cf
add esp, 0x14
pop esi
call fcn.00401544
call fcn.0040157e
xor eax, eax
ret 0x10

Function at 0x40324b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425a30]
jne 0x403255
repz ret
jmp fcn.00407ffc

Function at 0x40bb01
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.004047b9
and dword [ebp - 4], 0
cmp dword [0x427160], 0
mov ebx, eax
jne 0x40bbb2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bc63
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40bc63
push eax
call fcn.00404747
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x427160], eax
call esi
push eax
call fcn.00404747
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x427164], eax
call esi
push eax
call fcn.00404747
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x427168], eax
call esi
push eax
call fcn.00404747
pop ecx
mov dword [0x427170], eax
test eax, eax
je 0x40bbb2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404747
pop ecx
mov dword [0x42716c], eax
mov eax, dword [0x42716c]
cmp eax, ebx
je 0x40bc0a
cmp dword [0x427170], ebx
je 0x40bc0a
push eax
call fcn.004047c2
push dword [0x427170]
mov esi, eax
call fcn.004047c2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bc0a
test edi, edi
je 0x40bc0a
call esi
test eax, eax
je 0x40bc01
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bc01
test byte [ebp - 0xc], 1
jne 0x40bc0a
or dword [ebp + 0x10], 0x200000
jmp 0x40bc43
mov eax, dword [0x427164]
cmp eax, ebx
je 0x40bc43
push eax
call fcn.004047c2
pop ecx
test eax, eax
je 0x40bc43
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bc43
mov eax, dword [0x427168]
cmp eax, ebx
je 0x40bc43
push eax
call fcn.004047c2
pop ecx
test eax, eax
je 0x40bc43
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x427160]
call fcn.004047c2
pop ecx
test eax, eax
je 0x40bc63
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bc65
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40d02c], 0x8088405
inc edx
mov dword [0x40d02c], edx
mul edx
mov eax, edx
ret

Function at 0x4038b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp word [ebx], 0x100
jne 0x403845
mov word [ebp - 0x10], 0
push edi
push 0
push 0x400
push esi
lea eax, [ebp - 0x10]
push eax
call sub.oleaut32.dll_VariantChangeTypeEx
test eax, eax
je 0x40382b
call fcn.0040373c
mov eax, ebx
call fcn.0040374c
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 4]
mov dword [ebx - 0x45], eax
add byte [eax], dl
adc byte [edx + 0x2c13c8d1], bh
xor ebx, edx
push ebx
push 0x5ae9a8f9
mov al, byte [0xc8d1ba10]
adc ebp, dword [ecx + esi]
rcl dword [ebx + 0x68], cl
stc
test al, 0xe9
pop edx
mov ecx, 0x661a9540
pop ebx
xor ecx, ebx
pop esi
xor ecx, esi
xor edi, edi
add edi, ecx
mov edx, 0xffffffff
add edi, edx
mov eax, dword [edi + 1]
push 0x28919551
mov edi, 0x28919551
pop esi
xor edi, esi
push edi
push esp
pop edi
mov ecx, edi
push ecx
mov edi, 0
mov esi, 0x40
xor edi, esi
push edi
mov edx, 0x8200
mov ebx, 0x2000
xor edx, ebx
push edx
push 0x7e7f7acf
mov ecx, 0x7e3f6acf
pop ebx
xor ecx, ebx
push ecx
call eax
pop ebx
mov edx, 0x29bd727c
xor edx, 0x276a0144
push 0x27
push edx
push 0x17358069
mov ebx, 0x19a262d9
pop ecx
xor ebx, ecx
pop eax
xor ebx, eax
mov esi, 0x568ca12d
add esi, 0x79
push esi
mov ecx, 0x4480a000
mov esi, 0x120c0287
xor ecx, esi
pop edx
xor ecx, edx
mov edi, 0x58080851
mov eax, 0x2003a102
xor edi, eax
mov edx, 0x11593691
xor edi, edx
xor edi, 0x69123818
push ecx
pop eax
mov edx, 4
sub esp, edx
mov dword [esp], eax
push ebx
pop edx
mov esi, edx
add esp, 0xfffffffc
mov dword [esp], esi
xor ecx, ecx
mov cl, byte [edi]
add ebx, ecx
mov cl, byte [ebx]
mov eax, 0x1a92ae58
mov edx, 0x8122eec
xor edx, eax
mov esi, 0x2800
mov eax, 0x80640002
xor esi, eax
xor edx, esi
cmp ebx, 0
je 0x4038fb
pop ebx
mov byte [edi], cl
mov eax, 1
sub edi, eax
pop ecx
dec ecx
cmp ecx, 0
jne 0x4038fb
mov edx, 0x22252e30
mov ecx, 0x5fd8d144
xor ecx, edx
mov esi, 0x69bd598c
mov ebx, 0x14000242
xor esi, ebx
xor esi, ecx
call esi
pop esi
pop esi
ret

Function at 0x4045a0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.0040458c
add esp, 0x104
pop ebx
ret

Function at 0x40565c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405695
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40569e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4056a8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4056c9
mov al, byte [esp]
jmp 0x4056cb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406e2c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406e74
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406dc8
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e7b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x40707c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40710a
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x4070c7
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x4070f4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x4070db
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x4070ea
lea edx, [ebp - 4]
call fcn.00406f40
test ebx, ebx
je 0x4070ea
dec ebx
jmp 0x4070cc
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407111
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x407118
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00405230
add esp, 0x104
pop ebx
ret

Function at 0x407144
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00405230
add esp, 0x104
pop ebx
ret
Function at 0x1072058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10721a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x107207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107206a
add dl, dl
jne 0x1072089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10720dc
xor eax, eax
add dl, dl
jne 0x1072096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107217d
add dl, dl
jne 0x10720a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10720b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10720bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10720c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10720d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1072075
mov eax, 1
add dl, dl
jne 0x10720ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10720f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10720e1
sub eax, ebx
mov ebx, 1
jne 0x1072128
mov ecx, 1
add dl, dl
jne 0x107210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1072119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1072105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1072075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x107213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x107214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1072136
cmp eax, 0x7d00
jae 0x107216d
cmp eax, 0x500
jb 0x1072168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1072075
cmp eax, 0x7f
ja 0x1072170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1072075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x107219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1072075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

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

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x74000]
push edi
jmp 0x4b6b9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b6ba1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b6b90
mov eax, 1
add ebx, ebx
jne 0x4b6bb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b6bc4
jne 0x4b6be3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b6be3
dec eax
add ebx, ebx
jne 0x4b6bd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b6ba8
add ebx, ebx
jne 0x4b6bdf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b6c35
xor ecx, ecx
sub eax, 3
jb 0x4b6bfb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b6c6a
sar eax, 1
mov ebp, eax
jmp 0x4b6c06
add ebx, ebx
jne 0x4b6c06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b6bd4
inc ecx
add ebx, ebx
jne 0x4b6c14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b6bd4
add ebx, ebx
jne 0x4b6c21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b6c16
jne 0x4b6c32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b6c16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b6c54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b6c46
jmp 0x4b6b96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b6c54
add edi, ecx
jmp 0x4b6b96
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b6c72
cmp byte [edi], 0x11
jne 0x4b6c72
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 0x4b6c77
lea edi, [esi + 0xb2000]
mov eax, dword [edi]
or eax, eax
je 0x4b6cef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbae68]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbafbc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b6ca4
mov ecx, edi
jns 0x4b6cd3
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 + 0xbafc0]
or eax, eax
je 0x4b6ce9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b6cc1
call dword [esi + 0xbafd0]
mov ebp, dword [esi + 0xbafc4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4b6d23
sub esp, 0xffffff80
jmp 0x416310
Function at 0x40146a
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4212f0
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x421513
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_PhysicalToLogicalPoint]
nop dword [eax]
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
sub byte [edi + ebp], 0x5c
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
xor byte [edi + ebp], 0x8c
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
xor byte [edi + ebp], 0x7c
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
add byte [edi + ebp], 0x35
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
add byte [edi + ebp], 0x5a
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
xor byte [edi + ebp], 0x41
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
add byte [edi + ebp], 0x39
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
add byte [edi + ebp], 0xb7
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
add byte [edi + ebp], 0x63
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
add esp, 8
xor byte [edi + ebp], 0x21
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
add byte [edi + ebp], 0x66
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
add byte [edi + ebp], 0xab
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
add byte [edi + ebp], 0x70
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
xor byte [edi + ebp], 0xf1
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
add byte [edi + ebp], 0xc8
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
xor byte [edi + ebp], 0x5f
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
add byte [edi + ebp], 0x7e
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032c4
add byte [edi + ebp], 0x61
add esp, 8
inc edi
cmp edi, ebx
jb 0x421310
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x403ca1
Capabilities:
Terminate process

Disassembly:
jmp 0x4638c9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4638da
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004066b3
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 0x406528
Capabilities:
Parse pe header

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

Function at 0x4075f4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x422f10
sub esp, 0x2c
mov eax, dword [0x5c5328]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov dword [esp + 0x10], 0
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x422ff9
mov ebp, dword [esp + 0x44]
mov edx, dword [edi]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x30], 0
mov eax, edx
mov dword [esp + 0x34], 0
movups xmmword [esp + 0x20], xmm0
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422f80
sub eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.0040619a
test ebx, ebx
je 0x422fb9
cmp ebp, 3
jbe 0x422fb9
lea eax, [esp + 0x20]
push 0x14d
push eax
call fcn.00403210
add esp, 8
test eax, eax
je 0x422fb9
cmp eax, ebp
je 0x423012
mov ecx, dword [esp + 0x34]
add edi, 4
cmp ecx, 0x10
jb 0x422fee
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x422fe4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423061
push ecx
push edx
call fcn.00401c12
add esp, 8
inc esi
cmp esi, dword [esp + 0x18]
jb 0x422f55
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403602
add esp, 0x2c
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jb 0x422ff9
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x423055
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423061
push ecx
push edx
call fcn.00401c12
add esp, 8
jmp 0x422ff9
call fcn.004051f5
int3
Function at 0x4a6491
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00402027
mov eax, dword [0x5c5328]
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.00406d2f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a64d3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a662f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406eba
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 + 0x5ca750]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403878
mov ecx, dword [esi*4 + 0x5ca750]
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 0x4a6628
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a6628
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 0x4a6628
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403878
add esp, 0x14
test edx, edx
jl 0x4a6628
jg 0x4a659e
test eax, eax
jb 0x4a6628
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a6628
jl 0x4a65b8
cmp dword [ebp - 0x1008], eax
ja 0x4a6628
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a65d6
test ebx, ebx
je 0x4a660f
cmp ecx, edi
jae 0x4a660f
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a65f0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a65fc
cmp byte [ecx + 1], 0xa
jne 0x4a65fc
inc ecx
jmp 0x4a65fc
movzx eax, al
movsx eax, byte [eax + 0x5c5648]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a65d6
cmp edx, ebx
jne 0x4a65d6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a662d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403602
leave
ret
Function at 0x4a6834
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 + 0x5ca750]
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 0x4a6874
cmp byte [ebx], 0xa
jne 0x4a6874
or byte [eax + edi + 0x28], 4
jmp 0x4a6879
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a6977
mov al, byte [edx]
cmp al, 0x1a
je 0x4a6959
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a68a8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a68cd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a68d7
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 0x4a688a
jmp 0x4a6977
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 0x4a6954
cmp dword [ebp - 0xc], 0
je 0x4a6954
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5ca750]
test byte [eax + edi + 0x28], 0x48
je 0x4a692e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a6919
mov byte [esi], dl
jmp 0x4a692a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5ca750]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a6977
cmp byte [ebp - 1], 0xa
jne 0x4a693d
cmp esi, ebx
jne 0x4a693d
mov byte [esi], 0xa
jmp 0x4a6976
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401afa
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a6977
mov byte [esi], 0xd
jmp 0x4a6976
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5ca750]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6973
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6977
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret