joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010f0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x108]
push edi
mov dword [esp + 0x14], ecx
xor edx, edx
xor eax, eax
mov al, byte [edx + str.80_]
mov ecx, eax
and eax, 7
sar ecx, 3
mov bl, byte [eax*2 + 0x40a038]
mov cl, byte [ecx + esi]
test bl, cl
setne al
mov byte [esp + edx + 0x50], al
inc edx
cmp edx, 0x38
jl 0x401107
mov eax, 0x1e
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x110], 1
je 0x401148
lea eax, [ebx + ebx]
lea edi, [esp + eax*4 + 0x8c]
lea ebp, [esp + eax*4 + 0x88]
xor eax, eax
xor ecx, ecx
mov cl, byte [ebx + 0x40a0e0]
mov dword [edi], 0
mov esi, ecx
mov dword [ebp], 0
mov edx, esi
cmp edx, 0x1c
jge 0x40117c
mov cl, byte [esp + edx + 0x50]
jmp 0x401180
mov cl, byte [esp + edx + 0x34]
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x1c
jl 0x401171
mov eax, 0x1c
lea edx, [esi + 0x1c]
cmp edx, 0x38
jge 0x40119e
mov cl, byte [esp + edx + 0x50]
jmp 0x4011a2
mov cl, byte [esp + edx + 0x34]
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x38
jl 0x401193
xor edx, edx
mov eax, 0x40a048
xor ecx, ecx
mov cl, byte [edx + 0x40a0f0]
cmp byte [esp + ecx + 0x18], 0
je 0x4011cd
mov ecx, dword [eax]
mov esi, dword [ebp]
or esi, ecx
mov dword [ebp], esi
xor ecx, ecx
mov cl, byte [edx + 0x40a108]
cmp byte [esp + ecx + 0x18], 0
je 0x4011e4
mov ecx, dword [eax]
mov esi, dword [edi]
or esi, ecx
mov dword [edi], esi
add eax, 4
inc edx
cmp eax, str.80_
jl 0x4011b4
mov eax, dword [esp + 0x10]
inc ebx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x40113b
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x88]
push edx
call fcn.00401230
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret 8
Function at 0x401740
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x40c5d0]
sub esp, 0x108
test eax, eax
je 0x401760
cmp eax, 0xffffffff
je 0x401760
mov eax, 1
add esp, 0x108
ret
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push str.U8Service851.log
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 4
push 0
push 3
lea edx, [esp + 0x18]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [0x40c5d0], eax
pop edi
je 0x4017d4
cmp eax, 0xffffffff
je 0x4017d4
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, 1
add esp, 0x108
ret
mov dword [0x40c5d0], 0
xor eax, eax
add esp, 0x108
ret

Function at 0x4017f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4070e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
call sub.MFC42.DLL_CString::CString_2
push 0x40c5b8
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x40c5d0]
test eax, eax
je 0x401839
cmp eax, 0xffffffff
jne 0x401846
call fcn.00401740
test eax, eax
je 0x40191b
lea eax, [ebp - 0x20]
mov bl, 1
push eax
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CTime::GetTickCount
lea ecx, [ebp - 0x1c]
push str._r_n__Y__m__d__H:_M:_S_
push ecx
mov ecx, eax
call sub.MFC42.DLL_CTime::Format
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00406d64
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x40c5d0]
push 2
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [ebp - 0x18]
push 0
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
mov eax, dword [0x40c5d0]
push eax
call esi
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
mov edx, dword [0x40c5d0]
lea ecx, [ebp - 0x18]
push 0
push ecx
push eax
push edi
push edx
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40191b
push 0
lea eax, [ebp + 8]
push 0
push eax
push 0x400
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push 0
push ecx
push edx
call ebx
mov ecx, dword [0x40c5d0]
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call esi
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x40c5b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402156
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4071f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea edi, [esi + 0x18]
mov dword [esp + 0x14], 0
mov ecx, edi
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov dword [edi], 0x4082d0
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString_2
push 0x40c5b8
mov byte [esp + 0x18], 4
mov dword [esi], 0x4082cc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, esi
call fcn.00402eb0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, 0x40c9d8
jmp 0x402140

Function at 0x402a80
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
lea edx, [esp + 4]
push edx
add ecx, 0x18
push 0
push ecx
push 0x401950
push 0
push 0
mov dword [0x40a920], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x402ab6
push 1
push str.Starting_Timer_Thread_Failed._r_n
call fcn.004017f0
add esp, 8
ret 4

Function at 0x402eb0
Capabilities:
Get hostname
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4073a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 0x10
lea eax, [esi + 0x34]
lea ecx, [esi + 0x30]
push eax
push ecx
push 0x40c758
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00402d60
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [esi + 0x2c]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403270
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x40744b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push 0x40c970
call esi
push 0x40c958
call esi
push 0x40c9c0
call esi
push 0x40c5e0
call esi
lea eax, [esp + 0x24]
or ebp, 0xffffffff
push eax
mov dword [esp + 0xc8], ebp
mov dword [esp + 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, dword [esp + 0x34]
xor ecx, ecx
cmp esi, 1
sete cl
mov dword [0x40ca70], ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.UMiscell.dll
mov dword [esp + 0xc8], 2
call esi
test eax, eax
mov dword [0x40ca5c], eax
je 0x4034d4
push 0
push 0x40afc8
call fcn.00406af0
add esp, 8
push str.SecuComm.dll
call esi
test eax, eax
mov dword [0x40ca64], eax
push 0
jne 0x403355
push 0x40afa4
call fcn.00406af0
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0xc4], ebp
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffd
jmp 0x4034f8
push 0x40af90
call fcn.00406af0
mov esi, dword [esp + 0xdc]
mov edi, dword [esp + 0xd4]
push esi
push edi
lea edx, [esp + 0x1c]
push 0x40af64
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
push 0
push eax
call fcn.00406af0
add esp, 0x20
call fcn.00406390
test eax, eax
jne 0x4033a1
push eax
push 0x40af40
jmp 0x4034db
push 0x40ca10
lea ecx, [esp + 0x10]
push 0x40af28
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
push 0
push edx
call fcn.00406af0
add esp, 0x14
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x29
push eax
push 0x40c72c
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov eax, dword [0x40ca70]
mov dword [0x40ca68], edi
test eax, eax
mov eax, 0x40af24
jne 0x4033f5
mov eax, str.NT_2K_XP
push eax
push 0x40c72c
lea ecx, [esp + 0x14]
push 0x40aef0
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
push 0
push edx
call fcn.00406af0
add esp, 0x18
mov dword [esp + 0x14], str.UFNet
test esi, esi
mov dword [esp + 0x18], 0x4035c0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
je 0x4034a2
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push str.install
push esi
call edi
add esp, 8
test eax, eax
je 0x403459
call fcn.004036f0
jmp 0x4034c0
push str.remove
push esi
call edi
add esp, 8
test eax, eax
je 0x40346f
call fcn.00403890
jmp 0x4034c0
push 0x40aed4
push esi
call edi
add esp, 8
test eax, eax
je 0x403493
push esi
mov dword [0x40ca54], 1
call fcn.00403a90
add esp, 4
jmp 0x4034c0
push 0
push 0x40aeb8
call fcn.00406af0
add esp, 8
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x4034c0
push 1
push 0x40ae98
call fcn.00406af0
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0xc4], ebp
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4034f8
push 1
push 0x40ae84
call fcn.00406af0
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0xc4], ebp
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffe
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xbc
ret 0x10
Function at 0x4036f0
Capabilities:
Create service
Persist via windows service

Disassembly:
push 0xffffffffffffffff
push 0x40748b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push edi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
push 0
push 0x40b224
mov dword [esp + 0x120], 0
call fcn.00406af0
add esp, 8
lea eax, [esp + 8]
push 0x105
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403751
push 1
push 0x40b1fc
jmp 0x403856
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
push 0x40b1e4
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x10]
push 0
push eax
call fcn.00406af0
push 0
push 0x40b1c8
call fcn.00406af0
add esp, 0x1c
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40384f
push ebx
push esi
push edi
lea ecx, [esp + 0x10]
push 0x40b19c
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
push 0
push edx
call fcn.00406af0
push 0
push 0x40b170
call fcn.00406af0
add esp, 0x1c
lea eax, [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x40b164
push str.UFNet
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x403825
push 0
push 0x40b150
call fcn.00406af0
add esp, 8
push esi
call ebx
test eax, eax
je 0x40381c
push 0
push str._NT_Service
jmp 0x40382c
push 1
push 0x40b118
jmp 0x40382c
push 1
push 0x40b104
call fcn.00406af0
add esp, 8
push edi
call ebx
pop esi
pop ebx
test eax, eax
je 0x403846
push 0
push 0x40b0e8
jmp 0x403856
push 1
push 0x40b0cc
jmp 0x403856
push 1
push 0x40b0b8
call fcn.00406af0
add esp, 8
lea ecx, [esp + 4]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
pop edi
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x403890
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x4074a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
push 0
push 0x40b36c
mov dword [esp + 0x18], 0
call fcn.00406af0
push 0
push 0x40b1c8
call fcn.00406af0
add esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x403a5c
push esi
push ebp
lea eax, [esp + 0xc]
push 0x40b19c
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x14]
push 0
push ecx
call fcn.00406af0
push 0
push 0x40b354
call fcn.00406af0
add esp, 0x1c
push 0xf01ff
push str.UFNet
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x403a2f
push esi
lea edx, [esp + 0xc]
push str._NT_l
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x14]
push 0
push eax
call fcn.00406af0
push 0
push 0x40b318
call fcn.00406af0
add esp, 0x1c
push 0x40c710
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4039e0
push ebx
push edi
push 0
push 0x40b300
call fcn.00406af0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x40c710
push esi
call ebx
test eax, eax
je 0x4039bc
cmp dword [0x40c714], 3
jne 0x4039bc
push 0x3e8
call edi
push 0x40c710
push esi
call ebx
test eax, eax
jne 0x4039a0
mov eax, dword [0x40c714]
pop edi
cmp eax, 1
pop ebx
jne 0x4039d1
push 0
push 0x40b2e8
jmp 0x4039d8
push 1
push 0x40b2d4
call fcn.00406af0
add esp, 8
push 0
push 0x40b2bc
call fcn.00406af0
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x403a03
push 0
push 0x40b2a8
jmp 0x403a0a
push 1
push 0x40b294
call fcn.00406af0
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x403a26
push 0
push 0x40b27c
jmp 0x403a36
push 1
push 0x40b264
jmp 0x403a36
push 1
push 0x40b250
call fcn.00406af0
add esp, 8
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
pop esi
je 0x403a53
push 0
push 0x40b0e8
jmp 0x403a63
push 1
push 0x40b0cc
jmp 0x403a63
push 1
push 0x40b238
call fcn.00406af0
add esp, 8
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x403da0
Capabilities:
Create tcp socket
Create thread
Create udp socket
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x40750b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
push 0
push 0x40b5f0
mov dword [esp + 0x1c8], 0
call fcn.00406af0
add esp, 8
lea eax, [esp + 0x28]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
push 0
je 0x403e13
push 0x40b5dc
call fcn.00406af0
add esp, 8
mov dword [esp + 0x1c0], 0xffffffff
jmp 0x403fbb
push 1
push 2
call sub.WS2_32.dll_socket
push 0x1216
mov dword [0x40c5f8], eax
mov dword [esp + 0x20], 0
mov word [esp + 0x1c], 2
call sub.WS2_32.dll_htons
mov edx, dword [0x40c5f8]
lea ecx, [esp + 0x18]
push 0x10
push ecx
push edx
mov word [esp + 0x26], ax
call sub.WS2_32.dll_bind
or edi, 0xffffffff
cmp eax, edi
jne 0x403e72
push 1
push 0x40b5c8
call fcn.00406af0
add esp, 8
call fcn.00405b00
jmp 0x403fb4
mov eax, dword [0x40c5f8]
push 0xa
push eax
call sub.WS2_32.dll_listen
test eax, eax
je 0x403e9c
push 1
push 0x40b5ac
call fcn.00406af0
add esp, 8
call fcn.00405b00
jmp 0x403fb4
push 0
push 0x40b594
mov dword [esp + 0x1c], 0x64
call fcn.00406af0
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x403c90
push 0x1000
push 0
call ebx
mov esi, eax
test esi, esi
je 0x403fa5
push esi
lea edx, [esp + 0x10]
push 0x40b574
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x18]
push 0
push eax
call fcn.00406af0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x14
push esi
call edi
push 0
push 0x40b55c
mov dword [esp + 0x18], 0x65
call fcn.00406af0
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x403b20
push 0x1000
push 0
call ebx
mov esi, eax
test esi, esi
je 0x403f89
push esi
lea edx, [esp + 0x10]
push 0x40b534
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x18]
push 0
push eax
call fcn.00406af0
add esp, 0x14
push esi
call edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c0], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1ac]
mov dword fs:[0], ecx
add esp, 0x1b8
ret
push 1
push 0x40b51c
call fcn.00406af0
add esp, 8
mov dword [esp + 0x1c0], 0xffffffff
jmp 0x403fbb
push 1
push 0x40b50c
call fcn.00406af0
add esp, 8
mov dword [esp + 0x1c0], edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1b8]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b8
ret
Function at 0x405e10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4076b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea ecx, [esp + 4]
mov dword [esp], 0
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0xc]
push 0
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SOFTWAREUfsoftWFV8.510Login
push reloc.WS2_32.dll_bind
mov dword [esp + 0x3c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x405eac
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push 1
push str._GetTimeoutValue_
mov dword [ecx], 5
mov dword [edx], 0x14
call fcn.00406af0
add esp, 8
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0
push str.ExceptionTimeout
push edx
mov dword [esp + 0x28], 4
call esi
test eax, eax
je 0x405ef5
mov edi, dword [esp + 0x28]
push 1
push 0x40c2cc
mov dword [edi], 5
call fcn.00406af0
add esp, 8
jmp 0x405f0d
mov eax, dword [esp + 8]
cmp eax, 2
jae 0x405f07
mov eax, 2
mov dword [esp + 8], eax
mov edi, dword [esp + 0x28]
mov dword [edi], eax
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0
push str.ExpireTimeout
push edx
mov dword [esp + 0x28], 4
call esi
test eax, eax
je 0x405f4e
mov esi, dword [esp + 0x2c]
push 1
push 0x40c298
mov dword [esi], 0x14
call fcn.00406af0
add esp, 8
jmp 0x405f66
mov eax, dword [esp + 8]
cmp eax, 5
jae 0x405f60
mov eax, 5
mov dword [esp + 8], eax
mov esi, dword [esp + 0x2c]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi]
mov ecx, dword [esi]
cmp ecx, eax
jae 0x405f7b
mov dword [esi], eax
mov ecx, dword [esi]
mov edx, dword [edi]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x40c260
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
push 0
push ecx
call fcn.00406af0
add esp, 0x18
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x406960
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
je 0x4069b0
cmp byte [ebx], 0
je 0x4069b0
mov edi, dword [esp + 0x1c]
cmp edi, 0xffffffff
jne 0x406983
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
xor esi, esi
test edi, edi
jbe 0x4069a9
mov ebp, dword [esp + 0x14]
mov eax, edi
push 0
sub eax, esi
lea ecx, [esi + ebx]
push eax
push ecx
push ebp
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x4069b0
add esi, eax
cmp esi, edi
jb 0x40698d
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x40b170
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46d88b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00461ee0
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b1f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045fc8d
mov eax, dword [eax]
push 0x49a1d0
push eax
call fcn.00452134
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046216b
test bl, bl
je 0x40b1f2
push 0x49a1d0
lea ecx, [esp + 0xc]
call fcn.004624fb
push 0x49dd4c
lea ecx, [esp + 0xc]
call fcn.004624fb
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40b22e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046216b
jmp 0x40b2f9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40b2b2
lea edx, [esp + 0x7c]
push 0x49dd48
push edx
call fcn.00452134
add esp, 8
test eax, eax
je 0x40b2b2
lea eax, [esp + 0x7c]
push 0x49dd44
push eax
call fcn.00452134
add esp, 8
test eax, eax
je 0x40b2b2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b242
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046216b
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40baf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40bb52
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc