joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, eax
cmp dword [esi + 0x1064], 1
push edi
je 0x402618
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x1054]
mov ecx, dword [esi + 0x1050]
test eax, eax
ja 0x402625
jb 0x4025fd
cmp ecx, 0x10000
jae 0x402625
mov edx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ebp, ebp
xor edi, edi
add ecx, 0xffff0000
adc eax, 0xffffffff
test eax, eax
jb 0x4026fe
ja 0x402644
test ecx, ecx
jbe 0x4026fe
cmp dword [esi + 0x1064], 0
jne 0x4026fe
mov ecx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push 0x10000
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402740
cmp dword [esp + 0x10], 0x10000
jne 0x402740
cmp dword [esp + 0x28], 0
je 0x4026ce
test byte [esi + 0x105c], 4
je 0x4026ce
mov eax, ebp
add eax, 0x10000
mov ecx, edi
movzx edx, ax
adc ecx, 0
xor ebx, ebx
mov dword [esp + 0x14], eax
test edx, edx
jne 0x4026ca
test ebx, ebx
jne 0x4026ca
push esi
mov dword [esi + 0x1048], eax
mov dword [esi + 0x104c], ecx
mov dword [esi + 0x1060], 4
call dword [esp + 0x2c]
add esp, 4
mov ebx, dword [esp + 0x20]
mov ecx, dword [esi + 0x1050]
mov eax, dword [esi + 0x1054]
add ebp, 0x10000
adc edi, 0
add ecx, 0xffff0000
adc eax, 0xffffffff
cmp edi, eax
jb 0x402644
ja 0x4026fe
cmp ebp, ecx
jb 0x402644
mov eax, dword [esi + 0x1050]
mov ecx, dword [esp + 0x24]
push 0
lea edx, [esp + 0x14]
push edx
sub eax, ebp
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402740
mov eax, dword [esi + 0x1050]
mov esi, dword [esi + 0x1054]
mov ecx, dword [esp + 0x10]
sub eax, ebp
sbb esi, edi
xor edx, edx
cmp eax, ecx
jne 0x402740
cmp esi, edx
je 0x402611
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4028b0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1094
call fcn.0040da20
mov eax, dword [0x41605c]
xor eax, esp
mov dword [esp + 0x1090], eax
push edi
xor edi, edi
cmp esi, edi
je 0x4029c7
mov eax, 0x401f30
test eax, eax
je 0x4029c7
push 0x107c
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.00409570
mov eax, dword [ebp + 8]
add esp, 0xc
lea edx, [esp + 8]
push esi
mov dword [esp + 0x1070], 0xf
mov dword [esp + 0x1084], 1
mov dword [esp + 0x1080], 1
mov dword [esp + 0x107c], edi
mov dword [esp + 0x108c], edx
mov dword [esp + 0xc], 0x401f30
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x4027e0
test ecx, ecx
je 0x402985
cmp eax, 0xffffffff
je 0x402985
lea edx, [esp + 0x10]
test al, 0x10
je 0x402972
mov eax, dword [esp + 0x107c]
push edi
push edx
push 0x4027e0
push eax
push esi
call fcn.00401310
add esp, 0x14
jmp 0x402981
push 0x4027e0
mov ecx, esi
call fcn.004010c0
add esp, 4
test eax, eax
jne 0x4029df
cmp dword [esp + 0x1074], 1
jne 0x4029a7
mov eax, 0x3e3
pop edi
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00405d7e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4029e1
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00405d7e
mov esp, ebp
pop ebp
ret
mov eax, 0x57
pop edi
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00405d7e
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ecx, dword [esp + 0x1094]
pop edi
xor ecx, esp
call fcn.00405d7e
mov esp, ebp
pop ebp
ret
Function at 0x403ef0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x403f00
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x403f10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4043c0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x41605c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x40443a
xor eax, eax
cmp ecx, ebp
je 0x404422
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x404448
cmp ecx, ebp
je 0x4044db
push ecx
jmp 0x4044d5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x4044aa
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.004043c0
mov ebx, eax
cmp ebx, ebp
jne 0x4044f8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x404470
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4044bd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00404570
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4044db
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405d7e
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404507
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4044dd
Function at 0x404fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x410680
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x41605c]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40505f
call fcn.00405490
mov esi, eax
jmp 0x405141
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40507b
call fcn.00405490
jmp 0x405138
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x405094
call fcn.00405490
jmp 0x405138
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x4050c8
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x4050b6
lea eax, [ebp]
call fcn.00403800
lea esi, [ebp - 0x1c]
call fcn.004054b0
mov eax, 0x8007000e
jmp 0x405153
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00403820
mov dword [ebp - 4], 1
jmp 0x4050f1
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x4050ff
mov esi, 0x8007000e
jmp 0x40513a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40511d
call fcn.00405490
jmp 0x405138
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00404e90
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x405151
lea eax, [ebp]
call fcn.00403800
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00405d7e
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc

Function at 0x405d30
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405d6c
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405d6c
mov eax, 1
cmp dword [esp + 0x10], eax
je 0x405d6e
xor eax, eax
ret 0x10

Function at 0x405d7e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41605c]
jne 0x405d88
repz ret
jmp fcn.00406db3
Function at 0x40d13e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409c85
and dword [ebp - 4], 0
cmp dword [0x417d2c], 0
mov ebx, eax
jne 0x40d1ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d2a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40d2a0
push eax
call fcn.00409c13
mov dword [esp], 0x4122b8
push edi
mov dword [0x417d2c], eax
call esi
push eax
call fcn.00409c13
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x417d30], eax
call esi
push eax
call fcn.00409c13
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x417d34], eax
call esi
push eax
call fcn.00409c13
pop ecx
mov dword [0x417d3c], eax
test eax, eax
je 0x40d1ef
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00409c13
pop ecx
mov dword [0x417d38], eax
mov eax, dword [0x417d38]
cmp eax, ebx
je 0x40d247
cmp dword [0x417d3c], ebx
je 0x40d247
push eax
call fcn.00409c8e
push dword [0x417d3c]
mov esi, eax
call fcn.00409c8e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d247
test edi, edi
je 0x40d247
call esi
test eax, eax
je 0x40d23e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d23e
test byte [ebp - 0xc], 1
jne 0x40d247
or dword [ebp + 0x10], 0x200000
jmp 0x40d280
mov eax, dword [0x417d30]
cmp eax, ebx
je 0x40d280
push eax
call fcn.00409c8e
pop ecx
test eax, eax
je 0x40d280
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d280
mov eax, dword [0x417d34]
cmp eax, ebx
je 0x40d280
push eax
call fcn.00409c8e
pop ecx
test eax, eax
je 0x40d280
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x417d2c]
call fcn.00409c8e
pop ecx
test eax, eax
je 0x40d2a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d2a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f1a4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x417e10], 0
push esi
jne 0x40f117
call fcn.0040f03d
test eax, eax
je 0x40f15a
mov eax, dword [0x417e10]
cmp eax, 1
jne 0x40f138
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40f15a
pop esi
ret
push eax
call dword [0x417e18]
test eax, eax
jne 0x40f1a2
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40f15e
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x417e10]
call dword [0x417e18]
mov edi, eax
test edi, edi
je 0x40f183
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40f19f
mov edi, esi
add esi, 0xff0
push edi
push dword [0x417e10]
call dword [0x417e14]
add edi, 0x10
cmp edi, esi
jb 0x40f18b
mov eax, edi
pop edi
pop esi
ret
jmp 0x40f104
Function at 0x4070c4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x407106
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407126
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040af1c
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x407348
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040a3bc
test esi, esi
jne 0x40737e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040a544
jmp 0x40739c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040728c
mov edi, eax
test esi, esi
je 0x40739c
cmp dword [ebx], 0
je 0x40739c
dec esi
jmp 0x407385
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x409018
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004094a4
mov byte [esp], al
cmp byte [esp], 0
jne 0x4091a1
test edi, edi
je 0x4091a1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4090e1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4090bc
cmp edi, 0xffffffff
je 0x40907d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40907d
mov byte [esp], 0
jmp 0x4091a1
cmp dword [esi], 1
jg 0x4090bc
cmp dword [esi], 0
jne 0x4090ae
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4090ae
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4091a1
lea eax, [esp + 0xc]
call fcn.00408cd4
dec ebp
test ebp, ebp
jg 0x409062
cmp edi, 0xffffffff
je 0x4090e1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4090df
mov byte [esp], 0
jmp 0x4091a1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409026
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4090e1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409210
mov edx, eax
mov ebx, dword [0x6718fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409145
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x409143
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409145
xor edi, edi
cmp byte [esp], 0
je 0x40916b
mov ebx, dword [esi]
test bl, 1
jne 0x409181
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40914b
mov byte [esp + 1], 1
jmp 0x409181
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40916b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4090f8
cmp byte [esp], 0
je 0x4091a1
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40a018
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x67105c], 0
je 0x40a07f
cmp word [0x671348], 0xd7b2
jne 0x40a041
cmp dword [0x671350], 0
jbe 0x40a041
mov eax, 0x671344
call dword [0x671360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40a0ac
call fcn.0040ab64
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x664032], 0
jne 0x40a09b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a27c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x664034], 0
je 0x40a2a7
mov edx, edi
mov eax, esi
call dword [0x664034]
mov ebx, eax
jmp 0x40a2b8
mov eax, 8
call fcn.00406eec
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x67105d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a244
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40a2e8
mov eax, ebx
call fcn.00406f08
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40cf78
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40d0dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a3bc
cmp si, word [0x664a20]
jb 0x40d010
cmp si, word [0x664c20]
ja 0x40d010
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d010
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x664a20]
jae 0x40cfea
mov edi, ebx
dec edi
jmp 0x40d00b
cmp si, word [ebx*8 + 0x664a20]
jbe 0x40cffa
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d00b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x664a24]
call fcn.0040ce98
jmp 0x40d010
cmp edi, dword [ebp - 8]
jae 0x40cfd4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d0bf
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d0bf
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040af1c
push dword [ebp - 0x160]
push 0x40d0f8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040af1c
push dword [ebp - 0x164]
push 0x40d108
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040af1c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b154
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0e4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a41c
ret
Function at 0x40d290
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d394
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x673c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x673c2c]
jne 0x40d2dc
mov eax, esi
mov edx, 0x673c2e
mov ecx, 0x55
call fcn.0040af1c
push 0x673c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d37e
push 0x673c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a3bc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d34b
cmp byte [0x673c10], 0
je 0x40d310
mov edx, esi
mov eax, ebx
call fcn.0040d174
jmp 0x40d34b
mov edx, esi
mov eax, ebx
call fcn.0040cf78
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d34b
cmp dword [esi], 0
je 0x40d334
mov eax, esi
mov edx, 0x40d3ac
call fcn.0040b074
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040cf78
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b074
push 0x673c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x673c2c], bx
mov eax, dword [esi]
call fcn.0040ae60
mov ecx, eax
mov eax, 0x673c2e
mov edx, 0xaa
call fcn.0040cdf8
push 0x673c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d39b
lea eax, [ebp - 4]
call fcn.0040a3bc
ret
Function at 0x40d5c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a4a0
xor eax, eax
push ebp
push 0x40d7e9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40d604
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40d61e
mov eax, dword [ebp - 4]
call fcn.0040ae60
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cdf8
cmp word [ebp - 0x21a], 0
je 0x40d7d3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d7f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d6ed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d7f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d6ed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d834
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d6ed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d834
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d6ed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d868
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d6ed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d89c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d7d3
xor eax, eax
push ebp
push 0x40d7cc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d3d4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d75c
mov eax, dword [ebp - 0x10]
call fcn.00406eec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040aec8
jmp 0x40d7a7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d8dc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d7a7
mov eax, dword [ebp - 0x10]
call fcn.00406eec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d8dc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040aec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7d3
cmp dword [ebp - 8], 0
je 0x40d7c2
mov eax, dword [ebp - 8]
call fcn.00406f08
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7f0
lea eax, [ebp - 4]
call fcn.0040a3bc
ret