joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eeaa0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb0
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx + 8], edi
cmp byte [0x5ba198], 0
je 0x4eecd8
mov ecx, dword [0x5ba194]
test ecx, ecx
je 0x4eeb46
lea ebx, [ebp - 0x14]
mov dword [ebx], 0xffffffff
call dword [section..00cfg]
push ebx
push edi
call ecx
test eax, eax
je 0x4eeaff
cmp dword [ebp - 0x14], 0
setne byte [esi + 0x4d]
je 0x4eeb4a
mov byte [esi + 0x4c], 0
jmp 0x4eebb2
push 2
call fcn.0044f030
add esp, 4
test al, al
je 0x4eeb46
call fcn.0044ff30
lea ebx, [ebp - 0xbc]
mov ecx, ebx
push eax
push 2
push 0x4b
push str....._third_partycrashpadcrashpadutilwinprocess_info.cc
call fcn.004500d0
lea eax, [ebp - 0xb4]
push 0xe
push 0x570cbc
push eax
call fcn.0040218b
add esp, 0xc
mov ecx, ebx
call fcn.00450180
mov byte [esi + 0x4d], 0
pcmpeqd xmm0, xmm0
lea ebx, [ebp - 0xbc]
movdqu xmmword [ebx + 0x10], xmm0
movdqu xmmword [ebx], xmm0
mov dword [ebx + 0x20], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebx], 9
sete byte [esi + 0x4c]
jne 0x4eebb2
push 2
call fcn.0044f030
add esp, 4
test al, al
je 0x4eecbd
lea esi, [ebp - 0xbc]
mov ecx, esi
push 2
push 0x210
push str....._third_partycrashpadcrashpadutilwinprocess_info.cc
call fcn.0044f100
lea eax, [ebp - 0xb4]
push 0x32
push str.Reading_x64_process_from_x86_process_not_supported
jmp 0x4eecad
lea eax, [esi + 0x20]
lea ecx, [esi + 0x18]
push eax
push ecx
push esi
push 0
push edi
call fcn.004eecff
add esp, 0x14
test al, al
je 0x4eebe1
cmp byte [esi + 0x4c], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
je 0x4eec1e
push esi
push ecx
push eax
push edi
call fcn.004eef3e
jmp 0x4eec27
push 2
call fcn.0044f030
add esp, 4
test al, al
je 0x4eecbd
lea esi, [ebp - 0xbc]
mov ecx, esi
push 2
push 0x21e
push str....._third_partycrashpadcrashpadutilwinprocess_info.cc
call fcn.0044f100
lea eax, [ebp - 0xb4]
push 0x21
push str.GetProcessBasicInformation_failed
jmp 0x4eecad
push esi
push ecx
push eax
push edi
call fcn.004ef5c1
add esp, 0x10
test al, al
je 0x4eec79
movzx eax, byte [esi + 0x4c]
mov bl, 1
push esi
push eax
push edi
call fcn.004ee244
add esp, 0xc
test al, al
jne 0x4eecbf
push 2
call fcn.0044f030
add esp, 4
test al, al
je 0x4eecbd
lea esi, [ebp - 0xbc]
mov ecx, esi
push 2
push 0x22c
push str....._third_partycrashpadcrashpadutilwinprocess_info.cc
call fcn.0044f100
lea eax, [ebp - 0xb4]
push 0x15
push str.ReadMemoryInfo_failed
jmp 0x4eecad
push 2
call fcn.0044f030
add esp, 4
test al, al
je 0x4eecbd
lea esi, [ebp - 0xbc]
mov ecx, esi
push 2
push 0x227
push str....._third_partycrashpadcrashpadutilwinprocess_info.cc
call fcn.0044f100
lea eax, [ebp - 0xb4]
push 0x16
push str.ReadProcessData_failed
push eax
call fcn.0040218b
add esp, 0xc
mov ecx, esi
call fcn.0044f510
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, ebx
add esp, 0xb0
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov byte [0x5ba198], 1
push 0
push str.::IsWow64Process
push 0x562d10
call fcn.004edd64
add esp, 0xc
mov ecx, eax
mov dword [0x5ba194], eax
jmp 0x4eead1
Function at 0x4f3632
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [0x5a8564]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
mov esi, 5
cmp eax, 3
jne 0x4f36d3
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0xb], 0
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
jns 0x4f3676
mov esi, dword [esi]
mov ebx, dword [ebx]
push 0
push edx
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x4f36c0
mov esi, eax
lea eax, [ebp - 0x14]
mov dword [eax], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
push 3
push edi
push edi
lea ecx, [ebp - 0x14]
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb edi, edi
lea eax, [ebp - 0x14]
or edi, dword [eax]
jmp 0x4f36c3
xor edi, edi
dec edi
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
xor eax, eax
cmp edi, 0xffffffff
sete al
lea esi, [eax + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f8fa8
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e3a32
Function at 0x4fc3f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea esi, [ebp - 0x14]
mov dword [esi], eax
lea edi, [ebp - 0x18]
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [eax], 4
push eax
push edi
push esi
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x4fc43e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4fc560
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xcc
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0xc], eax
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x30]
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
mov dword [esi + 0x20], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esi + 0x14], 0x100
jb 0x4fc5e0
push 1
call fcn.0044f030
add esp, 4
test al, al
je 0x4fc5e0
lea esi, [ebp - 0xd4]
mov ecx, esi
push 1
push 0x10b
push str....._third_partycrashpadcrashpad_snapshotwin_system_snapshot_win.cc
call fcn.0044f100
lea eax, [ebp - 0xcc]
push 0x2c
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
call fcn.0040218b
add esp, 0xc
mov ecx, esi
call fcn.0044f510
mov eax, dword [ebp - 0x1c]
cmp eax, 0x100
mov ebx, 0xff
cmovb ebx, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005327f1
mov eax, ebx
add esp, 0xcc
pop esi
pop ebx
pop ebp
ret
Function at 0x50d07f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [ebp + 8]
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x3c]
cmp eax, 9
jbe 0x50d0a4
xor ebx, ebx
jmp 0x50d19a
mov bl, 1
test eax, eax
je 0x50d19a
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
xor eax, eax
dec eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov esi, ecx
mov ecx, edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00508fcc
mov ecx, esi
mov dword [esi + ebx*4], eax
test eax, eax
je case.0x50d0ef.3
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov dword [edx + ebx*4 + 4], eax
dec eax
cmp eax, 5
ja case.0x50d0ef.3
jmp dword [eax*4 + 0x57a708]
push 0xc
call fcn.00532780
add esp, 4
mov ecx, edi
mov edi, eax
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi], eax
mov dword [edi + 8], eax
push edi
push ebx
call fcn.00509070
test al, al
je 0x50d1b1
mov ecx, esi
mov dword [esi + ebx*4], edi
jmp 0x50d18b
mov dword [ebp - 0x1c], 0xffffffff
mov ecx, edi
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.00508ffc
test al, al
je 0x50d1ae
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x50d15d
mov dword [ebp - 0x1c], 0xffffffff
mov ecx, edi
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.00509036
test al, al
je 0x50d1ae
mov eax, dword [ebp - 0x1c]
mov ecx, esi
mov dword [esi + ebx*4], eax
jmp case.0x50d0ef.3
mov edi, dword [ecx + ebx*4]
test edi, edi
je 0x50d1dd
push 8
call fcn.00532780
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, eax
push dword [ebp - 0x14]
push edi
call fcn.0050d1ee
mov ecx, esi
mov eax, dword [ebp - 0x24]
mov dword [esi + ebx*4], eax
mov edi, dword [ebp + 8]
inc ebx
cmp ebx, dword [edi + 0x3c]
jb 0x50d0b3
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
jmp 0x50d1de
xor eax, eax
mov dword [esi + ebx*4], eax
xor ebx, ebx
push esi
push dword [ebp + 0xc]
call fcn.0050cfd4
add esp, 8
mov dword [ebp - 0x1c], ebx
test edi, edi
je 0x50d09d
lea ecx, [ebp - 0x18]
push edi
call fcn.00408fc0
jmp 0x50d09d
push ecx
push dword [ebp + 0xc]
call fcn.0050cfd4
add esp, 8
jmp 0x50d09d
Function at 0x5107ba
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xe8
mov ebx, ecx
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x50]
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
lea edi, [ecx + 0x10]
mov ecx, edi
call fcn.00511186
mov ecx, ebx
push esi
push 0
push 0x40
push edx
push eax
call fcn.00517f66
test al, al
je 0x51086d
movzx eax, word [ebp - 0x50]
cmp eax, 0x5a4d
jne 0x5108aa
mov ecx, edi
call fcn.00511186
mov edi, eax
mov eax, dword [ebp - 0x14]
mov esi, eax
sar esi, 0x1f
add edi, eax
adc esi, edx
mov ecx, ebx
push dword [ebp + 8]
push 0
push 0x108
push esi
push edi
call fcn.00517f66
test al, al
je 0x5108e4
mov eax, dword [ebp + 8]
cmp dword [eax], 0x4550
jne 0x51091e
mov eax, dword [ebp + 0xc]
mov bl, 1
test eax, eax
je 0x51097c
mov dword [eax], edi
mov dword [eax + 4], esi
jmp 0x51097c
push 1
call fcn.0044f030
add esp, 4
test al, al
je 0x51097a
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x154
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.0044f100
lea eax, [ebp - 0xec]
push 0x1f
push str.could_not_read_dos_header_from
jmp 0x510952
push 1
call fcn.0044f030
add esp, 4
test al, al
je 0x51097a
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x15a
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.0044f100
lea eax, [ebp - 0xec]
push 0x21
push str.invalid_e_magic_in_dos_header_of
jmp 0x510952
push 1
call fcn.0044f030
add esp, 4
test al, al
je 0x51097a
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x162
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.0044f100
lea eax, [ebp - 0xec]
push 0x1f
push str.could_not_read_nt_headers_from
jmp 0x510952
push 1
call fcn.0044f030
add esp, 4
test al, al
je 0x51097a
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x168
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.0044f100
lea eax, [ebp - 0xec]
push 0x23
push str.invalid_signature_in_nt_headers_of
push eax
call fcn.0040218b
add esp, 0xc
movzx ecx, byte [ebx + 0xb]
test cl, cl
jns 0x510968
mov ecx, dword [ebx + 4]
mov ebx, dword [ebx]
push ecx
push ebx
push eax
call fcn.0040218b
add esp, 0xc
mov ecx, edi
call fcn.0044f510
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, ebx
add esp, 0xe8
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x510996
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xe8
mov ebx, ecx
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x50]
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
lea edi, [ecx + 0x10]
mov ecx, edi
call fcn.00511186
mov ecx, ebx
push esi
push 0
push 0x40
push edx
push eax
call fcn.00517f66
test al, al
je 0x510a49
movzx eax, word [ebp - 0x50]
cmp eax, 0x5a4d
jne 0x510a86
mov ecx, edi
call fcn.00511186
mov edi, eax
mov eax, dword [ebp - 0x14]
mov esi, eax
sar esi, 0x1f
add edi, eax
adc esi, edx
mov ecx, ebx
push dword [ebp + 8]
push 0
push 0xf8
push esi
push edi
call fcn.00517f66
test al, al
je 0x510ac0
mov eax, dword [ebp + 8]
cmp dword [eax], 0x4550
jne 0x510afa
mov eax, dword [ebp + 0xc]
mov bl, 1
test eax, eax
je 0x510b58
mov dword [eax], edi
mov dword [eax + 4], esi
jmp 0x510b58
push 1
call fcn.0044f030
add esp, 4
test al, al
je 0x510b56
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x154
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.0044f100
lea eax, [ebp - 0xec]
push 0x1f
push str.could_not_read_dos_header_from
jmp 0x510b2e
push 1
call fcn.0044f030
add esp, 4
test al, al
je 0x510b56
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x15a
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.0044f100
lea eax, [ebp - 0xec]
push 0x21
push str.invalid_e_magic_in_dos_header_of
jmp 0x510b2e
push 1
call fcn.0044f030
add esp, 4
test al, al
je 0x510b56
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x162
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.0044f100
lea eax, [ebp - 0xec]
push 0x1f
push str.could_not_read_nt_headers_from
jmp 0x510b2e
push 1
call fcn.0044f030
add esp, 4
test al, al
je 0x510b56
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x168
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.0044f100
lea eax, [ebp - 0xec]
push 0x23
push str.invalid_signature_in_nt_headers_of
push eax
call fcn.0040218b
add esp, 0xc
movzx ecx, byte [ebx + 0xb]
test cl, cl
jns 0x510b44
mov ecx, dword [ebx + 4]
mov ebx, dword [ebx]
push ecx
push ebx
push eax
call fcn.0040218b
add esp, 0xc
mov ecx, edi
call fcn.0044f510
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, ebx
add esp, 0xe8
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x5175de
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x20]
mov ebx, dword [ebp + 8]
movups xmm0, xmmword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
xor edx, edx
mov dword [edi], edx
mov ecx, dword [ebx]
sub esp, 0x1c
mov dword [esp + 0x18], eax
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x51763d
mov esi, eax
mov ebx, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 3
xor ecx, ecx
push ecx
push ecx
push edi
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [ecx + ecx*4]
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00433830

Function at 0x533205
Capabilities:
Parse pe header

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

Function at 0x544464
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x58e5a0
push esi
call fcn.00552d2b
pop ecx
pop ecx
test eax, eax
jne 0x544492
xor al, al
jmp 0x54450f
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.005441f3
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5444cc
push dword [ebp - 0x210]
call fcn.0043d890
xor al, al
jmp 0x54450d
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5444d2
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5444f2
push edx
call fcn.005443b6
pop ecx
test al, al
je 0x5444bd
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x544500
mov bl, 1
push dword [ebp - 0x210]
call fcn.0043d890
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005327f1
leave
ret
Function at 0x545e2e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x5ba988]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x545e6e
cmp byte [ebx], 0xa
jne 0x545e6e
or byte [edi + eax + 0x28], 4
jmp 0x545e73
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x545f72
mov dl, byte [eax]
cmp dl, 0x1a
je 0x545f55
inc eax
cmp dl, 0xd
je 0x545e9f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x545ec5
cmp eax, ecx
jae 0x545ed3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x545e87
jmp 0x545f72
push 0
lea eax, [ebp - 0x10]
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 0x545f50
cmp dword [ebp - 0x10], 0
je 0x545f50
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5ba988]
test byte [eax + edi + 0x28], 0x48
je 0x545f2a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x545f15
mov byte [esi], dl
jmp 0x545f26
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5ba988]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x545f72
cmp byte [ebp - 1], 0xa
jne 0x545f39
cmp esi, ebx
jne 0x545f39
mov byte [esi], 0xa
jmp 0x545f71
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00545444
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x545f72
mov byte [esi], 0xd
jmp 0x545f71
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5ba988]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x545f6f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x545f72
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x545f7b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5ba988]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x545fc1
cmp word [ebx], dx
jne 0x545fc1
or byte [eax + edi + 0x28], 4
jmp 0x545fc6
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x546129
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x546109
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x546007
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x54603d
cmp eax, edx
jae 0x54604b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x545fe2
jmp 0x546129
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x546104
cmp dword [ebp - 0x18], 0
je 0x546104
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5ba988]
test byte [eax + edi + 0x28], 0x48
je 0x5460da
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x54609e
mov word [esi], cx
jmp 0x5460d5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5ba988]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5ba988]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5ba988]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x546129
pop eax
cmp word [ebp - 4], ax
jne 0x5460ea
cmp esi, ebx
jne 0x5460ea
mov word [esi], ax
jmp 0x546126
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00545444
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x546129
push 0xd
pop eax
jmp 0x5460e5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5ba988]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x546123
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x546129
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x54e950
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x54e97d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x54e97d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x54fa16
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x58f85c
push str.FlsAlloc
push 0x1f
call fcn.0054fec9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x54fa4a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x54fa50
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x54fa94
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x58f880
push str.FlsGetValue
push 0x21
call fcn.0054fec9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x54facb
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x54fad3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x58f894
push str.FlsSetValue
push 0x22
call fcn.0054fec9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x54fb0d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]