joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4164d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
cmp dword [esi + 0xec], 9
push edi
je 0x41668b
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ebp, dword [sym.imp.WINMM.dll_timeGetTime]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x416524
cmp dword [esp + 0x1c], 0x12
je 0x41669d
lea ecx, [esp + 0x18]
call fcn.004163b0
jmp 0x41667e
mov eax, dword [esi + 0xec]
dec eax
cmp eax, 7
ja case.0x416534.4
jmp dword [eax*4 + 0x4166fc]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
cmp dword [esp + 0x1c], 0x12
je 0x4166b4
lea ecx, [esp + 0x18]
call fcn.004163b0
cmp dword [esi + 0xec], 3
je case.0x416534.3
push 0xff
push 0x3e8
push 0
push 0
push 0
call ebx
jmp 0x41667e
cmp dword [0x43c1a8], 0xffffffff
jne 0x416596
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x416598
call ebp
push eax
call fcn.004034b0
add esp, 4
mov dword [esi + 0xec], eax
cmp dword [0x43c1a8], 0xffffffff
jne 0x416607
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
push edi
call fcn.004034f0
add esp, 4
test eax, eax
je 0x4165e0
mov edx, dword [esi + 0xf8]
push 0xff
sub edx, edi
push edx
push 0
push 0
push 0
call ebx
jmp 0x41667e
mov eax, dword [0x43e3cc]
test byte [eax + 0x30c], 2
je 0x41667e
mov eax, dword [0x43e3c4]
test eax, eax
je 0x41667e
dec eax
mov dword [0x43e3c4], eax
jmp 0x41667e
call ebp
mov edi, eax
add edi, 5
push edi
call fcn.004034f0
add esp, 4
test eax, eax
je 0x416633
mov ecx, dword [esi + 0xf8]
push 0xff
sub ecx, edi
push ecx
push 0
push 0
push 0
call ebx
jmp 0x41667e
call ebp
cmp eax, dword [esi + 0xf8]
jge 0x416652
lea ecx, [ecx]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
cmp eax, dword [esi + 0xf8]
jl 0x416640
mov edx, dword [0x43e3cc]
mov dword [esi + 0xfc], eax
mov dword [esi + 0xec], 0
test byte [edx + 0x30c], 2
jmp 0x4165ec
mov dword [esi + 0xec], 3
cmp dword [esi + 0xec], 9
jne 0x4164f4
mov dword [esi + 0xec], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 0x439d84
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0
call fcn.00423dee
push 0x439d84
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], 0
call fcn.00423dee
push 0x439d84
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0xa
call fcn.00423dee
push 0x439d84
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x2b
call fcn.00423dee
lea ecx, [ecx]
test dword [ebp + 0x41], esp
add byte [edi + 1073758565], ah
inc ecx
add byte [ebp - 0x6affbe9a], dl
inc cx
add bl, cl
inc cx
add dl, ah
inc cx
add byte [esi + 0x41], dh
add ah, cl
int3
Function at 0x418cf0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x114
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
push esi
mov esi, dword [esp + 0x124]
push edi
lea eax, [esp + 0x14]
mov ebx, ecx
mov ecx, dword [esi + 8]
push eax
push ecx
mov dword [esp + 0x18], 0
call ebp
mov eax, dword [esi + 0xc]
test eax, eax
mov edi, dword [esp + 0x12c]
jl 0x418d85
mov ecx, dword [ebx + 0x130]
push eax
call fcn.00419e50
mov ecx, dword [esp + 0x130]
dec ecx
je 0x418d57
dec ecx
je 0x418d4d
movsx ecx, word [esi + 0x14]
movsx edx, word [esi + 0x16]
jmp 0x418d5f
movsx ecx, word [esi + 0x18]
movsx edx, word [esi + 0x1a]
jmp 0x418d5f
movsx ecx, word [esi + 0x1c]
movsx edx, word [esi + 0x1e]
push 0xcc0020
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
test byte [esi + 3], 2
je 0x418db1
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov ecx, dword [esi + 8]
lea eax, [esp + 0x14]
push eax
push ecx
call ebp
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x24]
push edx
push 0xff
push 0xd
push eax
call ebx
mov ecx, dword [esi + 8]
push 0
push 0
push 0x31
push ecx
call ebx
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
push 1
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x25
lea edx, [esp + 0x18]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00422950
add esp, 8
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
lea edx, [esp + 0x10]
push edx
call fcn.00422960
add esp, 4
push ebx
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0xc
Function at 0x41c670
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
mov edi, ecx
call fcn.00419da0
mov eax, dword [edi + 0x324]
mov ecx, dword [eax + ebx*4]
xor ebp, ebp
test ecx, ecx
je 0x41c6c1
mov ecx, eax
mov esi, dword [ecx + ebx*4]
test esi, esi
mov ebp, dword [esi + 0x34]
je 0x41c6ab
mov ecx, esi
call fcn.0041c160
push esi
call fcn.00423a69
add esp, 4
mov edx, dword [edi + 0x324]
push 0
push ebp
mov dword [edx + ebx*4], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1a4
call fcn.00423a6e
xor esi, esi
add esp, 4
cmp eax, esi
je 0x41c6de
mov dword [eax], esi
mov dword [eax + 0xc4], esi
mov esi, eax
mov eax, dword [edi + 0x324]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
and ecx, 1
push ecx
mov dword [eax + ebx*4], esi
mov eax, dword [esp + 0x1c]
push edx
push eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x130], edi
mov dword [esi + 0x44], 1
mov ecx, dword [edi + 0x320]
push ebp
push ecx
mov ecx, esi
call fcn.0041c440
xor eax, eax
pop edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x41f1f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [ebx + 8]
push ebp
push esi
mov esi, eax
and esi, 7
je 0x41f21a
cmp eax, esi
jge 0x41f208
mov eax, ebx
call fcn.0041eaf0
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov ecx, esi
shr edx, cl
sub eax, esi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov ecx, dword [ebx + 8]
xor eax, eax
test ecx, ecx
jle 0x41f24f
mov esi, 0xfffffff8
mov edx, ecx
lea ebx, [ebx]
mov cl, byte [ebx + 0xc]
mov ebp, dword [ebx + 0xc]
mov byte [esp + eax + 8], cl
shr ebp, 8
add edx, esi
inc eax
test edx, edx
mov dword [ebx + 0xc], ebp
jg 0x41f230
cmp eax, 4
mov dword [ebx + 8], edx
jge 0x41f26b
mov edx, dword [ebx + 4]
mov esi, dword [ebx]
cmp esi, edx
jb 0x41f25c
xor cl, cl
jmp 0x41f261
mov cl, byte [esi]
inc esi
mov dword [ebx], esi
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 4
jl 0x41f252
mov eax, dword [esp + 8]
movzx ecx, byte [esp + 0xa]
movzx ebp, ah
movzx edx, al
movzx eax, byte [esp + 0xb]
shl ebp, 8
add ebp, edx
shl eax, 8
mov edx, ebp
add eax, ecx
xor edx, 0xffff
cmp eax, edx
je 0x41f2a5
pop esi
mov dword [0x43e410], 0x433d5c
xor eax, eax
pop ebp
pop ecx
ret
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
add eax, ebp
cmp eax, ecx
jbe 0x41f2c0
pop esi
mov dword [0x43e410], 0x433d48
xor eax, eax
pop ebp
pop ecx
ret
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
lea ecx, [eax + ebp]
cmp ecx, edx
push edi
jbe 0x41f2e2
push ebp
mov edi, ebx
call fcn.0041ebe0
add esp, 4
test eax, eax
jne 0x41f2e2
pop edi
pop esi
pop ebp
pop ecx
ret
mov esi, dword [ebx]
mov edi, dword [ebx + 0x10]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
add ecx, ebp
add eax, ebp
pop edi
pop esi
mov dword [ebx + 0x10], eax
mov dword [ebx], ecx
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x422d10
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
jmp 0x425cb9
push 0x128
push 0x434268
call fcn.0042e2e0
mov eax, dword [0x43c494]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x425dc6
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x425d77
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00424ea0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x425d64
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x425dc6
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x425dc6
mov al, byte [edi]
cmp al, 0x5c
je 0x425d85
cmp al, 0x2f
jne 0x425d8a
cmp al, byte [edi + 1]
je 0x425dc0
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.0042e182
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x425dc6
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042e123
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x425de2
push edi
call fcn.00423779
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.0042ddfb
call fcn.0042e31b
ret

Function at 0x422d30
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push edi
xor edi, edi
test bl, 1
je 0x422d4c
mov edi, 0x10
test bl, 2
je 0x422d54
or edi, 6
mov ecx, dword [esp + 0x154]
lea eax, [esp + 0x10]
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x422d7e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
push esi
mov esi, dword [esp + 0x15c]
and ebx, 4
lea esp, [esp]
mov edx, dword [esp + 0x14]
xor eax, eax
and edx, edi
cmp eax, edx
sbb eax, eax
neg eax
test ebx, ebx
jne 0x422dab
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
je 0x422de9
mov al, byte [esp + 0x40]
test al, al
je 0x422de9
cmp al, 0x2e
jne 0x422dcf
mov al, byte [esp + 0x41]
test al, al
je 0x422de9
cmp al, 0x2e
jne 0x422dcf
mov al, byte [esp + 0x42]
test al, al
je 0x422de9
lea edx, [esp + 0x40]
push edx
push esi
inc ebp
call fcn.0040ccd0
push 0x4334f0
push esi
call fcn.0040ccd0
add esp, 0x10
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x422d90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x422d90
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x144
ret
Function at 0x4256c8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4256f6
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x4256fb
cmp eax, 1
je 0x4256fb
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4256ff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x43c494]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x425775
push ebx
call fcn.004256c8
test eax, eax
pop ecx
jne 0x425744
mov dword [0x43e470], 0xf
mov dword [0x43e46c], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0042ddfb
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x425787
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x425737
inc eax
cmp eax, 0x104
ja 0x425737
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4257be
cmp eax, dword [ebp + 0x10]
jg 0x4257a2
mov eax, dword [ebp + 0x10]
push eax
call fcn.0042372d
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4257d2
mov dword [0x43e46c], 0xc
jmp 0x425737
cmp eax, dword [ebp + 0x10]
jle 0x4257d2
mov dword [0x43e46c], 0x22
jmp 0x425737
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00429380
pop ecx
pop ecx
jmp 0x425739
Function at 0x425e78
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x434278
call fcn.0042e2e0
mov edi, 0x94
mov eax, edi
call fcn.00424ea0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x43e478], ecx
mov eax, dword [esi + 4]
mov dword [0x43e484], eax
mov edx, dword [esi + 8]
mov dword [0x43e488], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43e47c], esi
cmp ecx, 2
je 0x425ed8
or esi, 0x8000
mov dword [0x43e47c], esi
shl eax, 8
add eax, edx
mov dword [0x43e480], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x425f13
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425f13
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x425f2b
cmp eax, 0x20b
je 0x425f18
mov dword [ebp - 0x1c], esi
jmp 0x425f3f
cmp dword [ecx + 0x84], 0xe
jbe 0x425f13
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x425f39
cmp dword [ecx + 0x74], 0xe
jbe 0x425f13
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004270a7
pop ecx
test eax, eax
jne 0x425f6b
cmp dword [0x43e468], 1
jne 0x425f58
call fcn.0042e5ac
push 0x1c
call fcn.0042e435
push 0xff
call fcn.00426054
pop ecx
pop ecx
call fcn.0042ebaa
mov dword [ebp - 4], esi
call fcn.004285d4
test eax, eax
jge 0x425f84
push 0x1b
call fcn.00425e53
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43fbd4], eax
call fcn.0042ea88
mov dword [0x43e460], eax
call fcn.0042e9e6
test eax, eax
jge 0x425faa
push 8
call fcn.00425e53
pop ecx
call fcn.0042e7b3
test eax, eax
jge 0x425fbb
push 9
call fcn.00425e53
pop ecx
push 1
call fcn.00426084
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x425fd1
push eax
call fcn.00425e53
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042e756
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x425ff2
movzx eax, word [ebp - 0x40]
jmp 0x425ff5
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041d050
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x426013
push edi
call fcn.004261af
call fcn.004261d1
jmp 0x426045
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042e31b
ret
Function at 0x4260ee
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x43e4b8], esi
push edi
jne 0x42610e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x43e4b4], esi
mov byte [0x43e4b0], al
jne 0x426174
mov ecx, dword [0x43fbcc]
test ecx, ecx
je 0x426155
mov eax, dword [0x43fbc8]
sub eax, 4
cmp eax, ecx
jmp 0x42614e
mov eax, dword [eax]
test eax, eax
je 0x426140
call eax
mov eax, dword [0x43fbc8]
sub eax, 4
cmp eax, dword [0x43fbcc]
mov dword [0x43fbc8], eax
jae 0x426138
mov eax, 0x43c034
mov esi, 0x43c03c
cmp eax, esi
mov edi, eax
jae 0x426174
mov eax, dword [edi]
test eax, eax
je 0x42616d
call eax
add edi, 4
cmp edi, esi
jb 0x426165
mov eax, 0x43c040
mov esi, 0x43c048
cmp eax, esi
mov edi, eax
jae 0x426193
mov eax, dword [edi]
test eax, eax
je 0x42618c
call eax
add edi, 4
cmp edi, esi
jb 0x426184
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4261ad
push dword [ebp + 8]
mov dword [0x43e4b8], 1
call fcn.00426054
pop ebp
ret
Function at 0x426b59
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x43fa88]
push edi
jae 0x426d2e
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x43faa0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x426d2e
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x426c04
test dl, 2
jne 0x426c04
test dl, 0x48
je 0x426bce
cmp byte [eax + 5], 0xa
je 0x426bce
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x426c17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x426bff
mov dword [0x43e470], ecx
jmp 0x426d35
cmp eax, 0x6d
jne 0x426c0b
xor eax, eax
jmp 0x426d42
push eax
call fcn.0042e123
pop ecx
jmp 0x426d3f
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x426d29
test eax, eax
je 0x426c3e
cmp byte [ebx], 0xa
jne 0x426c3e
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x426c47
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x426d23
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x426d13
cmp al, 0xd
je 0x426c79
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x426d05
dec ecx
cmp dword [ebp - 8], ecx
jae 0x426c93
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x426c8e
add dword [ebp - 8], 2
jmp 0x426ce7
mov dword [ebp - 8], eax
jmp 0x426d01
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x426cbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x426d01
cmp dword [ebp - 0x10], 0
je 0x426d01
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x426cdc
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x426ce7
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x426d04
cmp ebx, dword [ebp + 0xc]
jne 0x426cec
cmp byte [ebp - 1], 0xa
jne 0x426cec
mov byte [ebx], 0xa
jmp 0x426d04
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004261ef
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x426d05
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x426c5d
jmp 0x426d23
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x426d23
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x426d42
and dword [0x43e470], 0
mov dword [0x43e46c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42877f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x43fa88]
mov eax, dword [0x43c494]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x428945
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x43faa0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x428945
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x4287e9
xor eax, eax
jmp 0x428959
test al, 0x20
je 0x4287fa
push 2
push edi
push edi
push ecx
call fcn.0042f4ba
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4288cf
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x428916
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x42885c
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x42884d
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x42882f
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42889c
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4288a8
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x428823
jmp 0x4288aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x428940
cmp dword [ebp + 0x3a4], edi
je 0x428916
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x428908
mov dword [0x43e470], eax
jmp 0x42894c
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4288fa
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x4288aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x4288aa
push dword [ebp + 0x3a4]
call fcn.0042e123
pop ecx
jmp 0x428956
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42892e
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4287e2
mov dword [0x43e46c], 0x1c
mov dword [0x43e470], edi
jmp 0x428956
sub eax, dword [ebp - 0x7c]
jmp 0x428959
and dword [0x43e470], 0
mov dword [0x43e46c], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0042ddfb
add ebp, 0x39c
leave
ret
Function at 0x42e1fa
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00424ea0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42e295
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x43e478]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x42e295
cmp eax, 1
je 0x42e2b6
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42e295
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42e262
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42e291
xor eax, eax
inc eax
jmp 0x42e2d5
cmp edi, eax
jae 0x42e299
xor eax, eax
jmp 0x42e2d5
cmp eax, esi
jae 0x42e2a0
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x43e478]
jmp 0x42e2b9
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret