joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4784ac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x478506
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x2c8], ecx
mov dword [esi + 0x2cc], edx
mov eax, dword [edx + 0x4c]
mov dword [esi + 0x2bc], eax
mov eax, dword [eax + 0x44]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x2c8]
mov eax, esi
call fcn.00478510
mov eax, dword [esi + 0x2c8]
mov edx, dword [eax + 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47850d
ret

Function at 0x47dda4
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x47ddda
jmp 0x47de80
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x47de1e
mov edx, dword [ebx + 0x4c]
cmp dword [edx + 0x168], 0
je 0x47de1e
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0x168]
mov eax, dword [eax + 0x14]
jmp 0x47de2e
mov edx, dword [ebx + 0x4c]
mov edx, dword [edx + 0x164]
test edx, edx
je 0x47de2e
mov eax, dword [edx + 0x14]
test eax, eax
je 0x47de47
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.0047a798
jmp 0x47de80
mov dl, 1
mov eax, dword [0x42038c]
call fcn.00422370
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.00422de0
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xbc]
mov eax, dword [esi + 0x10]
call fcn.00421f20
mov edx, esp
mov eax, esi
call fcn.00422a74
mov eax, esi
call fcn.0040339c
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x480398
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.0044ea18
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x279], 0
xor edx, edx
mov eax, ebx
call fcn.00448004
pop ebx
ret
Function at 0x48577c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x485836
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004047f8
mov eax, dword [0x4a130c]
cmp byte [eax], 0
je 0x4857eb
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404b58
mov eax, dword [ebx]
call fcn.00404984
push eax
mov eax, dword [ebx]
call fcn.00404974
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404984
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404b58
jmp 0x48581d
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00408fb4
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404964
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48583d
lea eax, [ebp - 0x3f0]
call fcn.004040ec
ret

Function at 0x4859d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov ebp, edx
mov esi, eax
mov edx, ebp
mov eax, dword [esi + 0x3c]
call dword [esi + 0x38]
cmp dword [ebp + 0xc], 0
jne 0x485a91
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0045f26c
mov ebx, eax
mov dx, word [ebp + 4]
mov eax, esi
call fcn.004856c0
mov edi, eax
test edi, edi
je 0x485a37
mov al, byte [0x485a9c]
cmp al, bl
jne 0x485a37
mov edx, edi
mov eax, esi
call fcn.004855f8
mov dword [ebp + 0xc], 1
mov byte [esi + 0x31], 1
jmp 0x485a91
cmp byte [esi + 0x161], 2
jne 0x485a62
mov eax, dword [ebp + 8]
push eax
movzx ecx, word [ebp + 4]
mov eax, dword [0x4a1660]
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
mov edx, 0xb006
call fcn.00449298
test eax, eax
jne 0x485a91
jmp 0x485a8c
mov eax, dword [0x4a156c]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
cmp eax, dword [esi + 0x128]
je 0x485a8c
mov edx, dword [ebp + 8]
push edx
movzx ecx, word [ebp + 4]
mov edx, dword [0x4a156c]
mov edx, 0xb006
call fcn.00449298
xor eax, eax
mov dword [ebp + 0xc], eax
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48ba0c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x48ba40
cmp eax, dword [esp]
pop edx
pop eax
jae 0x48ba7c
jmp 0x48ba44
pop edx
pop eax
jge 0x48ba7c
mov eax, dword [0x4a1660]
mov eax, dword [eax]
mov dword [eax + 0x44], 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00486888
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x48baa1
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x48baa1
cmp dword [ebx + 0x11c], 0
je 0x48baa1
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.0042fd14
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x496178
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4962e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x9c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4962ce
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00408fb4
mov dl, 1
mov eax, dword [0x4718cc]
call fcn.00471924
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], eax
mov dl, 1
mov eax, dword [0x4167b0]
call fcn.0040336c
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x98]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.004719a0
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4962cb
mov dl, 1
mov eax, dword [0x472a44]
call fcn.00472aac
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
mov edx, 0x496300
call fcn.00471cec
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004043f8
xor eax, eax
push ebp
push 0x4962c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00472dac
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00496308
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4962cb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.0040339c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.0040339c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.0040339c
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4962f0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404110
ret
Function at 0x499550
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x49960a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004047f8
mov eax, dword [0x4a130c]
cmp byte [eax], 0
je 0x4995bf
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404b58
mov eax, dword [ebx]
call fcn.00404984
push eax
mov eax, dword [ebx]
call fcn.00404974
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404984
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404b58
jmp 0x4995f1
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00408fb4
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404964
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499611
lea eax, [ebp - 0x3f0]
call fcn.004040ec
ret

Function at 0x499618
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00408fb4
add esp, 0x3ec
pop ebx
ret

Function at 0x49acf8
Capabilities:
Get disk information

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push pe_nt_image_headers32
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push pe_nt_image_headers32
lea eax, [esp + 0x24]
push eax
push 0x49ad5c
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x49ad45
mov eax, dword [esp]
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.004086c4
jmp 0x49ad51
mov eax, ebx
mov edx, 0x49ad68
call fcn.00404140
add esp, 0x20c
pop ebx
ret

Function at 0x49ae2c
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040459c
mov eax, dword [ebp - 8]
call fcn.0040459c
xor eax, eax
push ebp
push 0x49aeba
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x49ae93
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004045ac
push eax
mov eax, dword [ebp - 4]
call fcn.004045ac
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49ae9f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49aec1
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404110
ret
Function at 0x49af7c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x49b017
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, 0x49b02c
mov edx, dword [ebx + 0x308]
call fcn.004043f8
lea eax, [ebp - 8]
mov ecx, 0x49b02c
mov edx, dword [ebx + 0x30c]
call fcn.004043f8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049ae2c
test al, al
je 0x49affc
push 5
push 0
push 0x49b040
mov eax, dword [ebp - 8]
call fcn.004045ac
push eax
push 0x49b044
mov eax, dword [0x4a156c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x4a156c]
mov eax, dword [eax]
call fcn.004681d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b01e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404110
ret

Function at 0x49be08
Capabilities:
Get disk information

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push pe_nt_image_headers32
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push pe_nt_image_headers32
lea eax, [esp + 0x24]
push eax
push 0x49be6c
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x49be55
mov eax, dword [esp]
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.004086c4
jmp 0x49be61
mov eax, ebx
mov edx, 0x49be78
call fcn.00404140
add esp, 0x20c
pop ebx
ret

Function at 0x49e188
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040459c
mov eax, dword [ebp - 8]
call fcn.0040459c
xor eax, eax
push ebp
push 0x49e216
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x49e1ef
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004045ac
push eax
mov eax, dword [ebp - 4]
call fcn.004045ac
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49e1fb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e21d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404110
ret
Function at 0x49e228
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x49e314
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, 0x49e328
mov edx, dword [0x4a2d94]
call fcn.004043f8
lea eax, [ebp - 8]
mov ecx, 0x49e328
mov edx, dword [0x4a2d8c]
call fcn.004043f8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049e188
test al, al
je 0x49e2c9
mov eax, dword [ebx + 0x320]
mov eax, dword [eax + 0x208]
xor edx, edx
call fcn.00435c8c
mov edx, 0x49e344
call fcn.00435be8
push 5
push 0
push 0x49e378
mov eax, dword [ebp - 8]
call fcn.004045ac
push eax
push 0x49e37c
mov eax, dword [0x4a156c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x4a156c]
mov eax, dword [eax]
call fcn.004681d8
jmp 0x49e2f9
mov eax, dword [ebx + 0x320]
mov eax, dword [eax + 0x208]
mov edx, 2
call fcn.00435c8c
push eax
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, 0x49e38c
call fcn.004043f8
mov edx, dword [ebp - 0xc]
pop eax
call fcn.00435be8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e31b
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404110
ret
Function at 0x4036c5
Capabilities:
Terminate process

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

Disassembly:
jmp 0x49f392
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49f3a3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049f279
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004040d4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49f3cb
push ebx
push esi
push edi
call fcn.00405876
add esp, 0xc
push 0
call fcn.0040641a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405943
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dde
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.0040600f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x496eb1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49700d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040616d
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 + 0x4d6f80]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403319
mov ecx, dword [esi*4 + 0x4d6f80]
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 0x497006
cmp eax, dword [edi + ecx + 0x24]
jne 0x497006
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 0x497006
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403319
add esp, 0x14
test edx, edx
jl 0x497006
jg 0x496f7c
test eax, eax
jb 0x497006
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x497006
jl 0x496f96
cmp dword [ebp - 0x1008], eax
ja 0x497006
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x496fb4
test ebx, ebx
je 0x496fed
cmp ecx, edi
jae 0x496fed
mov al, byte [ecx]
cmp al, 0xd
jne 0x496fce
lea eax, [edi - 1]
cmp ecx, eax
jae 0x496fda
cmp byte [ecx + 1], 0xa
jne 0x496fda
inc ecx
jmp 0x496fda
movzx eax, al
movsx eax, byte [eax + 0x4d3370]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x496fb4
cmp edx, ebx
jne 0x496fb4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49700b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030f8
leave
ret
Function at 0x49774c
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 + 0x4d6f80]
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 0x49778c
cmp byte [ebx], 0xa
jne 0x49778c
or byte [eax + edi + 0x28], 4
jmp 0x497791
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49788f
mov al, byte [edx]
cmp al, 0x1a
je 0x497871
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4977c0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4977e5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4977ef
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 0x4977a2
jmp 0x49788f
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 0x49786c
cmp dword [ebp - 0xc], 0
je 0x49786c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d6f80]
test byte [eax + edi + 0x28], 0x48
je 0x497846
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x497831
mov byte [esi], dl
jmp 0x497842
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d6f80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49788f
cmp byte [ebp - 1], 0xa
jne 0x497855
cmp esi, ebx
jne 0x497855
mov byte [esi], 0xa
jmp 0x49788e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49788f
mov byte [esi], 0xd
jmp 0x49788e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d6f80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49788b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49788f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4978eb
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 + 0x4d6f80]
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 0x49792e
cmp word [esi], dx
jne 0x49792e
or byte [edi + eax + 0x28], 4
jmp 0x497933
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 0x497a86
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 0x497a66
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x497975
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4979ab
cmp eax, edx
jae 0x4979b7
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 0x49794d
jmp 0x497a86
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 0x497a62
cmp dword [ebp - 0x14], 0
je 0x497a62
mov eax, dword [ebx*4 + 0x4d6f80]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x497a3a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x497a03
mov word [esi], cx
jmp 0x497a36
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d6f80]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d6f80]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d6f80]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x497a86
pop ebx
cmp word [ebp - 4], bx
jne 0x497a4b
cmp esi, dword [ebp + 0xc]
jne 0x497a4b
mov word [esi], bx
jmp 0x497a83
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x497a86
push 0xd
jmp 0x497a7f
mov ecx, dword [ebx*4 + 0x4d6f80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x497a7d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x497a86
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