joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453060
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x453093
push esi
call fcn.00456170
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45308c
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 0x453119
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x453102
mov eax, dword [esi + 8]
test eax, eax
je 0x4530b7
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 0x4530fe
cmp eax, 2
je 0x453102
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4530aa
cmp eax, 3
je 0x4530dd
cmp eax, 1
jne 0x4530aa
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 0x4530aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4530aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00453140
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x453128
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00453140
add esp, 4
pop esi
ret

Function at 0x45ef20
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 0x45efc3
test eax, eax
jbe 0x45efc3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45efc3
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 0x45ef6e
xor esi, esi
jmp 0x45ef74
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45ef9f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00462970
add esi, eax
push esi
mov ebx, esi
call fcn.00462970
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45ef80
pop ebp
test edi, edi
pop edi
jne 0x45efc3
test ebx, ebx
je 0x45efc3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0046a2f0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x45f105
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 0x45f21d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45f21d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0047bb1e
mov esi, eax
test esi, esi
je 0x45f21d
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 0x45f21d
mov ecx, esi
call fcn.0045f070
cmp edi, eax
jge 0x45f21d
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 0x45f1a3
mov dword [esp + 0x34], 1
jmp 0x45f1fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45f21d
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.0045e670
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 0x4661b0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4661f9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x466670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x488ca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00466220
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004662a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004662a0
lea ecx, [esi + 0xc]
call fcn.0047a07f
lea ecx, [esi + 0x10]
call fcn.0047a07f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00467830
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00467830
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00467830
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047a0f4
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047a0f4
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x467a20
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x467a86
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x467a86
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x467a67
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x47c4c2
Capabilities:
Get graphical window text

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

Function at 0x47dbb8
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 0x47dbfa
call fcn.00483731
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47dbfa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47dbf1
xor eax, eax
jmp 0x47dc02
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047dc08
pop edi
pop esi
pop ebx
ret 4

Function at 0x483c61
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 0x483c8f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x483cad
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00483bc7
jmp 0x483cad
mov eax, dword [esi + 0x14]
test eax, eax
je 0x483cad
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00483bc7
test edi, edi
mov eax, edi
jne 0x483c97
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4026b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
lea edx, [esp]
push ebx
push esi
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [0x432bc0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.Msg.exe
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 eax, dword [esp + 0x11c]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x114]
call fcn.0041edd2
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x402a70
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x425b03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push 0
push 2
mov dword [esp + 0x140], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 8]
push eax
push ebx
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402b55
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [0x42f390]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x148], 1
call fcn.0041ef0f
lea ecx, [esp + 0x10]
call fcn.0041f24d
lea ecx, [esp + 0x14c]
call fcn.0041f24d
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.004117d4
add esp, 8
test eax, eax
jne 0x402b2c
mov edx, dword [esp + 0x1c]
push edx
push eax
push 0x1f0fff
call edi
push 0
push eax
call ebp
lea eax, [esp + 0x14]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x144], 0
call fcn.0041edd2
test esi, esi
jne 0x402acc
pop edi
pop esi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x140]
mov dword [esp + 0x138], 0xffffffff
call fcn.0041edd2
mov ecx, dword [esp + 0x130]
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret
Function at 0x402b90
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402bfb
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402bfb
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret

Function at 0x402ce0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x432b30]
test eax, eax
jne 0x402d03
push 0
push 0
push 0
push 0x402cb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x432b30], eax
ret

Function at 0x402d10
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x432b28]
test eax, eax
jne 0x402d21
push 0
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x432b30]
test eax, eax
je 0x402d3d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x432b30], 0
ret

Function at 0x403560
Capabilities:
Enumerate services

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
mov edi, ecx
call fcn.00403810
push 4
call fcn.00404970
add esp, 4
test eax, eax
je 0x40366b
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [0x432b64]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push ebx
push ebp
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x4035c2
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x403663
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403663
push esi
push eax
call fcn.0041268d
mov esi, eax
add esp, 4
test esi, esi
jne 0x4035f4
call fcn.0041e45e
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push edx
mov edx, dword [0x432b64]
push eax
push ecx
push esi
push ebx
push ebp
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push eax
mov ecx, edi
call fcn.00404710
mov ebx, eax
test ebx, ebx
je 0x40364e
mov eax, dword [esp + 0x18]
mov ecx, edi
push eax
push esi
call fcn.00403840
mov dword [edi + 0x38], 0
mov ecx, dword [edi + 0x14]
push ecx
lea ecx, [edi + 0xc]
call fcn.0041eebf
push esi
call fcn.004125a4
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x403680
Capabilities:
Enumerate services

Disassembly:
push 0xffffffffffffffff
push 0x425bc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
lea eax, [esp + 8]
push esi
mov esi, ecx
push eax
call fcn.004042c0
mov ecx, esi
mov dword [esp + 0x20], 0
call fcn.00403810
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004042e0
push 8
mov ecx, esi
call fcn.00404740
test eax, eax
je 0x4037d0
mov ebx, dword [esp + 0x28]
mov ecx, dword [esi + 4]
mov ebp, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push ecx
call ebp
test eax, eax
je 0x403720
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041edd2
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4037c8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4037c8
push edi
push eax
call fcn.0041268d
mov edi, eax
add esp, 4
test edi, edi
jne 0x403752
call fcn.0041e45e
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edi
push ebx
push edx
call ebp
push eax
mov ecx, esi
call fcn.00404710
mov ebx, eax
test ebx, ebx
je 0x403797
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
push edi
call fcn.00403840
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x14]
push ecx
lea ecx, [esi + 0xc]
call fcn.0041eebf
push edi
call fcn.004125a4
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041edd2
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041edd2
mov ecx, dword [esp + 0x18]
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x404790
Capabilities:
Query service configuration

Disassembly:
push 0xffffffffffffffff
push 0x425c7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x42f390]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x30]
mov ebx, 1
test ebp, ebp
mov dword [esp + 0x20], ebx
je 0x4047d7
mov dword [ebp], 0
push ebx
mov ecx, edi
call fcn.00404740
test eax, eax
jne 0x4047fc
mov esi, dword [esp + 0x28]
push 0x432ae0
mov ecx, esi
call fcn.0041ee40
mov dword [esp + 0x14], ebx
jmp 0x40491c
mov edx, dword [edi + 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push edx
call ebx
test eax, eax
jne 0x4048fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4048fc
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4048fc
push eax
call fcn.0041268d
mov ecx, dword [esp + 0x34]
mov edx, dword [edi + 4]
add esp, 4
mov esi, eax
lea eax, [esp + 0x30]
push eax
push ecx
push esi
push edx
call ebx
push eax
mov ecx, edi
call fcn.00404710
test eax, eax
je case.default.0x40486a
mov eax, dword [esp + 0x2c]
dec eax
cmp eax, 8
ja case.default.0x40486a
jmp dword [eax*4 + 0x404944]
mov ecx, dword [esi + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041ef0f
jmp case.default.0x40486a
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x10]
push edx
call fcn.0041ef0f
jmp case.default.0x40486a
mov eax, dword [esi + 0x18]
mov ecx, edi
push eax
call fcn.004049c0
mov ecx, dword [esi + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041ef0f
jmp case.default.0x40486a
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x10]
push edx
call fcn.0041ef0f
jmp case.default.0x40486a
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x10]
push eax
call fcn.0041ef0f
jmp case.default.0x40486a
mov ecx, dword [esi]
jmp 0x4048de
mov edx, dword [esi + 4]
mov dword [ebp], edx
jmp case.default.0x40486a
mov eax, dword [esi + 8]
mov dword [ebp], eax
jmp case.default.0x40486a
mov ecx, dword [esi + 0x14]
mov dword [ebp], ecx
push esi
call fcn.004125a4
mov esi, dword [esp + 0x2c]
add esp, 4
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0041eb47
jmp 0x404914
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0x28]
push 0x432ae0
mov ecx, esi
call fcn.0041ee40
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.0041edd2
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc

Function at 0x404a80
Capabilities:
Get hostname

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov esi, eax
test esi, esi
je 0x404ab0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 8]
push edx
call fcn.0041ef0f
mov eax, esi
pop esi
add esp, 0x14
ret 4
Function at 0x404ac0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0xc], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, eax
test esi, esi
je 0x404af6
mov ecx, dword [esp + 0x110]
lea edx, [esp + 8]
push edx
call fcn.0041ef0f
mov eax, esi
pop esi
add esp, 0x108
ret 4

Function at 0x404c70
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x425c9b
push eax
mov dword fs:[0], esp
sub esp, 0x2a0
push ebx
push ebp
push esi
push edi
push str.WS2_32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x404e0e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAStartup
push ebp
call esi
push str.gethostname
push ebp
mov edi, eax
call esi
push str.gethostbyname
push ebp
mov dword [esp + 0x18], eax
call esi
push str.WSACleanup
push ebp
mov ebx, eax
call esi
push str.inet_ntoa
push ebp
mov dword [esp + 0x1c], eax
call esi
test edi, edi
mov dword [esp + 0x1c], eax
je 0x404e07
mov esi, dword [esp + 0x10]
test esi, esi
je 0x404e07
test ebx, ebx
je 0x404e07
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x404e07
test eax, eax
je 0x404e07
lea eax, [esp + 0x120]
push eax
push 0x101
call edi
test eax, eax
jne 0x404e07
mov eax, dword [esp + 0x2c8]
test eax, eax
jne 0x404d53
lea ecx, [esp + 0x20]
push 0xff
push ecx
call esi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
je 0x404e03
push eax
call ebx
test eax, eax
mov dword [esp + 0x18], eax
je 0x404e03
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x404df1
mov edi, dword [esp + 0x2c0]
mov ebx, dword [esp + 0x2c4]
xor esi, esi
mov ecx, dword [esi + eax]
xor eax, eax
xor edx, edx
mov al, byte [ecx + 3]
mov dl, byte [ecx + 2]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [ecx]
shl eax, 8
add eax, edx
push eax
call dword [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.0041ee40
mov ecx, dword [edi + 8]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x2c0], 0
call fcn.0041e6be
lea ecx, [esp + 0x10]
mov dword [esp + 0x2b8], 0xffffffff
call fcn.0041edd2
test ebx, ebx
jne 0x404df1
mov eax, dword [esp + 0x18]
add esi, 4
mov eax, dword [eax + 0xc]
cmp dword [esi + eax], 0
jne 0x404d7e
call dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x404e10
call dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [esp + 0x2b0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2ac
ret 0xc
Function at 0x404fa0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x425cb8
push eax
mov dword fs:[0], esp
sub esp, 0x14
lea eax, [esp + 8]
push eax
call fcn.00404f50
test eax, eax
jne 0x404fd7
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x405111
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405016
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
mov edx, dword [0x42f390]
mov dword [esp], edx
push 0x105
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0
call fcn.0041f1b6
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0xc]
push edx
push 0
push str.ProductType
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push 0xffffffffffffffff
lea ecx, [esp + 4]
je 0x405086
call fcn.0041f205
lea ecx, [esp]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0041edd2
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
call fcn.0041f205
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp]
push str.WinNT
push edx
call fcn.004117d4
add esp, 8
test eax, eax
jne 0x4050b8
mov eax, dword [esp + 0x24]
mov dword [eax], 0
jmp 0x4050fe
mov ecx, dword [esp]
push str.LanmanNT
push ecx
call fcn.004117d4
add esp, 8
test eax, eax
jne 0x4050da
mov edx, dword [esp + 0x24]
mov dword [edx], 1
jmp 0x4050fe
mov eax, dword [esp]
push str.ServerNT
push eax
call fcn.004117d4
add esp, 8
test eax, eax
jne 0x405062
mov ecx, dword [esp + 0x24]
mov dword [ecx], 1
lea ecx, [esp]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0041edd2
jmp 0x40511b
mov edx, dword [esp + 0x24]
mov dword [edx], 0
mov ecx, dword [esp + 0x14]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x4051b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, eax
test esi, esi
je 0x4051de
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x114]
call fcn.0041ef0f
mov eax, esi
pop esi
add esp, 0x108
ret 4

Function at 0x4051f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
test esi, esi
je 0x40521e
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x114]
call fcn.0041ef0f
mov eax, esi
pop esi
add esp, 0x108
ret 4

Function at 0x405230
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, eax
test esi, esi
je 0x40525e
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x114]
call fcn.0041ef0f
mov eax, esi
pop esi
add esp, 0x108
ret 4