joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45359c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x4535c2
mov eax, esp
push eax
push 0x453564
call sub.user32.dll_EnumWindows
jmp 0x4535d5
mov eax, esp
push eax
push 0x453544
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x453660
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4536b4]
test si, 4
je 0x453675
or bl, 1
test si, 8
je 0x45367f
or bl, 4
test si, 1
je 0x453689
or bl, 8
test si, 2
je 0x453693
or bl, 0x10
test si, 0x10
je 0x45369d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4536ac
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4536b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4536f4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4536d2
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4536e1
or bl, 4
test esi, 0x20000000
je 0x4536ec
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45b76c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45b77e
add esp, 0xfffffff0
call fcn.00403f6c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e008
mov eax, dword [0x46b954]
mov dword [eax + 4], ebx
mov dword [eax], 0x45bb10
mov eax, dword [0x46b960]
mov dword [eax + 4], ebx
mov dword [eax], 0x45bb1c
mov eax, ebx
call fcn.0045bb28
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415db8]
call fcn.00403c18
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415db8]
call fcn.00403c18
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415db8]
call fcn.00403c18
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415db8]
call fcn.00403c18
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415db8]
call fcn.00403c18
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x456fc4
push eax
push 0
push 0
mov eax, dword [0x46bad8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x421d08]
call fcn.00423524
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x421d08]
call fcn.00423524
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x421d08]
call fcn.00423524
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045bf58
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45be28
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45be28
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45be28
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b8bb
call fcn.00403fc4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45bc0c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45bdb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45bd98
mov dl, 1
mov eax, dword [0x4161dc]
call fcn.00403c18
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404a74
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45bd87
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044d3b8
test al, al
je 0x45bd7a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45bdc8
lea eax, [ebp - 0x254]
call fcn.00409d88
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45bd7a
xor eax, eax
push ebp
push 0x45bd73
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45be00
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45bd5c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ce4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45bd5c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ce4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bd7a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45bc7d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00419eb4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bdbe
lea eax, [ebp - 0x260]
call fcn.00404a74
ret

Function at 0x45c730
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x470ca0]
cmp byte [eax + 0xad], 0
jne 0x45c7a1
cmp dword [0x470cbc], 0
jne 0x45c762
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45c6ec
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x470cbc], eax
cmp dword [0x470cb8], 0
jne 0x45c77d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x470cb8], eax
cmp dword [0x470cc0], 0
jne 0x45c7a1
push esp
push 0
push 0
push 0x45c690
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x470cc0], eax
pop edx
ret
Function at 0x45c974
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45c98b
add esp, 0xfffffff0
call fcn.00403f6c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e008
mov eax, dword [0x46bac0]
cmp word [eax + 2], 0
jne 0x45c9b3
mov eax, dword [0x46bac0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e680
mov eax, dword [0x46bb78]
cmp word [eax + 2], 0
jne 0x45c9cd
mov eax, dword [0x46bb78]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e88c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415db8]
call fcn.00403c18
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415db8]
call fcn.00403c18
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x415db8]
call fcn.00403c18
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4227e0]
call fcn.0042a3a4
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45cb84
mov eax, dword [0x46b9c0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a778
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45ef50
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46b9c0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d62c
test eax, eax
je 0x45cad4
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409740
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d660
test eax, eax
je 0x45cae8
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404ce4
mov byte [ebx + 0xd4], 0
push ebx
push 0x45e0d8
call fcn.0041f184
mov dword [ebx + 0xc8], eax
mov eax, dword [0x46b88c]
cmp byte [eax], 0
jne 0x45cb39
mov eax, ebx
call fcn.0045ccc8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045f164
mov eax, ebx
call fcn.0045fcc8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45cb79
call fcn.00403fc4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45cf48
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45cfe7
cmp dword [ebx + 0x94], 0
jne 0x45cfe1
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45ced0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45cfe1
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45cfa7
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45cfe1
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041815c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45cfb6
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45d200
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x470ca0]
cmp dword [eax + 0x30], 0
je 0x45d35d
test bl, bl
jne 0x45d2ae
cmp dword [esi + 0x9c], 0
jne 0x45d2a3
mov eax, esi
call fcn.0045fb44
push eax
push 0x45d12c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x45d274
mov eax, dword [0x470ca0]
call fcn.00460224
test al, al
je 0x45d274
mov eax, dword [0x470cc4]
call fcn.00405bb8
mov edi, eax
cmp edi, 0
jl 0x45d274
push 0
mov eax, dword [0x470cc4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45d25e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45d2a3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041815c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45d283
inc dword [esi + 0x9c]
jmp 0x45d35d
cmp dword [esi + 0x9c], 0
jle 0x45d35d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x45d35d
cmp dword [esi + 0x44], 0
je 0x45d309
mov eax, dword [0x470ca0]
call fcn.00460224
test al, al
je 0x45d309
mov eax, dword [0x470cc4]
call fcn.00405bb8
mov edi, eax
cmp edi, 0
jl 0x45d309
push 5
mov eax, dword [0x470cc4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45d2f3
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45d338
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041815c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45d318
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x470cc4
mov ecx, 1
mov edx, dword [0x45d10c]
call fcn.00405d6c
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45de2c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45de96
mov eax, ebx
call fcn.00460224
test al, al
jne 0x45de96
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404b64
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45de83
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45dea3
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ac8
jmp 0x45dea3
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ac8
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x45f348
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45f3b6
mov eax, esi
call fcn.0044809c
test al, al
je 0x45f3b6
mov eax, dword [ebx + 0x84]
call fcn.00447cfc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45f3b6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45f3aa
push 0
mov eax, dword [ebx + 0x84]
call fcn.00447cfc
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043fb60
jmp 0x45f3b6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045f184
pop esi
pop ebx
ret
Function at 0x403756
Capabilities:
Terminate process

Disassembly:
jmp 0x44ee44
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x44ee55
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405b05
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40387d
Capabilities:
Query environment variable

Disassembly:
jmp 0x49cfe4
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49cff5
pop esi
ret
push ebx
push edi
push esi
call fcn.0049cecb
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040414c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49d01d
push ebx
push esi
push edi
call fcn.004058ee
add esp, 0xc
push 0
call fcn.004064b0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4059b6
Capabilities:
Parse pe header

Disassembly:
jmp 0x43f65d
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43f69d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43f69d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43f69d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43f69d
cmp dword [ecx + 0x74], 0xe
jbe 0x43f69d
cmp dword [ecx + 0xe8], 0
je 0x43f69d
mov al, 1
ret
xor al, al
ret
Function at 0x484da8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x484de7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x484de7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x484de7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x484de7
cmp dword [ecx + 0x74], 0xe
jbe 0x484de7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x494108
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401e3d
mov eax, dword [0x4d3034]
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.0040607d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49414a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4942a6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004061f4
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 + 0x4e7bf8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004033be
mov ecx, dword [esi*4 + 0x4e7bf8]
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 0x49429f
cmp eax, dword [ecx + edi + 0x24]
jne 0x49429f
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 0x49429f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004033be
add esp, 0x14
test edx, edx
jl 0x49429f
jg 0x494215
test eax, eax
jb 0x49429f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49429f
jl 0x49422f
cmp dword [ebp - 0x1008], eax
ja 0x49429f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49424d
test ebx, ebx
je 0x494286
cmp ecx, edi
jae 0x494286
mov al, byte [ecx]
cmp al, 0xd
jne 0x494267
lea eax, [edi - 1]
cmp ecx, eax
jae 0x494273
cmp byte [ecx + 1], 0xa
jne 0x494273
inc ecx
jmp 0x494273
movzx eax, al
movsx eax, byte [eax + 0x4d3558]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49424d
cmp edx, ebx
jne 0x49424d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4942a4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403198
leave
ret
Function at 0x4949e5
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 + 0x4e7bf8]
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 0x494a25
cmp byte [ebx], 0xa
jne 0x494a25
or byte [edi + eax + 0x28], 4
jmp 0x494a2a
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 0x494b29
mov dl, byte [eax]
cmp dl, 0x1a
je 0x494b0c
inc eax
cmp dl, 0xd
je 0x494a56
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x494a7c
cmp eax, ecx
jae 0x494a8a
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 0x494a3e
jmp 0x494b29
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 0x494b07
cmp dword [ebp - 0x10], 0
je 0x494b07
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4e7bf8]
test byte [eax + edi + 0x28], 0x48
je 0x494ae1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x494acc
mov byte [esi], dl
jmp 0x494add
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e7bf8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x494b29
cmp byte [ebp - 1], 0xa
jne 0x494af0
cmp esi, ebx
jne 0x494af0
mov byte [esi], 0xa
jmp 0x494b28
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004019b5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x494b29
mov byte [esi], 0xd
jmp 0x494b28
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4e7bf8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x494b26
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x494b29
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x494b85
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 + 0x4e7bf8]
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 0x494bcb
cmp word [ebx], dx
jne 0x494bcb
or byte [eax + edi + 0x28], 4
jmp 0x494bd0
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 0x494d33
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 0x494d13
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x494c11
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x494c47
cmp eax, edx
jae 0x494c55
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 0x494bec
jmp 0x494d33
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 0x494d0e
cmp dword [ebp - 0x18], 0
je 0x494d0e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4e7bf8]
test byte [eax + edi + 0x28], 0x48
je 0x494ce4
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 0x494ca8
mov word [esi], cx
jmp 0x494cdf
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4e7bf8]
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 + 0x4e7bf8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4e7bf8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x494d33
pop eax
cmp word [ebp - 4], ax
jne 0x494cf4
cmp esi, ebx
jne 0x494cf4
mov word [esi], ax
jmp 0x494d30
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004019b5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x494d33
push 0xd
pop eax
jmp 0x494cef
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4e7bf8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x494d2d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x494d33
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret