joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ab40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, 0x225
mov dword [0x1016ea9c], 0x225
mov dword [0x1016eaa4], 0
mov byte [0x1016eaa8], 0
mov dword [0x1016eaa0], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add eax, 0x1380
mov edx, ecx
mov bl, dl
mov dword [0x1016ea98], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + ecx], bl
mov ecx, dword [0x1016eaa0]
add ecx, 1
mov dword [0x1016eaa0], ecx
cmp ecx, 0x100
mov dword [ebp - 0x24], ecx
jge 0x1000abd4
mov eax, dword [0x1016ea9c]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
jmp 0x1000ab8d
xor eax, eax
mov ecx, dword [0x1016ea98]
add ecx, 0xffffdfac
mov dword [0x1016ea98], ecx
mov dword [0x1016eaa0], 0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov ecx, 0x100
mov dword [0x1016eaac], 0
mov edx, dword [0x1016eaa4]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x2c], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x1016eaac], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x1016eaa4], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
mov cl, byte [ecx + edi]
mov byte [0x1016eaa8], cl
mov dword [0x1016ea9c], 0x24ca
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov dword [0x1016ea9c], 0x24f3
mov cl, byte [0x1016eaa8]
mov edx, dword [0x1016eaa4]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x1016ea9c]
add edx, 0xffffe8a9
mov dword [0x1016ea9c], edx
mov edx, dword [0x1016eaa0]
add edx, 1
mov dword [0x1016eaa0], edx
cmp edx, 0x100
mov dword [ebp - 0x28], edx
jl 0x1000abf5
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000c670
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xb0
lea eax, [esp + 0x40]
lea ecx, [esp + 0x50]
mov dword [0x1016ea9c], 0x727
mov dword [esp], eax
mov dword [esp + 0x3c], ecx
call fcn.1000c1f0
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x78], 0x146200
mov ecx, dword [0x1016ea84]
mov dword [esp + 0xa4], ecx
mov ecx, dword [0x1016ea88]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
lea eax, [0x1000b7f0]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x7c], ecx
mov edx, dword [0x1016ea8c]
mov dword [esp + 0x90], edx
mov edx, dword [0x1016ea90]
mov dword [esp + 0x68], edx
mov edx, dword [0x1016ea94]
mov dword [esp + 0x8c], edx
mov dword [0x1016ea9c], 0x25ab
mov edx, dword [0x1016ea98]
mov esi, edx
add esi, 0xfffffc07
mov dword [0x1016ea98], esi
mov esi, edx
add esi, 0x1d6c
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
jmp 0x1000c78e
lea eax, [esp + 0x50]
mov dword [0x1016ea98], 0x131e
mov ecx, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1000bd90
mov ecx, dword [0x1016ea98]
add ecx, 0xffffdc24
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
mov dword [0x1016ea98], eax
mov ecx, esp
lea edx, [esp + 0x50]
mov dword [ecx], edx
mov ecx, dword [esp + 0x24]
call ecx
sub esp, 4
mov eax, 2
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x28]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
jne 0x1000c7b5
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x1000c7db
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
and eax, 0xfffff000
mov ecx, dword [esp + 0x30]
mov dword [0x1016ea9c], ecx
mov dword [esp + 0x28], eax
jmp 0x1000c78e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x9c], eax
mov edx, dword [esp + 0x2c]
add edx, 0xfffff340
mov dword [0x1016ea98], edx
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x70], eax
mov dword [0x1016ea9c], 0x2a5c
call fcn.1000a9d0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x1c], ecx
je 0x1000c72f
jmp 0x1000c784
Function at 0x4010d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437004]
jne 0x4010e0
repz ret
jmp fcn.00401541

Function at 0x404efb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x437004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403be9
and dword [ebp - 0x14], 0
cmp dword [0x439c78], 0
mov dword [ebp - 0x18], eax
jne 0x404fae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405056
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405056
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x439c78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x439c7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x439c80], eax
call edi
push eax
call esi
mov dword [0x439c88], eax
test eax, eax
je 0x404fae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x439c84], eax
mov eax, dword [0x439c84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405007
cmp dword [0x439c88], ecx
je 0x405007
push eax
call esi
push dword [0x439c88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405007
test ebx, ebx
je 0x405007
call edi
test eax, eax
je 0x404ffe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404ffe
test byte [ebp - 8], 1
jne 0x405007
or dword [ebp + 0x10], 0x200000
jmp 0x40503a
mov eax, dword [0x439c7c]
cmp eax, dword [ebp - 0x18]
je 0x40503a
push eax
call esi
test eax, eax
je 0x40503a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40503a
mov eax, dword [0x439c80]
cmp eax, dword [ebp - 0x18]
je 0x40503a
push eax
call esi
test eax, eax
je 0x40503a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439c78]
call esi
test eax, eax
je 0x405056
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405058
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010d6
leave
ret
Function at 0x42b640
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
test edi, edi
jle 0x42b653
call fcn.0042b5e0
xor byte [edx + esi], al
inc edx
cmp edx, edi
jl 0x42b646
cmp edi, 0x2d
jne 0x42b66c
mov dword [0x2bdf6d8], 0xa62e7790
mov dword [0x2bdf6dc], 0xffffffff
ret

Function at 0x42b670
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x437004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x437dd0]
push esi
mov esi, dword [0x2bdd24c]
push edi
mov edi, dword [0x2bdf6cc]
call fcn.0042b610
cmp dword [0x2bdf6cc], 0x2f
jne 0x42b6dd
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.0042b640
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.004010d6
add esp, 0x24
ret
Function at 0x42b950
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
jmp 0x42b968
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1519a5
jge 0x42b9a9
mov dword [0x2bdf334], 0x8e46a6f0
cmp dword [0x2bdf6cc], 0x3dc
jne 0x42b9a7
xor ecx, ecx
mov word [ebp - 8], cx
xor edx, edx
mov word [ebp - 6], dx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
jmp 0x42b95f
mov dword [ebp - 0x10], 0
jmp 0x42b9bb
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x12cad2a
jge 0x42ba56
cmp dword [0x2bdf6cc], 0xa5f
jne 0x42b9dc
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebp - 0x10], 0x84620b
jne 0x42ba01
mov eax, dword [0x438bf0]
mov dword [0x2bdf6cc], eax
mov ecx, dword [0x2bdf6cc]
add ecx, 0xa231
mov dword [0x2bdf6cc], ecx
cmp dword [0x2bdf6cc], 0x141
jne 0x42ba51
xor edx, edx
mov word [ebp - 0x24], dx
xor eax, eax
mov word [ebp - 0x22], ax
xor ecx, ecx
mov word [ebp - 0x20], cx
xor edx, edx
mov word [ebp - 0x1e], dx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
mov dword [0x43a1b8], 0xec58acac
mov dword [0x43a1bc], 0xffffffff
jmp 0x42b9b2
call fcn.0042b700
jmp dword [0x2bdd24c]
Function at 0x4022fc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40230e
call fcn.0069ae38
mov eax, dword [0x6c60a3]
shl eax, 2
mov dword [0x6c60a7], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
mov edx, eax
mov dword [0x6c60ab], edx
call fcn.0068dc34
pop edx
call fcn.0068dad0
call fcn.0068dd7c
push 0x6c604c
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
mov dword [0x6c60ab], eax
push 0
jmp 0x69c984
push ebx
push edi
push esi
sub esp, 0x50
mov esi, dword [esp + 0x60]
mov eax, dword [esi + 0x10]
and eax, 1
mov dword [0x6d483c], eax
call fcn.0068dd48
sub esp, 8
push dword [esi + 0x20]
push dword [esi + 0x1c]
call fcn.006985b4
add esp, 4
push dword [esi + 0x28]
call fcn.0068f6b4
add esp, 4
push dword [esi + 0x44]
call fcn.0068f6c4
add esp, 0x10
mov dword [0x6e664c], 1
mov dword [0x6e6650], esi
lea eax, [esp + 4]
mov dword [0x6e6614], eax
call fcn.0069d3ac
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov dword [0x6e661c], eax
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x6e6624], eax
sub esp, 8
push dword [esi + 0x30]
push dword [esi + 0x2c]
call fcn.0069b3e8
add esp, 0x10
push dword [esi + 0x40]
push dword [esi + 0x3c]
push dword [esi + 0x38]
push dword [esi + 0x34]
call fcn.0069b428
add esp, 8
push 0
push 0x6e664c
call fcn.0069c75c
add esp, 0x10
test byte [esi + 0x10], 1
jne 0x69ca58
sub esp, 4
push dword [0x6e6640]
push dword [0x6e663c]
push dword [0x6e6630]
call dword [esi + 0x18]
add esp, 0x10
push 0xffffffffffffffff
push eax
push 0
push 0
jmp 0x69cb2a
mov eax, dword [0x6e6624]
nop dword [eax]
add eax, 2
movzx ecx, word [eax - 2]
cmp ecx, 9
je 0x69ca64
movzx edx, cx
cmp edx, 0x20
je 0x69ca64
cmp edx, 0x22
jne 0x69ca87
mov cx, word [eax]
mov edx, 0x22
jmp 0x69ca8f
add eax, 0xfffffffe
mov edx, 0x20
movzx edi, cx
cmp edx, edi
je 0x69cabc
nop word cs:[eax + eax]
test cx, cx
je 0x69cabc
movzx edi, cx
cmp edi, 9
je 0x69cabc
movzx ecx, word [eax + 2]
add eax, 2
cmp edx, ecx
jne 0x69caa4
movzx ecx, cx
lea edi, [eax + 2]
cmp ecx, 0x22
cmovne edi, eax
jmp 0x69cad7
add edi, 2
movzx eax, word [edi]
cmp eax, 0x20
je 0x69cad4
movzx eax, ax
cmp eax, 9
je 0x69cad4
mov ebx, dword [esi + 0x18]
sub esp, 0xc
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
add esp, 0xc
mov esi, eax
sub esp, 0xc
lea eax, [esp + 0x18]
push eax
call sub.KERNEL32.DLL_GetStartupInfoW
add esp, 0xc
mov eax, dword [esp + 0x38]
test al, 1
movzx eax, word [esp + 0x3c]
mov ecx, 0xa
cmovne ecx, eax
push ecx
push edi
push 0
push esi
call ebx
push 0xffffffffffffffff
push eax
push 0
push 0
call fcn.0069b1ec
add esp, 0x10
add esp, 0x50
pop esi
pop edi
pop ebx
ret
Function at 0x411954
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.0041470c
test esi, esi
jne 0x41198a
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.004148a4
jmp 0x4119a8
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00411898
mov edi, eax
test esi, esi
je 0x4119a8
cmp dword [ebx], 0
je 0x4119a8
dec esi
jmp 0x411991
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x413428
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.004138e8
mov byte [esp], al
cmp byte [esp], 0
jne 0x4135b1
test edi, edi
je 0x4135b1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4134f1
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4134cc
cmp edi, 0xffffffff
je 0x41348d
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x41348d
mov byte [esp], 0
jmp 0x4135b1
cmp dword [esi], 1
jg 0x4134cc
cmp dword [esi], 0
jne 0x4134be
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4134be
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4135b1
lea eax, [esp + 0xc]
call fcn.004130dc
dec ebp
test ebp, ebp
jg 0x413472
cmp edi, 0xffffffff
je 0x4134f1
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4134ef
mov byte [esp], 0
jmp 0x4135b1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x413436
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4134f1
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0041362c
mov edx, eax
mov ebx, dword [0x6d72f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x413555
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x413553
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x413555
xor edi, edi
cmp byte [esp], 0
je 0x41357b
mov ebx, dword [esi]
test bl, 1
jne 0x413591
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x41355b
mov byte [esp + 1], 1
jmp 0x413591
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x41357b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x413508
cmp byte [esp], 0
je 0x4135b1
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 0x4143a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6d6a58], 0
je 0x41440b
cmp word [0x6d6d44], 0xd7b2
jne 0x4143cd
cmp dword [0x6d6d4c], 0
jbe 0x4143cd
mov eax, 0x6d6d40
call dword [0x6d6d5c]
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, 0x414438
call fcn.00415088
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x6c6e50], 0
jne 0x414427
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x4145cc
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 [0x6c6e14], 0
je 0x4145f7
mov edx, edi
mov eax, esi
call dword [0x6c6e14]
mov ebx, eax
jmp 0x414608
mov eax, 8
call fcn.004111cc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x6d6a59], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x414594
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 0x414638
mov eax, ebx
call fcn.004111e8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x4180f0
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 0x418257
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0041470c
cmp si, word [0x6c7824]
jb 0x418188
cmp si, word [0x6c7a24]
ja 0x418188
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x418188
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x6c7824]
jae 0x418162
mov edi, ebx
dec edi
jmp 0x418183
cmp si, word [ebx*8 + 0x6c7824]
jbe 0x418172
inc ebx
mov dword [ebp - 8], ebx
jmp 0x418183
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x6c7828]
call fcn.0041800c
jmp 0x418188
cmp edi, dword [ebp - 8]
jae 0x41814c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x418237
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x418237
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.00415444
push dword [ebp - 0x160]
push 0x418274
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00415444
push dword [ebp - 0x164]
push 0x418284
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00415444
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0041567c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41825e
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0041476c
pop eax
jmp eax
Function at 0x41840c
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 0x418512
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6d961c
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x6d9634]
jne 0x418458
mov eax, esi
mov edx, 0x6d9636
mov ecx, 0x55
call fcn.00415444
push 0x6d961c
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x4184fa
push 0x6d961c
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.0041470c
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4184c7
cmp byte [0x6d9618], 0
je 0x41848c
mov edx, esi
mov eax, ebx
call fcn.004182f0
jmp 0x4184c7
mov edx, esi
mov eax, ebx
call fcn.004180f0
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4184c7
cmp dword [esi], 0
je 0x4184b0
mov eax, esi
mov edx, 0x41852c
call fcn.0041559c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004180f0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0041559c
push 0x6d961c
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x6d9634], bx
mov eax, dword [esi]
call fcn.00415390
mov ecx, eax
mov eax, 0x6d9636
mov edx, 0xaa
call fcn.00417f6c
push 0x6d961c
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418519
lea eax, [ebp - 4]
call fcn.0041470c
pop eax
jmp eax
Function at 0x418754
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00414800
xor eax, eax
push ebp
push 0x41897c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x41879a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x4187b4
mov eax, dword [ebp - 4]
call fcn.00415390
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.00417f6c
cmp word [ebp - 0x21e], 0
je 0x41895f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x41898c
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x418883
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x41898c
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x418883
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x4189c8
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x418883
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x4189c8
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x418883
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x4189fc
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x418883
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x418a30
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x41895f
xor eax, eax
push ebp
push 0x418958
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.00418554
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x4188e6
mov eax, dword [ebp - 0x14]
call fcn.004111cc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.004153f0
jmp 0x418931
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x418a70
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x418931
mov eax, dword [ebp - 0x14]
call fcn.004111cc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x418a70
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.004153f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41895f
cmp dword [ebp - 0xc], 0
je 0x41894c
mov eax, dword [ebp - 0xc]
call fcn.004111e8
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418983
lea eax, [ebp - 8]
mov edx, 2
call fcn.0041476c
pop eax
jmp eax