joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6ce02ac0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6ce5c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push edx
push 0x20019
push 0
push eax
push ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x6ce02b15
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.6ce11901
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x10]
xor esi, esi
push ecx
push esi
lea ecx, [ebp - 0xc]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
jne 0x6ce02c3e
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x6ce02b49
cmp eax, 2
jne 0x6ce02c3e
mov eax, dword [ebp - 0x10]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x6ce02c3e
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx*2 + 2]
push ecx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6ce02c3e
cmp dword [ebp - 0xc], 2
jne 0x6ce02c32
push 1
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x6ce02c32
inc eax
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x6ce02c22
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx*2 + 2]
push ecx
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x6ce02c22
push esi
call ebx
add esp, 4
mov esi, edi
xor edi, edi
lea eax, [ebp - 8]
cmp edi, eax
je 0x6ce02c2f
push edi
call ebx
add esp, 4
mov edi, dword [ebp - 0x18]
test esi, esi
je 0x6ce02c3e
push esi
mov ecx, edi
call fcn.6cdf71b0
push esi
call ebx
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [edi + 0x10], eax
pop esi
setne al
xor ecx, ebp
pop edi
pop ebx
call fcn.6ce11901
mov esp, ebp
pop ebp
ret
Function at 0x6ce02c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ce1b4e6
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x6ce5c008]
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 eax, dword [ebp + 8]
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x238], eax
xor eax, eax
push 0x4c
push str.SOFTWAREMicrosoftEdgeUpdateClientsF3017226_FE2A_4295_8BDF_00C3A9A7E4C5
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.6cdbf0d0
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x240], 0x80000002
or ebx, 0xffffffff
mov dword [ebp - 0x23c], 0x80000001
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x234]
push ecx
push 0x20019
lea eax, [ebp - 0x230]
mov dword [ebp - 0x234], 0
cmovae eax, dword [ebp - 0x230]
push 0
push eax
push dword [ebp + edi*4 - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6ce02e02
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x200
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x6ce465ac
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x234]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x6ce02e02
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], esi
push eax
lea ecx, [ebp - 0x214]
call fcn.6cdbef90
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x214]
cmp dword [eax - 0xc], esi
je 0x6ce02de7
mov edx, str.0.0.0.0
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x6ce02dd9
test si, si
je 0x6ce02dd5
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x6ce02dd9
add ecx, 4
add edx, 4
test si, si
jne 0x6ce02db3
xor ecx, ecx
jmp 0x6ce02dde
sbb ecx, ecx
or ecx, 1
test ecx, ecx
setne cl
test cl, cl
jne 0x6ce02e54
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6ce02e02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
cmp edi, 2
jb 0x6ce02d00
mov esi, dword [ebp - 0x238]
mov ecx, esi
push 0x6ce4378c
call fcn.6cdbef90
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x6ce02e36
inc eax
push eax
push dword [ebp - 0x230]
call fcn.6cdbf220
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 - 0x10]
xor ecx, ebp
call fcn.6ce11901
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x238]
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.6cdbef90
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x214]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x6ce02e87
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x6ce02e36
inc ecx
push ecx
jmp 0x6ce02e2b
Function at 0x6ce06210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x6ce5c008]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 8]
test edx, edx
je 0x6ce06293
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0
mov ecx, dword [edx + 0xc]
shl ecx, 0x19
sar ecx, 0x1d
test ecx, ecx
je 0x6ce0627f
cmp ecx, 1
je 0x6ce0627f
cmp ecx, 2
mov dword [esp + 0x2c], 1
mov eax, 0x20
mov esi, 0x2b
cmove eax, esi
mov byte [esp + 0x28], al
lea eax, [esp + 0x18]
push eax
movzx eax, byte [edx + 8]
push eax
call fcn.6ce08330
add esp, 8
jmp 0x6ce06305
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.6cdfe600
mov esi, dword [edi]
add esp, 8
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0xc], ecx
add ecx, eax
mov dword [esp + 0x10], ecx
cmp ecx, dword [esi + 0xc]
jbe 0x6ce062c4
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0xc]
mov byte [esp + 0xc], 0
push dword [esp + 0xc]
push dword [esp + 0x18]
lea esi, [eax + ecx*2]
push dword [ebp + 0x10]
lea eax, [esp + 0x3c]
push dword [ebp + 0xc]
push eax
call fcn.6ce0ad00
add esp, 0x14
lea ecx, [esp + 0x30]
sub eax, ecx
push eax
mov eax, ecx
push eax
push esi
call dword [sym.imp.VCRUNTIME140.dll_memmove]
add esp, 0xc
mov ecx, dword [edi]
mov eax, ebx
pop edi
mov dword [ebx], ecx
mov ecx, dword [esp + 0x80]
pop esi
pop ebx
xor ecx, esp
call fcn.6ce11901
mov esp, ebp
pop ebp
ret 0xc

Function at 0x6ce0d870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6ce5c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
sub esp, 8
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
push 0x2001f
sub esp, 8
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push edx
push ecx
lea ecx, [ebp - 0x10]
call fcn.6cde45e0
mov edi, dword [ebp - 0x10]
mov esi, eax
test esi, esi
jne 0x6ce0d908
test ebx, ebx
jne 0x6ce0d8d7
lea esi, [ebx + 0xd]
jmp 0x6ce0d908
mov eax, ebx
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x6ce0d8e0
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test edi, edi
je 0x6ce0d913
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6ce11901
mov esp, ebp
pop ebp
ret 8
Function at 0x6ce0db40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6ce5c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x6ce0dbff
push edi
push esi
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
push edx
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test edx, edx
jne 0x6ce0dbeb
test esi, esi
je 0x6ce0dbeb
mov ecx, dword [edi]
test ecx, ecx
je 0x6ce0dbe6
mov eax, dword [ebp - 8]
test eax, eax
je 0x6ce0dbca
cmp eax, 2
jbe 0x6ce0dbbb
cmp eax, 7
jne 0x6ce0dbca
test cl, 1
jne 0x6ce0dbca
shr ecx, 1
cmp ecx, 1
jb 0x6ce0dbca
cmp word [esi + ecx*2 - 2], dx
jne 0x6ce0dbca
cmp ecx, 1
jbe 0x6ce0dbeb
cmp word [esi + ecx*2 - 4], dx
jmp 0x6ce0dbc8
test cl, 1
jne 0x6ce0dbca
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x6ce0dbeb
xor eax, eax
mov word [esi], ax
mov eax, 0xd
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.6ce11901
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
xor ecx, ebp
pop esi
call fcn.6ce11901
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.6cdc0090
int3

Function at 0x6ce0dc10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x6ce5c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0xc]
or eax, 0x2001f
push esi
push edi
sub esp, 8
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push eax
sub esp, 8
mov dword [ebp - 8], 0
push 0x6ce4378c
push dword [ecx]
lea ecx, [ebp - 0x10]
call fcn.6cde45e0
mov edi, dword [ebp - 0x10]
mov esi, eax
test esi, esi
jne 0x6ce0dca7
test ebx, ebx
jne 0x6ce0dc7a
lea esi, [ebx + 0xd]
jmp 0x6ce0dca7
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6ce0dc80
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test edi, edi
je 0x6ce0dcb2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6ce11901
mov esp, ebp
pop ebp
ret 0xc
Function at 0x6ce0ff60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ce1bce1
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6ce5c008]
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 - 0x14], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
mov dword [edi], 0
call fcn.6cdbff80
mov ecx, eax
test ecx, ecx
jne 0x6ce0ffc1
push 0x80004005
call fcn.6cdc0090
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x14], 0
call sym.QQLiveBase.dll_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_base::GetAppDataPath_void_
add esp, 4
mov dword [ebp - 4], 1
mov ecx, 1
mov esi, dword [ebp - 0x14]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x6ce1001c
push 0x104
lea ecx, [ebp - 0x14]
call fcn.6cdbf780
mov esi, dword [ebp - 0x14]
push str.config.ini
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x6ce10117
cmp eax, dword [esi - 8]
jg 0x6ce10117
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x18], ecx
movups xmmword [ebp - 0x28], xmm0
cmp dword [esi - 0xc], ecx
je 0x6ce100de
lea eax, [ebp - 0x38]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x6ce100de
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x6ce10094
push 0x104
mov ecx, edi
call fcn.6cdbf780
push esi
push 0x103
push dword [edi]
push 0x6ce4378c
push dword [ebp - 0x40]
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
test eax, eax
jne 0x6ce100b9
xor ecx, ecx
jmp 0x6ce100cc
push dword [eax - 8]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x6ce10117
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x6ce10117
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x6ce100fa
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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.6ce11901
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.6cdc0090
int3
Function at 0x6ce105f0
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 1
push ebx
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
push eax
mov dword [ebp - 8], eax
call ebx
mov edi, dword [ebp + 8]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x23
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x23
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41302c
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
Function at 0x4047b4
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.00406f40
test esi, esi
jne 0x4047ea
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.004070c8
jmp 0x404808
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004046f8
mov edi, eax
test esi, esi
je 0x404808
cmp dword [ebx], 0
je 0x404808
dec esi
jmp 0x4047f1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405ca0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040608c
mov byte [esp], al
cmp byte [esp], 0
jne 0x405e29
test edi, edi
je 0x405e29
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405d60
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405d3b
cmp edi, 0xffffffff
je 0x405cff
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405cff
mov byte [esp], 0
jmp 0x405e29
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405d3b
test ebx, ebx
jne 0x405d34
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004025f8
test eax, eax
jne 0x405d34
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405e29
pause
dec ebp
test ebp, ebp
jg 0x405ce4
cmp edi, 0xffffffff
je 0x405d60
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d5e
mov byte [esp], 0
jmp 0x405e29
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405cae
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004025f8
cmp ebx, eax
jne 0x405d60
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405e9c
mov edx, eax
mov ebx, dword [0x5758cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405dc7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405dc5
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405dc7
xor edi, edi
cmp byte [esp], 0
je 0x405df0
mov ebx, dword [esi]
test bl, 1
jne 0x405e09
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004025f8
cmp ebx, eax
jne 0x405dcd
mov byte [esp + 1], 1
jmp 0x405e09
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004025f8
cmp ebx, eax
jne 0x405df0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405d7a
cmp byte [esp], 0
je 0x405e29
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406ba4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x575054], 0
je 0x406c05
cmp word [0x575330], 0xd7b2
jne 0x406bcd
cmp dword [0x575338], 0
jbe 0x406bcd
mov eax, 0x57532c
call dword [0x575348]
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
push 0x406c30
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x56a028], 0
jne 0x406c21
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406dfc
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 [0x56a02c], 0
je 0x406e27
mov edx, edi
mov eax, esi
call dword [0x56a02c]
mov ebx, eax
jmp 0x406e38
mov eax, 8
call fcn.0040442c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x575055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406dc4
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 0x406e6d
mov edx, 8
mov eax, ebx
call fcn.00404448
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x4093b8
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 0x40951d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406f40
cmp si, word [0x56a7dc]
jb 0x409450
cmp si, word [0x56a9dc]
ja 0x409450
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409450
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x56a7dc]
jae 0x40942a
mov edi, ebx
dec edi
jmp 0x40944b
cmp si, word [ebx*8 + 0x56a7dc]
jbe 0x40943a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40944b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x56a7e0]
call fcn.004092c8
jmp 0x409450
cmp edi, dword [ebp - 8]
jae 0x409414
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4094ff
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4094ff
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.00407a88
push dword [ebp - 0x160]
push 0x409538
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407a88
push dword [ebp - 0x164]
push 0x409548
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407a88
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407cc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409524
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406fa0
ret
Function at 0x4096d0
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 0x4097d3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x577b55
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x577b6e]
jne 0x40971c
mov eax, esi
mov edx, 0x577b70
mov ecx, 0x55
call fcn.00407a88
push 0x577b55
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4097bd
push 0x577b55
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406f40
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40978b
cmp byte [0x577b54], 0
je 0x409750
mov edx, esi
mov eax, ebx
call fcn.004095b4
jmp 0x40978b
mov edx, esi
mov eax, ebx
call fcn.004093b8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40978b
cmp dword [esi], 0
je 0x409774
mov eax, esi
mov edx, 0x4097ec
call fcn.00407be0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004093b8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407be0
push 0x577b55
call sub.kernel32.dll_EnterCriticalSection
mov word [0x577b6e], bx
push 0xaa
mov eax, dword [esi]
call fcn.004079ec
push eax
push 0x577b70
call sub.kernel32.dll_lstrcpynW
push 0x577b55
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097da
lea eax, [ebp - 4]
call fcn.00406f40
ret