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

Disassembly:
push 0xffffffffffffffff
push 0x44ebb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.0044f7ca
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.0044f7ca
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call fcn.0044f7ca
mov ebx, 3
lea eax, [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.0044f80c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 4
call fcn.0044f806
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call fcn.0044f7be
lea ecx, [esp + 0x10]
push 0x45f420
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0044f824
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 5
call fcn.0044f806
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call fcn.0044f7be
lea eax, [esp + 8]
push 0x45f310
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0044f824
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 6
call fcn.0044f806
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call fcn.0044f7be
push 0x462f40
lea ecx, [esp + 0x10]
call fcn.0044f83c
mov edx, dword [esp + 8]
push 0
push edx
call dword [0x4531c8]
mov esi, eax
test esi, esi
je 0x442a69
mov eax, dword [esp + 8]
push 2
push eax
call dword [0x4531cc]
mov ecx, dword [esp + 8]
mov edx, dword [0x462f44]
push ecx
push edx
call fcn.0044e670
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
mov eax, dword [0x462f3c]
push eax
push ecx
jne 0x442af3
call fcn.0044e670
add esp, 8
test esi, esi
je 0x442aa3
mov edx, dword [esp + 8]
push edx
call dword [0x4531b0]
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call fcn.0044f7be
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.0044f7be
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.0044f7be
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0044f7be
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
call fcn.0044e670
add esp, 8
test esi, esi
je 0x442b0a
mov edx, dword [esp + 8]
push edx
call dword [0x4531b0]
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call fcn.0044f7be
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.0044f7be
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.0044f7be
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0044f7be
mov ecx, dword [esp + 0x18]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x449470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44f848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
mov edx, dword [esi + 0x9c]
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
push ebx
push 0x1007
push edx
mov dword [esp + 0x4c], 2
mov dword [esp + 0x1c], 9
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], eax
call dword [0x453860]
mov eax, dword [esp + 0x48]
add esi, 0x7c
push eax
push 1
push edi
mov ecx, esi
call fcn.0044f9f8
mov ecx, dword [esp + 0x4c]
push ecx
push 2
push edi
mov ecx, esi
call fcn.0044f9f8
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 1
call fcn.0044f7be
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], bl
call fcn.0044f7be
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0044f7be
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 0x10
Function at 0x44b580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44fd20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.0044f7ca
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
call fcn.0044f7ca
push 0x45f2b0
lea eax, [esp + 0x14]
mov ebx, 1
push 0x462f44
push eax
mov byte [esp + 0x30], bl
call fcn.0044f824
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.0044f806
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.0044f7be
mov ecx, dword [esp + 0xc]
push 0x80
push ecx
call dword [0x4531cc]
mov edx, dword [esp + 0xc]
push edx
call dword [0x4531c0]
test eax, eax
jne 0x44b63f
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], al
call fcn.0044f7be
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.0044f7be
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x20
ret
push 0x45f2c0
lea ecx, [esp + 0xc]
call fcn.0044f81e
lea eax, [esp + 8]
push 0x462f44
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0044f8d2
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call fcn.0044f806
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.0044f7be
mov edx, dword [esp + 8]
push 0
push edx
call dword [0x4531bc]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x45fa0c
call fcn.0044f7fa
push ecx
mov byte [esp + 0x2c], 4
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x462f44
call fcn.0044f7ee
mov byte [esp + 0x2c], bl
call fcn.0044e150
add esp, 4
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x45fa0c
call fcn.0044f7fa
push ecx
mov byte [esp + 0x2c], 5
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x462f44
call fcn.0044f7ee
mov ecx, esi
mov byte [esp + 0x2c], bl
call fcn.0044a260
lea ecx, [esi + 0x78]
call fcn.0044f830
lea ecx, [esi + 0xbc]
call fcn.0044f830
push 0
mov ecx, esi
mov dword [esi + 0x60], 0
call fcn.0044f8a8
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.0044f7be
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.0044f7be
mov ecx, dword [esp + 0x1c]
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret

Function at 0x44cdc0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x401f45
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x405100
cmp edx, dword [eax]
je 0x401f67
add eax, 8
inc ecx
cmp eax, 0x405190
jl 0x401f58
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x405100]
jne 0x402095
mov eax, dword [0x4054b8]
cmp eax, 1
je 0x40206f
test eax, eax
jne 0x401f98
cmp dword [0x405054], 1
je 0x40206f
cmp edx, 0xfc
je 0x402095
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401fcf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004024f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402660
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402012
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402660
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x404388
push edi
call fcn.004032f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004024f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402500
lea eax, [ebp - 0xa0]
push 0x404368
push eax
call fcn.00402500
push dword [esi + 0x405104]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402500
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040325e
add esp, 0x2c
pop edi
jmp 0x402095
lea eax, [ebp + 8]
lea esi, [esi + 0x405104]
push 0
push eax
push dword [esi]
call fcn.00402660
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]
pop esi
leave
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x401426
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
xor eax, eax
mov edi, eax
mov dword [ebp - 0x4c], 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], 3
mov dword [0x4041b0], eax
mov eax, edi
mov dword [ebp - 0x44], 0x40132e
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Hall
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x4014f0
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0
push str.moossi
push str.Hall
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x4041b8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4041b8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x4014f0
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x4014d5
mov esp, ebp
pop ebp
ret 0x10
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 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
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
nop
nop
nop
jl 0x432fd9
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402f10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x438010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], 0x6b
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea esi, [ebp - 4]
mov dword [ebp - 0xc], 0x6b
sub esi, edi
mov dword [ebp - 8], 0x6b
mov eax, esi
mov dword [ebp - 0x18], esi
sar eax, 2
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x402fc8
cmp eax, 0x3fffffff
ja 0x403073
lea esi, [eax*4]
cmp esi, 0x1000
jb 0x402f99
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x403078
push eax
call fcn.0040b4b3
add esp, 4
test eax, eax
je 0x40307d
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x402fac
test esi, esi
je 0x402faa
push esi
call fcn.0040b4b3
add esp, 4
mov ebx, eax
jmp 0x402fac
xor ebx, ebx
push dword [ebp - 0x18]
lea eax, [esi + ebx]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0040c510
mov eax, dword [ebp - 0x1c]
add esp, 0xc
lea edi, [ebx + eax*4]
mov esi, ebx
cmp ebx, edi
je 0x402fde
nop
push dword [esi]
call fcn.00403090
add esi, 4
cmp esi, edi
jne 0x402fd0
mov eax, 0x21
cmp eax, 0x1c5
jl 0x402fec
call 0x7444a526
add ch, cl
scasb al, byte es:[edi]
jne 0x402ff2
je 0x402ff2
jmp 0x3dcb94a3
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4a9ad4], eax
add eax, 0x13
jne 0x403012
call 0xf29a1883
invalid
call 0x402270
mov eax, 0x13
cmp eax, 0x1a5
jl 0x403025
jmp 0x7444a5c6
jne 0x40302b
je 0x40302b
call 0xfb711910
invalid
call 0x402b60
test ebx, ebx
je 0x403060
mov ecx, dword [ebp - 0x14]
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x403056
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x40307d
mov ebx, edx
push ecx
push ebx
call fcn.0040b4e3
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b4a0
mov esp, ebp
pop ebp
ret
call fcn.00407e20
call fcn.004012f0
call fcn.004127bd
int3
Function at 0x41cb8b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c82d

Function at 0x41cb96
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c9bc

Function at 0x41cf90
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c010
mov eax, dword [0x438010]
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.0041a5c5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41cfd2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d12e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428a60
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 + 0x4a97a8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041e160
mov ecx, dword [esi*4 + 0x4a97a8]
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 0x41d127
cmp eax, dword [edi + ecx + 0x24]
jne 0x41d127
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 0x41d127
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041e160
add esp, 0x14
test edx, edx
jl 0x41d127
jg 0x41d09d
test eax, eax
jb 0x41d127
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41d127
jl 0x41d0b7
cmp dword [ebp - 0x1008], eax
ja 0x41d127
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41d0d5
test ebx, ebx
je 0x41d10e
cmp ecx, edi
jae 0x41d10e
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d0ef
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d0fb
cmp byte [ecx + 1], 0xa
jne 0x41d0fb
inc ecx
jmp 0x41d0fb
movzx eax, al
movsx eax, byte [eax + 0x4382a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d0d5
cmp edx, ebx
jne 0x41d0d5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41d12c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b4a0
leave
ret
Function at 0x41d5fe
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 + 0x4a97a8]
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 0x41d63e
cmp byte [ebx], 0xa
jne 0x41d63e
or byte [eax + edi + 0x28], 4
jmp 0x41d643
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d741
mov al, byte [edx]
cmp al, 0x1a
je 0x41d723
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41d672
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41d697
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41d6a1
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 0x41d654
jmp 0x41d741
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 0x41d71e
cmp dword [ebp - 0xc], 0
je 0x41d71e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4a97a8]
test byte [eax + edi + 0x28], 0x48
je 0x41d6f8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d6e3
mov byte [esi], dl
jmp 0x41d6f4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4a97a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d741
cmp byte [ebp - 1], 0xa
jne 0x41d707
cmp esi, ebx
jne 0x41d707
mov byte [esi], 0xa
jmp 0x41d740
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041e17e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d741
mov byte [esi], 0xd
jmp 0x41d740
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4a97a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d73d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d741
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d74a
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 + 0x4a97a8]
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 0x41d78d
cmp word [esi], dx
jne 0x41d78d
or byte [edi + eax + 0x28], 4
jmp 0x41d792
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 0x41d8e5
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 0x41d8c5
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d7d4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d80a
cmp eax, edx
jae 0x41d816
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 0x41d7ac
jmp 0x41d8e5
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 0x41d8c1
cmp dword [ebp - 0x14], 0
je 0x41d8c1
mov eax, dword [ebx*4 + 0x4a97a8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d899
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d862
mov word [esi], cx
jmp 0x41d895
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4a97a8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4a97a8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4a97a8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d8e5
pop ebx
cmp word [ebp - 4], bx
jne 0x41d8aa
cmp esi, dword [ebp + 0xc]
jne 0x41d8aa
mov word [esi], bx
jmp 0x41d8e2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041e17e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d8e5
push 0xd
jmp 0x41d8de
mov ecx, dword [ebx*4 + 0x4a97a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d8dc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d8e5
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