joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445684
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x483e70]
cmp byte [eax + 0xc], 0
je 0x4457f1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4457ea
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x484b70], 0
jne 0x4456d8
push 0x4457f8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x445800
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b70], eax
cmp dword [0x482c48], 0
jne 0x4457d3
push 0x445810
call sub.kernel32.dll_LoadLibraryA
mov dword [0x482c48], eax
cmp dword [0x482c48], 0
je 0x4457d3
push 0x44581c
mov eax, dword [0x482c48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b74], eax
push 0x44582c
mov eax, dword [0x482c48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b78], eax
push 0x445840
mov eax, dword [0x482c48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b7c], eax
push 0x445858
mov eax, dword [0x482c48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b80], eax
push 0x445870
mov eax, dword [0x482c48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b84], eax
push 0x445884
mov eax, dword [0x482c48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b88], eax
push 0x44589c
mov eax, dword [0x482c48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b8c], eax
push 0x4458b4
mov eax, dword [0x482c48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b90], eax
push 0x4458d0
mov eax, dword [0x482c48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b94], eax
push 0x4458dc
mov eax, dword [0x482c48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b98], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4457f1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x449698
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404108
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4496e7
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404378
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450e24
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x450e74]
test si, 4
je 0x450e38
or bl, 1
test si, 8
je 0x450e42
or bl, 4
test si, 1
je 0x450e4c
or bl, 8
test si, 2
je 0x450e56
or bl, 0x10
test si, 0x10
je 0x450e60
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450e6f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x450e78
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x450eb0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450e91
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450ea0
or bl, 4
test esi, 0x20000000
je 0x450eab
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x457558
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45756a
add esp, 0xfffffff0
call fcn.004035fc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e3e4
mov eax, dword [0x483ab0]
mov dword [eax + 4], ebx
mov dword [eax], 0x4578fc
mov eax, dword [0x483abc]
mov dword [eax + 4], ebx
mov dword [eax], 0x457908
mov eax, ebx
call fcn.00457914
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415c6c]
call fcn.004032a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415c6c]
call fcn.004032a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415c6c]
call fcn.004032a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415c6c]
call fcn.004032a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415c6c]
call fcn.004032a8
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, 0x453d30
push eax
push 0
push 0
mov eax, dword [0x483c3c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41fe68]
call fcn.004215dc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41fe68]
call fcn.004215dc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41fe68]
call fcn.004215dc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00457d34
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457c10
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457c10
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457c10
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4576a7
call fcn.00403654
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4579f4
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 0x457b9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x457b80
mov dl, 1
mov eax, dword [0x416234]
call fcn.004032a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404108
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x457b6f
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.004459e4
test al, al
je 0x457b62
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, 0x457bb0
lea eax, [ebp - 0x254]
call fcn.0040921c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x457b62
xor eax, eax
push ebp
push 0x457b5b
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 0x457be8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x457b44
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404378
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 0x457b44
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404378
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457b62
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x457a65
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a3e0
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 0x457ba6
lea eax, [ebp - 0x260]
call fcn.00404108
ret

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

Disassembly:
push ecx
mov eax, dword [0x484bbc]
cmp byte [eax + 0xa5], 0
jne 0x458545
cmp dword [0x484bd4], 0
jne 0x458506
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x458490
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x484bd4], eax
cmp dword [0x484bd0], 0
jne 0x458521
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x484bd0], eax
cmp dword [0x484bd8], 0
jne 0x458545
push esp
push 0
push 0
push 0x458434
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x484bd8], eax
pop edx
ret
Function at 0x45863c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x458653
add esp, 0xfffffff0
call fcn.004035fc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e3e4
mov eax, dword [0x483c24]
cmp word [eax + 2], 0
jne 0x45867b
mov eax, dword [0x483c24]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459d2c
mov eax, dword [0x483ce8]
cmp word [eax + 2], 0
jne 0x458695
mov eax, dword [0x483ce8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459f24
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415c6c]
call fcn.004032a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415c6c]
call fcn.004032a8
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x420948]
call fcn.0042801c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45881c
mov eax, dword [0x483b28]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004283ec
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45a4d4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x483b28]
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.0040c960
test eax, eax
je 0x45878a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c10
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c988
test eax, eax
je 0x45879e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404378
mov eax, dword [0x4839e0]
cmp byte [eax], 0
jne 0x4587d2
mov eax, ebx
call fcn.00458944
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045a6b0
mov eax, ebx
call fcn.0045b074
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x458812
call fcn.00403654
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458bc4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x484bbc]
cmp dword [eax + 0x30], 0
je 0x458c6e
cmp dword [ebx + 0x94], 0
jne 0x458c68
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458b54
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458c68
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 0x458c2e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458c68
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.00418258
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458c3d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4597d0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x459805
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.004041f8
jmp 0x459812
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040415c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45a88c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45a8cd
mov eax, esi
call fcn.00441010
test al, al
je 0x45a8cd
mov eax, dword [ebx + 0x84]
call fcn.00440d0c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45a8cd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440d0c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45df94
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45dfc2
mov eax, ebx
call fcn.0045ea48
cmp dword [ebx + 0x40], 0
je 0x45dfbb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45e033
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45e025
cmp dword [ebx + 8], 0
je 0x45dfe4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45dff6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45e025
cmp dword [ebx + 8], 0
je 0x45dfd7
cmp eax, 3
je 0x45e009
dec eax
jne 0x45dfd7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45dfd7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45dfd7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45e051
cmp dword [ebx + 0x14], 0xcc
je 0x45e051
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045e05c
pop ebx
ret
Function at 0x4036de
Capabilities:
Terminate process

Disassembly:
jmp 0x456b59
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x456b6a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405aba
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 0x40380f
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a0762
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a0773
pop esi
ret
push ebx
push edi
push esi
call fcn.004a0649
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004040f2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a079b
push ebx
push esi
push edi
call fcn.00405894
add esp, 0xc
push 0
call fcn.0040643d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405966
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401de8
mov eax, dword [0x4d4034]
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.00406032
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x499289
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4993e5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406190
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 + 0x4d7f58]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403332
mov ecx, dword [esi*4 + 0x4d7f58]
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 0x4993de
cmp eax, dword [edi + ecx + 0x24]
jne 0x4993de
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 0x4993de
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403332
add esp, 0x14
test edx, edx
jl 0x4993de
jg 0x499354
test eax, eax
jb 0x4993de
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4993de
jl 0x49936e
cmp dword [ebp - 0x1008], eax
ja 0x4993de
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49938c
test ebx, ebx
je 0x4993c5
cmp ecx, edi
jae 0x4993c5
mov al, byte [ecx]
cmp al, 0xd
jne 0x4993a6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4993b2
cmp byte [ecx + 1], 0xa
jne 0x4993b2
inc ecx
jmp 0x4993b2
movzx eax, al
movsx eax, byte [eax + 0x4d4358]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49938c
cmp edx, ebx
jne 0x49938c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4993e3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403111
leave
ret
Function at 0x499b24
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 + 0x4d7f58]
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 0x499b64
cmp byte [ebx], 0xa
jne 0x499b64
or byte [eax + edi + 0x28], 4
jmp 0x499b69
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x499c67
mov al, byte [edx]
cmp al, 0x1a
je 0x499c49
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x499b98
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x499bbd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x499bc7
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 0x499b7a
jmp 0x499c67
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 0x499c44
cmp dword [ebp - 0xc], 0
je 0x499c44
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d7f58]
test byte [eax + edi + 0x28], 0x48
je 0x499c1e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x499c09
mov byte [esi], dl
jmp 0x499c1a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d7f58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x499c67
cmp byte [ebp - 1], 0xa
jne 0x499c2d
cmp esi, ebx
jne 0x499c2d
mov byte [esi], 0xa
jmp 0x499c66
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401974
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x499c67
mov byte [esi], 0xd
jmp 0x499c66
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d7f58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x499c63
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x499c67
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x499cc3
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 + 0x4d7f58]
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 0x499d06
cmp word [esi], dx
jne 0x499d06
or byte [edi + eax + 0x28], 4
jmp 0x499d0b
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 0x499e5e
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 0x499e3e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x499d4d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x499d83
cmp eax, edx
jae 0x499d8f
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 0x499d25
jmp 0x499e5e
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 0x499e3a
cmp dword [ebp - 0x14], 0
je 0x499e3a
mov eax, dword [ebx*4 + 0x4d7f58]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x499e12
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x499ddb
mov word [esi], cx
jmp 0x499e0e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d7f58]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d7f58]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d7f58]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x499e5e
pop ebx
cmp word [ebp - 4], bx
jne 0x499e23
cmp esi, dword [ebp + 0xc]
jne 0x499e23
mov word [esi], bx
jmp 0x499e5b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401974
add esp, 0x10
cmp word [ebp - 4], bx
je 0x499e5e
push 0xd
jmp 0x499e57
mov ecx, dword [ebx*4 + 0x4d7f58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x499e55
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x499e5e
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