joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4074f0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x2c
movzx edx, word [edx]
test dx, dx
je 0x407706
mov esi, eax
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x407510
mov ecx, eax
sub ecx, edi
mov ebx, ecx
sar ebx, 1
cmp edi, eax
je 0x407706
mov eax, edi
xor ecx, ecx
lea esi, [esi]
cmp dx, 0xa
sete dl
add eax, 2
movzx edx, dl
add ecx, edx
movzx edx, word [eax]
test dx, dx
jne 0x407530
add ebx, dword [esi + 0x204]
cmp word [eax - 2], 0xa
mov edx, dword [esi]
je 0x4076c8
add ecx, 1
mov dword [esp + 8], edx
lea ebx, [ebx + ecx*4 + 1]
mov dword [esp + 4], 0
add ebx, ebx
mov dword [ebp - 0x1c], ecx
mov dword [esp + 0xc], ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov ecx, dword [ebp - 0x1c]
mov dword [esi], eax
sub esp, 0x10
mov edx, edi
mov ebx, ecx
lea esi, [esi]
nop
movzx eax, word [edi]
cmp ax, 0xa
je 0x4075c0
test ax, ax
je 0x4075c0
movzx eax, word [edi + 2]
add edi, 2
cmp ax, 0xa
jne 0x4075a9
lea esi, [esi]
nop
sub ebx, 1
test ax, ax
jne 0x407680
cmp word [edx], 0
mov eax, edx
je 0x407720
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4075e0
sub eax, edx
mov dword [ebp - 0x1c], eax
sar eax, 1
add eax, 4
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov ecx, dword [esi + 0x204]
mov word [eax + ecx*2], 0x20
mov eax, dword [esi]
mov ecx, dword [esi + 0x204]
mov word [eax + ecx*2 + 2], 0x20
mov eax, dword [esi]
mov ecx, dword [esi + 0x204]
mov word [eax + ecx*2 + 4], 0x20
mov eax, dword [esi]
mov ecx, dword [esi + 0x204]
mov word [eax + ecx*2 + 6], 0x20
mov ecx, dword [esi + 0x204]
mov eax, dword [esi]
mov dword [esp + 4], edx
lea eax, [eax + ecx*2 + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._memcpy
mov edx, dword [esi]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
add eax, dword [esi + 0x204]
mov dword [esi + 0x204], eax
mov word [edx + eax*2], cx
test ebx, ebx
je 0x407706
mov edx, edi
jmp 0x4075a0
xor eax, eax
mov word [edi], ax
cmp word [edx], 0
je 0x407710
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x407698
sub eax, edx
lea ecx, [eax + 2]
sar eax, 1
add eax, 5
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
mov eax, 0xa
add edi, 2
mov word [edi - 2], ax
jmp 0x4075f6
lea ebx, [ebx + ecx*4 + 1]
mov dword [esp + 8], edx
add ebx, ebx
mov dword [esp + 4], 0
mov dword [esp + 0xc], ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov ecx, dword [ebp - 0x1c]
mov dword [esi], eax
sub esp, 0x10
test ecx, ecx
jne 0x407593
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], 2
jmp 0x4076b1
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x1c], 0
jmp 0x4075f6
Function at 0x407810
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x2c
cmp word [edx], 0
je 0x4078a0
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x407828
sub eax, edx
lea edi, [eax + 2]
sar eax, 1
mov ebx, eax
mov ecx, dword [esi + 0x204]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
add ecx, ebx
mov dword [ebp - 0x1c], edx
lea ecx, [ecx + ecx + 2]
mov dword [esp + 0xc], ecx
mov ecx, dword [esi]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov ecx, dword [esi + 0x204]
mov edx, dword [ebp - 0x1c]
sub esp, 0x10
mov dword [esi], eax
lea eax, [eax + ecx*2]
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
add dword [esi + 0x204], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
mov edi, 2
jmp 0x40783a
Function at 0x407e10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, eax
push ebx
mov ebx, edx
lea edx, [ebp - 0x22a]
mov eax, ebx
sub esp, 0x23c
mov word [ebp - 0x21a], cx
mov dword [ebp - 0x22a], 0x790074
mov dword [ebp - 0x226], 0x650070
mov dword [ebp - 0x222], 0x650064
mov dword [ebp - 0x21e], 0x200066
mov dword [ebp - 0x238], 0x750070
mov dword [ebp - 0x234], 0x6c0062
mov dword [ebp - 0x230], 0x630069
mov word [ebp - 0x22c], di
call dbg.AddToTLDataStrW
mov eax, dword [0x4161ac]
cmp dword [esi], eax
je 0x407f38
mov edx, 0x40f440
mov eax, ebx
lea edi, [ebp - 0x218]
call dbg.AddToTLDataStrW
mov edx, str.uuid
mov eax, ebx
call dbg.AddToTLDataStrW
mov edx, 0x40f444
mov eax, ebx
call dbg.AddToTLDataStrW
mov dword [esp + 8], 0x100
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
sub esp, 0xc
cmp word [ebp - 0x218], 0
je 0x407fa0
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x407ee8
sub eax, edi
sar eax, 1
sub eax, 1
xor edx, edx
mov word [ebp + eax*2 - 0x218], dx
lea edx, [ebp - 0x216]
mov eax, ebx
call dbg.AddToTLDataStrW
mov edx, 0x40f448
mov eax, ebx
call dbg.AddToTLDataStrW
cmp dword [esi + 0x28], 6
je 0x407f80
mov edx, 0x40f452
mov eax, ebx
call dbg.AddToTLDataStrW
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4161b0]
cmp dword [esi + 4], eax
jne 0x407e92
mov eax, dword [0x4161b4]
cmp dword [esi + 8], eax
jne 0x407e92
mov eax, dword [0x4161b8]
cmp dword [esi + 0xc], eax
jne 0x407e92
cmp dword [esi + 0x28], 6
jne 0x407f2d
mov edx, 0x40f440
mov eax, ebx
call dbg.AddToTLDataStrW
jmp 0x407f8c
mov edx, 0x40f44c
mov eax, ebx
call dbg.AddToTLDataStrW
lea edx, [ebp - 0x238]
mov eax, ebx
call dbg.AddToTLDataStrW
jmp 0x407f21
mov eax, 0xffffffff
jmp 0x407ef8
Function at 0x40cf50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40cfab
cmp byte [esi + ebx - 1], 0xa
je 0x40cf7f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x41b944], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40da00
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.main
mov dword [esp], eax
call sym._exit

Function at 0x40ddb0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dbg.__main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40de3f
cmp al, 9
je 0x40de30
cmp al, 0x20
je 0x40de30
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp al, 0x5c
je 0x40de98
cmp al, 0x22
je 0x40dea8
mov dword [ebp - 0x6c], 0
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x40de3f
cmp al, 9
sete cl
cmp al, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x40ddf0
test edi, 1
jne 0x40ddf0
lea esi, [esi]
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 9
je 0x40de30
cmp al, 0x20
je 0x40de30
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x40de5a
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.WinMain@16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x40de07
and dword [ebp - 0x6c], 1
jne 0x40de00
xor edi, 1
jmp 0x40de07
Function at 0x7661b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00766140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00766140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00766140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00766140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x766bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x766c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x77887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x766c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x766c52
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xcdc5a91
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xc0b4588
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40614b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40615a
pop dword [ebp - 0x30]
mov eax, 0x40615a
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3a809
push 0
mov eax, 0xe52a5378
add eax, 0x1b168d60
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x4d2e
mov edi, eax
mov esi, 0xa43cb161
add esi, 0x5c048a63
add esi, dword [ebp - 0x30]
mov ebx, 0xd3722706
sub dword [ebp - 0xc], ebx
mov edx, dword [esi]
mov dword [ebp - 0x2c], 0x9a9a5ab9
add edx, ebx
xor dword [ebp - 0xc], eax
mov dword [edi], edx
mov dword [ebp - 0xc], 0xbe37a59
add edi, 4
add esi, 0x4861c6bf
add esi, 0xb79e3945
loop 0x4061a8
add eax, 0xc44b913e
add eax, 0x3bb5964d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xba0dc8f7
sub ecx, 0xb9cdc8f7
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x4048b0
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.00406b40
test esi, esi
jne 0x4048e6
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.00406cc8
jmp 0x404904
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404794
mov edi, eax
test esi, esi
je 0x404904
cmp dword [ebx], 0
je 0x404904
dec esi
jmp 0x4048ed
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405800
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.00405bf8
mov byte [esp], al
cmp byte [esp], 0
jne 0x40598c
test edi, edi
je 0x40598c
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4058c3
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40589e
cmp edi, 0xffffffff
je 0x40585f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40585f
mov byte [esp], 0
jmp 0x40598c
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40589e
test ebx, ebx
jne 0x405894
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402774
test eax, eax
jne 0x405894
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40598c
call 0x405d1c
dec ebp
test ebp, ebp
jg 0x405844
cmp edi, 0xffffffff
je 0x4058c3
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4058c1
mov byte [esp], 0
jmp 0x40598c
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40580e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402774
cmp ebx, eax
jne 0x4058c3
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004059fc
mov edx, eax
mov ebx, dword [0x4bd8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40592a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405928
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40592a
xor edi, edi
cmp byte [esp], 0
je 0x405953
mov ebx, dword [esi]
test bl, 1
jne 0x40596c
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402774
cmp ebx, eax
jne 0x405930
mov byte [esp + 1], 1
jmp 0x40596c
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402774
cmp ebx, eax
jne 0x405953
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4058dd
cmp byte [esp], 0
je 0x40598c
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 0x406520
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4bfb18
cmp dword [ebp + 0xc], 2
jl 0x406534
mov ebx, 0x4bfb48
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x40656c
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x402818
mov dword [0x4bd018], eax
mov eax, 0x402820
mov dword [0x4bd01c], eax
mov eax, ebx
call fcn.00406404
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x4065a1
cmp al, 3
jge 0x4065a1
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4065b2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x4065bd
call dword [ecx + eax*4]
cmp dword [0x4bd03c], 0
jne 0x4065d3
mov byte [0x4bd044], 1
fnstcw word [0x4b9028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00406834
call fcn.004064b4
ret 4

Function at 0x40679c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4bd058], 0
je 0x406803
cmp word [0x4bd344], 0xd7b2
jne 0x4067c5
cmp dword [0x4bd34c], 0
jbe 0x4067c5
mov eax, 0x4bd340
call dword [0x4bd35c]
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, 0x406830
call fcn.00407540
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b9032], 0
jne 0x40681f
push 0
push 0x4b99c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4069fc
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 [0x4b9034], 0
je 0x406a27
mov edx, edi
mov eax, esi
call dword [0x4b9034]
mov ebx, eax
jmp 0x406a38
mov eax, 8
call fcn.004044f0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4bd059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4069c4
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 0x406a6d
mov edx, 8
mov eax, ebx
call fcn.0040450c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x409250
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 0x4093b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406b40
cmp si, word [0x4b9a00]
jb 0x4092e8
cmp si, word [0x4b9c00]
ja 0x4092e8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4092e8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4b9a00]
jae 0x4092c2
mov edi, ebx
dec edi
jmp 0x4092e3
cmp si, word [ebx*8 + 0x4b9a00]
jbe 0x4092d2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4092e3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4b9a04]
call fcn.00409160
jmp 0x4092e8
cmp edi, dword [ebp - 8]
jae 0x4092ac
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409397
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409397
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.00407a30
push dword [ebp - 0x160]
push 0x4093d0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407a30
push dword [ebp - 0x164]
push 0x4093e0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407a30
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407c68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093bc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406ba0
ret
Function at 0x409568
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 0x40966b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4bfb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4bfba0]
jne 0x4095b4
mov eax, esi
mov edx, 0x4bfba2
mov ecx, 0x55
call fcn.00407a30
push 0x4bfb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409655
push 0x4bfb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406b40
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409623
cmp byte [0x4bfb84], 0
je 0x4095e8
mov edx, esi
mov eax, ebx
call fcn.0040944c
jmp 0x409623
mov edx, esi
mov eax, ebx
call fcn.00409250
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409623
cmp dword [esi], 0
je 0x40960c
mov eax, esi
mov edx, 0x409684
call fcn.00407b88
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409250
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407b88
push 0x4bfb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4bfba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407984
push eax
push 0x4bfba2
call sub.kernel32.dll_lstrcpynW
push 0x4bfb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409672
lea eax, [ebp - 4]
call fcn.00406b40
ret
Function at 0x4098a0
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.00406c24
xor eax, eax
push ebp
push 0x409ac5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4098e0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4098fa
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407984
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409aaf
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409ad4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4099c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409ad4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4099c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409b10
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4099c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409b10
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4099c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409b44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4099c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409b78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409aaf
xor eax, eax
push ebp
push 0x409aa8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004096ac
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 0x409a38
mov eax, dword [ebp - 0x10]
call fcn.004044f0
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.004079dc
jmp 0x409a83
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409bb8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409a83
mov eax, dword [ebp - 0x10]
call fcn.004044f0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409bb8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004079dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409aaf
cmp dword [ebp - 8], 0
je 0x409a9e
mov eax, dword [ebp - 8]
call fcn.0040450c
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 0x409acc
lea eax, [ebp - 4]
call fcn.00406b40
ret