joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442c70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x474198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046c967
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00442610
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046c895
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00469159
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00469159
push 1
push 0
push 0
mov ecx, esi
call fcn.00469101
push 1
push 0
push 1
mov ecx, esi
call fcn.00469101
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046c9d9
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x442df0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4741b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046c967
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00442610
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046c895
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x442eb4
cmp dword [esp + 0x40], 1
jne 0x442eb2
cmp ecx, eax
jge 0x442eb4
mov eax, ecx
cmp eax, 0xc8
jge 0x442ec0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00442c70
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046c9d9
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x443630
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x474223
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00467577
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046cc0f
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046e12b
test eax, eax
je 0x44374c
mov ecx, dword [esp + 0x3c]
call fcn.0046cc3c
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x443710
push edi
mov ecx, esi
call fcn.0046a2a0
mov ecx, esi
call fcn.004438b0
cmp dword [esp + 0x38], 1
jne 0x443745
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046a3db
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x446160
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x446193
push esi
call fcn.00449250
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44618c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x446219
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x446202
mov eax, dword [esi + 8]
test eax, eax
je 0x4461b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4461fe
cmp eax, 2
je 0x446202
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4461aa
cmp eax, 3
je 0x4461dd
cmp eax, 1
jne 0x4461aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4461aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4461aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00446240
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x446228
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00446240
add esp, 4
pop esi
ret

Function at 0x451d70
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x451e13
test eax, eax
jbe 0x451e13
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x451e13
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x451dbe
xor esi, esi
jmp 0x451dc4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x451def
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004066d0
add esi, eax
push esi
mov ebx, esi
call fcn.004066d0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x451dd0
pop ebp
test edi, edi
pop edi
jne 0x451e13
test ebx, ebx
je 0x451e13
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00457010
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x451f55
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45206d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45206d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004679c9
mov esi, eax
test esi, esi
je 0x45206d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45206d
mov ecx, esi
call fcn.00451ec0
cmp edi, eax
jge 0x45206d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x451ff3
mov dword [esp + 0x34], 1
jmp 0x45204e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45206d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004514b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46836c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4683a4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00466423
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004663fb
jmp 0x4683b0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x469a5d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x469a9f
call fcn.0046f516
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x469a9f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x469a96
xor eax, eax
jmp 0x469aa7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00469aad
pop edi
pop esi
pop ebx
ret 4
Function at 0x46fa46
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46fa74
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46fa92
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046f9ac
jmp 0x46fa92
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46fa92
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046f9ac
test edi, edi
mov eax, edi
jne 0x46fa7c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push 2
push 0x40a038
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov edi, dword [ebx + 0x20]
test edi, edi
jne 0x401198
xor eax, eax
mov ax, word [ebx + 0xe]
dec eax
cmp eax, 0x17
ja case.0x401174.5
xor ecx, ecx
mov cl, byte [eax + 0x401274]
jmp dword [ecx*4 + 0x401260]
mov edi, 2
jmp 0x401198
mov edi, 0x10
jmp 0x401198
mov edi, 0x100
jmp 0x401198
xor edi, edi
jmp 0x401198
mov edi, dword [esp + 0x14]
lea edx, [edi*4 + 8]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test edi, edi
mov word [ebp], 0x300
mov word [ebp + 2], di
jle 0x4011e3
lea eax, [ebp + 5]
lea ecx, [ebx + 0x29]
mov dl, byte [ecx + 1]
add ecx, 4
mov byte [eax - 1], dl
mov dl, byte [ecx - 4]
mov byte [eax], dl
mov dl, byte [ecx - 5]
mov byte [eax + 1], dl
mov byte [eax + 2], 1
add eax, 4
dec edi
jne 0x4011c5
push ebp
call dword [sym.imp.GDI32.dll_CreatePalette]
push 0
push 0
push 0
push str.DISPLAY
mov dword [esi + 0xac], eax
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, dword [sym.imp.GDI32.dll_SetSystemPaletteUse]
push 2
push eax
mov dword [esi + 0x98], eax
call edi
mov eax, dword [esi + 0xac]
mov ecx, dword [esi + 0x98]
push 0
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov edx, dword [esi + 0x98]
mov dword [esi + 0xb0], eax
push edx
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [esi + 0x98]
push 1
push eax
call edi
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4028d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
sub eax, 2
push ebx
push esi
push edi
mov esi, ecx
je 0x402976
mov eax, dword [esi + 0x104]
mov ecx, dword [esi + 0xfc]
sub eax, ecx
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x64
jge 0x402936
call fcn.00403db0
push 0
mov ebx, eax
call edi
mov ecx, eax
mov eax, ebx
cdq
sub ecx, 0xa0
idiv ecx
lea eax, [edx + 0x50]
mov edx, dword [esi + 0xfc]
mov dword [esi + 0x104], eax
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x64
jl 0x402903
mov eax, dword [esi + 0x100]
mov edx, dword [esi + 0x108]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x64
jg 0x402953
cmp eax, 0x23
jge 0x402995
call fcn.00403db0
push 1
mov ebx, eax
call edi
mov ecx, eax
mov eax, ebx
cdq
sub ecx, 0xa0
idiv ecx
add edx, 0x50
mov dword [esi + 0x108], edx
jmp 0x402936
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
Function at 0x4036f0
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
sub esp, 0x4c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
mov edi, dword [esp + 0x5c]
push str.IDI_ICON2
push edi
mov dword [esp + 0x30], 0x30
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x4039a0
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], edi
call esi
push str.IDI_ICON2
push edi
mov dword [esp + 0x48], eax
call esi
push str.IDC_HAND
push edi
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 5
mov dword [esp + 0x48], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], str.TunTown
mov dword [esp + 0x48], eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x40378b
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x4c
ret 0x10
push 0
push edi
push 0
push 0
push 0
push 0
push 0x64
push 0x64
push 0x92000000
push str.TunTown
push str.TunTown
push 0
mov dword [0x40c954], edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x4037c6
pop edi
pop esi
pop ebx
add esp, 0x4c
ret 0x10
push 0x4e
push 0
push esi
call dword [sym.imp.USER32.dll_SetClassWord]
mov ecx, dword [esp + 0x68]
push ecx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push esi
push edi
mov ecx, 0x40c958
mov dword [0x40c950], esi
call fcn.00401100
push 2
push 1
push 0x40a12c
push 0
push 1
push str.STAND
mov ecx, 0x40c958
call fcn.00401290
push 1
push 1
push 0x40a12c
push 1
push 6
push str.WALK
mov ecx, 0x40c958
call fcn.00401290
push 1
push 1
push 0x40a12c
push 2
push 6
push 0x40a118
mov ecx, 0x40c958
call fcn.00401290
push 2
push 1
push 0x40a12c
push 3
push 3
push str.SCARE
mov ecx, 0x40c958
call fcn.00401290
push 2
push 1
push 0x40a12c
push 4
push 2
push str.SLEEP
mov ecx, 0x40c958
call fcn.00401290
push 2
push 1
push 0x40a12c
push 5
push 4
push str.DREAM
mov ecx, 0x40c958
call fcn.00401290
push 2
push 1
push str.IDR_WAVE1
push 6
push 2
push str.HAPPY
mov ecx, 0x40c958
call fcn.00401290
push 2
push 1
push 0x40a12c
push 7
push 2
push 0x40a0e8
mov ecx, 0x40c958
call fcn.00401290
push 2
push 1
push 0x40a12c
push 8
push 1
push str.LAUGH
mov ecx, 0x40c958
call fcn.00401290
push 2
push 1
push 0x40a12c
push 9
push 2
push 0x40a0dc
mov ecx, 0x40c958
call fcn.00401290
push 2
push 1
push 0x40a12c
push 0xa
push 2
push str.NOLOOK
mov ecx, 0x40c958
call fcn.00401290
mov edx, dword [0x40a0cc]
mov ecx, 0x40c958
push edx
call fcn.00401ac0
mov ecx, 0x40c958
call fcn.004015f0
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
call esi
test eax, eax
je 0x403987
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [esp + 0xc]
push ecx
call edi
lea edx, [esp + 0xc]
push edx
call ebx
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
call esi
test eax, eax
jne 0x403968
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0x4c
ret 0x10
Function at 0x403c70
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 8]
push edi
push eax
push 0xf003f
push 0
push str..htm
push 0x80000000
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], pe_nt_image_headers32
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403cce
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0x40ccec
push ecx
call ebx
mov edx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x98]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x98]
push str._shellopencommand
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x98]
push eax
push 0xf003f
push 0
push ecx
push 0x80000000
call esi
test eax, eax
jne 0x403d4d
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0x40ccec
push edx
mov dword [esp + 0x2c], pe_nt_image_headers32
mov dword [esp + 0x28], 1
call ebx
mov eax, dword [esp + 0xc]
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x403d74
jbe 0x403d74
cmp byte [esp + eax + 0x18], 0x20
je 0x403d74
mov byte [esp + eax + 0x18], 0
dec eax
jne 0x403d65
lea edx, [esp + 0x18]
push str.__www.softstar.com.tw
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x18]
push 9
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
Function at 0x403f80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x405858
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 [0x40cd2c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40cd28], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40cd24], ecx
shr eax, 0x10
mov dword [0x40cd20], eax
call fcn.00405720
test eax, eax
jne 0x403fea
push 0x1c
call fcn.00404120
add esp, 4
mov dword [ebp - 4], 0
call fcn.00405520
call fcn.00405510
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40d12c], eax
call fcn.004050e0
mov dword [0x40ccf8], eax
test eax, eax
je 0x40401d
mov eax, dword [0x40d12c]
test eax, eax
jne 0x404027
push 0xffffffffffffffff
call fcn.00404a00
add esp, 4
call fcn.00404e30
call fcn.00404d40
call fcn.004049d0
mov esi, dword [0x40d12c]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x404106
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40406e
test al, al
je 0x40406e
and eax, 0xff
push eax
call fcn.00404ce0
add esp, 4
test eax, eax
je 0x404048
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404048
cmp byte [esi], 0x22
jne 0x404077
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x404087
cmp al, 0x20
ja 0x404087
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404077
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4040a8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4040ad
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.00404a00
jmp 0x4040eb
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 0x404077
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404106

Function at 0x404a40
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40cd5c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x404a5f
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 [0x40cd58], 1
mov byte [0x40cd54], bl
jne 0x404ab9
mov ecx, dword [0x40d128]
test ecx, ecx
je 0x404aa7
mov esi, dword [0x40d124]
sub esi, 4
cmp esi, ecx
jb 0x404aa7
mov eax, dword [esi]
test eax, eax
je 0x404aa0
call eax
mov ecx, dword [0x40d128]
sub esi, 4
cmp esi, ecx
jae 0x404a92
push 0x40a01c
push 0x40a018
call fcn.00404af0
add esp, 8
push 0x40a024
push 0x40a020
call fcn.00404af0
add esp, 8
test ebx, ebx
jne 0x404ae0
push ebp
mov dword [0x40cd5c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4050e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40ce70]
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 0x405122
call edi
mov esi, eax
test esi, esi
je 0x40510c
mov eax, 1
jmp 0x40511d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40522f
mov eax, 2
mov dword [0x40ce70], eax
cmp eax, 1
jne 0x4051c2
test esi, esi
jne 0x40513b
call edi
mov esi, eax
test esi, esi
je 0x40522f
cmp word [esi], 0
mov eax, esi
je 0x405155
add eax, 2
cmp word [eax], 0
jne 0x405143
add eax, 2
cmp word [eax], 0
jne 0x405143
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 0x4051b4
push edi
call fcn.004041a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4051b4
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 0x4051a6
push ebx
call fcn.00404150
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 0x40522f
test ebx, ebx
jne 0x4051d3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40522f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4051eb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4051db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4051db
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004041a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40520d
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