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

Disassembly:
push 0xffffffffffffffff
push 0x472a88
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.00469acf
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00439e30
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.004699fd
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.004661e7
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.004661e7
push 1
push 0
push 0
mov ecx, esi
call fcn.0046618f
push 1
push 0
push 1
mov ecx, esi
call fcn.0046618f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00469b41
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43a610
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472aa8
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.00469acf
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00439e30
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.004699fd
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 0x43a6d4
cmp dword [esp + 0x40], 1
jne 0x43a6d2
cmp ecx, eax
jge 0x43a6d4
mov eax, ecx
cmp eax, 0xc8
jge 0x43a6e0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043a490
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.00469b41
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43ae50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472b13
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.00464604
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.00469d77
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046b2cf
test eax, eax
je 0x43af6c
mov ecx, dword [esp + 0x3c]
call fcn.00469da4
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 0x43af30
push edi
mov ecx, esi
call fcn.00467362
mov ecx, esi
call fcn.0043b0d0
cmp dword [esp + 0x38], 1
jne 0x43af65
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.004674cc
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 0x43d990
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d9c3
push esi
call fcn.00440aa0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43d9bc
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 0x43da49
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43da32
mov eax, dword [esi + 8]
test eax, eax
je 0x43d9e7
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 0x43da2e
cmp eax, 2
je 0x43da32
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d9da
cmp eax, 3
je 0x43da0d
cmp eax, 1
jne 0x43d9da
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 0x43d9da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d9da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043da70
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43da58
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043da70
add esp, 4
pop esi
ret

Function at 0x4653fa
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x465432
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.004634b1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00463489
jmp 0x46543e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x466aeb
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 0x466b2d
call fcn.0046c7d6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x466b2d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x466b24
xor eax, eax
jmp 0x466b35
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00466b3b
pop edi
pop esi
pop ebx
ret 4

Function at 0x46cd06
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 0x46cd34
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46cd52
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046cc6c
jmp 0x46cd52
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46cd52
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046cc6c
test edi, edi
mov eax, edi
jne 0x46cd3c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4011a0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 8]
push 0x10
push ecx
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret

Function at 0x401e50
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, 0x1008
call fcn.00403d10
push ebx
push esi
mov esi, dword [esp + 0x1018]
push edi
mov dword [esp + 0xc], 0
mov word [esi], 0
call fcn.004034c0
mov ebx, dword [esp + 0x1018]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push 0
push edx
push 1
push ebx
call dword [eax + 0x14]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401eee
call fcn.004034c0
push 0
lea ecx, [esp + 0x18]
push 0x1000
push ecx
push 1
push ebx
call dword [eax + 0x14]
test eax, eax
jl 0x401f29
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401f29
mov edx, dword [esp + 0x14]
and edx, 0xffff
push edx
push eax
push esi
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov eax, dword [esp + 0x20]
add esp, 0xc
and eax, 0xffff
pop edi
mov word [esi + eax*2], 0
pop esi
mov eax, 1
pop ebx
add esp, 0x1008
ret
lea ecx, [esp + 0x10]
push ecx
push 0
push ebx
push 0x401e00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0
push 0x32
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0x102
jne 0x401f35
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1008
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004034c0
push 0
lea edx, [esp + 0x18]
push 0x1000
push edx
push 1
push ebx
call dword [eax + 0x14]
test eax, eax
jl 0x401f29
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401f29
mov ecx, dword [esp + 0x14]
and ecx, 0xffff
push ecx
push eax
push esi
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov edx, dword [esp + 0x20]
add esp, 0xc
and edx, 0xffff
mov eax, 1
pop edi
mov word [esi + edx*2], 0
pop esi
pop ebx
add esp, 0x1008
ret
Function at 0x4026c0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x22c]
lea edi, [esi + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40277a
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.Start
push str.START_KEY
call ebx
mov dword [esi + 0x214], eax
mov eax, dword [edi]
push eax
push 0
push str.Stop
push str.STOP_KEY
call ebx
mov dword [esi + 0x218], eax
mov eax, dword [edi]
push eax
push 0
push str.KeyComb
push str.START_KEY
call ebx
mov dword [esi + 0x21c], eax
mov eax, dword [edi]
push eax
push 0
push str.KeyComb
push str.STOP_KEY
call ebx
mov edi, dword [edi]
mov dword [esi + 0x220], eax
push edi
push 0
push str.StartSyncCheckBoxState_Val
push str.StartSyncCheckBoxState
call ebx
cmp eax, 1
mov dword [esi + 0x230], eax
jne 0x40276b
mov dword [esi + 0x194], eax
pop edi
pop esi
pop ebx
pop ecx
ret
mov dword [esi + 0x194], 0
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x9c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 1
push 0xf1
push eax
call ebx
mov dword [esi + 0x194], 1
mov ecx, dword [esi + 0xdc]
push 0
push 0x76
push 0x401
push ecx
call ebx
mov edx, dword [esi + 0x11c]
push 0
push 0x77
push 0x401
push edx
call ebx
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push edi
call fcn.00403c5a
mov ecx, esi
call fcn.00402900
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x403100
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4059b8
push 0x403d00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x40316c
push 0xf003f
mov eax, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, ebx
je 0x40316c
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00403194
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4031b0
Capabilities:
Check for time delay via gettickcount
Create service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4059c8
push 0x403d00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 0x10]
push esi
call fcn.00403100
add esp, 4
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x40330c
push edi
push edi
push edi
push edi
push edi
mov eax, dword [ebp + 8]
push eax
push edi
push 3
push 1
push 0xf01ff
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
jne 0x403257
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x40330c
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
je 0x40330c
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x403277
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x40330c
lea ecx, [ebp - 0x48]
push ecx
push 0x24
lea edx, [ebp - 0x44]
push edx
push 0
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
call ebx
test eax, eax
je 0x403309
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x40], 2
jne 0x403302
mov eax, 0xcccccccd
mul dword [ebp - 0x2c]
shr edx, 3
mov dword [ebp - 0x50], edx
cmp edx, 0x3e8
jae 0x4032b9
mov edx, 0x3e8
jmp 0x4032c6
cmp edx, 0x2710
jbe 0x4032c9
mov edx, 0x2710
mov dword [ebp - 0x50], edx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x48]
push eax
push 0x24
lea ecx, [ebp - 0x44]
push ecx
push 0
push edi
call ebx
test eax, eax
je 0x403302
mov edx, dword [ebp - 0x4c]
cmp dword [ebp - 0x30], edx
jbe 0x4032f8
call esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], eax
jmp 0x403296
call esi
sub eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jbe 0x403296
mov dword [ebp - 0x58], 1
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00403332
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403400
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.ZwOpenMutant
mov esi, ecx
push str.ntdll.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.ZwReleaseMutant
push str.ntdll.dll
mov dword [esi + 4], eax
call edi
push eax
call ebx
push str.RtlInitUnicodeString
push str.ntdll.dll
mov dword [esi + 8], eax
call edi
push eax
call ebx
push str.ZwQuerySystemInformation
push str.ntdll.dll
mov dword [esi + 0xc], eax
call edi
push eax
call ebx
push str.ZwQueryObject
push str.ntdll.dll
mov dword [esi + 0x10], eax
call edi
push eax
call ebx
push str.ZwDuplicateObject
push str.ntdll.dll
mov dword [esi + 0x14], eax
call edi
push eax
call ebx
push str.ZwQueryInformationFile
push str.ntdll.dll
mov dword [esi + 0x18], eax
call edi
push eax
call ebx
push str.ZwDeleteFile
push str.ntdll.dll
mov dword [esi + 0x1c], eax
call edi
push eax
call ebx
push str.RtlDosPathNameToNtPathName_U
push str.ntdll.dll
mov dword [esi + 0x20], eax
call edi
push eax
call ebx
mov dword [esi + 0x24], eax
pop edi
pop esi
pop ebx
ret

Function at 0x403530
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
xor ebp, ebp
test edi, edi
je 0x40362a
mov eax, dword [esp + 0x120]
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
add eax, 4
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x118]
test esi, esi
je 0x403599
lea ecx, [esp + 0x14]
push 0xff
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
lea edx, [esp + 0x14]
push esi
push edx
call ebx
mov esi, eax
add esp, 8
neg esi
sbb esi, esi
inc esi
jmp 0x40359e
mov esi, 1
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x4035d3
lea eax, [esp + 0x14]
push 0xff
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0x14]
push ecx
push edx
call ebx
add esp, 8
neg eax
sbb eax, eax
inc eax
jmp 0x4035d8
mov eax, 1
test esi, eax
je 0x4035ef
mov eax, dword [esp + 0x10]
inc ebp
mov dword [eax], edi
add eax, 4
cmp ebp, 0x1e
mov dword [esp + 0x10], eax
jae 0x403616
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x403569
mov eax, dword [esp + 0x120]
pop edi
pop esi
mov dword [eax], ebp
pop ebp
pop ebx
add esp, 0x104
ret
mov ecx, dword [esp + 0x120]
pop edi
pop esi
mov dword [ecx], ebp
pop ebp
pop ebx
add esp, 0x104
ret
mov edx, dword [esp + 0x120]
pop edi
pop esi
mov dword [edx], ebp
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x403680
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x200
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x208]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20c]
push eax
push ecx
push 0x1ff
push edx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x200
ret

Function at 0x403850
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x40
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
jne 0x403870
pop edi
pop esi
pop ebp
mov eax, 0xc0000001
pop ebx
add esp, 0x40
ret 0x10
push eax
lea eax, [esp + 0x20]
push str..PipeBkgndSrv_P_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x4038a7
pop edi
pop esi
pop ebp
mov eax, 0xc0000002
pop ebx
add esp, 0x40
ret 0x10
push esi
push 0x80
push 3
push esi
push esi
lea edx, [esp + 0x30]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4038d7
pop edi
pop esi
pop ebp
mov eax, 0xc0000003
pop ebx
add esp, 0x40
ret 0x10
lea eax, [esp + 0x10]
push esi
push eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
add ecx, 8
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x54]
push esi
push edx
lea eax, [esp + 0x1c]
push 8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403925
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xc0000004
pop ebx
add esp, 0x40
ret 0x10
cmp dword [esp + 0x18], esi
jl 0x40396e
mov edi, dword [esp + 0x14]
cmp edi, esi
je 0x40396e
mov ebp, dword [esp + 0x5c]
test ebp, ebp
je 0x40399d
cmp dword [esp + 0x60], edi
jb 0x40399d
test edi, edi
jbe 0x40396e
mov edx, edi
lea ecx, [esp + 0x54]
push 0
sub edx, esi
push ecx
lea eax, [esi + ebp]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403983
mov eax, dword [esp + 0x54]
test eax, eax
je 0x403983
add esi, eax
cmp esi, edi
jb 0x403945
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x10
cmp esi, edi
jae 0x40396e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xc0000007
pop ebx
add esp, 0x40
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xc0000005
pop ebx
add esp, 0x40
ret 0x10
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x5d1b4a84
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x53f13cf7
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret