joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490c84
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41abec]
call fcn.00404e78
xor eax, eax
push ebp
push 0x490dc8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x55f460], 0
jne 0x490cd7
mov ecx, dword [0x561d14]
mov dl, 1
mov eax, dword [0x407db0]
call fcn.0040d094
call fcn.00403db8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402e58
mov eax, ebx
call fcn.00404c30
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x490dd8
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406130
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404c40
test eax, eax
jle 0x490d6f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x490d68
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404620
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404608
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408c80
test eax, eax
jne 0x490d68
mov ebx, 0x15
jmp 0x490d74
mov ebx, 0x10
jmp 0x490d74
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x55f460]
call fcn.00490bdc
mov eax, dword [ebp - 8]
call fcn.00490bdc
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406148
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490dcf
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004043bc
lea eax, [ebp - 0x10]
mov edx, dword [0x41abec]
call fcn.00404f48
ret

Function at 0x4abad0
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4abaf5
cmp dword [esp + 4], 5
jb 0x4abaf5
mov al, 1
jmp 0x4abaf7
xor eax, eax
add esp, 0x94
ret
Function at 0x4bfb3f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x56059e
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4bfb97
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x5605bf
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4bfb8d
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4bfb9b
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4d5cf4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [0x56249c]
mov eax, dword [eax]
call fcn.004889c0
call sub.kernel32.dll_GetTickCount
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
movzx eax, si
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4d5d37
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4d5cff
pop esi
pop ebx
ret
pop edx
pop eax
jg 0x4d5cff
pop esi
pop ebx
ret

Function at 0x4d616c
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 1
jne 0x4d6194
cmp dword [esp + 8], 0xa
jne 0x4d6194
call fcn.004d6114
jmp 0x4d61be
push 0x64
push 0xc8
call sub.kernel32.dll_Beep
push 0xc8
push 0x12c
call sub.kernel32.dll_Beep
push 0xc8
push 0x190
call sub.kernel32.dll_Beep
add esp, 0x94
ret
Function at 0x4d6f9c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov cx, 7
mov eax, 0x564280
mov edx, esp
mov bl, byte [eax]
mov byte [edx], bl
inc edx
inc eax
dec cx
jne 0x4d6fad
mov ax, word [0x563f74]
add ax, 0x40
dec eax
test ax, ax
jbe 0x4d7072
mov word [esp + 8], ax
mov cl, byte [esp]
and cl, 0x80
and ecx, 0xff
mov dx, 0xfff9
lea eax, [esp + 6]
mov bl, byte [eax]
and bl, 0x80
mov edi, ebx
and edi, 0xff
cmp cx, 0x80
jne 0x4d7002
mov cl, byte [eax]
add ecx, ecx
inc ecx
mov byte [eax], cl
jmp 0x4d7004
shl byte [eax], 1
mov ecx, edi
dec eax
inc dx
jne 0x4d6fe5
xor edi, edi
mov dx, 0xfff9
mov eax, 0x560832
lea esi, [esp + 6]
mov cl, byte [eax]
and cl, byte [esi]
and ecx, 0xff
xor di, cx
dec esi
dec eax
inc dx
jne 0x4d701b
xor eax, eax
xor edx, edx
mov ecx, edx
mov bx, 1
shl bx, cl
mov ecx, ebx
mov ebx, edi
and bx, cx
cmp cx, bx
jne 0x4d7049
inc eax
inc edx
cmp dx, 8
jne 0x4d7033
movzx eax, ax
and eax, 1
cmp eax, 1
jne 0x4d7062
or byte [esp + 6], 1
jmp 0x4d7067
and byte [esp + 6], 0xfe
dec word [esp + 8]
jne 0x4d6fd1
mov dx, 7
mov eax, esp
mov ecx, 0x564280
mov bl, byte [eax]
mov byte [ecx], bl
inc ecx
inc eax
dec dx
jne 0x4d707d
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x4d73fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404848
xor eax, eax
push ebp
push 0x4d74d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404398
lea eax, [ebp - 0x10]
call fcn.00404398
mov bl, 0xc
lea eax, [ebp - 0x1d]
mov byte [eax], 0
inc eax
dec bl
jne 0x4d7441
mov eax, dword [ebp - 4]
call fcn.00404658
test al, al
jbe 0x4d749d
mov byte [ebp - 0x11], al
mov bl, 1
mov edi, 0x560834
lea esi, [ebp - 0x1d]
lea eax, [ebp - 0xc]
push eax
xor edx, edx
mov dl, bl
mov ecx, 1
mov eax, dword [ebp - 4]
call fcn.004048b8
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
xor al, byte [edi]
mov byte [esi], al
lea eax, [ebp - 0x24]
mov dl, byte [esi]
call fcn.00404580
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
call fcn.00404660
inc ebx
inc esi
inc edi
dec byte [ebp - 0x11]
jne 0x4d7462
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.004043ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d74da
lea eax, [ebp - 0x24]
call fcn.00404398
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004043bc
lea eax, [ebp - 4]
call fcn.00404398
ret
Function at 0x4da9dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4dac3c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4daa3f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004da4a4
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d9dc
cmp al, 1
jne 0x4daa3f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004da7bc
test al, al
je 0x4dabcb
cmp dword [ebp - 8], 0
jge 0x4daa5d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004da4a4
mov eax, dword [ebp - 0x210]
call fcn.00404658
cmp ebx, eax
jge 0x4daaa7
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004da4a4
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x562864]
and eax, 0xff
bt dword [edx], eax
jae 0x4daaa7
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4daabb
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004da9b8
cmp ebx, dword [ebp - 8]
je 0x4dabbd
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4daae7
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403724
and eax, 0x7f
movzx eax, word [eax*2 + 0x560840]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4dabaa
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403724
and eax, 0x7f
movzx eax, word [eax*2 + 0x560840]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0046e16c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403724
and eax, 0x7f
movzx eax, word [eax*2 + 0x560840]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0046e16c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dabb1
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4dac1e
cmp dword [ebp - 8], 0
jge 0x4dabd6
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004da4a4
mov eax, dword [ebp - 0x218]
call fcn.00404658
cmp eax, dword [ebp - 8]
jg 0x4dac10
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004da4a4
mov eax, dword [ebp - 0x21c]
call fcn.00404658
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004da9b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dac43
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004043bc
ret
Function at 0x50170c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
lea eax, [esp + 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
push esp
push 0
push 0x501750
lea eax, [esp + 0x10c]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
mov eax, esp
call fcn.00409950
add esp, 0x200
pop ebx
ret

Function at 0x507a6c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x40]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x507aa7
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, dword [esi + 0x40]
call fcn.0041e0b0
mov al, byte [eax + 0x2a8]
xor al, 1
push eax
mov edx, ebx
mov eax, dword [esi + 0x40]
call fcn.0041e0b0
pop edx
mov byte [eax + 0x2a8], dl
inc ebx
dec edi
jne 0x507a7f
pop edi
pop esi
pop ebx
ret

Function at 0x5386c8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x5386f6
mov eax, ebx
call fcn.0053917c
cmp dword [ebx + 0x40], 0
je 0x5386ef
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x538767
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x538759
cmp dword [ebx + 8], 0
je 0x538718
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 0x53872a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x538759
cmp dword [ebx + 8], 0
je 0x53870b
cmp eax, 3
je 0x53873d
dec eax
jne 0x53870b
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 0x53870b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x53870b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x538785
cmp dword [ebx + 0x14], 0xcc
je 0x538785
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.00538790
pop ebx
ret

Function at 0x54d0fc
Capabilities:
Log keystrokes via polling

Disassembly:
push 2
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
test ah, 0x80
jne 0x54d11d
push 1
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
test ah, 0x80
jne 0x54d11d
xor eax, eax
ret
mov al, 1
ret
Function at 0x402010
Capabilities:
Capture screenshot
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov dx, word [esp + 0x1c]
mov si, word [esp + 0x18]
mov word [esp + 0x28], dx
push 0x461b30
call dword [sym.imp.USER32.dll_GetCursorPos]
mov cx, word [0x461b30]
mov word [0x462114], cx
mov dx, word [0x461b34]
mov word [0x462116], dx
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov ebx, eax
push 0
push 0x20
push 1
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.GDI32.DLL_CreateBitmap]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x402098
push 0x43d078
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call fcn.00403ca4
add esp, 4
push eax
call fcn.00403e70
push dword [esp + 0x24]
push ebx
call dword [sym.imp.GDI32.DLL_SelectObject]
mov di, word [esp + 0x2c]
mov ecx, esi
and ecx, 0xffff
mov dword [esp + 0x28], ecx
add esp, 4
and edi, 0xffff
push 0x461b30
call dword [sym.imp.USER32.dll_GetCursorPos]
mov dx, word [0x462114]
and edx, 0xffff
cmp edx, dword [0x461b30]
jne 0x402106
mov cx, word [0x462116]
and ecx, 0xffff
cmp ecx, dword [0x461b34]
je 0x40221c
push 0
call dword [sym.imp.USER32.dll_GetDC]
push 0xcc0020
push 0
push 0
push eax
mov dword [0x461b38], eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push 0
push 0
push ebx
call dword [sym.imp.GDI32.DLL_BitBlt]
mov dx, word [0x461b30]
xor esi, esi
mov word [0x462114], dx
mov cx, word [0x461b34]
mov word [0x462116], cx
cmp byte [0x43d075], 0
je 0x4021ec
push 0xcc0020
call fcn.00403e4c
movzx ecx, byte [0x43d074]
cdq
idiv ecx
mov eax, edx
imul eax, edi
cdq
idiv ecx
push eax
call fcn.00403e4c
movzx ecx, byte [0x43d074]
cdq
idiv ecx
mov eax, edx
imul eax, dword [esp + 0x2c]
cdq
idiv ecx
push eax
mov eax, dword [esp + 0x28]
cdq
push ebx
idiv ecx
push eax
mov eax, dword [esp + 0x2c]
cdq
idiv ecx
push eax
call fcn.00403e4c
movzx ecx, byte [0x43d074]
cdq
idiv ecx
mov eax, edx
imul eax, edi
cdq
idiv ecx
push eax
call fcn.00403e4c
movzx ecx, byte [0x43d074]
cdq
idiv ecx
mov eax, edx
imul eax, dword [esp + 0x40]
cdq
idiv ecx
push eax
push ebx
call dword [sym.imp.GDI32.DLL_BitBlt]
inc esi
movzx edx, byte [0x43d075]
cmp edx, esi
jg 0x40215b
push 0xcc0020
push 0
push 0
push ebx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push 0
push 0
push dword [0x461b38]
call dword [sym.imp.GDI32.DLL_BitBlt]
push dword [0x461b38]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4020cd
Function at 0x407bc0
Capabilities:
Query environment variable

Disassembly:
push ebx
xor ebx, ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
je 0x407c1d
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
je 0x407c1d
lea ecx, [edi + 1]
push ecx
call fcn.00404f38
add esp, 4
mov ebx, eax
test eax, eax
je 0x407c1d
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x407c0a
push ebx
call fcn.00406610
xor ebx, ebx
add esp, 4
jmp 0x407c1d
push ebx
push esi
call fcn.00406e3c
add esp, 4
push eax
call fcn.00407ad0
add esp, 8
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x42aa88
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
mov eax, dword [ecx + 0x58]
push ebx
push ebp
push esi
mov esi, ecx
mov edx, dword [esi + 0x50]
push edi
mov dword [esi + 0x54], eax
cmp edx, dword [esi + 0x4c]
jbe 0x42aacc
mov edi, dword [esi + 0x50]
mov ebx, dword [esi + 0x4c]
mov ebp, dword [esi + 0x44]
cmp edi, ebx
jne 0x42aab0
mov edx, ebp
jmp 0x42aac7
mov edx, edi
sub edx, ebx
push edx
push ebx
push ebp
call fcn.00402b40
mov ecx, edi
mov edx, eax
sub ecx, ebx
add esp, 0xc
add edx, ecx
mov dword [esi + 0x50], edx
jmp 0x42aad2
mov ebx, dword [esi + 0x44]
mov dword [esi + 0x50], ebx
lea eax, [esi + 0x58]
lea ebp, [esi + 0x24]
mov dword [esp + 0x28], eax
mov edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x50]
sub edx, ecx
push edx
push ecx
mov ecx, ebp
call fcn.0042b18c
mov ebx, eax
test eax, eax
jg 0x42ab00
pop edi
mov eax, 0xffffffff
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
add dword [esi + 0x50], ebx
mov edi, dword [esi + 0x70]
mov edx, dword [esp + 0x28]
mov ecx, dword [edx]
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x20]
push edx
push dword [esi + 0x40]
push dword [esi + 0x3c]
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
push dword [esi + 0x50]
push dword [esi + 0x44]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [edi]
call dword [edx + 8]
cmp eax, 3
jne 0x42ab41
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ebx, 2
cmp eax, ebx
je 0x42ab90
mov eax, dword [esi + 0x3c]
cmp eax, dword [esp + 0x20]
je 0x42ab5c
mov edi, dword [esi + 0x44]
cmp edi, dword [esp + 0x1c]
je 0x42ab90
cmp byte [esi + 0x34], 0
je 0x42ab7e
mov ecx, dword [esp + 0x20]
sub ecx, eax
test ecx, ecx
jns 0x42ab6d
inc ecx
sar ecx, 1
imul ecx, dword [esi + 0x74]
mov edx, dword [esp + 0x1c]
sub edx, dword [esi + 0x44]
cmp ecx, edx
jne 0x42ab90
cmp eax, dword [esp + 0x20]
jne 0x42ab9f
mov ebx, dword [esp + 0x1c]
sub ebx, dword [esi + 0x44]
cmp ebx, dword [esi + 0x78]
jl 0x42ab9f
mov ecx, esi
call fcn.0042aa68
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x3c]
cmp eax, dword [esp + 0x20]
je 0x42aadc
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x4c], edi
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x18]
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov ax, word [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x42af90
Capabilities:
Get file size

Disassembly:
push eax
push eax
lea eax, [esp + 4]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp], eax
jne 0x42afb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42afb7
xor eax, eax
jmp 0x42afba
mov eax, dword [esp]
add esp, 8
ret

Function at 0x42b044
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x2c
mov edx, ecx
xor eax, eax
mov dword [esp + 4], ecx
mov dword [ecx], 0xffffffff
mov byte [edx + 0xc], al
mov dword [edx + 8], 0
mov byte [edx + 0xd], al
cmp dword [0x44c0a0], eax
jne 0x42b087
mov dword [esp + 4], edx
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0xc]
mov dword [0x44c0a0], edx
mov edx, dword [esp + 4]
mov dword [edx + 4], 0
cmp dword [0x44c0a0], 0
jne 0x42b0a1
mov dword [0x44c0a0], 0x1000
add esp, 0x2c
mov eax, edx
ret

Function at 0x42b18c
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test dword [edi + 8], 4
jne 0x42b25e
cmp dword [esp + 0x10], 0
je 0x42b25e
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
lea ebp, [edx + ecx - 1]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x20]
cmp ebp, ecx
jb 0x42b23e
cmp byte [ecx], 0x1a
je 0x42b23e
cmp byte [ebx], 0xd
je 0x42b1ed
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
jmp 0x42b234
cmp ebx, ebp
jae 0x42b1f9
cmp byte [ebx + 1], 0xa
jne 0x42b230
jmp 0x42b234
mov byte [esp + 0x14], 0x20
push 0
lea ecx, [esp + 0x1c]
push ecx
push 1
lea edx, [esp + 0x20]
push edx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 0
je 0x42b229
push 1
push 0
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esp + 0x14], 0xa
je 0x42b234
mov byte [esi], 0xd
inc esi
inc ebx
cmp ebx, ebp
ja 0x42b23e
cmp byte [ebx], 0x1a
jne 0x42b1e1
cmp ebx, ebp
ja 0x42b254
push 1
lea edx, [ebp + 1]
sub edx, ebx
push 0
push edx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
sub eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x42b26c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, 1
sub esp, 0x1000
test dword [esp], esp
dec edx
jne 0x42b274
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1030], ecx
test dword [esi + 8], 1
je 0x42b2a2
push 4
mov ecx, esi
push 0
call fcn.0042b418
test dword [esi + 8], 4
je 0x42b2cd
push 0
lea edx, [ebp - 0x102c]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [ebp - 0x102c]
jmp 0x42b3e4
mov dword [ebp - 0x1030], esi
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea ecx, [edx + ecx]
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x1028]
mov dword [ebp - 0x24], ecx
mov ecx, 0x1000
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebp + 0xc]
jge 0x42b2fa
lea ecx, [ebp - 0x1c]
jmp 0x42b2fd
lea ecx, [ebp + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
mov dword [ebp - 0x20], ecx
jle 0x42b384
push dword [ebp - 0x20]
push 0xa
push edx
call fcn.00438400
add esp, 0xc
test eax, eax
mov dword [ebp - 0x18], eax
je 0x42b384
mov edi, dword [ebp - 0x18]
sub edi, esi
push edi
push esi
push ebx
call fcn.00402b40
lea edx, [edi + 1]
add ebx, edi
mov byte [ebx], 0xd
inc ebx
add esi, edx
mov byte [ebx], 0xa
mov ecx, dword [ebp - 0x24]
sub ecx, esi
xor edx, edx
inc ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0xc], ecx
sub eax, ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
add esp, 0xc
cmp edx, eax
jge 0x42b358
lea edx, [ebp - 0x10]
jmp 0x42b35b
lea edx, [ebp - 0x14]
mov eax, dword [edx]
cmp eax, ecx
jge 0x42b363
jmp 0x42b366
lea edx, [ebp - 0xc]
mov ecx, dword [edx]
test ecx, ecx
mov dword [ebp - 0x20], ecx
jle 0x42b384
push dword [ebp - 0x20]
push 0xa
push esi
call fcn.00438400
add esp, 0xc
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x42b31b
mov edi, dword [ebp - 0x20]
test edi, edi
jle 0x42b39a
push edi
push esi
push ebx
call fcn.00402b40
add ebx, edi
add esi, edi
add esp, 0xc
lea edx, [ebp - 0x1028]
mov edi, ebx
sub edi, edx
mov dword [ebp - 8], edx
je 0x42b3d9
push 0
lea ecx, [ebp - 4]
push ecx
push edi
mov edx, dword [ebp - 0x1030]
push dword [ebp - 8]
push dword [edx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], edi
je 0x42b3d9
cmp dword [ebp - 4], 0
je 0x42b40b
sub edi, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add dword [ebp - 8], ecx
test edi, edi
jne 0x42b3a9
mov ebx, esi
mov esi, dword [ebp - 0x1030]
sub ebx, dword [ebp + 8]
cmp dword [ebp + 0xc], ebx
jne 0x42b3f7
pop edi
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
jle 0x42b40b
cmp ebx, dword [ebp + 0xc]
jge 0x42b40b
sub dword [ebp + 0xc], ebx
add dword [ebp + 8], ebx
jmp 0x42b28e
pop edi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8