joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419ae8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x14]
xor edx, edx
cmp edi, edx
je 0x419c02
mov eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, 7
push ebx
push esi
mov dword [ebp - 4], edx
je 0x419b26
mov ebx, dword [ebp + 8]
mov edx, ecx
mov esi, eax
shr esi, 3
mov bl, byte [esi + ebx]
mov cl, 8
sub cl, dl
shr bl, cl
movzx cx, bl
mov word [ebp - 4], cx
add edi, 7
shr eax, 3
shr edi, 3
xor esi, esi
test edi, edi
mov dword [ebp - 0xc], eax
jle 0x419c00
lea eax, [edi - 1]
cmp esi, eax
je 0x419b57
mov eax, dword [ebp + 0x10]
movzx ax, byte [esi + eax]
xor ecx, ecx
mov ch, byte [ebp - 4]
xor eax, ecx
add edx, 8
jmp 0x419b87
mov eax, dword [ebp + 0x14]
and eax, 7
mov dword [ebp - 8], 8
je 0x419b69
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
movzx eax, byte [esi + eax]
mov ebx, dword [ebp - 4]
mov cl, 8
sub cl, byte [ebp - 8]
shr al, cl
mov ecx, dword [ebp - 8]
shl ebx, cl
movzx ax, al
or eax, ebx
add edx, ecx
mov dword [ebp - 4], eax
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
setne cl
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp edx, 8
setge al
test ecx, eax
jne 0x419bbb
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
sete cl
xor ebx, ebx
test edx, edx
setg bl
test ebx, ecx
je 0x419bf7
push 8
pop eax
cmp edx, eax
mov dword [ebp - 8], eax
jg 0x419bc8
mov dword [ebp - 8], edx
mov ebx, dword [ebp - 4]
mov cl, dl
sub cl, byte [ebp - 8]
shr bx, cl
mov ecx, eax
sub ecx, dword [ebp - 8]
mov eax, 0xff00
shl bl, cl
mov ecx, dword [ebp - 8]
sar eax, cl
mov ecx, dword [ebp - 0xc]
and bl, al
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov byte [ecx + eax], bl
jmp 0x419b97
inc esi
cmp esi, edi
jl 0x419b3f
pop esi
pop ebx
pop edi
leave
ret

Function at 0x41a44c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x41a4e0
push ebx
push edi
push esi
call fcn.0040fb39
pop ecx
mov ebx, eax
push ebx
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x4283c8
push ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 4]
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
push ebx
call fcn.0040fb80
push esi
push str.Higher:__x_n
call fcn.00420f4d
push edi
push str.Lower:__x_n
call fcn.00420f4d
mov ecx, dword [ebp + 0xc]
mov eax, esi
shr eax, 0x10
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
movzx eax, si
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
mov eax, edi
shr eax, 0x10
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
movzx eax, di
add esp, 0x14
mov dword [ecx], eax
xor eax, eax
pop edi
inc eax
pop ebx
pop esi
leave
ret
Function at 0x41a5ee
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push edi
push 0x41
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x210], bl
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
push 0x41
pop ecx
mov byte [ebp - 0x108], bl
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x210]
push eax
call fcn.0041a51a
test eax, eax
pop ecx
jne 0x41a634
xor al, al
jmp 0x41a673
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.0041322f
pop ecx
pop ecx
push 1
lea eax, [ebp - 0x108]
push eax
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov al, 1
pop edi
pop ebx
leave
ret

Function at 0x41d800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push edi
push 0x3f
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x100], bl
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.SkypeControlAPIAttach
mov byte [0x446240], 1
mov byte [0x457e00], 1
stosb byte es:[edi], al
call esi
push str.SkypeControlAPIDiscover
mov dword [0x457eac], eax
call esi
mov dword [0x457eb0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0x40
call dword [0x455a58]
cmp dword [0x457eac], ebx
mov dword [0x457e20], eax
je 0x41d945
cmp dword [0x457eb0], ebx
je 0x41d945
push ebx
push ebx
push ebx
push 0x41d67c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41d899
push 0xa
call esi
cmp dword [0x457e1c], ebx
je 0x41d895
push ebx
push 0x3e8
push ebx
push ebx
push dword [0x457e1c]
push dword [0x457eb0]
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
xor edi, edi
jmp 0x41d8ce
cmp edi, 0x64
jge 0x41d906
push 0xa
inc edi
call esi
cmp dword [0x457eb4], ebx
je 0x41d8c4
jmp 0x41d906
lea eax, [ebp - 0x100]
push eax
push dword [0x4571b8]
call fcn.00412a27
test eax, eax
pop ecx
pop ecx
jne 0x41d8f7
push ebx
call fcn.0040b8b9
pop ecx
push ebx
call fcn.00412f27
mov dword [esp], 0x2710
call esi
cmp byte [0x4606e0], bl
jne 0x41d8d8
push dword [0x457e20]
push 0x457e28
call dword [sym.imp.USER32.dll_UnregisterClassA]
push dword [0x457e20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x457e1c]
cmp eax, ebx
mov dword [0x457e20], ebx
je 0x41d945
push ebx
push ebx
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp - 0x100]
push eax
push dword [0x4571b8]
call fcn.00412a27
test eax, eax
pop ecx
pop ecx
jne 0x41d964
push ebx
call fcn.0040b8b9
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e56f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push edi
mov dword [esi], eax
mov byte [esi + 0xa8], bl
mov byte [esi + 0xa9], bl
mov dword [esi + 0xac], ebx
mov dword [esi + 0x10], 0x64
mov dword [esi + 0x14], ebx
mov byte [esi + 0x27], bl
push dword [eax + 4]
call fcn.0041c086
mov edi, eax
mov eax, dword [esi]
push dword [eax + 4]
call fcn.0041c0da
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp + 8], eax
je 0x41e5e4
call fcn.0041295f
mov ecx, dword [0x458450]
sub ecx, dword [edi + 8]
lea eax, [eax + ecx - 0x15180]
cmp eax, 0x4f1a00
ja 0x41e5e4
cmp dword [ebp + 8], 3
jb 0x41e5e4
mov byte [esi + 0x24], bl
jmp 0x41e5e8
mov byte [esi + 0x24], 1
cmp edi, ebx
je 0x41e614
call fcn.0041295f
mov ecx, dword [0x458450]
sub ecx, dword [edi + 8]
lea eax, [eax + ecx - 0x15180]
cmp eax, 0x7080
ja 0x41e614
cmp dword [ebp + 8], 0x64
jbe 0x41e614
mov byte [esi + 0x25], 1
jmp 0x41e617
mov byte [esi + 0x25], bl
cmp edi, ebx
je 0x41e63d
call fcn.0041295f
mov ecx, dword [0x458450]
sub ecx, dword [edi + 8]
lea eax, [eax + ecx - 0x15180]
cmp eax, 0x5dc
ja 0x41e63d
mov byte [esi + 0x26], 1
jmp 0x41e640
mov byte [esi + 0x26], bl
mov eax, dword [esi]
push dword [eax + 4]
lea eax, [ebp - 0x40]
push 0x4296a0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x40]
push eax
call fcn.0041b5d5
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
push 0x7d0
jmp 0x41e67d
lea eax, [ebp - 0x40]
push eax
call fcn.0041b5d5
mov dword [esp], 0x1388
call edi
mov eax, dword [esi]
push dword [eax + 4]
call fcn.0041b795
cmp eax, ebx
pop ecx
mov dword [esi + 4], eax
je 0x41e66d
mov ecx, dword [eax + 0xc]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x18], ebx
push dword [eax + 0xc]
call fcn.0041b8bf
cmp eax, ebx
pop ecx
je 0x41e6b0
mov eax, dword [eax + 8]
mov dword [esi + 0x18], eax
mov ecx, esi
call fcn.0041e3e3
pop edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], 0x2710
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x41e743
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp dword [ebp + 8], 0
push ebx
mov ebx, ecx
je 0x41e812
push 0x428720
push dword [ebp + 8]
call fcn.00412098
test eax, eax
pop ecx
pop ecx
jne 0x41e812
cmp byte [ebp + 0xc], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov byte [ebp - 0x400], al
mov ecx, 0xff
lea edi, [ebp - 0x3ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x41e7af
mov ecx, ebx
call fcn.0041e6ca
call esi
cmp eax, dword [ebx + 0x14]
jae 0x41e7af
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41e79b
push dword [ebp + 8]
mov eax, dword [ebx + 4]
push dword [eax]
lea eax, [ebp - 0x400]
push str.CHATMESSAGE__s__s
push 0x3e8
push eax
call fcn.00420f7e
lea eax, [ebp - 0x400]
push eax
call fcn.0041b5d5
add esp, 0x18
call esi
push eax
call fcn.004201d8
cmp byte [ebp + 0xc], 0
pop ecx
je 0x41e810
call fcn.004201e2
cdq
mov ecx, 0x190
idiv ecx
push dword [ebp + 8]
mov edi, edx
add edi, dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
imul edi, eax
call esi
add edi, eax
mov dword [ebx + 0x14], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x420ffa
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x429798
call fcn.0042079c
mov edi, 0x94
mov eax, edi
call fcn.00420250
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 [0x4608f0], ecx
mov eax, dword [esi + 4]
mov dword [0x4608fc], eax
mov edx, dword [esi + 8]
mov dword [0x460900], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4608f4], esi
cmp ecx, 2
je 0x42105a
or esi, 0x8000
mov dword [0x4608f4], esi
shl eax, 8
add eax, edx
mov dword [0x4608f8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x421095
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421095
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4210ad
cmp eax, 0x20b
je 0x42109a
mov dword [ebp - 0x1c], esi
jmp 0x4210c1
cmp dword [ecx + 0x84], 0xe
jbe 0x421095
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4210bb
cmp dword [ecx + 0x74], 0xe
jbe 0x421095
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00423ffd
pop ecx
test eax, eax
jne 0x4210ed
cmp dword [0x4608d0], 1
jne 0x4210da
call fcn.004237b2
push 0x1c
call fcn.0042363b
push 0xff
call fcn.00421825
pop ecx
pop ecx
call fcn.00423f5b
mov dword [ebp - 4], esi
call fcn.00423db0
test eax, eax
jge 0x421106
push 0x1b
call fcn.00420fd5
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x461ed0], eax
call fcn.00423c8e
mov dword [0x4608c8], eax
call fcn.00423bec
test eax, eax
jge 0x42112c
push 8
call fcn.00420fd5
pop ecx
call fcn.004239b9
test eax, eax
jge 0x42113d
push 9
call fcn.00420fd5
pop ecx
push 1
call fcn.00421855
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x421153
push eax
call fcn.00420fd5
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042395c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x421174
movzx eax, word [ebp - 0x40]
jmp 0x421177
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040caec
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x421195
push edi
call fcn.00421980
call fcn.004219a2
jmp 0x4211c7
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004207d7
ret
Function at 0x4218bf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x460930], esi
push edi
jne 0x4218df
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 [0x46092c], esi
mov byte [0x460928], al
jne 0x421945
mov ecx, dword [0x461ec8]
test ecx, ecx
je 0x421926
mov eax, dword [0x461ec4]
sub eax, 4
cmp eax, ecx
jmp 0x42191f
mov eax, dword [eax]
test eax, eax
je 0x421911
call eax
mov eax, dword [0x461ec4]
sub eax, 4
cmp eax, dword [0x461ec8]
mov dword [0x461ec4], eax
jae 0x421909
mov eax, 0x42c02c
mov esi, 0x42c034
cmp eax, esi
mov edi, eax
jae 0x421945
mov eax, dword [edi]
test eax, eax
je 0x42193e
call eax
add edi, 4
cmp edi, esi
jb 0x421936
mov eax, 0x42c038
mov esi, 0x42c03c
cmp eax, esi
mov edi, eax
jae 0x421964
mov eax, dword [edi]
test eax, eax
je 0x42195d
call eax
add edi, 4
cmp edi, esi
jb 0x421955
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x42197e
push dword [ebp + 8]
mov dword [0x460930], 1
call fcn.00421825
pop ebp
ret

Function at 0x421b5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x421b7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004251c9
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x421b9d
test byte [esp + 8], 2
je 0x421b9d
mov dword [0x4608e4], 0xd
mov dword [0x4608e8], 5
jmp 0x421b78
xor eax, eax
ret
Function at 0x421d12
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x421d40
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x421d47
cmp ebx, dword [eax + 4]
jae 0x421d47
xor eax, eax
jmp 0x421f37
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x421d58
xor eax, eax
inc eax
jmp 0x421f36
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x421d6e
cmp ecx, edx
jae 0x421eb3
cmp dword [eax + 4], 0
je 0x421d77
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x421d5f
cmp dword [ebp + 8], 0
je 0x421d99
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x421eb3
cmp eax, esi
jae 0x421eb3
mov eax, dword [0x460938]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x421dbe
cmp dword [esi*4 + 0x460940], edi
je 0x421eb7
inc esi
cmp esi, eax
jl 0x421dac
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x421f33
cmp dword [ebp - 8], 0x1000000
jne 0x421f33
test byte [ebp - 0xc], 0xcc
je 0x421e3c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x421f33
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x421f33
cmp word [eax + 0x18], 0x10b
jne 0x421f33
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x421f33
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x421e3c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x421e3c
test byte [ecx + 0x27], 0x80
jne 0x421eb3
push 1
push 0x460980
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x421d50
mov ecx, dword [0x460938]
test ecx, ecx
mov edx, ecx
jle 0x421e70
lea eax, [ecx*4 + 0x46093c]
cmp dword [eax], edi
je 0x421e70
dec edx
sub eax, 4
test edx, edx
jg 0x421e64
test edx, edx
jne 0x421ea1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x421e7d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x421e95
lea eax, [edx*4 + 0x460940]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x421e83
cmp ecx, 0x10
jge 0x421ea1
inc ecx
mov dword [0x460938], ecx
push 0
push 0x460980
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x421d50
xor eax, eax
jmp 0x421f36
test esi, esi
jle 0x421d50
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x460980
call ebx
test eax, eax
jne 0x421d50
cmp dword [esi*4 + 0x460940], edi
je 0x421f0d
mov eax, dword [0x460938]
lea esi, [eax - 1]
test esi, esi
jl 0x421efb
cmp dword [esi*4 + 0x460940], edi
je 0x421ef7
dec esi
jns 0x421eeb
test esi, esi
jge 0x421f0b
cmp eax, 0x10
jge 0x421f06
inc eax
mov dword [0x460938], eax
lea esi, [eax - 1]
jmp 0x421f0d
je 0x421f25
xor ecx, ecx
test esi, esi
jl 0x421f25
lea eax, [ecx*4 + 0x460940]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x421f13
push 0
push 0x460980
call ebx
jmp 0x421d50
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4229f2
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.00420250
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x422a8d
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 [0x4608f0]
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 0x422a8d
cmp eax, 1
je 0x422aae
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 0x422a8d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x422a5a
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x422a89
xor eax, eax
inc eax
jmp 0x422acd
cmp edi, eax
jae 0x422a91
xor eax, eax
jmp 0x422acd
cmp eax, esi
jae 0x422a98
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 [0x4608f0]
jmp 0x422ab1
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
Function at 0x42363b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x44c3a0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x44c0c8]
je 0x423670
inc eax
cmp eax, 0x13
jb 0x423661
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x44c0c8]
jne 0x423796
mov eax, dword [0x4608d0]
cmp eax, 1
je 0x42376e
cmp eax, edx
jne 0x4236a0
cmp dword [0x44bcf4], 1
je 0x42376e
cmp ecx, 0xfc
je 0x423796
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4236d6
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004204b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00420b90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42370a
mov eax, edi
push eax
call fcn.00420b90
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42a1c8
push edi
call fcn.00420290
add esp, 0x10
push edi
call fcn.00420b90
push dword [esi + 0x44c0cc]
mov ebx, eax
call fcn.00420b90
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00420250
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004204b0
push edi
push ebx
call fcn.004204c0
push 0x42a1a8
push ebx
call fcn.004204c0
push dword [esi + 0x44c0cc]
push ebx
call fcn.004204c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004265ae
add esp, 0x2c
jmp 0x423796
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x44c0cc]
push dword [esi]
call fcn.00420b90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00425534
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x424deb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x424e16
cmp eax, 1
je 0x424e16
jle 0x424e1e
cmp eax, 3
jle 0x424e16
cmp eax, 4
jne 0x424e1e
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x424e47
mov dword [0x4608e4], 0x16
mov dword [0x4608e8], ebx
or eax, 0xffffffff
jmp 0x424fb9
inc eax
cmp byte [eax], bl
jne 0x424e36
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x424e47
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x424e36
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.004200c0
mov dword [ebp - 0x68], esi
mov esi, dword [0x460b44]
add esp, 0xc
cmp esi, ebx
je 0x424e8a
lea eax, [esi - 1]
mov ecx, eax
sar ecx, 5
mov ecx, dword [ecx*4 + 0x460b60]
mov edx, eax
and edx, 0x1f
cmp byte [ecx + edx*8 + 4], bl
jne 0x424e8a
dec esi
dec eax
cmp esi, ebx
jne 0x424e6d
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.0042621b
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x424eef
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 8]
sar eax, 5
mov eax, dword [eax*4 + 0x460b60]
and edi, 0x1f
lea edi, [eax + edi*8]
mov al, byte [edi + 4]
test al, 0x10
jne 0x424edb
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x424ee0
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x424eb6
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x424f20
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x424f06
mov edi, esi
jmp 0x424f09
push 3
pop edi
cmp edx, edi
jge 0x424f19
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x424efd
mov dword [ebp - 0xc], 8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
mov dword [0x4608e4], ebx
push dword [ebp - 0xc]
mov dword [0x4608e8], ebx
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.00422936
cmp esi, ebx
pop ecx
jne 0x424f6e
push edi
call fcn.004251c9
pop ecx
or eax, 0xffffffff
jmp 0x424fb7
cmp dword [ebp + 8], 2
jne 0x424f7a
push ebx
call fcn.00421991
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x424fa7
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x424fb0
cmp dword [ebp + 8], 4
je 0x424fa0
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret