joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4262ac]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x124], 0
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push str.SOFTWAREHTCUSBPassThrough
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x402aa8
mov dword [ebp - 4], 4
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x11c]
push edx
push 0
push 0
push str.Enable
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x402a9e
cmp dword [ebp - 0x11c], 0
jbe 0x402a9e
mov dword [0x428230], 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x428230], 0
jne 0x402ab6
jmp 0x402b72
push 0x104
lea edx, [ebp - 0x118]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x118]
push eax
call fcn.00401000
add esp, 8
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x402af3
mov ecx, dword [ebp - 0x124]
mov byte [ecx], 0
lea edx, [ebp - 0x230]
push edx
call fcn.004029b0
add esp, 4
push 0x422c0c
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x118]
push ecx
push str._s_s__s.log
push 0x104
lea edx, [ebp - 0x118]
push edx
call fcn.0040c3e0
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x428220], eax
cmp dword [0x428220], 0
je 0x402b72
push str.Oct__1_2013
push str.LoggerInitial
push str.__s__MODULE_BUILD_DATE:__s
call fcn.00402b80
add esp, 0xc
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040c2df
mov esp, ebp
pop ebp
ret
Function at 0x402b80
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x4262ac]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x428230], 0
je 0x402ba5
cmp dword [0x428220], 0
jne 0x402baa
jmp 0x402d3a
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
push 0xfa
lea ecx, [ebp - 0x428]
push ecx
call fcn.0040c78a
add esp, 0x10
movzx edx, word [ebp - 6]
push edx
movzx eax, word [ebp - 8]
push eax
movzx ecx, word [ebp - 0xa]
push ecx
movzx edx, word [ebp - 0xc]
push edx
movzx eax, word [ebp - 0xe]
push eax
movzx ecx, word [ebp - 0x12]
push ecx
push str._02d__02d__02d:_02d:_02d:_06d
push 0xfa
lea edx, [ebp - 0x328]
push edx
call fcn.0040c3e0
add esp, 0x24
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x328]
push ecx
push str._IPT___S__S
push 0x104
lea edx, [ebp - 0x220]
push edx
call fcn.00403940
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x42c], ecx
mov edx, dword [ebp - 0x42c]
add edx, 1
mov dword [ebp - 0x430], edx
mov eax, dword [ebp - 0x42c]
mov cl, byte [eax]
mov byte [ebp - 0x431], cl
add dword [ebp - 0x42c], 1
cmp byte [ebp - 0x431], 0
jne 0x402c5c
mov edx, dword [ebp - 0x42c]
sub edx, dword [ebp - 0x430]
mov dword [ebp - 0x438], edx
push 0
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x438]
push ecx
lea edx, [ebp - 0x328]
push edx
mov eax, dword [0x428220]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x43c], ecx
mov edx, dword [ebp - 0x43c]
add edx, 1
mov dword [ebp - 0x440], edx
mov eax, dword [ebp - 0x43c]
mov cl, byte [eax]
mov byte [ebp - 0x441], cl
add dword [ebp - 0x43c], 1
cmp byte [ebp - 0x441], 0
jne 0x402cca
mov edx, dword [ebp - 0x43c]
sub edx, dword [ebp - 0x440]
mov dword [ebp - 0x448], edx
push 0
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
lea edx, [ebp - 0x428]
push edx
mov eax, dword [0x428220]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x224]
push ecx
push 2
push 0x422c98
mov edx, dword [0x428220]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c2df
mov esp, ebp
pop ebp
ret
Function at 0x403cc0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x4262ac]
xor eax, ebp
mov dword [ebp - 0x18], eax
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x403cf0
jmp 0x403e29
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x403d13
jmp 0x403e29
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x220]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push str.Internet_Pass_Through_Service
push 0x420de4
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x403d67
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x403e29
mov dword [ebp - 0x228], str.Detect_HTC_Android_device_for_internet_pass_through_function.
lea ecx, [ebp - 0x228]
push ecx
push 1
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov dword [ebp - 0x14], 0xe10
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 4
mov dword [ebp - 0x248], 1
mov dword [ebp - 0x244], 0x3e8
mov dword [ebp - 0x240], 1
mov dword [ebp - 0x23c], 0x3e8
mov dword [ebp - 0x238], 1
mov dword [ebp - 0x234], 0x3e8
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0x3e8
lea eax, [ebp - 0x248]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
push ecx
push 2
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040c2df
mov esp, ebp
pop ebp
ret
Function at 0x403e40
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4262ac]
xor eax, ebp
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x10], 0x7530
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403e7d
jmp 0x403f43
push 0x10024
push 0x420e84
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403ea9
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x403f43
lea edx, [ebp - 8]
push edx
push 0x24
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x403ec7
jmp 0x403f25
lea edx, [ebp - 0x38]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x403edf
jmp 0x403f25
cmp dword [ebp - 0x34], 1
je 0x403f25
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 8]
push edx
push 0x24
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x403f0b
jmp 0x403f25
cmp dword [ebp - 0x34], 1
jne 0x403f13
jmp 0x403f25
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x10]
jbe 0x403f23
jmp 0x403f25
jmp 0x403edf
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040c2df
mov esp, ebp
pop ebp
ret

Function at 0x403f60
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403f80
jmp 0x403fe5
push 0xf01ff
push str.PassThru_Service
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403fa9
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x403fe5
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x403fd1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x403fe5
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esp, ebp
pop ebp
ret
Function at 0x405cd0
Capabilities:
Get local ipv4 addresses
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov dword [ebp - 4], 0x3a98
mov eax, dword [ebp - 4]
push eax
push 0
mov dword [esi + 0x24], 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x24], eax
test eax, eax
je 0x405d29
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 6
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x405d45
mov edx, dword [esi + 0x24]
push edx
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x405ce3
mov eax, dword [esi + 0x1c]
push str.htc::IPTNetworkHelper::NetworkHelper::CreateAdapterAddressesHeapByDescription
push str.__s__Error__Memory_allocation_failed_for_IP_ADAPTER_ADDRESS_struct.
call eax
add esp, 8
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
test edi, edi
jne 0x405da0
mov edi, dword [esi + 0x24]
test edi, edi
je 0x405e1c
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x24]
push ecx
push eax
call fcn.0040d64c
add esp, 8
test eax, eax
jne 0x405d74
mov edi, dword [edi + 8]
test edi, edi
jne 0x405d54
jmp 0x405e1c
mov edx, dword [esi + 0x1c]
push str.htc::IPTNetworkHelper::NetworkHelper::CreateAdapterAddressesHeapByDescription
push str.__s__Find_HTC_description_adapter_connection.
call edx
add esp, 8
push str.Find_HTC_description_adapter_connection.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x1c]
push edi
push str.htc::IPTNetworkHelper::NetworkHelper::CreateAdapterAddressesHeapByDescription
push str.__s__Error__Call_to_GetAdapterAddresses_failed_with_error:__d
call ecx
add esp, 0xc
cmp edi, 0xe8
jne 0x405dcf
mov edx, dword [esi + 0x1c]
push str.htc::IPTNetworkHelper::NetworkHelper::CreateAdapterAddressesHeapByDescription
push str.__s__No_addresses_were_found_for_the_requested_parameters
call edx
add esp, 8
jmp 0x405e1c
push 0
push 0
lea eax, [ebp + 8]
push eax
push 0x400
push edi
push 0
push 0x1300
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x405e1c
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x1c]
push ecx
push str.htc::IPTNetworkHelper::NetworkHelper::CreateAdapterAddressesHeapByDescription
push str.__s__Error___tError:__s
call edx
mov eax, dword [ebp + 8]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x405e23
mov eax, dword [esi + 0x24]
test eax, eax
je 0x405e36
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x24], 0
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40c2df
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4262ac]
jne 0x40c2e9
repz ret
jmp fcn.00410ef2

Function at 0x414781
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x414798
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004144aa
xor dword [ebx - 0x5b], 0xc0458d1a
push eax
call fcn.004144ba
push eax
push esi
push dword [ebp + 8]
call fcn.0041446f
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.004144aa
sti
cmp dword [ebp - 0x17ba7235], esp
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.004144ba
push eax
push esi
push dword [ebp + 8]
call fcn.0041446f
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004144ba
push eax
push esi

Function at 0x4148b8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 8]
call fcn.0041446f
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004144ba
push eax
push esi
push dword [ebp + 8]
call fcn.0041446f
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004144aa
shl cl, cl
dec edx
adc ecx, dword [eax - 0x8363]
Function at 0x414c00
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x414b81
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x414b9f
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x414bfd
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x414be4
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x414bed
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x414bf7
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x414bd9
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x414b63
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x414c4a
dec eax
je 0x414c41
sub eax, 3
je 0x414c38
mov dword [ebp - 4], 0x40
jmp 0x414c67
mov dword [ebp - 4], 4
jmp 0x414c4d
mov dword [ebp - 4], 0x20
jmp 0x414c4d
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x414c99
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x414c19
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004144aa
inc eax
and eax, 0x75ff4409
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x414ca5
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418f10
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.00414931
lea edi, [eax + 0x9c]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x418efe
or dword [edi + 8], 0x104
jmp 0x418fc1
mov dword [edi], eax
add eax, 0x40
lea ebx, [edi + 4]
mov dword [ebx], eax
je 0x418f1f
cmp byte [eax], 0
je 0x418f1f
push ebx
push 0x16
push 0x420340
call fcn.0041894b
add esp, 0xc
mov eax, dword [edi]
and dword [edi + 8], 0
test eax, eax
je 0x418f84
cmp byte [eax], 0
je 0x418f84
mov eax, dword [ebx]
test eax, eax
je 0x418f42
cmp byte [eax], 0
je 0x418f42
mov esi, edi
call fcn.00418e35
jmp 0x418f49
mov esi, edi
call fcn.00418e9c
cmp dword [edi + 8], 0
jne 0x418fd7
push edi
push 0x40
push 0x420138
call fcn.0041894b
add esp, 0xc
test eax, eax
je 0x418fcd
mov ebx, dword [ebx]
test ebx, ebx
je 0x418f7b
cmp byte [ebx], 0
je 0x418f7b
mov esi, edi
call fcn.00418e35
jmp 0x418fcd
mov esi, edi
call fcn.00418e9c
jmp 0x418fcd
mov ebx, dword [ebx]
test ebx, ebx
je 0x418fba
cmp byte [ebx], 0
je 0x418fba
push ebx
call fcn.00413d40
sub eax, 3
neg eax
pop ecx
sbb eax, eax
push 1
inc eax
push 0x418aa2
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [edi + 8], 4
jne 0x418fcd
and dword [edi + 8], 0
jmp 0x418fcd
mov dword [edi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
cmp dword [edi + 8], 0
je 0x4190c2
mov esi, dword [ebp + 8]
mov eax, esi
sub eax, 0xffffff80
neg esi
sbb esi, esi
and esi, eax
call fcn.004189ad
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x4190c2
cmp esi, 0xfde8
je 0x4190c2
cmp esi, 0xfde9
je 0x4190c2
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4190c2
push 1
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4190c2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41904e
mov cx, word [edi + 0x18]
mov word [eax], cx
mov cx, word [edi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], si
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4190bd
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, 0x814
cmp word [eax], cx
jne 0x419085
push str.Norwegian_Nynorsk
push 0x40
push ebx
call fcn.00413cdb
add esp, 0xc
test eax, eax
je 0x419096
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004112b2
push 0x40
push ebx
push 0x1001
push dword [edi + 0x18]
call esi
test eax, eax
je 0x4190c2
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [edi + 0x1c]
call esi
test eax, eax
je 0x4190c2
push 0xa
push 0x10
sub ebx, 0xffffff80
push ebx
push dword [ebp + 8]
call fcn.0041c5cc
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4190c4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x406810
Capabilities:
Encode data using xor

Disassembly:
push cs
add byte [eax], al
add bl, dh
stosd dword es:[edi], eax
mov eax, dword [esi]
push 0x25
push ebx
push 1
mov dword [eax - 0x4f], edx
mov ecx, dword [esi]
mov edx, dword [ecx + 0x14]
and byte [edx], bl
mov ebp, dword [edx - 0x5488755f]
add byte [eax], al
xor byte [ebx + 0x48c1830e], cl
push ecx
call 0x9ca8602a
pop edi
pop esi
mov byte [ebp - 0x3d], bl
nop
nop
nop
push ebp
test edx, eax
push esi
mov esi, dword [ebp + 8]
cmp dl, byte [ecx + 0x5600dbef]
mov eax, dword [esi]
fimul word [ecx - 0x11e5]
push esi
jne 0x4067dd
invalid

Function at 0x406840
Capabilities:
Connect socket

Disassembly:
fcom dword [edi - 0x14]
sub esp, 0x210
push ebx
mov esi, eax
or byte [esi + 0x57], dl
mov eax, dword [ebx + 0x6a]
cmp eax, 0xffffffff
aaa
test byte [esi], bh
add dword [eax], eax
add byte [ebx - 0x6d7aeff8], cl
je 0xe269ef
mov edi, edx
aad 0x8b
dec esi
adc al, 0x17
adc eax, 0x50525128
call dword [sym.imp.WSOCK32.dll_connect]
cmp esi, 0xffffffff
jne 0xc669b8
mov ebp, ebp
fadd st(1)
inc eax
add bh, bh
salc
test eax, eax
sysenter
stc
jo 0x406890
cmc
cwde
salc
dec ebx
cmp byte [ebp + 0xa], 5
cmp eax, 0xcd0b23ef
movaps xmmword [edi], xmm3
add dword [eax], eax
add byte [ebx + 0x7a8b207b], cl
and al, 0x8b
invalid

Function at 0x4086e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor edi, edi
movzx ecx, word [edx + 0x26]
mov esi, dword [edx + 0x28]
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x4086e2
sub al, 0x20
ror edi, 0xd
add edi, eax
dec ecx
jne 0x4086d9
push edx
push edi
mov edx, dword [edx + 0x10]
mov eax, dword [edx + 0x3c]
add eax, edx
mov eax, dword [eax + 0x78]
test eax, eax
je 0x408747
add eax, edx
mov ebx, dword [eax + 0x20]
push eax
mov ecx, dword [eax + 0x18]
add ebx, edx
test ecx, ecx
je 0x408746
dec ecx
xor edi, edi
mov esi, dword [ebx + ecx*4]
add esi, edx
xor eax, eax
ror edi, 0xd
lodsb al, byte [esi]
add edi, eax
cmp al, ah
jne 0x408712
add edi, dword [ebp - 8]
cmp edi, dword [ebp + 0x24]
jne 0x408706
pop eax
mov ebx, dword [eax + 0x24]
add ebx, edx
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
add ebx, edx
mov eax, dword [ebx + ecx*4]
add eax, edx
mov dword [esp + 0x24], eax
pop ebx
pop ebx
popal
pop ecx
pop edx
push ecx
jmp eax
pop eax
pop edi
pop edx
mov edx, dword [edx]
jmp 0x4086d0
Function at 0x4014f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x254]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x264]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x254], 0x44
lea eax, [ebp - 0x264]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x254]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
nop
leave
ret