joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412420
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x318
push esi
mov esi, dword [esp + 0x320]
test esi, esi
je 0x412440
push 0x180
push esi
call fcn.00419f9c
add esp, 8
mov eax, dword [0x42ad9c]
test eax, eax
je 0x41248b
test esi, esi
jne 0x41246c
mov eax, dword [esp + 0x324]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov ecx, dword [esp + 0x324]
push 5
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov eax, dword [esp + 0x324]
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x11c]
push 0x104
push edx
push eax
call edi
test esi, esi
je 0x4124be
lea ecx, [esp + 0x220]
push 0x104
push ecx
push esi
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x18]
push str.WININIT.INI
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
je 0x412520
lea ecx, [esp + 0x18]
lea edx, [esp + 0x11c]
push ecx
lea eax, [esp + 0x224]
push edx
push eax
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
lea edx, [esp + 0x18]
lea eax, [esp + 0x11c]
push edx
push eax
push 0x425e20
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
lea edx, [esp + 0x18]
push 2
push edx
call fcn.00401140
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x412638
push ebx
push ebp
call fcn.004012c0
mov ebx, eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], ebx
lea ecx, [ebx + 0x200]
push ecx
call fcn.00402180
add esp, 0xc
test eax, eax
je 0x41262e
mov esi, dword [esp + 0x10]
push ebx
push esi
push ebp
call fcn.004011c0
add esp, 0xc
test eax, eax
jne 0x412621
add ebx, 0xfffffffc
mov edx, esi
test ebx, ebx
jbe 0x412621
mov eax, 0xfffffffe
sub eax, esi
mov dword [esp + 0x18], eax
cmp byte [edx], 0x78
jne 0x4125f0
cmp byte [edx + 1], 0x79
jne 0x4125f0
cmp byte [edx + 2], 0x7a
jne 0x4125f0
cmp byte [edx + 3], 0x3d
jne 0x4125f0
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea esi, [edx + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x120]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4125fb
mov eax, dword [esp + 0x18]
inc edx
lea ecx, [eax + edx + 2]
cmp ecx, ebx
jb 0x4125b4
jmp 0x412621
push 0
push ebp
mov byte [edx], 0x4e
mov byte [edx + 1], 0x55
mov byte [edx + 2], 0x4c
call fcn.00401260
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebp
call fcn.00401200
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call fcn.00402200
add esp, 4
push ebp
call fcn.004013c0
add esp, 4
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
Function at 0x419f9c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x419fc7
test byte [esp + 8], 0x80
je 0x419fb6
and al, 0xfe
jmp 0x419fb8
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x419fd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041b88a
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x41a0dd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41a0fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041b88a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41a11e
test byte [esp + 8], 2
je 0x41a11e
mov dword [0x42ae4c], 0xd
mov dword [0x42ae50], 5
jmp 0x41a0f9
xor eax, eax
ret

Function at 0x41ee99
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42a4a0
cmp edx, dword [eax]
je 0x41eebb
add eax, 8
inc ecx
cmp eax, 0x42a530
jl 0x41eeac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42a4a0]
jne 0x41efe9
mov eax, dword [0x42aea8]
cmp eax, 1
je 0x41efc3
test eax, eax
jne 0x41eeec
cmp dword [0x427f18], 1
je 0x41efc3
cmp edx, 0xfc
je 0x41efe9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41ef23
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041daf0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041da70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41ef66
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041da70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x425934
push edi
call fcn.0041a700
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041daf0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041db00
lea eax, [ebp - 0xa0]
push 0x422b74
push eax
call fcn.0041db00
push dword [esi + 0x42a4a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041db00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004204b5
add esp, 0x2c
pop edi
jmp 0x41efe9
lea eax, [ebp + 8]
lea esi, [esi + 0x42a4a4]
push 0
push eax
push dword [esi]
call fcn.0041da70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4681ec
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00468063

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Terminate process

Disassembly:
mov dword [0x402452], eax
mov edx, eax
xor edi, edi
push 2
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
xor esi, esi
push dword [0x403583]
call dword [sym.imp.winmm.dll_waveOutClose]
add eax, 6
test eax, 0xb
jne 0x401036
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
ret
Function at 0x4012f0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42e94b
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x43d910]
xor eax, esp
mov dword [esp + 0x838], eax
push ebx
push esi
push edi
mov eax, dword [0x43d910]
xor eax, esp
push eax
lea eax, [esp + 0x850]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4e]
push eax
mov dword [esp + 0x2c], 0
call fcn.00419730
xor esi, esi
add esp, 0xc
mov dword [esp + 0x28], 0x800
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
lea eax, [esp + 0x24]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [esp + 0x868], esi
push 0x80000001
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40147a
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push str.AppData
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ecx, 1
mov eax, 0
cmove eax, ecx
mov dword [esp + 0x1c], eax
test esi, esi
je 0x4013ef
push esi
call ebx
mov eax, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0
test eax, eax
je 0x40147a
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp word [esp + 0x44], ax
jne 0x40141d
xor ecx, ecx
jmp 0x401433
lea ecx, [esp + 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401424
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00402340
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00401e10
cmp dword [esp + 0x40], 8
jb 0x401461
push dword [esp + 0x2c]
call fcn.00412d20
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
jmp 0x40149a
xor eax, eax
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push 0x4378e0
mov ecx, edi
mov word [edi], ax
call fcn.00402340
test esi, esi
je 0x4014a1
push esi
call ebx
mov eax, edi
mov ecx, dword [esp + 0x850]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.00412d25
mov esp, ebp
pop ebp
ret
Function at 0x405bd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42eb0a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x43d910]
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
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.004127a9
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x405c76
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.bad_locale_name
call fcn.00413c17
push 0x43a3b8
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.00417b1b
push edi
push esi
call fcn.00412685
add esp, 8
mov eax, esi
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.00412d25
mov esp, ebp
pop ebp
ret 4

Function at 0x406ff0
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x43b700
push 0x41f2f0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x43d910]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2c], esi
test edi, edi
jne 0x407068
mov dword [ebp - 4], edx
push edx
push edx
push edx
push SysStringLen
call dword [sym.imp.KERNEL32.dll_RaiseException]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00412d25
mov esp, ebp
pop ebp
ret
Function at 0x408710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f7b8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x43d910]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x44020c
mov dword [ebp - 0x10], 0x44020c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0
push 1
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [0x440204], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x440250
push 0
push 0x440238
push 0x408970
push 0
push 0
mov dword [0x440200], eax
mov dword [0x4401f8], 0x2bf20
mov dword [0x4401f4], 0
mov dword [0x440254], 0
mov dword [0x4401f0], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 8
mov dword [0x440254], eax
call fcn.004131d1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4087d7
mov byte [ecx], 0
mov dword [ecx + 4], 0
jmp 0x4087d9
xor ecx, ecx
mov eax, dword [0x4401f4]
test ecx, ecx
mov edx, 1
cmovne eax, edx
cmp dword [0x440254], 0
push 0x44020c
mov dword [0x4401f0], ecx
mov dword [0x4401f4], eax
setne bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409260
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f9b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x43d910]
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
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
mov dword [ebp - 4], 0
push 0
lea eax, [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004019d0
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.00409700
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x18]
add esi, 2
push esi
call fcn.00412368
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.00419730
add esp, 0xc
cmp dword [ebp - 0x14], 0x10
lea eax, [esi - 1]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push eax
push ecx
push edi
call fcn.00417440
add esp, 0xc
push 8
call fcn.004131d1
add esp, 4
test eax, eax
je 0x409313
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edi
jmp 0x409315
xor eax, eax
push 0
push 0
push eax
push 0x409a30
push 0
push 0
call fcn.00414005
add esp, 0x18
cmp dword [ebp + 0xc], 2
mov esi, eax
jne 0x40933f
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0x10
jb 0x409357
push dword [ebp - 0x28]
call fcn.00412d20
add esp, 4
cmp dword [ebp + 0x24], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40937a
push dword [ebp + 0x10]
call fcn.00412d20
add esp, 4
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.00412d25
mov esp, ebp
pop ebp
ret 0x20
Function at 0x40b350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42fa58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x43d910]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x43d910]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x40b4a6
cmp byte [ebx + 0x46], 0
je 0x40b4a6
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x40b3bb
xor al, al
jmp 0x40b4a8
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40b433
dec eax
je 0x40b437
sub eax, 2
je 0x40b48d
xor bl, bl
jmp 0x40b48f
mov byte [ebx + 0x46], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x40b46e
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.00415182
add esp, 0x10
cmp esi, eax
jne 0x40b42f
cmp byte [ebx + 0x46], 0
je 0x40b48d
test esi, esi
jne 0x40b3f2
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00401550
jmp 0x40b3f2
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x40b4a2
push dword [esp + 0x18]
call fcn.00412d20
add esp, 4
mov al, bl
jmp 0x40b4a8
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00412d25
mov esp, ebp
pop ebp
ret
Function at 0x40f9e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fda8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x43d910]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x38], 0
test edi, edi
jne 0x40fa38
xor eax, eax
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edx
push 0x4378e0
mov word [esi], ax
call fcn.00402340
jmp 0x40fb11
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push str.ChannelCode
push edi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fb05
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], eax
mov word [ebp - 0x34], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40fa8a
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov word [ebp + eax*2 - 0x34], cx
jmp 0x40fa95
push 0
push eax
lea ecx, [ebp - 0x34]
call fcn.0040d170
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.ChannelCode
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fad9
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.00401e10
cmp dword [ebp - 0x20], 8
jb 0x40fb11
push dword [ebp - 0x34]
call fcn.00412d20
add esp, 4
jmp 0x40fb11
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 8
jb 0x40faf1
push dword [ebp - 0x34]
call fcn.00412d20
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
push 0x4378e0
mov ecx, esi
call fcn.00402440
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00412d25
mov esp, ebp
pop ebp
ret
Function at 0x410000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fe90
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x43d910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
push eax
push 0x101
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41010a
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x43878c
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 1
mov dword [ebp - 0x5c], eax
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call dword [0x43878c]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x20], 0
test ecx, ecx
je 0x4100ac
mov edx, dword [ecx]
lea eax, [ebp - 0x58]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
mov dword [ebp - 4], 3
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4100f9
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x14]
lea ecx, [esi + 4]
mov dword [esi], eax
call fcn.004116e0
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
push 0
push 0
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00406df0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412d25
mov esp, ebp
pop ebp
ret
Function at 0x4120b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43d910]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
cmp eax, 0x2d
jne 0x41212a
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ecx, ax
mov eax, ecx
and eax, 0x3ff
cmp eax, 4
jne 0x41212a
and ecx, 0xfc00
cmp ecx, 0x800
jne 0x41212a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.NETAPI32.dll_NetGetJoinInformation]
test eax, eax
jne 0x41211a
push dword [ebp - 0xc]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp dword [ebp - 8], 3
je 0x41212a
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412d25
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.00412d25
mov esp, ebp
pop ebp
ret
Function at 0x428d92
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041cb71
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x428dca
xor eax, eax
jmp 0x428df6
cmp esi, dword [ebp - 4]
je 0x428df3
cmp dword [ebp + 0xc], 0
je 0x428df3
push dword [edi + 0x9c]
call fcn.004289a0
push dword [edi + 0x9c]
mov esi, eax
call fcn.00419c46
pop ecx
pop ecx
cmp esi, eax
je 0x428dc6
xor eax, eax
inc eax
pop edi
pop esi
leave
ret