joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c0528
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffe30
mov ebp, eax
lea eax, [esp + 0x40]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, ebp
call fcn.004048e4
push 0x40
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
push esp
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4c0582
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x4c0576
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, ebp
call fcn.00409b58
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x4c0567
call sub.wsock32.dll_WSACleanup
add esp, 0x1d0
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c6428
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404db0
xor eax, eax
push ebp
push 0x4c6543
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebx], eax
xor eax, eax
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00404dc0
push eax
push 0x4c6554
call sub.user32.dll_FindWindowA
mov esi, eax
mov dword [ebx], esi
test esi, esi
je 0x4c6518
mov dword [ebp - 8], 1
jmp 0x4c6518
push 0
push 0x4c6564
push 0
push edi
call sub.user32.dll_FindWindowExA
mov dword [ebx + 8], eax
push 0
push 0x4c656c
push 0
mov eax, dword [ebx]
push eax
call sub.user32.dll_FindWindowExA
mov dword [ebx + 0xc], eax
cmp dword [ebx + 8], 0
je 0x4c64d0
cmp dword [ebx + 0xc], 0
je 0x4c64d0
mov dword [ebp - 8], 2
jmp 0x4c6522
push 2
push esi
call sub.user32.dll_GetWindow
mov esi, eax
test esi, esi
je 0x4c6522
push 0xff
lea eax, [ebp - 0x107]
push eax
push esi
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x107]
mov ecx, 0xff
call fcn.00404b54
mov eax, dword [ebp - 0x10c]
mov edx, dword [ebp - 4]
call fcn.00404d0c
jne 0x4c6518
mov dword [ebx], esi
mov edi, dword [ebx]
test edi, edi
jne 0x4c6495
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c654a
lea eax, [ebp - 0x10c]
call fcn.004048e4
lea eax, [ebp - 4]
call fcn.004048e4
ret
Function at 0x4c6574
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404db0
xor eax, eax
push ebp
push 0x4c666d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
xor eax, eax
mov dword [ebx], eax
mov eax, dword [ebp - 4]
call fcn.00404dc0
push eax
push 0x4c6680
call sub.user32.dll_FindWindowA
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x4c65c8
mov edi, 1
mov esi, dword [ebx]
jmp 0x4c6647
push 0
push 0x4c6690
push 0
mov eax, dword [ebx]
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x4c6640
push 0
push 0x4c6698
push 0
mov eax, dword [ebx]
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x4c6640
push 2
push esi
call sub.user32.dll_GetWindow
mov esi, eax
test esi, esi
je 0x4c664c
push 0xff
lea eax, [ebp - 0x103]
push eax
push esi
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x103]
mov ecx, 0xff
call fcn.00404b54
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 4]
call fcn.00404d0c
jne 0x4c6647
mov dword [ebx], esi
jmp 0x4c6647
mov edi, 2
jmp 0x4c664c
cmp dword [ebx], 0
jne 0x4c65cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6674
lea eax, [ebp - 0x108]
call fcn.004048e4
lea eax, [ebp - 4]
call fcn.004048e4
ret

Function at 0x4c67a0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff00
mov ebx, ecx
mov esi, edx
mov edi, eax
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push edi
call sub.user32.dll_GetWindowTextA
push 0
push 0
push 0x10
push edi
call sub.user32.dll_PostMessageA
mov eax, esi
call fcn.00480614
test bl, bl
je 0x4c67e1
xor edx, edx
mov ax, 0xd
call fcn.004c5dbc
add esp, 0x100
pop edi
pop esi
pop ebx
ret
Function at 0x4c6984
Capabilities:
Create process on windows
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404db0
mov eax, dword [ebp - 8]
call fcn.00404db0
lea esi, [ebp - 0x1c]
xor eax, eax
push ebp
push 0x4c6ab9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
mov edx, 1
call fcn.004c67ec
test al, al
je 0x4c69d5
xor ecx, ecx
mov edx, 0x1f4
mov eax, dword [ebp - 0xc]
call fcn.004c67a0
mov eax, esi
mov edx, 0x4c6ad0
call fcn.004c6428
cmp eax, 2
jge 0x4c6a89
push 5
mov eax, dword [0x4d432c]
call fcn.00404dc0
push eax
call sub.kernel32.dll_WinExec
jmp 0x4c6a89
push 5
mov eax, dword [esi]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [esi]
push eax
call sub.user32.dll_SetForegroundWindow
push 0
push 0
push 7
mov eax, dword [esi + 8]
push eax
call sub.user32.dll_SendMessageA
mov eax, 0x14
call fcn.00480614
mov eax, dword [ebp - 4]
call fcn.00404dc0
push eax
push 0
push 0xc
mov eax, dword [esi + 8]
push eax
call sub.user32.dll_SendMessageA
mov eax, 0x14
call fcn.00480614
mov eax, dword [esi]
push eax
call sub.user32.dll_SetForegroundWindow
push 0
push 0
push 7
mov eax, dword [esi + 0xc]
push eax
call sub.user32.dll_SendMessageA
mov eax, 0x14
call fcn.00480614
mov edx, 0x1e
mov eax, dword [ebp - 8]
call fcn.004c6ad8
xor edx, edx
mov ax, 0xd
call fcn.004c5dbc
mov bl, 1
jmp 0x4c6a9e
mov eax, esi
mov edx, 0x4c6ad0
call fcn.004c6428
cmp eax, 2
je 0x4c6a01
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6ac0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404908
ret
Function at 0x4c6ad8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404db0
xor eax, eax
push ebp
push 0x4c6c0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404bc0
mov edi, eax
test edi, edi
jle 0x4c6bf6
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov al, byte [eax + edx - 1]
cmp al, 0x80
jae 0x4c6be4
push eax
call sub.user32.dll_VkKeyScanA
mov esi, eax
xor ebx, ebx
mov eax, esi
and ax, 0x100
cmp ax, 0x100
jne 0x4c6b4a
push 0
push ebx
push 0
push 0x10
call sub.user32.dll_keybd_event
mov eax, esi
and ax, 0x200
cmp ax, 0x200
jne 0x4c6b62
push 0
push ebx
push 0
push 0x11
call sub.user32.dll_keybd_event
mov eax, esi
and ax, 0x400
cmp ax, 0x400
jne 0x4c6b7a
push 0
push ebx
push 0
push 0x12
call sub.user32.dll_keybd_event
xor ebx, ebx
push 0
push ebx
push 0
mov eax, esi
push eax
call sub.user32.dll_keybd_event
or ebx, 2
push 0
push ebx
push 0
mov eax, esi
push eax
call sub.user32.dll_keybd_event
or ebx, 2
mov eax, esi
and ax, 0x100
cmp ax, 0x100
jne 0x4c6bb4
push 0
push ebx
push 0
push 0x10
call sub.user32.dll_keybd_event
mov eax, esi
and ax, 0x200
cmp ax, 0x200
jne 0x4c6bcc
push 0
push ebx
push 0
push 0x11
call sub.user32.dll_keybd_event
and si, 0x400
cmp si, 0x400
jne 0x4c6be4
push 0
push ebx
push 0
push 0x12
call sub.user32.dll_keybd_event
mov eax, dword [ebp - 8]
call fcn.00480614
inc dword [ebp - 0xc]
dec edi
jne 0x4c6b16
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6c13
lea eax, [ebp - 4]
call fcn.004048e4
ret

Function at 0x4c6c44
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov eax, esp
mov edx, 0x94
call fcn.00407950
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
xor eax, eax
cmp dword [esp + 0x10], 2
jne 0x4c6ca1
mov edx, dword [esp + 4]
sub edx, 3
je 0x4c6c7d
dec edx
je 0x4c6c81
dec edx
je 0x4c6c85
jmp 0x4c6cd5
mov al, 4
jmp 0x4c6cd5
mov al, 5
jmp 0x4c6cd5
mov edx, dword [esp + 8]
sub edx, 1
jb 0x4c6c95
je 0x4c6c99
dec edx
je 0x4c6c9d
jmp 0x4c6cd5
mov al, 6
jmp 0x4c6cd5
mov al, 7
jmp 0x4c6cd5
mov al, 8
jmp 0x4c6cd5
cmp dword [esp + 4], 4
jne 0x4c6cb3
cmp dword [esp + 8], 0
jne 0x4c6cb3
mov al, 1
jmp 0x4c6cd5
cmp dword [esp + 4], 4
jne 0x4c6cc5
cmp dword [esp + 8], 0xa
jne 0x4c6cc5
mov al, 2
jmp 0x4c6cd5
cmp dword [esp + 4], 4
jne 0x4c6cd5
cmp dword [esp + 8], 0x5a
jne 0x4c6cd5
mov al, 3
add esp, 0x94
ret

Function at 0x4c6cdc
Capabilities:
Find taskbar

Disassembly:
push ebx
call fcn.004c6c44
mov ebx, eax
push 0
push 0x4c6d34
call sub.user32.dll_FindWindowA
push 0
push 0x4c6d44
push 0
push eax
call sub.user32.dll_FindWindowExA
mov edx, ebx
add dl, 0xf9
sub dl, 2
jae 0x4c6d18
push 0
push 0x4c6d54
push 0
push eax
call sub.user32.dll_FindWindowExA
add bl, 0xfa
sub bl, 3
jae 0x4c6d2f
push 0
push 0x4c6d60
push 0
push eax
call sub.user32.dll_FindWindowExA
pop ebx
ret
Function at 0x4ca670
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, 0x4d4340
mov eax, dword [ebx]
mov eax, dword [eax + 0x37c]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebx]
mov eax, dword [eax + 0x380]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebx]
mov eax, dword [eax + 0x348]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebx]
mov eax, dword [eax + 0x34c]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebx]
mov eax, dword [eax + 0x3b8]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebx]
mov eax, dword [eax + 0x350]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebx]
mov eax, dword [eax + 0x354]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebx]
mov eax, dword [eax + 0x35c]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebx]
mov eax, dword [eax + 0x360]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebx]
mov eax, dword [eax + 0x3e4]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebx]
mov eax, dword [eax + 0x364]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebx]
mov eax, dword [eax + 0x368]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
push 0
mov eax, dword [0x4d1064]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_TerminateThread
pop ebx
ret
Function at 0x10001070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
jmp 0x1000113c
lea eax, [ebp - 0x104]
push eax
call fcn.100012e8
push 0x1000107e
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x10001209
lea eax, [ebp - 0x108]
push eax
push 0x20019
push 0
push 0x1000109d
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x1000126e
mov dword [ebp - 0x10c], 0x103
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x100010b7
push dword [ebp - 0x108]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x108]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x1000126e
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 0x100011ee
mov word [ebx], 0x5c
push 0x10001088
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x1000126e
mov dword [0x1000300c], eax
push 0x10001092
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x10001263
push eax
push 0x3ea
call eax
pop edx
test eax, eax
je 0x10001263
mov dword [0x10003008], eax
push 0x3eb
mov ebx, section..data
call edx
test eax, eax
je 0x10001263
mov dword [section..data], edx
call 0x1000124a
add dword [esp], 0x4db6
call eax
mov dword [0x10003004], eax
sub esp, 4
pop dword [0x10003010]
leave
ret
push dword [0x1000300c]
call sub.KERNEL32.dll_FreeLibrary
mov dword [0x1000300c], 0
mov dword [section..data], 0xffffffff
mov dword [0x10003010], 0
mov dword [0x10003004], 0
mov dword [0x10003008], 0
push 0x10
push 0x10001136
push 0x100010bc
push 0
call sub.USER32.dll_MessageBoxA
push 0xffffffffffffffff
call sub.KERNEL32.dll_ExitProcess
leave
ret

Function at 0x100087d0
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x1890
jmp fcn.10001058
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x402ee4
pop dword [ebp - 0x1c]
mov eax, 0x53754de6
add eax, 0xaccae0fe
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x4750300
add dword [ebp - 0x2c], 0x49dd424b
mov dword [ebp - 0x28], 0x65265499
add dword [ebp - 0x28], 0xcd0cf7ac
mov dword [ebp - 0x24], 0x3a73ac3a
sub dword [ebp - 0x24], 0xee27680c
mov dword [ebp - 0x20], 0xab7ebb07
add dword [ebp - 0x20], 0x548144f9
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x43e7af35
add eax, 0xbc58d1cf
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x1126b1cd
add dword [ebp - 0x2c], 0x634bb789
mov dword [ebp - 0x28], 0x923ac909
add dword [ebp - 0x28], 0xaf31986c
mov dword [ebp - 0x24], 0x462a451a
sub dword [ebp - 0x24], 0xe2bad8ae
mov dword [ebp - 0x20], 0x94d083c6
add dword [ebp - 0x20], 0x6b2f7c3a
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x30067f75
sub eax, 0x2fc5fe75
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3af0f
push 0
call eax
mov ecx, 0x579f
xor esi, esi
add esi, eax
mov edi, 0xb1feb437
add edi, 0x4e482fc9
add edi, dword [ebp - 0x1c]
mov ebx, 0x96509e30
add ebx, 0x90d30c8a
mov dword [ebp - 0x14], 0x7c8a00fd
mov edx, dword [edi]
sub dword [ebp - 0xc], ecx
xor edx, ebx
mov dword [esi], edx
add dword [ebp - 0x18], esi
add esi, 4
add edi, 0x778f7a3b
add edi, 0x887085c9
loop 0x403002
add eax, 0x63a933b0
sub eax, 0x63a7e261
xor ebx, ebx
add ebx, eax
add eax, 0x6fa1bf54
add eax, 0x905e40b1
mov ecx, 0xe7e2264c
add ecx, 0x185dd9b4
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x406a00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push esi
push eax
add dword [0x7140c018], edx
mov edx, dword [ebp + 0x76]
mov eax, dword [ebp - 8]
xor esi, esi
xor edx, dword [ebp - 0x17a929f5]
add eax, 0x51d60a6a
call fcn.0040b5b8
sub eax, 0x48864000
pop esi
jecxz 0x406a0b
xchg esi, eax
pop esi
sub dword [eax], eax
mov ecx, dword [ecx - 0x6f6f3ca3]
nop
nop
nop
nop
mov dh, 0xad
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
xor esi, esi
mov bp, word [esi - 0x76f372f2]
mov ch, 0xc
mov dword [ebp + 0x4d8b8914], ecx
or cl, al
loop 0x406a61
mov dword [ecx], edx
xor edx, edx
mov ax, word [edx + 0x22]
mov esi, edi
int 0x33
shl byte [esi - 0x75], cl
push eax
or cl, byte [ecx - 0x2dccf7af]
shl byte [esi - 0x75], cl
inc edx
and cl, byte [ecx - 0x2dcc3202]
mov dx, word [eax + 0xa]
mov dword [ecx + 8], edx
xor edx, edx
mov dx, word [eax + 8]
mov dword [ecx - 0x2c], edx
xor edx, edx
mov esi, 0xb006508b
push ecx
adc byte [ebx], dh
shl byte [esi - 0x75], cl
push eax
and dword [edx - 0x5f], ecx
push ecx
and dh, byte [ebx]
sar byte [ebx + ecx*4 + 3], cl
sub edx, 0xfd00076c
mov dword [ecx + 0x18], edx
xor edx, edx
mov dx, word [eax + 4]
mov dword [ecx + 0x1c], edx
mov ebx, dword [edx]
xor byte [esi - 0x75], ah
jo 0x406ab2
mov edx, dword [edx*4 + 0x40e140]
lea edx, [edx + esi + 0x44]
xor esi, esi
iretd
add byte [ebp + 0x33443254], cl
test bh, 0x51
dec esp
xor edx, edx
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x71], edx
push 0xc68b3086
adc al, byte [ebx]
add byte [eax], al
cmp byte [ecx + 5], 0x48
or eax, 0x54
inc eax
push es
sub cl, byte [ebx + 0x46995763]
nop
add dword [eax], eax
add bh, dh
call [edi - 0x7b]
int3
Function at 0x4a5394
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401ece
mov eax, dword [0x521500]
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.0040655a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a53d6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a5532
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004066d1
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 + 0x525158]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403580
mov ecx, dword [esi*4 + 0x525158]
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 0x4a552b
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a552b
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 0x4a552b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403580
add esp, 0x14
test edx, edx
jl 0x4a552b
jg 0x4a54a1
test eax, eax
jb 0x4a552b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a552b
jl 0x4a54bb
cmp dword [ebp - 0x1008], eax
ja 0x4a552b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a54d9
test ebx, ebx
je 0x4a5512
cmp ecx, edi
jae 0x4a5512
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a54f3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a54ff
cmp byte [ecx + 1], 0xa
jne 0x4a54ff
inc ecx
jmp 0x4a54ff
movzx eax, al
movsx eax, byte [eax + 0x521830]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a54d9
cmp edx, ebx
jne 0x4a54d9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a5530
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403337
leave
ret
Function at 0x4a5c71
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 + 0x525158]
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 0x4a5cb1
cmp byte [ebx], 0xa
jne 0x4a5cb1
or byte [eax + edi + 0x28], 4
jmp 0x4a5cb6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a5db4
mov al, byte [edx]
cmp al, 0x1a
je 0x4a5d96
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a5ce5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a5d0a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a5d14
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 0x4a5cc7
jmp 0x4a5db4
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 0x4a5d91
cmp dword [ebp - 0xc], 0
je 0x4a5d91
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x525158]
test byte [eax + edi + 0x28], 0x48
je 0x4a5d6b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a5d56
mov byte [esi], dl
jmp 0x4a5d67
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x525158]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a5db4
cmp byte [ebp - 1], 0xa
jne 0x4a5d7a
cmp esi, ebx
jne 0x4a5d7a
mov byte [esi], 0xa
jmp 0x4a5db3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004019ec
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a5db4
mov byte [esi], 0xd
jmp 0x4a5db3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x525158]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a5db0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a5db4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a5e10
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 + 0x525158]
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 0x4a5e53
cmp word [esi], dx
jne 0x4a5e53
or byte [edi + eax + 0x28], 4
jmp 0x4a5e58
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 0x4a5fab
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 0x4a5f8b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a5e9a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a5ed0
cmp eax, edx
jae 0x4a5edc
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 0x4a5e72
jmp 0x4a5fab
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 0x4a5f87
cmp dword [ebp - 0x14], 0
je 0x4a5f87
mov eax, dword [ebx*4 + 0x525158]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a5f5f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a5f28
mov word [esi], cx
jmp 0x4a5f5b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x525158]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x525158]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x525158]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a5fab
pop ebx
cmp word [ebp - 4], bx
jne 0x4a5f70
cmp esi, dword [ebp + 0xc]
jne 0x4a5f70
mov word [esi], bx
jmp 0x4a5fa8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004019ec
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a5fab
push 0xd
jmp 0x4a5fa4
mov ecx, dword [ebx*4 + 0x525158]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a5fa2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a5fab
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