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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d35d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44e040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 4]
mov dword [ecx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
lea ebx, [ecx + 0x24]
mov dword [ebp - 0x14], eax
lea edi, [ecx + 0x28]
mov dword [eax], 0
push 8
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.00413e0a
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00414be6
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
mov dword [eax + 0x34], esi
lea esi, [eax + 4]
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], ecx
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [eax], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 8], esi
mov dword [ebx], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmp dword [esi + 0x14], 0xf
jbe 0x40ebc0
mov eax, dword [esi]
mov dword [ebp + 8], eax
mov esi, dword [esi + 0x10]
mov eax, 2
cmp esi, 0x7fffffff
ja 0x40ec4f
test esi, esi
je 0x40ec2f
cmp esi, 0x1000
jb 0x40ebfb
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x40ec54
push eax
call fcn.00413e0a
add esp, 4
test eax, eax
je 0x40ec59
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x40ec06
push esi
call fcn.00413e0a
add esp, 4
mov edi, eax
push esi
push dword [ebp + 8]
push edi
call fcn.004168e0
mov eax, dword [ebx + 0xc]
lea ecx, [edi + esi]
mov dword [ebx + 0x38], ecx
add esp, 0xc
mov dword [eax], edi
mov eax, dword [ebx + 0x1c]
mov dword [eax], edi
mov eax, dword [ebx + 0x2c]
mov dword [eax], esi
mov eax, 3
jmp 0x40ec36
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004140e2
call fcn.004012c0
call fcn.0042780b
int3
Function at 0x412270
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov eax, ecx
xorps xmm0, xmm0
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
movlpd qword [ebp - 8], xmm0
mov ebx, 0xb
mov dword [eax + 4], edi
call fcn.00412600
mov dword [ebp - 0xc], eax
test eax, eax
je 0x412348
call fcn.00412c90
mov esi, eax
mov eax, edx
mov dword [ebp - 4], eax
test esi, esi
je 0x412382
push 0x10
call fcn.0041c2da
mov edi, eax
add esp, 4
test edi, edi
je 0x41234b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [ebp + 8]
mov dword [edi], esi
mov eax, dword [eax + 0x5c]
mov dword [esi + 0x5c], eax
lea eax, [esi + 0x58]
push eax
push 4
push edi
push 0x412ad0
push 0
push 0
mov dword [edi + 8], ecx
mov dword [esi + 0x18], 0
mov dword [esi + 0x30], 0
call fcn.004279b8
add esp, 0x18
mov dword [ebp - 0xc], eax
mov dword [esi + 8], eax
test eax, eax
je 0x41232b
push dword [esi + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
mov eax, dword [ebp - 4]
je 0x41234e
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov eax, ebx
mov dword [ecx], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
test esi, esi
je 0x412382
mov ecx, dword [esi + 8]
push eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x24]
push esi
mov dword [ebp - 0x10], ecx
call fcn.00413360
mov eax, dword [ebp - 0x10]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x412378
push eax
call esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x412382
push eax
call esi
test edi, edi
je 0x41238f
push edi
call fcn.0041c2bf
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412600
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
xor esi, esi
call fcn.00413220
test eax, eax
jne 0x412624
mov eax, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [0x1739e34]
test edi, edi
je 0x41265c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x41265c
mov esi, dword [edi + 0xc]
mov eax, esi
mov ebx, dword [edi + 0x10]
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
call fcn.00412c90
mov esi, eax
mov ebx, edx
test esi, esi
je 0x412729
or dword [esi + 0x54], 1
mov dword [esi + 0x44], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 2
push edi
mov dword [esi + 0x58], eax
lea eax, [esi + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41270d
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x4126f1
push dword [esp + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4126f1
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
test eax, eax
je 0x4126f1
mov eax, dword [esp + 0x10]
mov dword [esi + 0x5c], eax
jmp 0x4126f6
mov edi, 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edx, esi
mov dword [esi + 0x48], eax
call fcn.00412fe0
test edi, edi
je 0x412729
push ebx
push esi
mov dword [esi + 8], 0
call fcn.00413360
add esp, 8
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x18], 2
mov eax, esi
pop esi
mov edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412e20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [0x1739e48], 0
push ebx
push esi
push edi
je 0x412fc0
mov edi, dword [0x1739e34]
test edi, edi
je 0x412fc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x412fc0
push dword [edi + 0x10]
push dword [edi + 0xc]
call fcn.004134e0
lea eax, [edi + 0x20]
mov dword [esp + 0x2c], 0
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0
lea esi, [esp + 0x18]
mov dword [esp + 0x1c], 0
xchg dword [eax], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x412f04
lea ecx, [esp + 0x18]
lea eax, [esi + 4]
xchg dword [eax], ecx
or edx, 0xffffffff
lea ecx, [esi + 0xc]
xor eax, eax
lock cmpxchg dword [ecx], edx
test eax, eax
je 0x412eca
cmp eax, 0xffffffff
je 0x412eca
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
lea ecx, [esp + 0x20]
lock xadd dword [ecx], eax
test eax, eax
jne 0x412f04
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0x412f04
mov ecx, esi
lea edx, [esp + 0x20]
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x412f01
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
lea ecx, [esp + 0x18]
mov dword [edi + 0x18], 7
call fcn.00412540
lea eax, [edi + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
test eax, eax
je 0x412f7f
mov dword [esp + 0x10], edi
mov ebx, dword [eax]
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
mov dword [ebx + 0xc], edi
cmp dword [ecx + 0xc], 0
je 0x412f43
mov edi, dword [ecx + 0xc]
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov edi, dword [esp + 0x10]
mov edx, dword [ecx + 8]
test edx, edx
je 0x412f50
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
cmp dword [esi + 0x3c], ecx
jne 0x412f5b
mov eax, dword [ecx + 0xc]
mov dword [esi + 0x3c], eax
mov eax, dword [ebx + 0x18]
or ecx, 0xffffffff
add eax, 4
xchg dword [eax], ecx
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
test eax, eax
jne 0x412f25
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x44], 1
jne 0x412fc0
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
test eax, eax
je 0x412fad
mov esi, dword [eax + 8]
mov edi, dword [eax + 0x24]
push ecx
push eax
call fcn.00413360
add esp, 8
test edi, edi
je 0x412fa6
push edi
call ebx
test esi, esi
je 0x412fad
push esi
call ebx
mov eax, dword [0x1739e34]
test eax, eax
je 0x412fc0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413220
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x1739e48], 0
push esi
jne 0x413359
xorps xmm0, xmm0
mov dword [0x44eb78], 1
push 0x10
push 1
mov dword [0x44eb74], 1
mov dword [0x1739e34], 0
mov dword [0x1739e50], 0
mov dword [0x1739e38], 0
movlpd qword [0x1739e40], xmm0
mov dword [0x1739e4c], 0
mov dword [0x1739e30], 0
call fcn.00419913
mov esi, eax
add esp, 8
test esi, esi
jne 0x4132ab
mov dword [0x1739e34], esi
call fcn.00413740
mov dword [0x1739e48], 1
lea eax, [esi + 1]
pop esi
ret
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4132e1
push esi
call fcn.0041c2bf
add esp, 4
mov dword [0x1739e34], 0
call fcn.00413740
mov dword [0x1739e48], 1
mov eax, 1
pop esi
ret
push 0x10
push 1
mov dword [0x1739e34], esi
call fcn.00419913
mov esi, eax
add esp, 8
test esi, esi
jne 0x413313
mov dword [0x1739e50], esi
call fcn.00413740
mov dword [0x1739e48], 1
lea eax, [esi + 1]
pop esi
ret
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x413349
push esi
call fcn.0041c2bf
add esp, 4
mov dword [0x1739e50], 0
call fcn.00413740
mov dword [0x1739e48], 1
mov eax, 1
pop esi
ret
mov dword [0x1739e50], esi
mov dword [0x1739e48], 1
mov eax, 1
pop esi
ret

Function at 0x413450
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x1739e34]
test edi, edi
je 0x413496
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x413496
test byte [edi + 0x54], 1
mov dword [edi + 0x18], 6
je 0x4134a5
call fcn.00412e20
push 0xffffffffffffffff
call fcn.00427a3b
add esp, 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 2
push eax
push 3
push 0
push 0xebaddeed
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x414571
Capabilities:
Parse pe header

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

Function at 0x414f11
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0042a72c
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x414f50
sub eax, 1
je 0x414f4b
sub eax, 1
je 0x414f47
xor eax, eax
leave
ret
push 3
jmp 0x414f52
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x4240a9
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4240ec
call fcn.004248be
mov dword [eax], 0xf
call fcn.004248d1
mov dword [eax], 0xd
call fcn.004277fb
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413b45
leave
ret
test eax, eax
jne 0x4240f3
inc eax
jmp 0x4240e0
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4240de
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4240e0

Function at 0x42cf4c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4421e4
push 0x4421dc
push str.FlsAlloc
push 0x1f
call fcn.0042cd77
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42cf80
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e274]
call esi
jmp 0x42cf86
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42cfca
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4421f4
push 0x4421ec
push str.FlsGetValue
push 0x21
call fcn.0042cd77
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d001
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e274]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42d009
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4421fc
push 0x4421f4
push str.FlsSetValue
push 0x22
call fcn.0042cd77
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d043
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43e274]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43016f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043cca0
mov eax, dword [0x44e040]
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.0042c127
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4301b1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43030d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043caf0
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 + 0x44f958]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042fd87
mov ecx, dword [esi*4 + 0x44f958]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x430306
cmp eax, dword [ecx + edi + 0x24]
jne 0x430306
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430306
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042fd87
add esp, 0x14
test edx, edx
jl 0x430306
jg 0x43027c
test eax, eax
jb 0x430306
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x430306
jl 0x430296
cmp dword [ebp - 0x1008], eax
ja 0x430306
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4302b4
test ebx, ebx
je 0x4302ed
cmp ecx, edi
jae 0x4302ed
mov al, byte [ecx]
cmp al, 0xd
jne 0x4302ce
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4302da
cmp byte [ecx + 1], 0xa
jne 0x4302da
inc ecx
jmp 0x4302da
movzx eax, al
movsx eax, byte [eax + 0x44e4b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4302b4
cmp edx, ebx
jne 0x4302b4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43030b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00413b45
leave
ret
Function at 0x431537
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 + 0x44f958]
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 0x431577
cmp byte [ebx], 0xa
jne 0x431577
or byte [edi + eax + 0x28], 4
jmp 0x43157c
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 0x43167b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43165e
inc eax
cmp dl, 0xd
je 0x4315a8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4315ce
cmp eax, ecx
jae 0x4315dc
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 0x431590
jmp 0x43167b
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 0x431659
cmp dword [ebp - 0x10], 0
je 0x431659
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x44f958]
test byte [eax + edi + 0x28], 0x48
je 0x431633
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43161e
mov byte [esi], dl
jmp 0x43162f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x44f958]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43167b
cmp byte [ebp - 1], 0xa
jne 0x431642
cmp esi, ebx
jne 0x431642
mov byte [esi], 0xa
jmp 0x43167a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042fda5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43167b
mov byte [esi], 0xd
jmp 0x43167a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x44f958]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x431678
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43167b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x431684
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 + 0x44f958]
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 0x4316ca
cmp word [ebx], dx
jne 0x4316ca
or byte [eax + edi + 0x28], 4
jmp 0x4316cf
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 0x431832
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 0x431812
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x431710
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x431746
cmp eax, edx
jae 0x431754
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 0x4316eb
jmp 0x431832
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 0x43180d
cmp dword [ebp - 0x18], 0
je 0x43180d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x44f958]
test byte [eax + edi + 0x28], 0x48
je 0x4317e3
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 0x4317a7
mov word [esi], cx
jmp 0x4317de
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x44f958]
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 + 0x44f958]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x44f958]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x431832
pop eax
cmp word [ebp - 4], ax
jne 0x4317f3
cmp esi, ebx
jne 0x4317f3
mov word [esi], ax
jmp 0x43182f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042fda5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x431832
push 0xd
pop eax
jmp 0x4317ee
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x44f958]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43182c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x431832
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret