joyce8/EMBER2024-capa huggingface dataset:
Function at 0x625c30
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
lea eax, [ebp - 0x64]
push esi
push edi
push 0x44
push 0
push eax
mov esi, edx
call fcn.00633cb0
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x64]
add esp, 0xc
push edi
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x625cae
mov esi, dword [ebp + 0xc]
push esi
mov dword [esi], 0x10007
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [esi + 0xa4]
lea ecx, [ebp - 4]
mov esi, dword [ebp + 0x10]
add eax, 8
push ecx
push 4
push esi
push eax
push dword [edi]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x625cb6
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [esi]
lea eax, [ebp - 0x20]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
xorps xmm0, xmm0
push 0x1c
push eax
push esi
push dword [edi]
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
call ebx
test eax, eax
je 0x625cfc
cmp dword [ebp - 0x10], 0x10000
je 0x625cfc
add esi, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
push dword [edi]
call ebx
test eax, eax
jne 0x625ce1
mov eax, dword [ebp + 0x10]
pop ebx
pop edi
sub esi, dword [eax]
mov dword [eax + 4], esi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x62c850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov eax, edx
mov ebx, ecx
xor cl, cl
mov dword [ebp - 0x14], eax
mov byte [ebp - 1], cl
test eax, eax
je 0x62ca2c
test ebx, ebx
je 0x62ca2c
push esi
mov esi, ebx
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x62c880
sub esi, ecx
sar esi, 1
push edi
lea eax, [esi*2 + 2]
push eax
call fcn.006317ca
mov edi, eax
add esp, 4
test edi, edi
je 0x62ca22
lea eax, [esi*2 + 2]
push eax
push 0
push edi
call fcn.00633cb0
add esp, 0xc
lea eax, [esi*2 + 1]
push 0
push 0
push eax
push edi
push esi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, edi
lea ecx, [ebx + 1]
nop dword [eax + eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x62c8e0
sub ebx, ecx
mov ecx, 0
je 0x62c95f
cmp ebx, 0x40
jb 0x62c953
movsx eax, bl
mov edx, ebx
and edx, 0xffffffc0
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
nop
movups xmm0, xmmword [edi + ecx]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edi + ecx], xmm1
movups xmm0, xmmword [edi + ecx + 0x10]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [edi + ecx + 0x10], xmm0
movups xmm0, xmmword [edi + ecx + 0x20]
pxor xmm0, xmm2
movups xmmword [edi + ecx + 0x20], xmm0
movups xmm0, xmmword [edi + ecx + 0x30]
pxor xmm1, xmm0
movups xmmword [edi + ecx + 0x30], xmm1
add ecx, 0x40
cmp ecx, edx
jb 0x62c910
cmp ecx, ebx
jae 0x62c95f
xor byte [ecx + edi], bl
inc ecx
cmp ecx, ebx
jb 0x62c957
lea eax, [ebx + ebx]
mov dword [ebp - 0x10], eax
inc eax
push eax
mov dword [ebp - 0xc], eax
call fcn.006317ca
mov esi, eax
add esp, 4
test esi, esi
je 0x62ca0e
push dword [ebp - 0xc]
push 0
push esi
call fcn.00633cb0
lea eax, [ebx + ebx]
push eax
push 0
push esi
call fcn.00633cb0
xor ecx, ecx
add esp, 0x18
mov dword [ebp - 0xc], ecx
test ebx, ebx
je 0x62c9f2
nop
movzx ecx, byte [ecx + edi]
xor eax, eax
mov word [ebp - 8], ax
mov byte [ebp - 6], al
mov eax, ecx
and eax, 0xf
shr ecx, 4
movsx eax, byte [eax + 0x66971c]
push eax
movsx eax, byte [ecx + 0x66971c]
push eax
push 0x66a2c4
lea eax, [ebp - 8]
push 3
push eax
call fcn.0060e050
mov ecx, dword [ebp - 0xc]
add esp, 0x14
movzx eax, byte [ebp - 8]
mov byte [esi + ecx*2], al
movzx eax, byte [ebp - 7]
mov byte [esi + ecx*2 + 1], al
inc ecx
mov dword [ebp - 0xc], ecx
cmp ecx, ebx
jb 0x62c9a0
mov eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call fcn.00631787
add esp, 4
push edi
mov bl, 1
call fcn.00631787
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x62cd50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65c563
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x67206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1d8], ebx
mov eax, dword [ebp + 8]
lea esi, [ebx + 0x14]
mov dword [ebp - 0x1d8], 0
lea ecx, [esi + 4]
mov byte [ebx], 0
xor edx, edx
mov dword [ebp - 0x1d8], esi
mov dword [esi], 0x669c14
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov dword [ebp - 0x1dc], ebx
mov word [ecx], dx
mov dword [ebp - 4], edx
add eax, 4
inc dword [0x674754]
cmp ecx, eax
je 0x62cde4
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x62cddb
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.00611370
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [ebx + 0x30], eax
lea eax, [ebp - 0x1d4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x62cead
mov eax, 2
mov word [ebx + 4], ax
movzx eax, word [ebx + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, esi
mov word [ebx + 6], ax
lea ecx, [ebp - 0x44]
call fcn.00613af0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x1d8], 2
call fcn.0060ede0
add esp, 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp - 0x14]
mov dword [ebx + 8], eax
cmp edx, 0x10
jb 0x62cea5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x62ce9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x62cf3b
push edx
push ecx
call fcn.006317bc
add esp, 8
lea ecx, [ebp - 0x44]
call fcn.0060ed70
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x62cf15
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x1d8]
push 4
push eax
push 0x1005
push 0xffff
push edi
mov dword [ebp - 0x1d8], 0x1388
call esi
push 4
lea eax, [ebp - 0x1d8]
push eax
push 0x1006
push 0xffff
push edi
call esi
push 0x10
lea eax, [ebx + 4]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x62cf18
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
or edi, 0xffffffff
mov dword [ebx + 0x34], edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00631776
mov esp, ebp
pop ebp
ret 8
call fcn.006375a6
int3
Function at 0x62cf70
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov ecx, dword [esi]
test ecx, ecx
je 0x62cf93
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], 0
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x10]
xorps xmm0, xmm0
mov dword [esp + 0xc], 0
push eax
lea edx, [esp + 0x10]
movlpd qword [esp + 0x14], xmm0
call fcn.00623ea0
add esp, 4
test al, al
jne 0x62cfc8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0xc]
push 0
push dword [esp + 0x14]
push esi
push dword [ebx + 0x34]
call dword [sym.imp.WS2_32.dll_send]
push esi
test eax, eax
jg 0x62cff7
call fcn.00631787
add esp, 4
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00631787
add esp, 4
push 0x4b0
call fcn.006317ca
add esp, 4
mov edi, eax
push 0x4b0
push 0
push edi
call fcn.00633cb0
add esp, 0xc
xor esi, esi
push 0
push 0x4b0
push edi
push dword [ebx + 0x34]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x62d05d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 4
jl 0x62d020
push edi
call fcn.00631787
add esp, 4
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cdq
mov ecx, edi
push edx
push eax
call fcn.00623fb0
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], eax
call fcn.00631787
add esp, 0xc
xor eax, eax
cmp dword [ebx], eax
mov ecx, 0xfffffffc
cmove eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x62d090
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, ecx
cmp dword [edi + 0x20c], 0xffffffff
jne 0x62d147
push esi
push dword [edi]
lea esi, [edi + 4]
push 0x66a570
push 0x104
push esi
call fcn.0060d670
add esp, 0x10
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x20]
movq qword [ebp - 0xc], xmm0
movups xmmword [ebp - 0x20], xmm0
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x2000
push 0x2000
push 1
push 6
push 3
push esi
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi + 0x20c], eax
pop esi
cmp eax, 0xffffffff
je 0x62d140
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
nop dword [eax + eax]
cmp dword [edi + 0x20c], 0xffffffff
setne al
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x62ed00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1530
call fcn.00632760
mov eax, dword [0x67206c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push 0x114
push ebx
mov dword [ebp - 0x152c], esi
mov eax, dword [esi + 0x210]
mov dword [esi + 0x214], eax
lea eax, [ebp - 0x518]
push eax
call fcn.00633cb0
add esp, 0xc
mov dword [ebp - 0x518], 0x114
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x508], 2
jne 0x62ed70
mov ecx, esi
call fcn.0062e570
jmp 0x62eea7
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov dword [ebp - 0x1528], ebx
push edi
nop dword [eax]
test ebx, ebx
jne 0x62eea0
push 0x100
mov dword [ebp - 0x1530], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x62edb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x66a7ec
call fcn.00625c00
add esp, 8
push 0x100c
lea eax, [ebp - 0x1524]
push 0
push eax
call fcn.00633cb0
add esp, 0xc
push 0
push 0x4000000
push 0
push 0
push 0
push 0
push 0x66a820
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x62ee11
push 0
lea eax, [ebp - 0x1530]
push eax
push 4
lea eax, [ebp - 0x1524]
push eax
push 0
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea edi, [ebp - 0x1518]
nop dword [eax]
cmp byte [ebp + esi - 0x1520], 0
je 0x62ee6d
mov eax, esi
shr eax, 1
cmp byte [ebp + eax - 0x1524], 0
je 0x62ee6d
xor eax, eax
mov edx, edi
nop dword [eax]
movzx ecx, word [edx]
lea edx, [edx + 2]
mov dword [ebp + eax*4 - 0x404], ecx
inc eax
cmp eax, 0x100
jl 0x62ee40
lea eax, [ebp - 0x404]
push eax
push ecx
mov ecx, dword [ebp - 0x152c]
call fcn.0062e9c0
mov ebx, 1
inc esi
add edi, 0x200
cmp esi, 8
jb 0x62ee20
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
mov eax, dword [ebp - 0x1528]
inc eax
mov dword [ebp - 0x1528], eax
cmp eax, 0xa
jl 0x62ed80
mov esi, dword [ebp - 0x152c]
pop edi
mov ecx, dword [esi + 0x214]
mov eax, 0x4bda12f7
sub ecx, dword [esi + 0x210]
imul ecx
mov ecx, dword [ebp - 4]
sar edx, 7
xor ecx, ebp
mov eax, edx
shr eax, 0x1f
pop esi
add eax, edx
pop ebx
call fcn.00631776
mov esp, ebp
pop ebp
ret
Function at 0x62eee0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
push ebx
lea ebx, [eax + 0x210]
mov dword [ebp - 0xc], eax
push esi
mov esi, dword [ebx]
push edi
mov dword [ebp - 0x10], ebx
cmp esi, dword [eax + 0x214]
je 0x62efdd
mov ecx, dword [ebp + 8]
lea edi, [esi + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add ecx, 0xa8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
nop dword [eax]
push ecx
call ebx
push 0x66a848
call ebx
sub edi, 0xffffff80
push edi
call ebx
push 0x66a848
call ebx
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0x28]
push eax
call ebx
push 0x66a848
call ebx
push dword [ebp - 4]
call ebx
push 0x66a848
call ebx
mov eax, dword [ebp - 8]
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x62ef76
test cl, cl
je 0x62ef72
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x62ef76
add eax, 2
add edi, 2
test cl, cl
jne 0x62ef56
xor eax, eax
jmp 0x62ef7b
sbb eax, eax
or eax, 1
mov edi, dword [ebp - 4]
test eax, eax
jne 0x62efb9
mov edx, dword [ebp + 8]
mov ecx, edi
lea eax, [edx + 0x28]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x62efb0
test dl, dl
je 0x62efac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x62efb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x62ef90
xor eax, eax
jmp 0x62efb5
sbb eax, eax
or eax, 1
test eax, eax
je 0x62f032
mov eax, dword [ebp - 0xc]
add esi, 0x1b0
mov ecx, dword [ebp - 8]
add edi, 0x1b0
mov dword [ebp - 4], edi
cmp esi, dword [eax + 0x214]
jne 0x62ef20
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
lea ecx, [esi + 0xa8]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x62eff0
sub ecx, edx
je 0x62f032
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x62f01e
mov edi, eax
mov ecx, 0x6c
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 4], 0x1b0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push eax
mov ecx, ebx
call fcn.0062f040
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x630035
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x65c6ce
call fcn.00632050
mov edi, ecx
mov dword [ebp - 0x30], edi
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x63016a
cmp byte [edi + 0x3e], bl
je 0x63016a
mov eax, dword [edi]
mov ecx, 0xffff
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [fcn.0065d2d4]
mov ecx, edi
call esi
mov ecx, 0xffff
cmp cx, ax
jne 0x630082
xor al, al
jmp 0x63016c
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.0060a490
lea eax, [edi + 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
cmp ecx, 0x10
jb 0x6300b7
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x6300c1
mov edx, eax
mov edi, dword [edi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov esi, dword [edi]
push eax
push edx
push dword [ebp - 0x34]
mov ecx, dword [esi + 0x20]
call dword [fcn.0065d2d4]
mov ecx, edi
call dword [esi + 0x20]
sub eax, ebx
je 0x6300f1
sub eax, 1
jne 0x63014f
mov edi, dword [ebp - 0x30]
jmp 0x6300f7
mov edi, dword [ebp - 0x30]
mov byte [edi + 0x3e], bl
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x630107
mov edx, eax
mov esi, dword [ebp - 0x38]
sub esi, edx
je 0x630131
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x630118
mov edx, eax
push dword [edi + 0x4c]
push esi
push 1
push edx
call fcn.0063baa2
add esp, 0x10
cmp esi, eax
jne 0x63015a
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
cmp byte [edi + 0x3e], 0
je 0x630158
test esi, esi
jne 0x6300a9
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.00603400
jmp 0x6300a3
dec eax
sub eax, 1
jne 0x63015e
inc eax
jmp 0x63015c
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.00602fc0
mov al, bl
jmp 0x63016c
mov al, 1
call fcn.0063200b
ret

Function at 0x64bc50
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0064b913

Function at 0x64bc5b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0064ba94

Function at 0x65095c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0065061c
Function at 0x401d18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x401dba
push 9
push str.ERROR_
push dword [0x40f2c2]
call fcn.004024a9
mov edi, dword [0x40f2c2]
sub eax, eax
mov ecx, 0xffff
repne scasb al, byte es:[edi]
sub edi, 1
push edi
push 0
push 0xa
push dword [ebp + 8]
call fcn.004027bc
cmp dword [0x40ecde], 0
je 0x401d93
push 0xa
push str._IN_LINE
push dword [0x40f2c2]
call fcn.004024e1
mov edi, dword [0x40f2c2]
sub eax, eax
mov ecx, 0xffff
repne scasb al, byte es:[edi]
sub edi, 1
push edi
push 0
push 0xa
push dword [0x40ecde]
call fcn.004027bc
push 3
push 0x40e090
push dword [0x40f2c2]
call fcn.004024e1
push 0xffff
push dword [ebp + 0xc]
push dword [0x40f2c2]
call fcn.004024e1
jmp 0x401dcd
push 0xffff
push dword [ebp + 0xc]
push dword [0x40f2c2]
call fcn.004024a9
push 0x15
push str.ERROR
push dword [0x40f2c2]
push 0
call sub.USER32.dll_MessageBoxA
cmp eax, 2
jne 0x401df0
mov esi, 0x40ecf0
jmp 0x40c34b
mov eax, dword [ebp + 8]
leave
ret 8

Function at 0x401df7
Capabilities:
Write file on windows

Disassembly:
push eax
push ebx
push edi
pushfd
mov ebx, dword [0x4112d2]
cmp ebx, 0x200
jae 0x401e47
mov edi, dword [0x40f2c2]
mov dword [ebx*4 + 0x40f2d2], edi
add ebx, 1
mov dword [0x4112d2], ebx
sub eax, eax
mov ecx, 0xffff
repne scasb al, byte es:[edi]
mov eax, 0xffff
sub eax, ecx
test eax, 1
je 0x401e39
add eax, 1
add eax, dword [0x40f2c2]
cmp eax, dword [0x4112d6]
jl 0x401e9a
popfd
push 0x37
push str.PASPLUS_RUNTIME_ERROR:_STRING_MEMORY_OVERFLOW_IN_LINE
push dword [0x40f2c2]
call fcn.004024a9
mov edi, dword [0x40f2c2]
sub eax, eax
mov ecx, 0xffff
repne scasb al, byte es:[edi]
sub edi, 1
push edi
push 0
push 0xa
push dword [0x40ecde]
call fcn.004027bc
push 0x10
push str.ERROR
push dword [0x40f2c2]
push 0
call sub.USER32.dll_MessageBoxA
mov esi, 0x40ecf0
jmp 0x40c34b
mov dword [0x40f2c2], eax
popfd
pop edi
pop ebx
pop eax
ret

Function at 0x4023fa
Capabilities:
Write file on windows

Disassembly:
push esi
push 0
push 0x40ec68
push 2
push 0x40e001
push dword [0x40ece6]
call sym._Top0227
mov eax, dword [0x40ec68]
pop esi
ret

Function at 0x40294c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov ebx, dword [ebp + 0xc]
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x402965
lea ebx, [0x40eff8]
mov dword [ebp - 4], ebx
mov eax, 0
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x402979
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov dword [esi], 0
add esi, 4
mov dword [esi], 0

Function at 0x40342f
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
invalid
add dword [eax], eax
invalid

Function at 0x4036fb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
mov eax, 0
mov dword [ebp - 4], eax
invalid

Function at 0x404adb
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
call sub.USER32.dll_GetDlgItem
mov dword [esi], eax
push 0
add bh, bh
call sub.USER32.dll_ShowWindow
add cl, cl
ret 8
Function at 0x406332
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push 0x810
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
add eax, 0x408
mov dword [ebp - 0x10], eax
add eax, 0x408
push 0x404
push dword [0x40f0f8]
push dword [ebp - 0xc]
call fcn.004024a9
push 0x404
push dword [0x40f0f8]
push dword [ebp - 0x10]
call fcn.004024a9
call sub.KERNEL32.dll_GetTickCount
mov dword [esi], eax
mov eax, 0x3e8
add eax, dword [esi]
mov dword [ebp - 4], eax
Function at 0x4029e4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403f80
test esi, esi
jne 0x402a1a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404070
jmp 0x402a38
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f8
mov edi, eax
test esi, esi
je 0x402a38
cmp dword [ebx], 0
je 0x402a38
dec esi
jmp 0x402a21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x450020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403158
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403138
xor eax, eax
push ebp
push 0x403131
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403174
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403138
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x450020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x450020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e04
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x452048], 0
je 0x403e65
cmp word [0x45221c], 0xd7b2
jne 0x403e2d
cmp dword [0x452224], 0
jbe 0x403e2d
mov eax, 0x452218
call dword [0x452234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45006c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403e8c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x450030], 0
jne 0x403e81
push 0
push 0x450064
push 0x45006c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret