joyce8/EMBER2024-capa huggingface dataset:
Function at 0x501990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 0x18]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call fcn.00501280
add esp, 8
test eax, eax
jl 0x501adb
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0x92789c
xor eax, eax
mov ecx, 0x80000002
call fcn.00500570
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x14], ebx
test ebx, ebx
jl 0x501ad0
mov edx, dword [0x9855d4]
push edx
push 0
push esi
mov esi, dword [sym.imp.Ntdll.dll_RtlAllocateHeap]
call esi
mov dword [0x987618], eax
test eax, eax
je 0x501ac5
mov eax, 0xfffe
mov word [0x986f92], ax
mov eax, dword fs:[0x18]
xor ecx, ecx
mov word [0x986f90], cx
mov edx, dword [eax + 0x30]
mov eax, dword [edx + 0x18]
push 0xfffe
push 8
push eax
call esi
mov esi, dword [sym.imp.Ntdll.dll_RtlFreeHeap]
mov dword [0x986f94], eax
test eax, eax
je 0x501aad
mov ebx, dword [esp + 0x10]
call fcn.005014b0
push str.HKEY_LOCAL_MACHINE
push 0x986f90
call dword [sym.imp.Ntdll.dll_RtlAppendUnicodeToString]
push str.SoftwareMicrosoftWindows_NTCurrentVersionDrivers32
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.Ntdll.dll_RtlInitUnicodeString]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
push eax
push ebx
call fcn.00501760
mov ecx, dword [0x986f94]
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
add esp, 0xc
push ecx
mov ecx, dword [eax + 0x18]
push 0
push ecx
call esi
mov ebx, dword [esp + 0x14]
mov edx, dword [0x987618]
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
push edx
mov edx, dword [ecx + 0x18]
push 0
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.Ntdll.dll_NtClose]
mov esi, dword [esp + 0x10]
call fcn.00501350
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x501b10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0xac], eax
push esi
push edi
mov edi, dword [sym.imp.Ntdll.dll_RtlInitUnicodeString]
lea ecx, [esp + 0xc]
xor eax, eax
push str.RegistryMachineSYSTEMSelect
mov edx, ecx
push edx
mov esi, 0xffff
mov dword [esp + 0x1c], 0x18
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call edi
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.Ntdll.dll_NtOpenKey]
test eax, eax
jl 0x501bc4
push str.Current
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0xc]
push 0x80
lea ecx, [esp + 0x38]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.Ntdll.dll_NtQueryValueKey]
test eax, eax
jl 0x501bb9
cmp dword [esp + 0x34], 4
jne 0x501bb9
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.Ntdll.dll_NtClose]
mov ecx, dword [esp + 0xb4]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.005078c8
mov esp, ebp
pop ebp
ret
Function at 0x501c80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x418
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x410], eax
push edi
push str.ImagePath
lea eax, [esp + 8]
push eax
mov edi, ecx
call dword [sym.imp.Ntdll.dll_RtlInitUnicodeString]
lea ecx, [esp + 0xc]
push ecx
push 0x400
lea edx, [esp + 0x18]
push edx
push 2
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.Ntdll.dll_NtQueryValueKey]
test eax, eax
jl 0x501d02
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x501cd6
cmp eax, 2
jne 0x501d02
add edi, 0x208
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.00501be0
add esp, 8
xor eax, eax
pop edi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.005078c8
add esp, 0x418
ret
mov ecx, dword [esp + 0x414]
pop edi
xor ecx, esp
mov eax, 0xc000000d
call fcn.005078c8
add esp, 0x418
ret

Function at 0x501d20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x438
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x434], eax
push ebp
mov ebp, dword [esp + 0x440]
push edi
mov edi, dword [sym.imp.Ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x24]
push str.Parameters
mov ecx, eax
push ecx
mov dword [esp + 0x14], 0x18
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], 0x40
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call edi
lea edx, [esp + 0xc]
push edx
push 1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.Ntdll.dll_NtOpenKey]
cmp eax, 0xc0000034
jne 0x501d98
mov dword [esp + 8], esi
jmp 0x501d9c
test eax, eax
jl 0x501e09
push str.ServiceDll
lea ecx, [esp + 0x34]
push ecx
call edi
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0xc]
push 0x400
lea eax, [esp + 0x40]
push eax
push 2
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.Ntdll.dll_NtQueryValueKey]
mov edi, eax
test edi, edi
jl 0x501df3
mov eax, dword [esp + 0x3c]
cmp eax, 1
je 0x501ddd
cmp eax, 2
jne 0x501df3
add ebp, 0x208
lea eax, [esp + 0x38]
push ebp
push eax
call fcn.00501be0
add esp, 8
jmp 0x501df8
mov edi, 0xc000000d
mov eax, dword [esp + 8]
cmp eax, esi
je 0x501e07
push eax
call dword [sym.imp.Ntdll.dll_NtClose]
mov eax, edi
mov ecx, dword [esp + 0x43c]
pop edi
pop ebp
xor ecx, esp
call fcn.005078c8
add esp, 0x438
ret
Function at 0x501e20
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x430
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x42c], eax
mov eax, dword [esp + 0x434]
mov ecx, dword [esp + 0x438]
push ebx
mov ebx, dword [esp + 0x440]
push ebp
push esi
mov esi, dword [sym.imp.Ntdll.dll_NtOpenKey]
push edi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x2c], ecx
push 0x80000
lea ecx, [esp + 0x18]
xor ebp, ebp
push ecx
mov dword [esp + 0x2c], 0x18
mov dword [esp + 0x38], 0x40
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call esi
mov edi, dword [sym.imp.Ntdll.dll_NtSetSecurityObject]
test eax, eax
jl 0x501ea5
mov edx, dword [esp + 0x10]
push ebx
push 1
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.Ntdll.dll_NtClose]
lea ecx, [esp + 0x20]
push ecx
push 0x40000
lea edx, [esp + 0x18]
push edx
call esi
test eax, eax
jl 0x501ecf
mov eax, dword [esp + 0x10]
push ebx
push 4
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.Ntdll.dll_NtClose]
lea edx, [esp + 0x20]
push edx
push 8
lea eax, [esp + 0x18]
push eax
call esi
cmp eax, ebp
jl 0x501f67
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0x400
lea edx, [esp + 0x40]
push edx
push ebp
push ebp
mov ebp, dword [sym.imp.Ntdll.dll_NtEnumerateKey]
push eax
call ebp
mov esi, eax
mov edi, 1
test esi, esi
jl 0x501f5a
mov edi, edi
mov ax, word [esp + 0x44]
push ebx
lea edx, [esp + 0x18]
mov word [esp + 0x1a], ax
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x50]
push eax
mov dword [esp + 0x24], ecx
call fcn.00501e20
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x400
lea edx, [esp + 0x40]
push edx
push 0
push edi
push eax
call ebp
mov esi, eax
inc edi
test esi, esi
jge 0x501f10
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.Ntdll.dll_NtClose]
mov eax, esi
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005078c8
add esp, 0x430
ret
Function at 0x502150
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x540
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x53c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x54c]
push esi
push edi
mov edi, dword [ebp + 0x420]
mov dword [esp + 0x20], edi
jmp 0x502184
mov edi, dword [esp + 0x20]
mov edx, dword [ebp + 0x418]
lea eax, [esp + 0x24]
push eax
push 0x400
lea ecx, [esp + 0x150]
push ecx
xor esi, esi
push esi
push edx
push edi
call dword [sym.imp.Ntdll.dll_NtEnumerateKey]
mov ebx, eax
cmp ebx, esi
jl 0x502329
lea eax, [esp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x154]
lea edx, [esp + 0x28]
push edx
mov word [esp + 0x1e], ax
mov word [esp + 0x1c], ax
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov esi, dword [sym.imp.Ntdll.dll_NtOpenKey]
lea ecx, [esp + 0x160]
push eax
mov dword [esp + 0x34], 0x18
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], 0x40
mov dword [esp + 0x28], ecx
call esi
inc dword [ebp + 0x418]
mov ebx, eax
cmp ebx, 0xc0000022
jne 0x50222e
lea ebx, [esp + 0x18]
call fcn.00501f80
lea ecx, [esp + 0x28]
push ecx
push 1
lea edx, [esp + 0x1c]
push edx
call esi
mov ebx, eax
test ebx, ebx
jl 0x502325
push str.Type
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.Ntdll.dll_RtlInitUnicodeString]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
push 0x100
lea edx, [esp + 0x50]
push edx
push 2
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.Ntdll.dll_NtQueryValueKey]
mov ebx, eax
test ebx, ebx
jl case.0x5022b7.3
cmp dword [esp + 0x4c], 4
jne case.0x5022b7.3
mov esi, dword [esp + 0x154]
shr esi, 1
lea edi, [esi + esi]
push edi
lea edx, [esp + 0x15c]
push edx
push ebp
call fcn.005186a0
xor eax, eax
mov word [edi + ebp], ax
mov eax, dword [esp + 0x60]
dec eax
add esp, 0xc
mov dword [ebp + 0x41c], esi
cmp eax, 0x1f
ja case.0x5022b7.3
movzx ecx, byte [eax + 0x502354]
jmp dword [ecx*4 + 0x502348]
mov esi, dword [esp + 0x14]
mov ecx, ebp
mov dword [ebp + 0x410], 1
call fcn.00501c80
mov ebx, eax
jmp 0x502312
mov esi, dword [esp + 0x14]
push ebp
call fcn.00501d20
add esp, 4
test eax, eax
jne 0x5022f4
mov dword [ebp + 0x410], 2
jmp 0x502312
mov esi, dword [esp + 0x14]
mov ecx, ebp
mov dword [ebp + 0x410], 3
call fcn.00501c80
mov ebx, eax
jmp 0x502312
mov ebx, 0xc000000d
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.Ntdll.dll_NtClose]
test ebx, ebx
jl 0x502180
xor esi, esi
cmp ebx, esi
mov ecx, dword [esp + 0x54c]
pop edi
pop esi
pop ebp
setge al
pop ebx
xor ecx, esp
call fcn.005078c8
add esp, 0x540
ret
Function at 0x502510
Capabilities:
Access peb ldr_data

Disassembly:
sub esp, 0x114
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x118]
push esi
push edi
mov esi, ecx
cmp eax, 0xffff
jne 0x502546
call fcn.00501b10
cmp eax, 0xffff
je 0x5025db
push esi
push eax
push str.SystemControlSet_03uServices_s
lea edx, [esp + 0x1c]
call fcn.00401bb0
add esp, 0xc
push 0
lea eax, [esp + 0x14]
push eax
push 0x80000002
mov eax, str.Start
call fcn.00500730
add esp, 0xc
test eax, eax
je 0x5025db
cmp dword [eax + 8], 4
jne 0x5025db
mov ecx, dword fs:[0x18]
mov edx, dword [ecx + 0x30]
mov esi, dword [eax + 0xc]
push eax
mov eax, dword [edx + 0x18]
push 0
push eax
call dword [sym.imp.Ntdll.dll_RtlFreeHeap]
cmp esi, 4
jne 0x5025db
mov ecx, dword [esp + 0x124]
push esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push esi
push eax
mov edx, str.Start
mov edi, 0x80000002
mov dword [esp + 0x1c], ecx
call fcn.00500860
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.005078c8
add esp, 0x114
ret
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.005078c8
add esp, 0x114
ret

Function at 0x5030d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x986b8c]
push edi
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ecx, dword [0x986b8c]
push edi
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, eax
test esi, esi
je 0x50314c
push esi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x50314c
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
call fcn.0041bd40
mov esi, eax
cmp word [0x986fc8], bp
jne 0x50312f
push 0x103
push 0x986fc8
push ebp
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov edx, 0x986fc8
call fcn.00418b90
push eax
push esi
mov eax, ebx
mov ecx, edi
call fcn.00502e80
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x5031a0
Capabilities:
Create process on windows

Disassembly:
push esi
push edi
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call esi
mov ecx, dword [esp + 0xc]
push 3
push 0
push 0
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
call esi
pop edi
pop esi
ret

Function at 0x503ce0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
xor esi, esi
test eax, eax
je 0x503cf3
push 8
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x502740
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x504a10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x204
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x200], eax
mov edx, dword [0x986b8c]
push 0x100
lea eax, [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x504a76
push esi
push edi
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call esi
push 3
push 0
push 0
mov edi, eax
lea eax, [esp + 0x14]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
mov eax, 1
call fcn.005078c8
add esp, 0x204
ret

Function at 0x505580
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x90
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
lea eax, [esp + 8]
push eax
push 1
xor esi, esi
push esi
push str.Control_PanelDesktopWindowMetrics
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x505612
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push esi
push str.MessageFont
push ecx
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x505607
cmp dword [esp + 4], 0x5c
jne 0x5055f3
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov esi, eax
cmp dword [esp + 4], 0x3c
jne 0x505607
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov esi, eax
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x90]
mov eax, esi
pop esi
xor ecx, esp
call fcn.005078c8
add esp, 0x90
ret

Function at 0x5078c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x984164]
jne 0x5078d2
repz ret
jmp fcn.0050caeb
Function at 0x529991
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0050e66b
and dword [ebp - 4], 0
cmp dword [0x986a94], 0
mov ebx, eax
jne 0x529a42
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x529af3
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x529af3
push eax
call fcn.0050e5f9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x986a94], eax
call esi
push eax
call fcn.0050e5f9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x986a98], eax
call esi
push eax
call fcn.0050e5f9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x986a9c], eax
call esi
push eax
call fcn.0050e5f9
pop ecx
mov dword [0x986aa4], eax
test eax, eax
je 0x529a42
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0050e5f9
pop ecx
mov dword [0x986aa0], eax
mov eax, dword [0x986aa0]
cmp eax, ebx
je 0x529a9a
cmp dword [0x986aa4], ebx
je 0x529a9a
push eax
call fcn.0050e674
push dword [0x986aa4]
mov esi, eax
call fcn.0050e674
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x529a9a
test edi, edi
je 0x529a9a
call esi
test eax, eax
je 0x529a91
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x529a91
test byte [ebp - 0xc], 1
jne 0x529a9a
or dword [ebp + 0x10], 0x200000
jmp 0x529ad3
mov eax, dword [0x986a98]
cmp eax, ebx
je 0x529ad3
push eax
call fcn.0050e674
pop ecx
test eax, eax
je 0x529ad3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x529ad3
mov eax, dword [0x986a9c]
cmp eax, ebx
je 0x529ad3
push eax
call fcn.0050e674
pop ecx
test eax, eax
je 0x529ad3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x986a94]
call fcn.0050e674
pop ecx
test eax, eax
je 0x529af3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x529af5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30005f31
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x30007348
call fcn.300063e9
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x300095c0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x30005cd0
cmp eax, esi
jne 0x30005cc3
xor esi, esi
inc esi
mov ebx, esi
jmp 0x30005cd3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30005caa
xor esi, esi
inc esi
mov eax, dword [0x300095bc]
cmp eax, esi
jne 0x30005ce6
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30005d15
mov eax, dword [0x300095bc]
test eax, eax
jne 0x30005d0f
mov dword [0x300095bc], esi
push 0x300011ec
push 0x300011e4
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x30005d15
jmp 0x30005e3d
mov dword [0x300091b8], esi
mov eax, dword [0x300095bc]
cmp eax, esi
jne 0x30005d39
push 0x300011e0
push 0x300011c0
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x300095bc], 2
test ebx, ebx
jne 0x30005d45
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x300095cc], 0
je 0x30005d69
push 0x300095cc
call fcn.30006371
pop ecx
test eax, eax
je 0x30005d69
push 0
push 2
push 0
call dword [0x300095cc]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30005dc5
test al, al
je 0x30005d83
cmp dword [ebp - 0x1c], 0
jne 0x30005dc5
mov al, byte [esi]
test al, al
je 0x30005d93
cmp al, 0x20
ja 0x30005d93
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30005d83
test byte [ebp - 0x3c], 1
je 0x30005d9f
movzx eax, word [ebp - 0x38]
jmp 0x30005da2
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x300091b4], eax
cmp dword [0x300091a8], 0
jne 0x30005e19
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x30005dd4
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x30005de7
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x30005d70
cmp dword [0x300091b8], 0
jne 0x30005e28
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x300091b4]
jmp 0x30005e49
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.3000642e
ret
call fcn.300055d3
jmp 0x30005c70
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1bdb5b0c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x19b14e78
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402d1c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402d59
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402d79
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404f7c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f58
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402fb1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402df4
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402df4
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f9b
inc ebx
jmp 0x402f84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fb8
lea eax, [ebp - 8]
call fcn.00404cfc
ret

Function at 0x402fc0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404cfc
test esi, esi
jne 0x402ff7
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404dec
jmp 0x403018
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402df4
mov dword [esp], eax
test esi, esi
je 0x403018
cmp dword [ebx], 0
je 0x403018
dec esi
jmp 0x402fff
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4036dc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403dd4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a4024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403e6c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403e4c
xor eax, eax
push ebp
push 0x403e45
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 0x403e88
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 0x403e4c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4a4024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a4024], ax
mov esp, ebp
pop ebp
ret
Function at 0x404b78
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4aa04c], 0
je 0x404bd9
cmp word [0x4aa220], 0xd7b2
jne 0x404ba1
cmp dword [0x4aa228], 0
jbe 0x404ba1
mov eax, 0x4aa21c
call dword [0x4aa238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a4094
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 0x404c00
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a4034], 0
jne 0x404bf5
push 0
push 0x4a408c
push 0x4a4094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret