joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4242e5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
push edi
mov edi, 0x400
jne 0x424300
xor eax, eax
jmp 0x424392
push esi
push 1
push edi
call fcn.004268a0
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x42438e
push ebx
push dword [ebp + 8]
push edi
push esi
push 0x43c616
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, eax
lea eax, [edi - 2]
cmp ebx, eax
jne 0x42434f
push esi
call fcn.004262e0
add edi, edi
cmp edi, ebx
pop ecx
jb 0x42438d
push 1
push edi
call fcn.004268a0
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x424312
jmp 0x42438d
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jne 0x424359
push esi
jmp 0x42437d
xor eax, eax
cmp byte [eax + esi], 0
jne 0x424368
cmp byte [eax + esi + 1], 0
je 0x424386
cmp byte [eax + esi + 1], 0
jne 0x424375
inc ecx
cmp ecx, dword [ebp + 0x10]
je 0x424378
inc eax
jmp 0x42435b
lea eax, [eax + esi + 2]
push eax
call fcn.0042f33d
pop ecx
mov dword [ebp - 4], eax
push esi
call fcn.004262e0
pop ecx
pop ebx
mov eax, dword [ebp - 4]
pop esi
pop edi
leave
ret

Function at 0x42452a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
push 0xf003f
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42463b
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 4]
cmp eax, esi
jbe 0x42461f
shl eax, 2
push ebx
push eax
call fcn.0042629a
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x42461e
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 2]
push eax
mov dword [ebp - 0x10], eax
call fcn.0042629a
cmp eax, esi
pop ecx
mov dword [ebp - 0x14], eax
je 0x424617
push edi
xor edi, edi
cmp dword [ebp - 4], esi
jbe 0x4245e5
mov eax, dword [ebp - 0xc]
push esi
push esi
push esi
lea eax, [eax + eax + 2]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 0x14]
call fcn.0042f33d
mov dword [ebx + edi*4], eax
inc edi
cmp edi, dword [ebp - 4]
pop ecx
jb 0x4245b4
push dword [ebp - 0x14]
call fcn.004262e0
xor edi, edi
cmp dword [ebp - 4], esi
pop ecx
jbe 0x424616
mov eax, dword [ebx + edi*4]
cmp eax, esi
je 0x424610
push eax
push dword [ebp - 8]
call fcn.0042452a
push dword [ebx + edi*4]
call fcn.004262e0
add esp, 0xc
inc edi
cmp edi, dword [ebp - 4]
jb 0x4245f5
pop edi
push ebx
call fcn.004262e0
pop ecx
pop ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
jmp 0x42463d
xor eax, eax
pop esi
leave
ret
Function at 0x424640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jne 0x424679
cmp byte [0x448540], bl
mov eax, 0x438200
jne 0x424666
mov eax, str.An_error_has_occurred_in_RegReadMultiStringDirect.
push 0x30
push str.Registory_Class
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4246ed
push edi
mov edi, dword [ebp + 0x14]
cmp edi, ebx
je 0x4246ea
cmp dword [ebp + 0xc], ebx
je 0x4246ea
cmp dword [ebp + 0x10], ebx
je 0x4246ea
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4246ea
cmp dword [ebp - 4], ebx
jbe 0x4246ea
cmp dword [ebp - 4], 2
jbe 0x4246d4
cmp dword [ebp - 4], 7
jne 0x4246ea
mov eax, dword [edi]
cmp eax, dword [ebp - 8]
jb 0x4246ea
push edi
push dword [ebp + 0x10]
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
neg eax
sbb eax, eax
inc eax
jmp 0x4246ec
mov eax, dword [edi]
cmp eax, dword [ebp - 8]
jbe 0x4246ea
push eax
push ebx
push dword [ebp + 0x10]
call fcn.00426360
add esp, 0xc
jmp 0x4246bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x424793
Capabilities:
Read .ini file

Disassembly:
push ebp
xor ebp, ebp
cmp dword [esp + 8], ebp
push edi
mov edi, 0x400
je 0x42481e
cmp dword [esp + 0x10], ebp
je 0x42481e
push esi
push 1
push edi
call fcn.004268a0
mov esi, eax
cmp esi, ebp
pop ecx
pop ecx
je 0x424819
push ebx
push dword [esp + 0x14]
push edi
push esi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov ebx, eax
lea eax, [edi - 2]
cmp ebx, eax
jne 0x4247f2
push esi
call fcn.004262e0
add edi, edi
cmp edi, ebx
pop ecx
jb 0x424818
push 1
push edi
call fcn.004268a0
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x4247ba
jmp 0x424818
xor eax, eax
cmp byte [esi + eax], 0
jne 0x424801
cmp byte [esi + eax + 1], 0
je 0x424804
inc eax
jmp 0x4247f4
add eax, 2
push eax
push esi
call fcn.004266f3
mov ebp, eax
test ebp, ebp
pop ecx
pop ecx
jne 0x424818
mov ebp, esi
pop ebx
mov eax, ebp
pop esi
jmp 0x424820
xor eax, eax
pop edi
pop ebp
ret

Function at 0x42528e
Capabilities:
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x449748]
push esi
mov dword [ebp + 0x84], eax
push 0x104
lea eax, [ebp - 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x425304
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
dec esi
test esi, esi
jle 0x425304
cmp byte [ebp + esi - 0x80], 0x5c
jne 0x4252c9
lea eax, [esi - 1]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00424e83
test eax, eax
pop ecx
pop ecx
jne 0x4252c9
cmp esi, 4
jle 0x4252f3
mov byte [ebp + esi - 0x80], al
jmp 0x4252f8
mov byte [ebp + esi - 0x7f], 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x425306
xor eax, eax
mov ecx, dword [ebp + 0x84]
pop esi
call fcn.00428306
add ebp, 0x88
leave
ret
Function at 0x42531a
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x449748]
push edi
xor edi, edi
push edi
mov dword [ebp + 0x190], eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, 0x8007000e
je 0x425461
cmp eax, 0x80070057
je 0x425461
cmp eax, 0x8000ffff
je 0x425461
lea eax, [ebp - 0x7c]
push eax
push 0x43a520
push 1
push edi
push 0x43a530
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, 0x80040110
je 0x425461
cmp eax, 0x80040154
je 0x425461
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
lea edx, [ebp - 0x80]
push edx
push 0x43a540
push eax
call dword [ecx]
test eax, eax
jne 0x425461
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push esi
push dword [ebp + 0x19c]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
mov esi, 0x43c616
push esi
push eax
call dword [ecx + 0x24]
push dword [ebp + 0x1ac]
mov eax, dword [ebp - 0x7c]
push dword [ebp + 0x1a8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x7c]
push dword [ebp + 0x1a0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push 0x104
lea eax, [ebp - 0x78]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x1a4]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x78]
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x80]
cmp eax, edi
je 0x425444
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x7c]
cmp eax, edi
je 0x425451
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
cmp esi, edi
sete al
pop esi
jmp 0x425463
xor eax, eax
mov ecx, dword [ebp + 0x190]
pop edi
call fcn.00428306
add ebp, 0x194
leave
ret

Function at 0x425507
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x449748]
mov dword [ebp + 0x88], eax
mov eax, dword [0x44c304]
test eax, eax
jne 0x425553
lea eax, [ebp - 0x80]
push eax
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x7c]
push eax
call fcn.0042f33d
pop ecx
mov dword [0x44c304], eax
mov ecx, dword [ebp + 0x88]
call fcn.00428306
add ebp, 0x8c
leave
ret
Function at 0x425566
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x449748]
mov dword [ebp + 0x88], eax
mov eax, dword [0x44c308]
test eax, eax
jne 0x4255b2
lea eax, [ebp - 0x80]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x7c]
push eax
call fcn.0042f33d
pop ecx
mov dword [0x44c308], eax
mov ecx, dword [ebp + 0x88]
call fcn.00428306
add ebp, 0x8c
leave
ret

Function at 0x425c4e
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x449748]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0xffffffff
je 0x425c6f
xor eax, eax
inc eax
jmp 0x425d9f
push ebx
push esi
lea eax, [ebp - 0x1a4]
push eax
push 0x101
or esi, 0xffffffff
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x425c91
push 2
pop ebx
jmp 0x425d9b
xor ebx, ebx
inc ebx
cmp byte [ebp - 0x1a4], bl
jne 0x425d88
cmp byte [ebp - 0x1a3], bl
jne 0x425d88
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00426360
add esp, 0xc
push 0x438844
push dword [ebp + 0xc]
mov word [ebp - 0x14], 2
call sub.WSOCK32.dll_getservbyname
test eax, eax
jne 0x425cec
push dword [ebp + 0xc]
call fcn.00426600
cmp eax, ebx
pop ecx
jge 0x425ce4
push 4
jmp 0x425d24
push eax
call sub.WSOCK32.dll_htons
jmp 0x425cf0
mov ax, word [eax + 8]
push dword [ebp + 8]
mov word [ebp - 0x12], ax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x425d27
push dword [ebp + 8]
call sub.WSOCK32.dll_inet_addr
push 2
mov dword [ebp - 0x1ac], eax
push 4
lea eax, [ebp - 0x1ac]
push eax
call sub.WSOCK32.dll_gethostbyaddr
test eax, eax
jne 0x425d27
push 5
pop ebx
jmp 0x425d96
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00427320
add esp, 0xc
push 0
push ebx
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x425d52
push 6
jmp 0x425d8a
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x425d67
push 7
jmp 0x425d8a
lea eax, [ebp - 0x1a8]
push eax
push 0x8004667e
push esi
mov dword [ebp - 0x1a8], ebx
call sub.WSOCK32.dll_ioctlsocket
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor eax, eax
jmp 0x425d9d
push 3
cmp esi, 0xffffffff
pop ebx
je 0x425d96
push esi
call sub.WSOCK32.dll_closesocket
call fcn.0042f368
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.00428306
leave
ret
Function at 0x425e1d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea ecx, [ebp - 8]
call fcn.0042376d
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 0x10
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call esi
test ah, ah
jns 0x425e4f
push 0x11
call esi
test ah, ah
mov byte [ebp - 1], 1
js 0x425e52
mov byte [ebp - 1], bl
cmp dword [str.vbs.network.b], ebx
je 0x425f0b
xor eax, eax
cmp byte [ebp - 1], bl
mov esi, 0x448568
sete al
push edi
inc eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
lea ecx, [ebp - 8]
push dword [esi - 8]
push dword [esi - 0xc]
call fcn.00424c76
test al, al
je 0x425efe
push ebx
push dword [esi - 4]
lea ecx, [ebp - 8]
call fcn.00423d54
mov edi, eax
cmp edi, ebx
je 0x425ef1
mov eax, dword [esi]
cmp eax, ebx
je 0x425ea9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x425eea
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x425ec4
push eax
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x425eea
cmp byte [ebp - 1], bl
je 0x425ed6
push dword [esi - 4]
lea ecx, [ebp - 8]
call fcn.00423c0a
jmp 0x425edc
mov eax, dword [esi - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [esi + 4], ebx
je 0x425eea
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0042765d
pop ecx
lea ecx, [ebp - 8]
call fcn.00423c52
cmp dword [ebp - 0xc], ebx
jne 0x425f0a
add esi, 0x18
cmp dword [esi - 0x10], ebx
jne 0x425e70
pop edi
lea ecx, [ebp - 8]
call fcn.00424888
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x42720f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x43a618
call fcn.00429118
push 8
call fcn.00428557
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x44c37c], esi
jne 0x427243
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x44c378], esi
mov al, byte [ebp + 0x10]
mov byte [0x44c374], al
cmp dword [ebp + 0xc], edi
jne 0x42728d
cmp dword [0x44eeac], edi
je 0x42727d
mov eax, dword [0x44eea8]
sub eax, 4
mov dword [0x44eea8], eax
cmp eax, dword [0x44eeac]
jb 0x42727d
mov eax, dword [eax]
cmp eax, edi
je 0x42725e
call eax
jmp 0x42725e
push 0x44802c
mov eax, 0x448024
call fcn.0042718d
pop ecx
push 0x448038
mov eax, 0x448030
call fcn.0042718d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4272be
cmp dword [ebp + 0x10], edi
jne 0x4272cc
mov dword [0x44c37c], esi
push dword [ebp + 8]
call fcn.0042714b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4272cb
push 8
call fcn.004284a2
pop ecx
ret
call fcn.00429153
ret
Function at 0x428018
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x428034
call fcn.0042b075
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x4280a6
push esi
push 0x8c
push 1
call fcn.004268a0
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x42808c
push esi
call fcn.0042a283
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x427f86
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x428084
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4280a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004262e0
test ebx, ebx
pop ecx
je 0x42809e
push ebx
call fcn.0042b087
pop ecx
or eax, 0xffffffff
jmp 0x4280a5
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x428100
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x43a648
call fcn.00429118
mov edi, 0x94
mov eax, edi
call fcn.0042ce30
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 [0x44c33c], ecx
mov eax, dword [esi + 4]
mov dword [0x44c348], eax
mov edx, dword [esi + 8]
mov dword [0x44c34c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44c340], esi
cmp ecx, 2
je 0x428160
or esi, 0x8000
mov dword [0x44c340], esi
shl eax, 8
add eax, edx
mov dword [0x44c344], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42819b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42819b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4281b3
cmp eax, 0x20b
je 0x4281a0
mov dword [ebp - 0x1c], esi
jmp 0x4281c7
cmp dword [ecx + 0x84], 0xe
jbe 0x42819b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4281c1
cmp dword [ecx + 0x74], 0xe
jbe 0x42819b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004285a2
pop ecx
test eax, eax
jne 0x4281db
push 0x1c
call fcn.004280dc
pop ecx
call fcn.0042a47d
test eax, eax
jne 0x4281ec
push 0x10
call fcn.004280dc
pop ecx
call fcn.0042bebd
mov dword [ebp - 4], esi
call fcn.0042b866
test eax, eax
jge 0x428205
push 0x1b
call fcn.004280b7
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x44de84], eax
call fcn.0042cd0b
mov dword [0x44c384], eax
call fcn.0042cc69
test eax, eax
jge 0x42822b
push 8
call fcn.004280b7
pop ecx
call fcn.0042ca36
test eax, eax
jge 0x42823c
push 9
call fcn.004280b7
pop ecx
push 1
call fcn.004271a5
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x428252
push eax
call fcn.004280b7
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042c9d9
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x428273
movzx eax, word [ebp - 0x40]
jmp 0x428276
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041bd95
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x428294
push edi
call fcn.004272d2
call fcn.004272f4
jmp 0x4282c6
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00429153
ret
Function at 0x42b21c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x449748]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x42b24d
xor eax, eax
jmp 0x42b3d6
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x44dd60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x42b289
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0042e341
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42b364
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x42b3a2
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x42b2ed
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x42b2de
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x42b2be
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42b32d
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x42b336
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x42b2af
jmp 0x42b338
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x42b3d1
cmp dword [ebp - 0x6c], edi
je 0x42b3a2
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x42b397
call fcn.0042b075
mov dword [eax], 9
call fcn.0042b07e
mov dword [eax], esi
jmp 0x42b3cc
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42b38c
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x42b338
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x42b338
push dword [ebp - 0x6c]
call fcn.0042b087
pop ecx
jmp 0x42b3cc
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42b3ba
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x42b3ba
xor eax, eax
jmp 0x42b3d4
call fcn.0042b075
mov dword [eax], 0x1c
call fcn.0042b07e
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x42b3d4
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00428306
add ebp, 0x3a0
leave
ret
Function at 0x42bb45
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x42bd19
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x44dd60]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x42bd19
test cl, 0x48
je 0x42bbb0
cmp byte [eax + 5], 0xa
je 0x42bbb0
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42bc02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42bbea
call fcn.0042b075
mov dword [eax], 9
call fcn.0042b07e
mov dword [eax], esi
jmp 0x42bbfa
cmp eax, 0x6d
je 0x42bd19
push eax
call fcn.0042b087
pop ecx
or eax, 0xffffffff
jmp 0x42bd1b
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x42bd14
test eax, eax
je 0x42bc29
cmp byte [ebx], 0xa
jne 0x42bc29
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x42bc32
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x42bd0e
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x42bcfe
cmp al, 0xd
je 0x42bc64
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x42bcf0
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x42bc7e
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x42bc79
add dword [ebp + 0x10], 2
jmp 0x42bcd2
mov dword [ebp + 0x10], eax
jmp 0x42bcec
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
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 0x42bca6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42bcec
cmp dword [ebp - 0xc], 0
je 0x42bcec
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42bcc7
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42bcd2
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x42bcef
cmp ebx, dword [ebp + 0xc]
jne 0x42bcd7
cmp byte [ebp - 1], 0xa
jne 0x42bcd7
mov byte [ebx], 0xa
jmp 0x42bcef
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042b747
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42bcf0
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x42bc48
jmp 0x42bd0e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x42bd0e
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x42bd1b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret