joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404fdc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00403f68
mov eax, dword [ebp - 8]
call fcn.00403a3c
xor eax, eax
push ebp
push 0x405083
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00403d24
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40505e
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00403904
push eax
lea eax, [ebp - 8]
call fcn.00403a9c
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0xc], 0
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40508a
lea eax, [ebp - 8]
call fcn.00403658
lea eax, [ebp - 4]
call fcn.00403b78
ret

Function at 0x4051e4
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push 0xffffffffffffffff
push 0x26
lea eax, [esp + 8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00403cf8
add esp, 0x20c
pop ebx
ret

Function at 0x405214
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00403cf8
add esp, 0x20c
pop ebx
ret

Function at 0x405240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00403a3c
mov eax, dword [ebp - 8]
call fcn.00403a3c
xor eax, eax
push ebp
push 0x405300
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x405314
call fcn.00403bb4
mov dword [ebp - 0x10], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00403a4c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4052dc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403a4c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4052dc
mov eax, ebx
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.00403ce0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405307
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040367c
ret
Function at 0x405384
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x405471
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x405488
call fcn.00403bb4
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.00405320
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x405452
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00403d24
mov esi, eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x405452
mov eax, dword [ebp - 0x14]
dec eax
sub eax, 2
jae 0x405452
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00403f20
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x405452
mov eax, dword [ebp - 0x10]
call fcn.00403d24
call fcn.00405370
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00403f20
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00403bb4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405478
lea eax, [ebp - 0x10]
call fcn.00403b78
ret

Function at 0x405494
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
mov bl, 1
lea eax, [ebp - 0xc]
push eax
push 2
push 0
mov eax, dword [ebp - 4]
call fcn.00405320
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x405500
mov eax, esi
call fcn.00403d34
add eax, eax
push eax
mov eax, esi
call fcn.00403d24
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00403d24
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExW
mov esi, eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
test esi, esi
je 0x405502
xor ebx, ebx
jmp 0x405502
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405558
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a3c
xor eax, eax
push ebp
push 0x4056a3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x4056b4
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
jne 0x4055e5
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00402bc0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov eax, 0x4056c4
mov dword [ebp - 0x34], eax
mov eax, 0x4056cc
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExA
push 0xc8
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_WaitForInputIdle
push 0
push 0x4056b4
call sub.user32.dll_FindWindowA
mov esi, eax
push 1
push esi
call sub.user32.dll_ShowWindow
push 0
push 0x4056d8
push 0
push esi
call sub.user32.dll_FindWindowExA
mov esi, eax
push esi
call sub.user32.dll_SetForegroundWindow
mov ebx, 0x1e
push 0
push 0x25
push pe_nt_image_headers32
push esi
call sub.user32.dll_SendMessageA
dec ebx
test ebx, ebx
jne 0x405609
push 0x1f4
call sub.kernel32.dll_Sleep
push 0
push 0x27
push pe_nt_image_headers32
push esi
call sub.user32.dll_SendMessageA
push 0x1f4
call sub.kernel32.dll_Sleep
mov ebx, 1
mov eax, dword [ebp - 4]
call fcn.00403904
mov edi, eax
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx - 1]
cmp al, 0x5c
jne 0x405675
push 0
push 0x27
push pe_nt_image_headers32
push esi
call sub.user32.dll_SendMessageA
push 0x1f4
call sub.kernel32.dll_Sleep
jmp 0x405688
push 0
and eax, 0xff
push eax
push 0x102
push esi
call sub.user32.dll_SendMessageA
inc ebx
cmp edi, ebx
jne 0x40564f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4056aa
lea eax, [ebp - 4]
call fcn.00403658
ret

Function at 0x4057b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a3c
xor eax, eax
push ebp
push 0x40585f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403658
push 0x405870
lea eax, [ebp - 4]
call fcn.00403a9c
push eax
mov eax, dword [0x40a650]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
mov eax, dword [0x40a650]
push eax
call sub.kernel32.dll_SizeofResource
mov edi, eax
push ebx
mov eax, dword [0x40a650]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405849
mov eax, esi
mov edx, edi
call fcn.00403ae4
mov eax, esi
call fcn.00403a9c
mov ecx, edi
mov edx, dword [ebp - 8]
call fcn.00404798
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405866
lea eax, [ebp - 4]
call fcn.00403658
ret
Function at 0x405f20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00403f68
xor eax, eax
push ebp
push 0x405f9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40a684]
xor edx, edx
call fcn.00403e50
jne 0x405f68
push 9
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403d24
push eax
push 0x405fac
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x405f89
push 9
push 0
mov eax, dword [ebp - 4]
call fcn.00403d24
push eax
mov eax, dword [0x40a684]
call fcn.00403d24
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fa6
lea eax, [ebp - 4]
call fcn.00403b78
ret
Function at 0x4069a8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4069b0
push ecx
xor eax, eax
push ebp
push 0x406ab0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00405214
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x406ac0
call fcn.00403da0
lea edx, [ebp - 0x18]
mov eax, 0x406ae8
call fcn.004057b8
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.00403d14
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00405910
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.004038f0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00404fdc
test al, al
je 0x406a33
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, 0x406af4
call fcn.00403da0
mov eax, dword [ebp - 0x1c]
call fcn.00404e70
push 0x32
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004041b8
mov eax, dword [ebp - 0x20]
call fcn.00403d24
push eax
call sub.kernel32.dll_DeleteFileW
call fcn.00406878
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ab7
lea eax, [ebp - 0x24]
call fcn.00403658
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00403b90
lea eax, [ebp - 0x18]
call fcn.00403658
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403b90
lea eax, [ebp - 0xc]
call fcn.00403658
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b90
ret

Function at 0x4070dc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4070e4
push ecx
xor eax, eax
push ebp
push 0x40720e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00405214
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x407220
call fcn.00403da0
lea eax, [ebp - 0x10]
mov edx, dword [0x40a688]
call fcn.00403d14
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x1c]
mov eax, 0x407240
call fcn.004057b8
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.00403d14
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00405910
mov edx, dword [ebp - 0x14]
pop eax
call fcn.00403d40
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.004038f0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00404fdc
test al, al
je 0x4071bc
push 0
push 0x40724c
push dword [ebp - 4]
push 0x40726c
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.00402b04
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.00403d14
push dword [ebp - 0x28]
push 0x40728c
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00403e08
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00404e24
mov eax, dword [ebp - 0x20]
call fcn.00403a4c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407215
lea eax, [ebp - 0x2c]
call fcn.00403658
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00403b90
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0040367c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403b90
lea eax, [ebp - 0xc]
call fcn.00403658
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b90
ret
Function at 0x407560
Capabilities:
Print debug messages

Disassembly:
push ebx
push ecx
mov eax, 0x4076c8
call fcn.00405b44
test al, al
je 0x40759e
push 0
push 0
lea eax, [esp + 8]
push eax
mov ecx, fcn.00406580
xor edx, edx
xor eax, eax
call fcn.00403614
push eax
call sub.kernel32.dll_CloseHandle
push 0x1f4
call sub.kernel32.dll_Sleep
push 0
call sub.kernel32.dll_ExitProcess_1
mov eax, 0x4076e0
call fcn.00405b44
test al, al
je 0x4075b3
mov byte [0x40a670], 0
call fcn.00407290
mov eax, 0x4076f4
call fcn.00405b44
test al, al
je 0x4075f2
push 0
push 0
lea eax, [esp + 8]
push eax
mov ecx, 0x406c88
xor edx, edx
xor eax, eax
call fcn.00403614
push eax
call sub.kernel32.dll_CloseHandle
push 0x407700
call sub.kernel32.dll_OutputDebugStringA
jmp 0x4076a8
mov eax, 0x40771c
call fcn.00405b44
test al, al
je 0x40761d
push 0
push 0
lea eax, [esp + 8]
push eax
mov ecx, fcn.00406e04
xor edx, edx
xor eax, eax
call fcn.00403614
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0x407730
call fcn.00405b44
test al, al
jne 0x407630
call fcn.00406b14
mov eax, 0x407740
call fcn.00405b44
test al, al
jne 0x407643
call fcn.004069a8
mov edx, 1
xor eax, eax
call fcn.00405fb8
mov ebx, eax
mov edx, 2
xor eax, eax
call fcn.00405fb8
or ebx, eax
mov edx, 3
xor eax, eax
call fcn.00405fb8
or ebx, eax
mov edx, 4
xor eax, eax
call fcn.00405fb8
or ebx, eax
mov eax, ebx
cmp eax, 1
jne 0x40768e
push 0x407748
call sub.kernel32.dll_OutputDebugStringA
jmp 0x4076a8
test eax, eax
jne 0x40769e
push 0x407758
call sub.kernel32.dll_OutputDebugStringA
jmp 0x4076a8
push 0x40776c
call sub.kernel32.dll_OutputDebugStringA
mov eax, 0x407788
call fcn.00405b44
test al, al
je 0x4076bb
call fcn.004070dc
pop edx
pop ebx
ret
Function at 0x4086d4
Capabilities:
Get session integrity level

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov eax, 0x40868c
call fcn.004044d4
xor eax, eax
push ebp
push 0x408819
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x408828
push 0xffffffffffffffff
push 0
call fcn.004045d8
mov ebx, eax
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4087d9
test ebx, ebx
je 0x4087d9
mov eax, 0x408840
call fcn.00405b44
test al, al
je 0x40874f
push 0x40040
push 0x408848
mov eax, dword [0x4090bc]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
push 0
call sub.kernel32.dll_ExitProcess_1
push 0x408854
mov ecx, 0x40885c
mov edx, 0x408870
mov eax, 0x80000001
call fcn.00405494
call fcn.00404dec
call fcn.00405bd8
call fcn.00407328
call fcn.004056e8
lea edx, [ebp - 0x1c]
mov eax, 0x4088d8
call fcn.004057b8
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.00403d14
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00405910
mov edx, dword [ebp - 0x14]
mov eax, 0x40a688
call fcn.004038f0
mov eax, 0x4088e8
call fcn.00405b44
test al, al
je 0x4087c1
call fcn.00407560
jmp 0x4087ec
push 0
push 0x407c04
push 0
push 0x65
push dword [0x40a650]
call sub.user32.dll_DialogBoxParamA
jmp 0x4087ec
push 0x40010
push 0
push 0x4088f0
push 0
call sub.user32.dll_MessageBoxA_1
test ebx, ebx
je 0x4087f6
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408820
lea eax, [ebp - 0x1c]
call fcn.00403658
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403b90
ret
Function at 0x4173a4
Capabilities:
Read file on windows

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

Function at 0x41779e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408760
mov eax, dword [0x433010]
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.004159a1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4177e0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41793c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423a80
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 + 0x457a98]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418795
mov ecx, dword [esi*4 + 0x457a98]
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 0x417935
cmp eax, dword [edi + ecx + 0x24]
jne 0x417935
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 0x417935
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418795
add esp, 0x14
test edx, edx
jl 0x417935
jg 0x4178ab
test eax, eax
jb 0x417935
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x417935
jl 0x4178c5
cmp dword [ebp - 0x1008], eax
ja 0x417935
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4178e3
test ebx, ebx
je 0x41791c
cmp ecx, edi
jae 0x41791c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4178fd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417909
cmp byte [ecx + 1], 0xa
jne 0x417909
inc ecx
jmp 0x417909
movzx eax, al
movsx eax, byte [eax + 0x433298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4178e3
cmp edx, ebx
jne 0x4178e3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41793a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040796b
leave
ret
Function at 0x417c33
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 + 0x457a98]
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 0x417c73
cmp byte [ebx], 0xa
jne 0x417c73
or byte [eax + edi + 0x28], 4
jmp 0x417c78
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417d76
mov al, byte [edx]
cmp al, 0x1a
je 0x417d58
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417ca7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417ccc
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417cd6
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 0x417c89
jmp 0x417d76
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 0x417d53
cmp dword [ebp - 0xc], 0
je 0x417d53
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x457a98]
test byte [eax + edi + 0x28], 0x48
je 0x417d2d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417d18
mov byte [esi], dl
jmp 0x417d29
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x457a98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417d76
cmp byte [ebp - 1], 0xa
jne 0x417d3c
cmp esi, ebx
jne 0x417d3c
mov byte [esi], 0xa
jmp 0x417d75
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004187b3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417d76
mov byte [esi], 0xd
jmp 0x417d75
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x457a98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417d72
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417d76
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417d7f
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 + 0x457a98]
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 0x417dc2
cmp word [esi], dx
jne 0x417dc2
or byte [edi + eax + 0x28], 4
jmp 0x417dc7
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 0x417f1a
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 0x417efa
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417e09
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417e3f
cmp eax, edx
jae 0x417e4b
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 0x417de1
jmp 0x417f1a
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 0x417ef6
cmp dword [ebp - 0x14], 0
je 0x417ef6
mov eax, dword [ebx*4 + 0x457a98]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417ece
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417e97
mov word [esi], cx
jmp 0x417eca
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x457a98]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x457a98]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x457a98]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x417f1a
pop ebx
cmp word [ebp - 4], bx
jne 0x417edf
cmp esi, dword [ebp + 0xc]
jne 0x417edf
mov word [esi], bx
jmp 0x417f17
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004187b3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x417f1a
push 0xd
jmp 0x417f13
mov ecx, dword [ebx*4 + 0x457a98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417f11
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417f1a
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