joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x10586
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
push 0x206b6444
xor ebx, ebx
push 0x48
inc ebx
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
jne 0x105b2
mov eax, 0xc000009a
jmp 0x106da
push edi
push 0x12
xor eax, eax
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
and dword [esi + 4], eax
mov edi, dword [ebp + 0xc]
mov dword [esi], ebx
mov dword [esi + 8], ebx
and word [ebp - 0x1c], ax
mov ax, word [edi]
add ax, 2
mov word [ebp - 0x1a], ax
movzx eax, ax
push 0x206b6444
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x105f7
mov edi, 0xc000009a
jmp 0x106ce
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
mov edi, dword [ebp + 8]
and word [ebp - 0xc], 0
lea eax, [ebp - 0x6c]
push 0x10540
mov dword [ebp - 8], eax
push ebx
lea eax, [ebp - 0xc]
push eax
mov dword [edi + 0x38], 0x10700
mov dword [edi + 0x40], 0x10726
mov dword [edi + 0x70], 0x103d0
mov dword [edi + 0x34], 0x10772
mov word [ebp - 0xa], 0x50
call fcn.00010470
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x9993
lea eax, [ebp - 0xc]
push eax
push 0x10
push edi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jge 0x10662
mov edi, eax
jmp 0x106ce
mov eax, dword [ebp - 4]
or dword [eax + 0x1c], 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov dword [ecx], eax
and word [ebp - 0x14], 0
lea eax, [ebp - 0xbc]
push 0x10560
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp + 8], ecx
mov word [ebp - 0x12], 0x50
call fcn.00010470
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
test eax, eax
mov dword [ebp + 0xc], eax
jge 0x106c1
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
push esi
push edi
call fcn.00010500
mov eax, dword [ebp + 0xc]
jmp 0x106d9
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 8], bl
xor edi, edi
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x402eb0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a1f0]
jne 0x402eba
repz ret
jmp fcn.00405b12

Function at 0x40c8cf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a1f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406763
and dword [ebp - 0x14], 0
cmp dword [0x41c320], 0
mov dword [ebp - 0x18], eax
jne 0x40c982
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40ca2a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40ca2a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41c320], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41c324], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41c328], eax
call edi
push eax
call esi
mov dword [0x41c330], eax
test eax, eax
je 0x40c982
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41c32c], eax
mov eax, dword [0x41c32c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c9db
cmp dword [0x41c330], ecx
je 0x40c9db
push eax
call esi
push dword [0x41c330]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c9db
test ebx, ebx
je 0x40c9db
call edi
test eax, eax
je 0x40c9d2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c9d2
test byte [ebp - 8], 1
jne 0x40c9db
or dword [ebp + 0x10], 0x200000
jmp 0x40ca0e
mov eax, dword [0x41c324]
cmp eax, dword [ebp - 0x18]
je 0x40ca0e
push eax
call esi
test eax, eax
je 0x40ca0e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40ca0e
mov eax, dword [0x41c328]
cmp eax, dword [ebp - 0x18]
je 0x40ca0e
push eax
call esi
test eax, eax
je 0x40ca0e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41c320]
call esi
test eax, eax
je 0x40ca2a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40ca2c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402eb0
leave
ret

Function at 0x40d818
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
mov edi, eax
cmp dword [ebp + 8], esi
jle 0x40d846
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call fcn.0040d7ec
xor byte [esi + edi - 0x200], al
inc esi
cmp esi, dword [ebp + 8]
jl 0x40d826
pop edi
pop esi
pop ebp
ret 4
Function at 0x401280
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405120
push 0x402508
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x408cdc], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x408cd8], ecx
shl ecx, 8
add ecx, edx
mov dword [0x408cd4], ecx
shr eax, 0x10
mov dword [0x408cd0], eax
call fcn.004023d0
test eax, eax
jne 0x4012ea
push 0x1c
call fcn.00401460
add esp, 4
call fcn.004022d0
test eax, eax
jne 0x4012fd
push 0x10
call fcn.00401460
add esp, 4
mov dword [ebp - 4], 0
call fcn.004020c0
call fcn.004020b0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40a130], eax
call fcn.00401c50
mov dword [0x408cc0], eax
test eax, eax
je 0x401330
mov eax, dword [0x40a130]
test eax, eax
jne 0x40133a
push 0xffffffffffffffff
call fcn.004014c0
add esp, 4
call fcn.004019a0
call fcn.004018b0
call fcn.00401490
mov esi, dword [0x40a130]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401419
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401381
test al, al
je 0x401381
and eax, 0xff
push eax
call fcn.00401850
add esp, 4
test eax, eax
je 0x40135b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40135b
cmp byte [esi], 0x22
jne 0x40138a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40139a
cmp al, 0x20
ja 0x40139a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40138a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4013bb
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4013c0
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004014c0
jmp 0x4013fe
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40138a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401419

Function at 0x401460
Capabilities:
Terminate process

Disassembly:
cmp dword [0x408cc8], 1
jne 0x40146e
call fcn.004025e0
mov eax, dword [esp + 4]
push eax
call fcn.00402620
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401500
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.004015c0
mov eax, dword [0x408d0c]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x401524
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x408d08], 1
mov byte [0x408d04], bl
jne 0x40157e
mov ecx, dword [0x40a128]
test ecx, ecx
je 0x40156c
mov esi, dword [0x40a124]
sub esi, 4
cmp esi, ecx
jb 0x40156c
mov eax, dword [esi]
test eax, eax
je 0x401565
call eax
mov ecx, dword [0x40a128]
sub esi, 4
cmp esi, ecx
jae 0x401557
push 0x40601c
push 0x406014
call fcn.004015e0
add esp, 8
push 0x406024
push 0x406020
call fcn.004015e0
add esp, 8
test ebx, ebx
je 0x40159d
call fcn.004015d0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x408d0c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401c50
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x408e18]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x401c92
call edi
mov esi, eax
test esi, esi
je 0x401c7c
mov eax, 1
jmp 0x401c8d
call ebp
mov ebx, eax
test ebx, ebx
je 0x401d9f
mov eax, 2
mov dword [0x408e18], eax
cmp eax, 1
jne 0x401d32
test esi, esi
jne 0x401cab
call edi
mov esi, eax
test esi, esi
je 0x401d9f
cmp word [esi], 0
mov eax, esi
je 0x401cc5
add eax, 2
cmp word [eax], 0
jne 0x401cb3
add eax, 2
cmp word [eax], 0
jne 0x401cb3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x401d24
push edi
call fcn.00402a20
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401d24
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x401d16
push ebx
call fcn.004029b0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x401d9f
test ebx, ebx
jne 0x401d43
call ebp
mov ebx, eax
test ebx, ebx
je 0x401d9f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x401d5b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401d4b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401d4b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00402a20
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401d7d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4022d0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00402800
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x40621c], eax
je 0x402328
push 0x74
push 1
call fcn.00402af0
mov esi, eax
add esp, 8
test esi, esi
je 0x402328
mov eax, dword [0x40621c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x402328
push esi
call fcn.00402330
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x402350
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x40621c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4023be
push 0x74
push 1
call fcn.00402af0
mov esi, eax
add esp, 8
test esi, esi
je 0x4023b4
mov ecx, dword [0x40621c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4023b4
push esi
call fcn.00402330
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00401430
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x402620
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x406238
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x402644
add eax, 8
inc ebp
cmp eax, 0x4062c8
jb 0x402635
cmp ecx, dword [ebp*8 + 0x406238]
jne 0x4027eb
mov eax, dword [0x408cc8]
cmp eax, 1
je 0x4027ad
test eax, eax
jne 0x402670
cmp dword [0x406074], 1
je 0x4027ad
cmp ecx, 0xfc
je 0x4027eb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4026ab
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4026f4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x405400
add ebx, ecx
push ebx
call fcn.00403350
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4053e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40623c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004032c0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40a020]
test eax, eax
je 0x4027be
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x4027c8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40623c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x403f40
Capabilities:
Get common file path
Query or enumerate registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x100
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x110], ecx
cmp dword [ebp - 0x110], 0
je 0x403fb3
mov edx, dword [ebp - 0x110]
movsx eax, byte [edx]
test eax, eax
je 0x403fb3
mov ecx, dword [ebp - 0x110]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x403fa2
mov eax, dword [ebp - 0x110]
mov byte [eax], 0x2f
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
jmp 0x403f75
push 0x4089a8
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push 0x4089ac
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4040b1
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4040a7
lea edx, [ebp - 0x118]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0xc], 2
jae 0x40407c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
push str..Owner
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x404267
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
push 0x44
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.00404600
add esp, 0xc
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x24], 1
push 0x10
push 0
lea ecx, [ebp - 0x10]
push ecx
call fcn.00404600
add esp, 0xc
push 0x408a64
lea edx, [ebp - 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x15c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404357
mov dword [ebp - 0x164], 0x1e
mov dword [ebp - 0x160], 0x102
cmp dword [ebp - 0x160], 0x102
jne 0x404357
mov eax, dword [ebp - 0x164]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x160], eax
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x180]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x404355
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x180]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x404320
jmp 0x4042fd
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x58]
mov esp, ebp
pop ebp
ret
Function at 0x401708
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x403008], 0x8088405
inc edx
mov dword [ebx + 0x403008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4019c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x403010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x401a5c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x401a3c
xor eax, eax
push ebp
push 0x401a35
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 0x401a78
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 0x401a3c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x403010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x403010], ax
mov esp, ebp
pop ebp
ret

Function at 0x402094
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x404034], 0
je 0x4020f5
cmp word [0x404208], 0xd7b2
jne 0x4020bd
cmp dword [0x404210], 0
jbe 0x4020bd
mov eax, 0x404204
call dword [0x404220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x403048
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40211c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40301c], 0
jne 0x402111
push 0
push 0x403068
push 0x403048
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40199d
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00401b4d
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x401a9b
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401a3e
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x401a81
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401a55
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401a70
test al, 0x40
je 0x401a67
mov ecx, dword [edi + 0x20]
jmp 0x401a6e
test al, 0x80
je 0x401a81
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x401a81
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x401a0d
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret