joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40c86f
pop dword [ebp - 0x48]
mov eax, 0x20ddbd1a
sub eax, 0x209cf4ab
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x32011a41
add dword [ebp - 0x58], 0x1c512b0a
mov dword [ebp - 0x54], 0x704ea173
add dword [ebp - 0x54], 0xc1e4aad2
mov dword [ebp - 0x50], 0xe698275b
add dword [ebp - 0x50], 0x65b41cd3
mov dword [ebp - 0x4c], 0xca98324a
add dword [ebp - 0x4c], 0x3567cdb6
lea eax, [ebp - 0x58]
push eax
mov eax, 0xc3af0f39
add eax, 0x3c92515f
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x24212e7
sub dword [ebp - 0x58], 0x8dcfa991
mov dword [ebp - 0x54], 0x58c2e9ee
add dword [ebp - 0x54], 0xe8a97787
mov dword [ebp - 0x50], 0x3c7280fa
sub dword [ebp - 0x50], 0xd903148e
mov dword [ebp - 0x4c], 0x54c8580d
sub dword [ebp - 0x4c], 0x54c8580d
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3be19
push 0
call eax
mov ecx, 0xcaef92cf
sub ecx, 0xcaef4797
mov edx, eax
mov ebx, 0xd0b26254
add ebx, 0x2f9043ac
add ebx, dword [ebp - 0x48]
mov edi, 0x46032ccc
add edi, 0xa1c37a6c
sub dword [ebp - 0x24], eax
mov esi, dword [ebx]
xor dword [ebp - 0x18], ecx
sub esi, edi
mov dword [ebp - 8], 0x9b6c21b6
mov dword [edx], esi
add edx, 0x5dfbc197
add edx, 0xa2043e6d
add ebx, 4
loop 0x40c98c
add eax, 0xa1b5e1bd
add eax, 0x5e4b3df6
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xf4f588ae
sub ecx, 0xf4b588ae
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x401180
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x4011f8
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 4], eax
test ebx, ebx
je 0x4011f4
test eax, eax
je 0x4011f4
push str.DebugOpen
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push str.DebugClose
push eax
call edi
mov ecx, dword [esi + 4]
push str.TraceWrite
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 4]
push str.DumpWrite
push edx
mov dword [esi + 0x14], eax
call edi
cmp dword [esi + 0xc], 0
mov dword [esi + 0x18], eax
je 0x4011f4
cmp dword [esi + 0x10], 0
je 0x4011f4
cmp dword [esi + 0x14], 0
je 0x4011f4
test eax, eax
jne 0x4011f8
xor ebx, ebx
jmp 0x4011fd
mov ebx, 1
cmp dword [esi + 8], 0
jne 0x401263
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 8], eax
test eax, eax
je 0x40125f
push str.DebugOpen
push eax
call edi
mov ecx, dword [esi + 8]
push str.DebugClose
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 8]
push str.TraceWrite
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 8]
push str.DumpWrite
push eax
call edi
cmp dword [esi + 0x1c], 0
mov dword [esi + 0x28], eax
je 0x40125f
cmp dword [esi + 0x20], 0
je 0x40125f
cmp dword [esi + 0x24], 0
je 0x40125f
test eax, eax
jne 0x401263
xor eax, eax
jmp 0x401268
mov eax, 1
test ebx, ebx
je 0x40126e
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4013c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x40148f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 4], eax
test eax, eax
je 0x401488
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenA
push eax
call edi
mov ecx, dword [esi + 4]
push str.CloseA
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 4]
push str.TraceWriteA
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push str.DumpWriteA
push eax
call edi
mov ecx, dword [esi + 4]
push str.OpenW
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push str.CloseW
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push str.TraceWriteW
push eax
call edi
mov ecx, dword [esi + 4]
push str.DumpWriteW
push ecx
mov dword [esi + 0x20], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x24], eax
pop edi
je 0x401488
cmp dword [esi + 0xc], 0
je 0x401488
cmp dword [esi + 0x10], 0
je 0x401488
cmp dword [esi + 0x14], 0
je 0x401488
cmp dword [esi + 0x18], 0
je 0x401488
cmp dword [esi + 0x1c], 0
je 0x401488
cmp dword [esi + 0x20], 0
je 0x401488
test eax, eax
jne 0x40148f
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, 1
pop esi
pop ebp
ret 4
Function at 0x4021e0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x567650]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
xor eax, eax
test ecx, ecx
je 0x4022fc
cmp dword [ecx + 4], eax
setne al
test eax, eax
jne 0x4022fc
mov ecx, 0x104
lea eax, [ebp - 0x108]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x402220
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push ecx
push str.SoftwareBrotherBrUtilities
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402298
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x114]
push eax
push esi
push str.BrLogAPI
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x10c]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstA]
test esi, esi
pop esi
jne 0x4022c1
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4022ed
mov ecx, 0x104
lea eax, [ebp - 0x108]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x4022d0
push str.BrLogAPI.dll
push 0x104
lea edx, [ebp - 0x108]
push edx
call fcn.004016f0
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x108]
push eax
call fcn.004013c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004fb314
mov esp, ebp
pop ebp
ret
Function at 0x4038d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4038eb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403922
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40391e
jmp 0x403910
cmp esi, eax
jae 0x403922
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403910
cmp esi, eax
jb 0x403929
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404030
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x567650]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push 0xff
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.004fc170
push 0x44
lea ecx, [ebp - 0x158]
push 0
push ecx
call fcn.004fc170
xor eax, eax
add esp, 0x18
mov dword [ebp - 0x158], 0x44
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
test esi, esi
je 0x404184
mov eax, dword [ebp + 8]
sub eax, 0
je 0x4040fc
dec eax
je 0x4040d7
dec eax
jne 0x404184
push esi
lea edx, [ebp - 0x104]
push 0x100
push edx
call fcn.004fc107
push str.__remove
push 0x100
lea eax, [ebp - 0x104]
push eax
jmp 0x40411f
push str.net_start
lea ecx, [ebp - 0x104]
push 0x100
push ecx
call fcn.004fc107
push esi
push 0x100
lea edx, [ebp - 0x104]
push edx
jmp 0x40411f
push esi
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004fc107
push str.__install
push 0x100
lea ecx, [ebp - 0x104]
push ecx
call fcn.004fc09a
add esp, 0x18
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x158]
push eax
push 0
push 0
push 0x8000020
push 0
push 0
push 0
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x404197
cmp dword [0x568b10], eax
je 0x404184
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x568b10]
push eax
push str.BWSH:
push str._s_CreateProcess__Error___d_n
push 0x20000
push edx
call fcn.00402b30
add esp, 0x14
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb314
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x114]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x110]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x114]
push edx
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.004fb314
mov esp, ebp
pop ebp
ret 8
Function at 0x4047b0
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x567650]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0xff
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.004fc170
mov eax, dword [ebp + 0xc]
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x108]
push ecx
push 0x100
lea edx, [ebp - 0x104]
push edx
push eax
push ebx
push str..pipe_brwlankey
mov dword [ebp - 0x108], 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
jne 0x404863
mov byte [esi], al
mov dword [edi], eax
cmp dword [0x568b10], eax
je 0x40489d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x568b10]
push eax
push str.BWSH:
push str._s_client:_CallNamedPipe_failed__Error___d_n
push 0x10000
push ecx
call fcn.00402b30
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb314
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x108]
push eax
lea edx, [ebp - 0x104]
push edx
push esi
mov dword [edi], eax
call fcn.004fc250
mov eax, dword [0x568b10]
add esp, 0xc
test eax, eax
je 0x40489d
push str.BWSH:
push str._s_Decode_Success_n
push 0x80000
push eax
call fcn.00402b30
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fb314
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405130
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
call fcn.00404e60
push str.wlanapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 4], eax
test eax, eax
jne 0x405173
mov eax, dword [0x568b10]
test eax, eax
je 0x405217
push str.BWSH:
push str._s_Cant_Open_WlanAPI.dll_n
push 0x20000
push eax
call fcn.00402b30
add esp, 0x10
xor al, al
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WlanCloseHandle
push eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 4]
push str.WlanOpenHandle
push eax
call edi
mov ecx, dword [esi + 4]
push str.WlanFreeMemory
push ecx
mov dword [esi + 0x28], eax
call edi
mov edx, dword [esi + 4]
push str.WlanGetProfile
push edx
mov dword [esi + 0x2c], eax
call edi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
push str.WlanGetProfileList
push eax
call edi
mov ecx, dword [esi + 4]
push str.WlanQueryInterface
push ecx
mov dword [esi + 0x34], eax
call edi
mov edx, dword [esi + 4]
push str.WlanEnumInterfaces
push edx
mov dword [esi + 0x38], eax
call edi
cmp dword [esi + 0x24], 0
mov dword [esi + 0x3c], eax
pop edi
je 0x405206
test eax, eax
je 0x405206
cmp dword [esi + 0x2c], 0
je 0x405206
cmp dword [esi + 0x30], 0
je 0x405206
cmp dword [esi + 0x34], 0
je 0x405206
cmp dword [esi + 0x28], 0
je 0x405206
cmp dword [esi + 0x38], 0
je 0x405206
mov al, 1
pop esi
ret
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 4], 0
xor al, al
pop esi
ret
Function at 0x4079a0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x567650]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x568cfc], 0
push edi
mov edi, dword [ebp + 8]
jne 0x407a39
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Brother_Wireless_Setup_Helper
push 0
mov dword [0x568cf8], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov eax, dword [0x568cf8]
push eax
push str.Brother_Wireless_Setup_Helper
push str._s_error:__d
lea ecx, [ebp - 0x88]
push 0x82
push ecx
call fcn.004fc96a
add esp, 0x14
lea edx, [ebp - 0x88]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x8c], edi
test esi, esi
je 0x407a38
push 0
lea eax, [ebp - 0x90]
push eax
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004fb314
mov esp, ebp
pop ebp
ret

Function at 0x407b80
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x567650]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407bdb
push 0x100
push 0x568bd8
call fcn.00407a50
push eax
push str.WirelessSetupChecker_Service
push str.Unable_to_install__s____s_n
call fcn.004fcc5b
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb314
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 0x204]
push ecx
push str._s__s
push 0xffffffffffffffff
lea edx, [ebp - 0x404]
push 0x200
push edx
call fcn.004fc988
add esp, 0x14
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x407cac
push ebx
push esi
push 0
push 0
push 0x522325
push 0
push 0
lea eax, [ebp - 0x404]
push eax
push 1
push 3
push 0x10
push 0xf01ff
push str.WirelessSetupChecker_Service
push str.Brother_Wireless_Setup_Helper
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x407c7b
push str.WirelessSetupChecker_Service
push str._s_installed._n
call fcn.004fcc5b
add esp, 8
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb314
mov esp, ebp
pop ebp
ret
push 0x100
push 0x568bd8
call fcn.00407a50
push eax
push str.CreateService_failed____s_n
call fcn.004fcc5b
add esp, 0x10
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb314
mov esp, ebp
pop ebp
ret
push 0x100
push 0x568bd8
call fcn.00407a50
push eax
push str.OpenSCManager_failed____s_n
call fcn.004fcc5b
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
call fcn.004fb314
mov esp, ebp
pop ebp
ret
Function at 0x407ce0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x407e3d
push esi
push 0x10024
push str.Brother_Wireless_Setup_Helper
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x407e13
push 0x568cdc
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x407db1
push ebx
push str.WirelessSetupChecker_Service
push str.Stopping__s.
call fcn.004fcc5b
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x568cdc
push esi
call ebx
test eax, eax
je 0x407d8b
cmp dword [0x568ce0], 3
jne 0x407d8b
push 0x522de4
call fcn.004fcc5b
add esp, 4
push 0x3e8
call edi
push 0x568cdc
push esi
call ebx
test eax, eax
jne 0x407d62
cmp dword [0x568ce0], 1
pop ebx
push str.WirelessSetupChecker_Service
jne 0x407da1
push str._n_s_stopped._n
jmp 0x407da6
push str._n_s_failed_to_stop._n
call fcn.004fcc5b
mov edi, dword [ebp - 4]
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x407de2
push str.WirelessSetupChecker_Service
push str._s_removed._n
call fcn.004fcc5b
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push 0x100
push 0x568bd8
call fcn.00407a50
push eax
push str.DeleteService_failed____s_n
call fcn.004fcc5b
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push 0x100
push 0x568bd8
call fcn.00407a50
push eax
push str.OpenService_failed____s_n
call fcn.004fcc5b
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push 0x100
push 0x568bd8
call fcn.00407a50
push eax
push str.OpenSCManager_failed____s_n
call fcn.004fcc5b
add esp, 0x10
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x408c05
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x567650]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x408c4d
push 0x523180
push 4
push eax
call fcn.004fc107
push eax
call fcn.00404c90
add esp, 0x10
jmp 0x408c63
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x408ce6
push edi
call fcn.004fd1dd
mov edi, dword [eax]
call fcn.004fd1dd
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004fc988
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.004fd1dd
cmp dword [eax], 0
je 0x408cba
call fcn.004fd1dd
push dword [eax]
call fcn.004085d2
pop ecx
jmp 0x408cc1
call fcn.004fd1dd
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x408ce6
cmp dword [ebp - 0x11c], esi
jae 0x408ce6
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x408ce8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004fb314
leave
ret
Function at 0x408cf5
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x567650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00408af0
pop ecx
cmp eax, esi
je 0x408ddf
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x408ddf
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.004fc170
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x408ddf
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x408ddf
cmp esi, 0x14
jge 0x408ddf
push 0x10
push 0
push edi
call fcn.004fd403
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x408dce
call fcn.004fd1dd
cmp dword [eax], 0x22
je 0x408dce
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.004fd226
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x408da4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x568d14], 0
jne 0x408e6a
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x408e93
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00408c05
pop ecx
pop ecx
test eax, eax
jne 0x408e95
inc edi
cmp edi, esi
jl 0x408e70
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fb314
leave
ret 8

Function at 0x40cdf4
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x514df6
call fcn.004fcf86
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x40ce19
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40ce6b
call fcn.0040c68d
push eax
lea ecx, [ebp - 0x10]
call fcn.00402f50
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004feadc
push eax
call fcn.00404c90
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402d10
mov eax, esi
call fcn.004fd05e
ret 8