joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418bb8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x418bfb
call fcn.0041de8f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x418bfb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x418c16
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00418772
test ebx, ebx
mov esi, eax
je 0x418c14
test edi, edi
je 0x418c14
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x419c18
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x45e5e0]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x419cb6
push 0x44bce4
push 4
push eax
call fcn.00430dc3
push eax
call fcn.004024b0
add esp, 0x10
push ebx
push edi
call fcn.00430d5d
mov edi, dword [eax]
call fcn.00430d5d
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0042e9db
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.00430d5d
cmp dword [eax], ebx
je 0x419ccd
call fcn.00430d5d
push dword [eax]
call fcn.00413917
pop ecx
jmp 0x419cd4
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x419c67
jmp 0x419d46
call fcn.00430d5d
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x419d42
cmp dword [ebp - 0x40], esi
jae 0x419d42
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00430450
add esp, 0xc
push 0x44ba44
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x419d34
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x419d34
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x419d34
push ebx
push ebx
push esi
jmp 0x419d3a
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x419d44
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.0042e014
add ebp, 0x1f4
leave
ret
Function at 0x41b059
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41b09f
call fcn.0041de8f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41b09f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41b0e2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41b0cb
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41b0cb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41b0df
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41d1d7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x44694e
call fcn.0043098d
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0041de8f
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41d222
call fcn.0041de8f
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41d233
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41d240
or eax, 0xffffffff
jmp 0x41d39c
mov ecx, esi
call fcn.0041ccfc
mov dword [ebp - 0x14], eax
call fcn.00416078
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41d2be
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41d2be
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41d2be
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00414c07
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41d2be
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41d2be
mov ecx, ebx
call fcn.0041259c
test eax, eax
je 0x41d2be
push 0
mov ecx, ebx
call fcn.004125b7
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00417a79
push dword [ebp - 0x14]
call fcn.00415fd0
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041cfdf
xor edi, edi
cmp eax, edi
je 0x41d31b
test byte [esi + 0x3c], 0x10
je 0x41d305
push 4
pop edi
mov ecx, esi
call fcn.00412459
test ax, 0x100
je 0x41d2fb
push 5
pop edi
push edi
mov ecx, esi
call fcn.00415b41
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41d31b
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004127a3
or dword [ebp - 4], 0xffffffff
jmp 0x41d346
cmp dword [ebp - 0x28], edi
je 0x41d354
push 1
mov ecx, ebx
call fcn.004125b7
cmp dword [ebp - 0x2c], edi
je 0x41d364
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41d37d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41d37d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041cd36
cmp dword [esi + 0x58], edi
je 0x41d399
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00430a32
ret
Function at 0x41f2f1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41f31f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41f33d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041f25b
jmp 0x41f33d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41f33d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041f25b
test edi, edi
mov eax, edi
jne 0x41f327
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x461bac]
test ecx, ecx
je 0x41f400
jmp 0x41f2f0
ret 8

Function at 0x42e014
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45e5e0]
jne 0x42e01e
repz ret
jmp fcn.00433a30

Function at 0x432841
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x45e760]
je 0x43285c
inc edi
cmp edi, 0x17
jb 0x43284d
cmp edi, 0x17
jae 0x4329dc
push ebp
push 3
call fcn.0043b15b
cmp eax, 1
pop ecx
je 0x4329a8
push 3
call fcn.0043b15b
test eax, eax
pop ecx
jne 0x432890
cmp dword [0x45e5b4], 1
je 0x4329a8
cmp ebx, 0xfc
je 0x4329db
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x461cb8
push ebp
call fcn.0043573d
add esp, 0xc
test eax, eax
je 0x4328c6
push esi
push esi
push esi
push esi
push esi
call fcn.0042e4ad
add esp, 0x14
push 0x104
mov esi, 0x461cd1
push esi
push 0
mov byte [0x461dd5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43290a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043573d
add esp, 0xc
test eax, eax
je 0x43290a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042e4ad
add esp, 0x14
push esi
call fcn.004357b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43294f
push esi
call fcn.004357b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x461fcc
push 0x44e1e4
sub ecx, eax
push ecx
push eax
call fcn.0043b0a8
add esp, 0x14
test eax, eax
je 0x43294f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042e4ad
add esp, 0x14
jmp 0x432951
xor esi, esi
push 0x44e1e0
push ebx
push ebp
call fcn.0043b037
add esp, 0xc
test eax, eax
je 0x432971
push esi
push esi
push esi
push esi
push esi
call fcn.0042e4ad
add esp, 0x14
push dword [edi*8 + 0x45e764]
push ebx
push ebp
call fcn.0043b037
add esp, 0xc
test eax, eax
je 0x432993
push esi
push esi
push esi
push esi
push esi
call fcn.0042e4ad
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043ae7a
add esp, 0xc
jmp 0x4329db
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4329db
cmp ebp, 0xffffffff
je 0x4329db
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x45e764]
push dword [esi]
call fcn.004357b0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43ae7a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00433405
xor ebx, ebx
cmp dword [0x4627b0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43af50
push 0x44e440
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43b030
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44e434
push edi
call esi
cmp eax, ebx
je 0x43b030
push eax
call fcn.00433397
mov dword [esp], 0x44e424
push edi
mov dword [0x4627b0], eax
call esi
push eax
call fcn.00433397
mov dword [esp], 0x44e410
push edi
mov dword [0x4627b4], eax
call esi
push eax
call fcn.00433397
mov dword [0x4627b8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042eaa3
test eax, eax
pop ecx
pop ecx
je 0x43af1e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042e4ad
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43af50
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00433397
cmp eax, ebx
pop ecx
mov dword [0x4627c0], eax
je 0x43af50
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00433397
pop ecx
mov dword [0x4627bc], eax
mov eax, dword [0x4627bc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43afd5
cmp dword [0x4627c0], ecx
je 0x43afd5
push eax
call fcn.0043340e
push dword [0x4627c0]
mov esi, eax
call fcn.0043340e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43afd5
cmp edi, ebx
je 0x43afd5
call esi
cmp eax, ebx
je 0x43afa2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43afa2
test byte [ebp - 0x18], 1
jne 0x43afd5
lea eax, [ebp - 0x10]
push eax
call fcn.0042eada
test eax, eax
pop ecx
je 0x43afbd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042e4ad
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43afcc
or dword [ebp + 0x10], 0x200000
jmp 0x43b010
or dword [ebp + 0x10], 0x40000
jmp 0x43b010
mov eax, dword [0x4627b4]
cmp eax, dword [ebp - 8]
je 0x43b010
push eax
call fcn.0043340e
cmp eax, ebx
pop ecx
je 0x43b010
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43b010
mov eax, dword [0x4627b8]
cmp eax, dword [ebp - 8]
je 0x43b010
push eax
call fcn.0043340e
cmp eax, ebx
pop ecx
je 0x43b010
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4627b0]
call fcn.0043340e
cmp eax, ebx
pop ecx
je 0x43b030
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43b032
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x443b10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447770
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x45e5e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp byte [0x462828], 0
je 0x443c72
xor edi, edi
push edi
push 0x450da0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], di
call fcn.004044c0
mov eax, dword [ebp + 8]
cmp eax, edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
je 0x443c0e
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.0042e48b
add esp, 8
lea edx, [ebp - 0x34]
add eax, 1
push edx
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], edi
call fcn.00443a40
mov esi, dword [ebp - 0x40]
cmp esi, edi
mov ebx, dword [ebp - 0x3c]
mov byte [ebp - 4], 2
je 0x443bb3
mov eax, ebx
sub eax, esi
sar eax, 1
mov edi, eax
jne 0x443bb8
call fcn.0042e5cd
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push edi
push esi
call fcn.00444d9c
add esp, 0x10
test eax, eax
jle 0x443bfb
test esi, esi
je 0x443bd8
sub ebx, esi
sar ebx, 1
jne 0x443bdd
call fcn.0042e5cd
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x443be2
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.004044c0
test esi, esi
mov byte [ebp - 4], 1
je 0x443c0c
push esi
call fcn.00411d3b
add esp, 4
xor edi, edi
push 1
push 0x44ced0
lea ecx, [ebp - 0x30]
call fcn.00403e60
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x443c30
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x462829], 0
je 0x443c61
cmp dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x2c]
jae 0x443c4b
lea eax, [ebp - 0x2c]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.00403b70
call fcn.00443820
add esp, 0x1c
cmp dword [ebp - 0x18], esi
jb 0x443c72
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00411d3b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042e014
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
Function at 0x44479a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45e5e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0044472f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00430450
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4447e9
cmp dword [ebp - 0x1c], 5
jb 0x444801
jmp 0x4447fd
cmp dword [ebp - 0x10], 1
jne 0x444801
cmp dword [ebp - 0x1c], 4
ja 0x4447fd
jne 0x444801
cmp dword [ebp - 0x18], 0
jbe 0x444801
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x450228
call fcn.00444603
test eax, eax
jge 0x444822
mov byte [0x462994], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042e014
add ebp, 0x78
leave
ret
Function at 0x41c3a7
Capabilities:
Read file on windows

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

Function at 0x41c3b2
Capabilities:
Read file on windows

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

Function at 0x41c7ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b950
mov eax, dword [0x435100]
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.0041a30f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c7ee
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c94a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427050
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 + 0x466c50]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041d97c
mov ecx, dword [esi*4 + 0x466c50]
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 0x41c943
cmp eax, dword [edi + ecx + 0x24]
jne 0x41c943
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 0x41c943
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d97c
add esp, 0x14
test edx, edx
jl 0x41c943
jg 0x41c8b9
test eax, eax
jb 0x41c943
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c943
jl 0x41c8d3
cmp dword [ebp - 0x1008], eax
ja 0x41c943
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c8f1
test ebx, ebx
je 0x41c92a
cmp ecx, edi
jae 0x41c92a
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c90b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c917
cmp byte [ecx + 1], 0xa
jne 0x41c917
inc ecx
jmp 0x41c917
movzx eax, al
movsx eax, byte [eax + 0x4353d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c8f1
cmp edx, ebx
jne 0x41c8f1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c948
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040aa09
leave
ret
Function at 0x41ce1a
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 + 0x466c50]
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 0x41ce5a
cmp byte [ebx], 0xa
jne 0x41ce5a
or byte [eax + edi + 0x28], 4
jmp 0x41ce5f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41cf5d
mov al, byte [edx]
cmp al, 0x1a
je 0x41cf3f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ce8e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ceb3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41cebd
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 0x41ce70
jmp 0x41cf5d
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 0x41cf3a
cmp dword [ebp - 0xc], 0
je 0x41cf3a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x466c50]
test byte [eax + edi + 0x28], 0x48
je 0x41cf14
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ceff
mov byte [esi], dl
jmp 0x41cf10
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x466c50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41cf5d
cmp byte [ebp - 1], 0xa
jne 0x41cf23
cmp esi, ebx
jne 0x41cf23
mov byte [esi], 0xa
jmp 0x41cf5c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d99a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41cf5d
mov byte [esi], 0xd
jmp 0x41cf5c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x466c50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cf59
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cf5d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41cf66
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 + 0x466c50]
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 0x41cfa9
cmp word [esi], dx
jne 0x41cfa9
or byte [edi + eax + 0x28], 4
jmp 0x41cfae
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 0x41d101
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 0x41d0e1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41cff0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d026
cmp eax, edx
jae 0x41d032
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 0x41cfc8
jmp 0x41d101
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 0x41d0dd
cmp dword [ebp - 0x14], 0
je 0x41d0dd
mov eax, dword [ebx*4 + 0x466c50]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d0b5
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d07e
mov word [esi], cx
jmp 0x41d0b1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x466c50]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x466c50]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x466c50]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d101
pop ebx
cmp word [ebp - 4], bx
jne 0x41d0c6
cmp esi, dword [ebp + 0xc]
jne 0x41d0c6
mov word [esi], bx
jmp 0x41d0fe
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d99a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d101
push 0xd
jmp 0x41d0fa
mov ecx, dword [ebx*4 + 0x466c50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d0f8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d101
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