joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c380
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54f6e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5a5784]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push str._GETSET_CIOOperation::Configure__._n
push 0x40000
call fcn.0041abf0
xor eax, eax
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x64]
lea ebx, [esi + 0x64]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00411090
mov eax, dword [esi + 0x84]
push 0x4042
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.00402140
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea edi, [esi + 8]
push edi
call fcn.0040b680
mov dword [esp + 0x10], eax
test eax, eax
je 0x40c44f
push eax
push str._GETSET__error__CIOOperation::FileOpen___fails._return_value:__d._n
push 0x40000
call fcn.0041abf0
add esp, 0xc
lea ebx, [esp + 0x14]
call fcn.00402d80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.0040ba20
push str.CFileWrapper::FileClose__._n
mov dword [esp + 0x14], eax
push 0x80000
test eax, eax
je 0x40c4c0
call fcn.0041abf0
add esp, 8
cmp dword [edi + 0x14], 0
je 0x40c48b
mov edx, dword [edi]
mov eax, dword [edx + 0x50]
mov ecx, edi
call eax
lea ecx, [edi + 0x18]
call fcn.00401ac0
mov esi, dword [esp + 0x10]
push esi
push str._GETSET__error__CIOOperation::FetchFileContent___fails._return_value:__d._n
push 0x40000
call fcn.0041abf0
add esp, 0xc
lea ebx, [esp + 0x14]
call fcn.00402d80
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x1c]
test ecx, 0xfffffffc
jne 0x40c524
call fcn.0041abf0
add esp, 8
cmp dword [edi + 0x14], 0
je 0x40c4ef
mov edx, dword [edi]
mov eax, dword [edx + 0x50]
mov ecx, edi
call eax
lea ecx, [edi + 0x18]
call fcn.00401ac0
push 0x66
push str._GETSET_CIOOperation::Configure___File_no_content._return_value:__d._n
push 0x80000
call fcn.0041abf0
add esp, 0xc
lea ebx, [esp + 0x14]
call fcn.00402d80
mov eax, 0x66
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041abf0
add esp, 8
cmp dword [edi + 0x14], 0
je 0x40c543
mov edx, dword [edi]
mov eax, dword [edx + 0x50]
mov ecx, edi
call eax
lea ecx, [edi + 0x18]
call fcn.00401ac0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
lea ecx, [esp + 0x28]
call fcn.00402600
push ebx
push esi
call fcn.0040fbc0
push 0
push str._GETSET_CIOOperation::Configure___end._return_value:__d._n
push 0x80000
call fcn.0041abf0
add esp, 0xc
lea ebx, [esp + 0x14]
call fcn.00402d80
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cff0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54db28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5a5784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push str._GETSET_CIOOperation::CreateWorkThreads__._n
push 0x40000
call fcn.0041abf0
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00430e26
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x10], edi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebx], esi
jle 0x40d07f
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
push 0
push 0
push ecx
push 0x40d130
push 0
push 0
call fcn.00525509
add esp, 0x18
mov dword [edi + esi*4], eax
test eax, eax
je 0x40d0d0
add dword [ebp + 8], 0x18
inc esi
cmp esi, dword [ebx]
jl 0x40d056
mov eax, dword [ebx]
push 0xffffffffffffffff
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
cmp dword [ebx], esi
jle 0x40d0a2
mov ecx, dword [edi + esi*4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx]
jl 0x40d093
push 0
push str._GETSET_CIOOperation::CreateWorkThreads___end._return_value:__d._n
push 0x80000
call fcn.0041abf0
push edi
call fcn.00430e1b
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push str._GETSET_CIOOperation::CreateWorkThreads__._Create_thread___d__failed._n
push 0x80000
call fcn.0041abf0
lea ebx, [esi - 1]
add esp, 0xc
test ebx, ebx
jle 0x40d10f
push 0xffffffffffffffff
push 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
test ebx, ebx
jle 0x40d10f
lea esp, [esp]
mov edx, dword [edi + esi*4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jl 0x40d100
push edi
call fcn.00430e1b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416210
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54f6e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5a5784]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push str._PSWCHK_CPasswordOperation::Configure__._n
push 0x40000
call fcn.0041abf0
xor eax, eax
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x34]
push 0x4042
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00402140
add esp, 4
add eax, 0x10
lea ebx, [edi + 8]
push ebx
mov dword [esi], eax
call fcn.0040b680
mov esi, eax
test esi, esi
jne 0x4162ea
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0040ba20
mov esi, eax
test esi, esi
jne 0x4162bd
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
lea ecx, [esp + 0x28]
call fcn.00402600
push edi
call fcn.00417670
mov esi, eax
push str.CFileWrapper::FileClose__._n
push 0x80000
call fcn.0041abf0
add esp, 8
cmp dword [ebx + 0x14], 0
je 0x4162e6
mov edx, dword [ebx]
mov eax, dword [edx + 0x50]
mov ecx, ebx
call eax
lea ecx, [ebx + 0x18]
call fcn.00401ac0
test esi, esi
je 0x4162f7
push esi
push str._PSWCHK__error__CPasswordOperation::Configure___failed._error_value_:__d_._n
push 0x40000
jmp 0x416303
push 0
push str._PSWCHK_CPasswordOperation::Configure___end._return_value:__d_._n
push 0x80000
call fcn.0041abf0
add esp, 0xc
lea ebx, [esp + 0x14]
call fcn.00402d80
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425930
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
lea eax, [ecx + 1]
pop ebp
ret
Function at 0x42a890
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5a5784]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
call fcn.00434513
push eax
lea ecx, [ebp - 0x10c]
call fcn.00434df3
push 0xff
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x42a8f1
lea ecx, [ebp - 0x10c]
call fcn.0043452b
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052442d
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x110], eax
test eax, eax
jne 0x42a928
lea ecx, [ebp - 0x10c]
call fcn.0043452b
pop edi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052442d
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
jg 0x42a957
lea ecx, [ebp - 0x10c]
call fcn.0043452b
pop esi
pop edi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052442d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + esi*4]
test eax, eax
je 0x42a981
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push ebx
push edi
call fcn.00526156
inc esi
add esp, 0x10
add edi, ebx
cmp esi, dword [ebp + 0x10]
jl 0x42a951
jmp 0x42a930
lea ecx, [ebp - 0x10c]
call fcn.0043452b
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0052442d
mov esp, ebp
pop ebp
ret

Function at 0x42aa00
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5a5784]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0xfc
mov esi, ecx
lea ecx, [ebp - 0x100]
push 0
push ecx
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x104], eax
call fcn.00526710
mov edx, dword [esi + 0xc70]
mov eax, dword [esi + 0xc74]
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
push 0
mov dword [ebp - 0x110], edx
lea edx, [ebp - 0x108]
push edx
push 0
push 0
mov dword [ebp - 0x10c], eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x42aa98
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push eax
push ebx
push 0
push ecx
push edi
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x42aa9b
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052442d
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42aab0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5a5784]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0xfc
mov esi, ecx
lea ecx, [ebp - 0x100]
push 0
push ecx
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x104], eax
call fcn.00526710
mov edx, dword [esi + 0xc70]
mov eax, dword [esi + 0xc74]
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
push 0
mov dword [ebp - 0x114], edx
push 0
lea edx, [ebp - 0x108]
push edx
push 0
mov dword [ebp - 0x110], eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x42ab54
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x10c]
push ecx
push ebx
push 0
push edx
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 8]
push edi
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x42ab57
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052442d
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42e9e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54192b
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x5a5784]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00431a74
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42ea29
push 0x80004005
call fcn.00401cd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x414], ecx
mov edx, dword [esi + 4]
cmp dword [edx - 0xc], 0
lea eax, [esi + 4]
mov dword [ebp - 4], 0
jne 0x42ea78
lea eax, [ecx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ea71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x42eb04
push eax
lea ecx, [ebp - 0x414]
call fcn.0042e770
push 0x12
push str.debugsettings.ini
lea ecx, [ebp - 0x414]
call fcn.0042e6b0
mov esi, dword [ebp - 0x414]
push esi
push 0x105
lea ecx, [ebp - 0x410]
push ecx
push 0x5556a4
push str.DelayTime
push 0x55568c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x410]
push 0x584670
push eax
call fcn.00525c9f
mov edi, dword [ebp - 0x418]
lea eax, [esi - 0x10]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42eb02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052442d
mov esp, ebp
pop ebp
ret
Function at 0x42f6c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541a1b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5a5784]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, ecx
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], ebx
call fcn.00431a74
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42f71c
push 0x80004005
call fcn.00401cd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x214], ecx
mov edx, dword [edi + 4]
cmp dword [edx - 0xc], 0
lea eax, [edi + 4]
mov dword [ebp - 4], 0
jne 0x42f76b
lea eax, [ecx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f764
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x42f8b7
push eax
lea ecx, [ebp - 0x214]
call fcn.0042e770
push 1
push 0x55571c
lea ecx, [ebp - 0x214]
call fcn.0042e6b0
test ebx, ebx
jne 0x42f791
xor eax, eax
jmp 0x42f79f
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f796
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x214]
call fcn.0042e6b0
push 4
push str..ini
lea ecx, [ebp - 0x214]
call fcn.0042e6b0
mov ebx, dword [ebp - 0x214]
push 0x555710
push ebx
call fcn.0052730f
mov ecx, dword [ebp - 0x21c]
add esp, 8
mov edi, eax
call fcn.0042e9e0
mov dword [ebp - 0x220], eax
test edi, edi
je 0x42f869
push edi
call fcn.005271df
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0xc]
xor edi, edi
mov dword [esi + 0x1c], 2
mov dword [esi + 0x10], edi
mov dword [ebp - 0x218], eax
cmp eax, edi
jle 0x42f840
mov edi, edi
mov ecx, dword [ebp - 0x21c]
push edi
push esi
push ebx
call fcn.0042eb20
test eax, eax
jne 0x42f83d
inc edi
cmp edi, dword [ebp - 0x218]
jl 0x42f820
jmp 0x42f840
mov dword [esi + 0x10], eax
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x42f758
mov ecx, dword [ebp - 0x218]
push ecx
lea edx, [ebp - 0x210]
push str.BrMuSNMPDebug_:_CONNECTION_ERROR_addr___s
push edx
call fcn.00526c33
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f8b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052442d
mov esp, ebp
pop ebp
ret 8
Function at 0x42fa10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541a69
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x5a5784]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x418], edi
mov dword [edi], vtable.SNMPDebug.0
lea esi, [edi + 4]
call fcn.00431a74
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42fa68
push 0x80004005
call fcn.00401cd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0042e8c0
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x42fa98
mov dword [edi + 8], 2
jmp 0x42fbaf
call fcn.00431a74
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42fab2
push 0x80004005
call fcn.00401cd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x414], eax
push esi
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 1
call fcn.0042e770
push 0x12
push str.debugsettings.ini
lea ecx, [ebp - 0x414]
call fcn.0042e6b0
mov esi, dword [ebp - 0x414]
push esi
push 0x105
lea ecx, [ebp - 0x410]
push ecx
push 0x5556a4
push str.Mode
push 0x55568c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, str.ConnectToMIBFile
lea eax, [ebp - 0x410]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42fb40
test dl, dl
je 0x42fb3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42fb40
add eax, 2
add ecx, 2
test dl, dl
jne 0x42fb20
xor eax, eax
jmp 0x42fb45
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42fb52
mov dword [edi + 8], 1
jmp 0x42fb8f
mov ecx, str.CreateMIBFile
lea eax, [ebp - 0x410]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42fb80
test dl, dl
je 0x42fb7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42fb80
add eax, 2
add ecx, 2
test dl, dl
jne 0x42fb60
xor eax, eax
jmp 0x42fb85
sbb eax, eax
sbb eax, 0xffffffff
neg eax
sbb eax, eax
and eax, 2
mov dword [edi + 8], eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42fbaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052442d
mov esp, ebp
pop ebp
ret
Function at 0x431e04
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5a5784]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x431e49
push 0x5559d8
push 4
push eax
call fcn.0052443c
push eax
call fcn.004018c0
add esp, 0x10
jmp 0x431e5f
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x431edf
push edi
call fcn.00525b89
mov edi, dword [eax]
call fcn.00525b89
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00527536
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00525b89
cmp dword [eax], 0
je 0x431eb3
call fcn.00525b89
push dword [eax]
call fcn.00431177
pop ecx
jmp 0x431eba
call fcn.00525b89
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x431edf
cmp dword [ebp - 0x234], esi
jae 0x431edf
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x431ee1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0052442d
leave
ret
Function at 0x43244b
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5a5784]
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.004323ac
pop ecx
cmp eax, esi
je 0x432535
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x432535
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.00526710
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 0x432535
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x432535
cmp esi, 0x14
jge 0x432535
push 0x10
push 0
push edi
call fcn.00525b2d
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x432524
call fcn.00525b89
cmp dword [eax], 0x22
je 0x432524
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00527326
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x4324fa
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 [0x5a7084], 0
jne 0x4325c0
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x4325e9
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00431e04
pop ecx
pop ecx
test eax, eax
jne 0x4325eb
inc edi
cmp edi, esi
jl 0x4325c6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052442d
leave
ret 8

Function at 0x4383b3
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5a5784]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4383e8
xor eax, eax
jmp 0x43843b
lea eax, [ebp - 0x210]
push eax
call fcn.00527326
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x438419
push 0x556624
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005258dc
add esp, 0xc
test eax, eax
jne 0x4383e4
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005258dc
add esp, 0xc
test eax, eax
jne 0x4383e4
lea eax, [ebp - 0x210]
push eax
call fcn.004323ac
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0052442d
leave
ret