joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419eb2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, 0x10000
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + edx*4]
mov edx, ecx
and ecx, 0xffff
shr edx, 0x10
mov esi, ecx
mov dword [ebp - 8], ecx
mov ecx, edx
imul ecx, edx
mov dword [eax + 4], ecx
mov ecx, esi
imul ecx, esi
mov dword [eax], ecx
mov ebx, edx
sub ebx, esi
sub esi, edx
mov ecx, esi
imul ecx, ebx
xor esi, ebx
mov ebx, dword [eax + 4]
and esi, edi
neg esi
mov dword [ebp - 4], edx
mov edx, ecx
neg edx
sbb edx, edx
and edx, esi
add ecx, ebx
cmp ecx, ebx
sbb esi, esi
and esi, edi
add edx, esi
mov esi, dword [eax]
add ecx, esi
cmp ecx, esi
sbb esi, esi
and esi, edi
add edx, esi
mov esi, ecx
shl esi, 0x10
add dword [eax], esi
cmp dword [eax], esi
sbb esi, esi
neg esi
shr ecx, 0x10
add esi, ebx
add ecx, esi
add ecx, edx
mov dword [eax + 4], ecx
add eax, 8
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0x10]
jl 0x419ec6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x419f53
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
shr dword [ebp + 0x14], 0x10
and eax, 0xffff
push esi
mov dword [ebp + 0xc], eax
push edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + edx*4]
mov ecx, dword [ebp + 0x14]
mov esi, edi
and edi, 0xffff
shr esi, 0x10
mov edx, edi
imul edx, dword [ebp + 0xc]
mov dword [ebp - 8], esi
imul esi, ecx
sub edi, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
mov eax, edi
imul eax, ecx
mov dword [ebp - 0xc], ecx
xor edi, dword [ebp - 0xc]
mov ecx, eax
and edi, 0x10000
neg edi
neg ecx
sbb ecx, ecx
and ecx, edi
add eax, esi
cmp eax, esi
sbb edi, edi
add eax, edx
and edi, 0x10000
add ecx, edi
cmp eax, edx
sbb edi, edi
and edi, 0x10000
add ecx, edi
mov edi, eax
shl edi, 0x10
add edx, edi
cmp edx, edi
sbb edi, edi
shr eax, 0x10
neg edi
add edi, ecx
add eax, edi
add esi, eax
mov eax, dword [ebx]
lea ecx, [edx + edx]
add eax, ecx
cmp eax, ecx
sbb edi, edi
neg edi
cmp ecx, edx
sbb ecx, ecx
neg ecx
add ecx, dword [ebp - 4]
mov dword [ebx], eax
add ebx, 4
mov eax, dword [ebx]
lea edx, [ecx + edi]
lea edi, [esi + esi]
add eax, edi
cmp eax, edi
sbb ecx, ecx
neg ecx
cmp edi, esi
sbb esi, esi
add edx, eax
neg esi
add ecx, esi
cmp edx, eax
sbb eax, eax
neg eax
add eax, ecx
inc dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x18]
mov dword [ebx], edx
jl 0x419f7b
add ebx, 4
cmp dword [ebp - 4], 0
pop edi
pop esi
je 0x41a073
mov edx, dword [ebp + 0x18]
add edx, edx
cmp dword [ebp + 8], edx
jge 0x41a073
mov eax, dword [ebx]
mov ecx, dword [ebp - 4]
add ecx, eax
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [ebx], ecx
add ebx, 4
inc dword [ebp + 8]
test eax, eax
mov dword [ebp - 4], eax
jne 0x41a052
pop ebx
leave
ret
Function at 0x41a62b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40a0
call fcn.00421ba0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, 0x45a2d0
push esi
call edi
push eax
push dword [0x4490ac]
call fcn.0041b1a7
pop ecx
pop ecx
push eax
push dword [0x4490b0]
push esi
call edi
push eax
push esi
push dword [0x4490ac]
lea eax, [ebp - 0x40a0]
push eax
call fcn.0041b389
add esp, 0x18
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push accept
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x41a6a2
xor eax, eax
jmp 0x41a726
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 8]
push ecx
mov edi, 0x400
push edi
lea ecx, [ebp - 0x408]
push ecx
push eax
jmp 0x41a6ef
mov eax, dword [ebp - 8]
cmp eax, ebx
jbe 0x41a6f5
shl eax, 3
push ebx
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x40a0]
push eax
call fcn.0041b6cc
add esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x41a6bd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x40a0]
push ebx
push eax
call fcn.0041b93f
mov esi, dword [ebp + 0xc]
push 0x40
lea eax, [ebp - 0x4058]
push eax
push esi
call fcn.004216d0
xor eax, eax
add esp, 0x14
mov byte [esi + 0x40], bl
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b26c
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 0x41b386
mov eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, 7
push ebx
push esi
mov dword [ebp - 4], edx
je 0x41b2aa
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 0x41b384
lea eax, [edi - 1]
cmp esi, eax
je 0x41b2db
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 0x41b30b
mov eax, dword [ebp + 0x14]
and eax, 7
mov dword [ebp - 8], 8
je 0x41b2ed
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 0x41b33f
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
sete cl
xor ebx, ebx
test edx, edx
setg bl
test ebx, ecx
je 0x41b37b
push 8
pop eax
cmp edx, eax
mov dword [ebp - 8], eax
jg 0x41b34c
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 0x41b31b
inc esi
cmp esi, edi
jl 0x41b2c3
pop esi
pop ebx
pop edi
leave
ret

Function at 0x41bb9a
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x28
push 0x45af60
push str.skype.exe
mov byte [ebp - 1], 0
call fcn.0041406b
add esp, 0xc
test eax, eax
mov dword [0x45b004], eax
jg 0x41bbc3
xor al, al
leave
ret
lea eax, [ebp - 1]
push eax
push 0x41bb10
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp - 1], 0
jne 0x41bbe3
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [ebp - 1]
leave
ret
Function at 0x41bbe8
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 0x41bc7c
push ebx
push edi
push esi
call fcn.00410adc
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 0x42a3a8
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.00410b23
push esi
push str.Higher:__x_n
call fcn.004228ed
push edi
push str.Lower:__x_n
call fcn.004228ed
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 0x41f043
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 [0x449320], 1
mov byte [0x45b030], 1
stosb byte es:[edi], al
call esi
push str.SkypeControlAPIDiscover
mov dword [0x45b0dc], eax
call esi
mov dword [0x45b0e0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0x40
call dword [0x458b44]
cmp dword [0x45b0dc], ebx
mov dword [0x45b050], eax
je 0x41f188
cmp dword [0x45b0e0], ebx
je 0x41f188
push ebx
push ebx
push ebx
push 0x41eebf
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41f0dc
push 0xa
call esi
cmp dword [0x45b04c], ebx
je 0x41f0d8
push ebx
push 0x3e8
push ebx
push ebx
push dword [0x45b04c]
push dword [0x45b0e0]
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
xor edi, edi
jmp 0x41f111
cmp edi, 0x64
jge 0x41f149
push 0xa
inc edi
call esi
cmp dword [0x45b0e4], ebx
je 0x41f107
jmp 0x41f149
lea eax, [ebp - 0x100]
push eax
push dword [0x45a340]
call fcn.00413ff3
test eax, eax
pop ecx
pop ecx
jne 0x41f13a
push ebx
call fcn.0040c57b
pop ecx
push ebx
call fcn.00414583
mov dword [esp], 0x2710
call esi
cmp byte [0x463910], bl
jne 0x41f11b
push dword [0x45b050]
push 0x45b058
call dword [sym.imp.USER32.dll_UnregisterClassA]
push dword [0x45b050]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x45b04c]
cmp eax, ebx
mov dword [0x45b050], ebx
je 0x41f188
push ebx
push ebx
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp - 0x100]
push eax
push dword [0x45a340]
call fcn.00413ff3
test eax, eax
pop ecx
pop ecx
jne 0x41f1a7
push ebx
call fcn.0040c57b
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41fea3
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.0041d8a8
mov edi, eax
mov eax, dword [esi]
push dword [eax + 4]
call fcn.0041d8fc
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp + 8], eax
je 0x41ff18
call fcn.00413f2b
mov ecx, dword [0x45b680]
sub ecx, dword [edi + 8]
lea eax, [eax + ecx - 0x15180]
cmp eax, 0x4f1a00
ja 0x41ff18
cmp dword [ebp + 8], 3
jb 0x41ff18
mov byte [esi + 0x24], bl
jmp 0x41ff1c
mov byte [esi + 0x24], 1
cmp edi, ebx
je 0x41ff48
call fcn.00413f2b
mov ecx, dword [0x45b680]
sub ecx, dword [edi + 8]
lea eax, [eax + ecx - 0x15180]
cmp eax, 0x7080
ja 0x41ff48
cmp dword [ebp + 8], 0x64
jbe 0x41ff48
mov byte [esi + 0x25], 1
jmp 0x41ff4b
mov byte [esi + 0x25], bl
cmp edi, ebx
je 0x41ff71
call fcn.00413f2b
mov ecx, dword [0x45b680]
sub ecx, dword [edi + 8]
lea eax, [eax + ecx - 0x15180]
cmp eax, 0x5dc
ja 0x41ff71
mov byte [esi + 0x26], 1
jmp 0x41ff74
mov byte [esi + 0x26], bl
mov eax, dword [esi]
push dword [eax + 4]
lea eax, [ebp - 0x40]
push str.CHAT_CREATE__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x40]
push eax
call fcn.0041cdf3
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
push 0x7d0
jmp 0x41ffb1
lea eax, [ebp - 0x40]
push eax
call fcn.0041cdf3
mov dword [esp], 0x1388
call edi
mov eax, dword [esi]
push dword [eax + 4]
call fcn.0041cfb3
cmp eax, ebx
pop ecx
mov dword [esi + 4], eax
je 0x41ffa1
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.0041d0dd
cmp eax, ebx
pop ecx
je 0x41ffe4
mov eax, dword [eax + 8]
mov dword [esi + 0x18], eax
mov ecx, esi
call fcn.0041fd17
pop edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], 0x2710
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x420077
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 0x420146
push 0x42a778
push dword [ebp + 8]
call fcn.0041356e
test eax, eax
pop ecx
pop ecx
jne 0x420146
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 0x4200e3
mov ecx, ebx
call fcn.0041fffe
call esi
cmp eax, dword [ebx + 0x14]
jae 0x4200e3
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4200cf
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.00421df3
lea eax, [ebp - 0x400]
push eax
call fcn.0041cdf3
add esp, 0x18
call esi
push eax
call fcn.00421b28
cmp byte [ebp + 0xc], 0
pop ecx
je 0x420144
call fcn.00421b32
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 0x422943
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42b7f0
call fcn.0042213c
mov edi, 0x94
mov eax, edi
call fcn.00421ba0
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 [0x463b20], ecx
mov eax, dword [esi + 4]
mov dword [0x463b2c], eax
mov edx, dword [esi + 8]
mov dword [0x463b30], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x463b24], esi
cmp ecx, 2
je 0x4229a3
or esi, 0x8000
mov dword [0x463b24], esi
shl eax, 8
add eax, edx
mov dword [0x463b28], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4229de
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4229de
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4229f6
cmp eax, 0x20b
je 0x4229e3
mov dword [ebp - 0x1c], esi
jmp 0x422a0a
cmp dword [ecx + 0x84], 0xe
jbe 0x4229de
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x422a04
cmp dword [ecx + 0x74], 0xe
jbe 0x4229de
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0042594f
pop ecx
test eax, eax
jne 0x422a36
cmp dword [0x463b00], 1
jne 0x422a23
call fcn.00425104
push 0x1c
call fcn.00424f8d
push 0xff
call fcn.00423b0c
pop ecx
pop ecx
call fcn.004258ad
mov dword [ebp - 4], esi
call fcn.00425702
test eax, eax
jge 0x422a4f
push 0x1b
call fcn.0042291e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4650f0], eax
call fcn.004255e0
mov dword [0x463af8], eax
call fcn.0042553e
test eax, eax
jge 0x422a75
push 8
call fcn.0042291e
pop ecx
call fcn.0042530b
test eax, eax
jge 0x422a86
push 9
call fcn.0042291e
pop ecx
push 1
call fcn.00423b3c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x422a9c
push eax
call fcn.0042291e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004252ae
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x422abd
movzx eax, word [ebp - 0x40]
jmp 0x422ac0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040d962
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x422ade
push edi
call fcn.00423c67
call fcn.00423c89
jmp 0x422b10
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00422177
ret
Function at 0x423ba6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x463b60], esi
push edi
jne 0x423bc6
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 [0x463b5c], esi
mov byte [0x463b58], al
jne 0x423c2c
mov ecx, dword [0x4650e8]
test ecx, ecx
je 0x423c0d
mov eax, dword [0x4650e4]
sub eax, 4
cmp eax, ecx
jmp 0x423c06
mov eax, dword [eax]
test eax, eax
je 0x423bf8
call eax
mov eax, dword [0x4650e4]
sub eax, 4
cmp eax, dword [0x4650e8]
mov dword [0x4650e4], eax
jae 0x423bf0
mov eax, 0x42e02c
mov esi, 0x42e034
cmp eax, esi
mov edi, eax
jae 0x423c2c
mov eax, dword [edi]
test eax, eax
je 0x423c25
call eax
add edi, 4
cmp edi, esi
jb 0x423c1d
mov eax, 0x42e038
mov esi, 0x42e03c
cmp eax, esi
mov edi, eax
jae 0x423c4b
mov eax, dword [edi]
test eax, eax
je 0x423c44
call eax
add edi, 4
cmp edi, esi
jb 0x423c3c
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x423c65
push dword [ebp + 8]
mov dword [0x463b60], 1
call fcn.00423b0c
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x423e63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00426ea9
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x423e84
test byte [esp + 8], 2
je 0x423e84
mov dword [0x463b14], 0xd
mov dword [0x463b18], 5
jmp 0x423e5f
xor eax, eax
ret
Function at 0x423ff6
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 0x424024
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 0x42402b
cmp ebx, dword [eax + 4]
jae 0x42402b
xor eax, eax
jmp 0x42421b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42403c
xor eax, eax
inc eax
jmp 0x42421a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x424052
cmp ecx, edx
jae 0x424197
cmp dword [eax + 4], 0
je 0x42405b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x424043
cmp dword [ebp + 8], 0
je 0x42407d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x424197
cmp eax, esi
jae 0x424197
mov eax, dword [0x463b68]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4240a2
cmp dword [esi*4 + 0x463b70], edi
je 0x42419b
inc esi
cmp esi, eax
jl 0x424090
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x424217
cmp dword [ebp - 8], 0x1000000
jne 0x424217
test byte [ebp - 0xc], 0xcc
je 0x424120
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x424217
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x424217
cmp word [eax + 0x18], 0x10b
jne 0x424217
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x424217
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x424120
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x424120
test byte [ecx + 0x27], 0x80
jne 0x424197
push 1
push 0x463bb0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x424034
mov ecx, dword [0x463b68]
test ecx, ecx
mov edx, ecx
jle 0x424154
lea eax, [ecx*4 + 0x463b6c]
cmp dword [eax], edi
je 0x424154
dec edx
sub eax, 4
test edx, edx
jg 0x424148
test edx, edx
jne 0x424185
push 0xf
pop ebx
cmp ecx, ebx
jg 0x424161
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x424179
lea eax, [edx*4 + 0x463b70]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x424167
cmp ecx, 0x10
jge 0x424185
inc ecx
mov dword [0x463b68], ecx
push 0
push 0x463bb0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x424034
xor eax, eax
jmp 0x42421a
test esi, esi
jle 0x424034
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x463bb0
call ebx
test eax, eax
jne 0x424034
cmp dword [esi*4 + 0x463b70], edi
je 0x4241f1
mov eax, dword [0x463b68]
lea esi, [eax - 1]
test esi, esi
jl 0x4241df
cmp dword [esi*4 + 0x463b70], edi
je 0x4241db
dec esi
jns 0x4241cf
test esi, esi
jge 0x4241ef
cmp eax, 0x10
jge 0x4241ea
inc eax
mov dword [0x463b68], eax
lea esi, [eax - 1]
jmp 0x4241f1
je 0x424209
xor ecx, ecx
test esi, esi
jl 0x424209
lea eax, [ecx*4 + 0x463b70]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4241f7
push 0
push 0x463bb0
call ebx
jmp 0x424034
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424ce2
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.00421ba0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x424d7d
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 [0x463b20]
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 0x424d7d
cmp eax, 1
je 0x424d9e
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 0x424d7d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x424d4a
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x424d79
xor eax, eax
inc eax
jmp 0x424dbd
cmp edi, eax
jae 0x424d81
xor eax, eax
jmp 0x424dbd
cmp eax, esi
jae 0x424d88
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 [0x463b20]
jmp 0x424da1
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 0x424f8d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x44f2ec]
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 + 0x44f1c0]
je 0x424fc2
inc eax
cmp eax, 0x13
jb 0x424fb3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x44f1c0]
jne 0x4250e8
mov eax, dword [0x463b00]
cmp eax, 1
je 0x4250c0
cmp eax, edx
jne 0x424ff2
cmp dword [0x44ede4], 1
je 0x4250c0
cmp ecx, 0xfc
je 0x4250e8
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 0x425028
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00421e50
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00422530
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42505c
mov eax, edi
push eax
call fcn.00422530
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42c220
push edi
call fcn.00421be0
add esp, 0x10
push edi
call fcn.00422530
push dword [esi + 0x44f1c4]
mov ebx, eax
call fcn.00422530
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00421ba0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00421e50
push edi
push ebx
call fcn.00421e60
push 0x42c200
push ebx
call fcn.00421e60
push dword [esi + 0x44f1c4]
push ebx
call fcn.00421e60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00427f02
add esp, 0x2c
jmp 0x4250e8
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x44f1c4]
push dword [esi]
call fcn.00422530
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.00425ed8
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret