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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x40f3ec], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x40b560
cmp byte [0x40d0d6], 0
je 0x40b51a
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.0040a5bc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40b503
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.0040a5bc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40b503
lea ebx, [ebp - 0x54]
jmp 0x40b504
inc ebx
call fcn.0040b460
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x40b581
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40f3f0
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00402a90
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40f3f3
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x40b581
cmp dword [0x40f3ec], 0xffffffff
je 0x40b581
mov eax, dword [0x40f3ec]
test eax, eax
je 0x40b581
cmp byte [eax], 0
je 0x40b581
push esi
push eax
call fcn.0040b610
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb88
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x42dc30], 0
jne 0x40bc09
cmp dword [0x42dc4c], 0
jne 0x40bbb8
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x42dc4c], eax
test eax, eax
jne 0x40bbb8
push str.GetEnvironmentStrings_failed
call fcn.0040b598
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x42dc4c]
jmp 0x40bbcc
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00402a90
pop ecx
mov edi, eax
test eax, eax
jne 0x40bbc4
lea edi, [ebp + 1]
push edi
call fcn.0040ad70
pop ecx
mov ebx, eax
mov dword [0x42dc34], ebx
test ebx, ebx
jne 0x40bbf6
xor eax, eax
jmp 0x40bccc
push edi
mov edx, dword [0x42dc4c]
push edx
push ebx
call fcn.004028c4
add esp, 0xc
jmp 0x40bc29
xor esi, esi
mov ebx, dword [0x42dc30]
jmp 0x40bc23
push eax
call fcn.00402a90
pop ecx
test eax, eax
jne 0x40bc1f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40bc13
lea ebx, [esi + 4]
push 4
mov dword [0x42dc38], ebx
inc ebx
push ebx
call fcn.0040a614
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40bc4c
xor eax, eax
jmp 0x40bccc
cmp dword [0x42dc30], 0
jne 0x40bc7d
xor esi, esi
mov ebx, dword [0x42dc34]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40bc6e
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00402a90
pop ecx
mov edi, eax
test eax, eax
jne 0x40bc64
jmp 0x40bcae
xor esi, esi
mov ebx, dword [0x42dc30]
mov eax, dword [esp]
mov edi, eax
jmp 0x40bca8
push eax
call fcn.00402a90
pop ecx
test eax, eax
je 0x40bc9d
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40bca1
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40bc8c
mov eax, dword [0x42dc30]
test eax, eax
je 0x40bcbe
push eax
call fcn.0040ac68
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x42dc30], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10008df1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10008e8e
push ebx
push esi
call fcn.10008dba
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10008d03
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10008e3b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10008e8d
push edi
push eax
call fcn.10007787
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10008e5b
call fcn.10007913
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10008e8c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10008d03
add esp, 0x20
test eax, eax
jne 0x10008e7a
push edi
call fcn.10007913
jmp 0x10008e82
push ebx
call fcn.10007913
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100090f9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10010a18
push 0x10010a10
push str.FlsAlloc
push 0x1e
call fcn.10009017
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000912d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000f188]
call esi
jmp 0x10009133
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10009177
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10010a28
push 0x10010a20
push str.FlsGetValue
push 0x20
call fcn.10009017
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100091ae
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000f188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1000e6d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000e6fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000e6fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402070
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x4020d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x405050]
test esi, esi
jle 0x4021bd
mov edi, dword [0x405054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x402104
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4021b6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x4020f0
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x4021fa
lea ebx, [esi + esi*2]
mov esi, dword [0x405054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4021da
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4021af
sub eax, 0x40
and eax, 0xffffffbf
je 0x4021af
mov eax, dword [esp + 0x20]
add ebx, dword [0x405054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x4021c4
add dword [0x405050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40210e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x4026c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402715
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40270e
test esi, esi
je 0x40270e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4026f0
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402930
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402968
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40295e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40296a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402950
xor eax, eax
pop ebx
pop esi
ret

Function at 0x40b080
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esi + 0x10]
adc ecx, dword [esi + 0x14]
or eax, ecx
mov dword [ebp + 0x10], 0xef00cf
jne 0x40b119
mov bh, byte [ecx + 0x74c08408]
push 0xffffffffffffff8b
push esi
add al, 0x8d
dec ebp
or ah, bl
xor eax, 0x6a006a51
add byte [edx], ch
push edx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
add dh, dl
jne 0x40b0f2
mov ebp, dword [esi + sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x40b0d2
mov eax, dword [eax + 0x14]
pop edi
pop esi
mov dword [ebp + ebx*2 - 0x3d], eax
call esi
inc eax
cmp ah, 0xe6
add byte [ecx], ah
in eax, dx
cld
or al, byte [eax]
jne 0x40b0e5
mov eax, 0xd493117e
xlatb
dec ebp
adc al, 0x5f
enter 0xffffffffffff8478, 0x26
add byte [eax], al
add byte [ebp + 0x6f], bl
mov eax, dword [ebx + 0x75c08508]
push cs
mov esp, dword [ecx - 4]
pop edi
pop esi
mov dword [edx], eax
mov eax, 0xb
pop ebp
ret
jne 0x40b137
mov edx, dword [ecx + 0x50]
xlatb
dec eax
or byte [ebx + 0x568b5046], cl
push esp
mov ecx, 0xcb0000e0
call 0xe940b810
mov edx, dword [esi + 0xc]
aam 0x42
or al, 0x8b
inc edi
or al, 0x8b
push ebp
or al, 0x22
pushfd
dec ebp
adc byte [ebx + ecx*4 - 0x4caefbba], cl
push edx
mov eax, dword [edi + 0xc]
mov edx, dword [ebp + 0xc]
and bl, byte [ebp + ecx*2 + 0x468b8c10]
add al, 0x51
mov bl, 0x52
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, 0xdd07d0a5
dec edi
jmp 0xa40b265
Function at 0x4046d8
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.00406894
test esi, esi
jne 0x40470e
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.004069fc
jmp 0x40472c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040461c
mov edi, eax
test esi, esi
je 0x40472c
cmp dword [ebx], 0
je 0x40472c
dec esi
jmp 0x404715
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405640
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.00405a2c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4057c9
test edi, edi
je 0x4057c9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405700
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4056db
cmp edi, 0xffffffff
je 0x40569f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40569f
mov byte [esp], 0
jmp 0x4057c9
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4056db
test ebx, ebx
jne 0x4056d4
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402568
test eax, eax
jne 0x4056d4
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4057c9
pause
dec ebp
test ebp, ebp
jg 0x405684
cmp edi, 0xffffffff
je 0x405700
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056fe
mov byte [esp], 0
jmp 0x4057c9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40564e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x405700
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040583c
mov edx, eax
mov ebx, dword [0x4fa8c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405767
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405765
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405767
xor edi, edi
cmp byte [esp], 0
je 0x405790
mov ebx, dword [esi]
test bl, 1
jne 0x4057a9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x40576d
mov byte [esp + 1], 1
jmp 0x4057a9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x405790
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40571a
cmp byte [esp], 0
je 0x4057c9
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 0x406544
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4fa050], 0
je 0x4065a5
cmp word [0x4fa32c], 0xd7b2
jne 0x40656d
cmp dword [0x4fa334], 0
jbe 0x40656d
mov eax, 0x4fa328
call dword [0x4fa344]
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 0x4065d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f7028], 0
jne 0x4065c1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406750
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 [0x4f702c], 0
je 0x40677b
mov edx, edi
mov eax, esi
call dword [0x4f702c]
mov ebx, eax
jmp 0x40678c
mov eax, 8
call fcn.00404350
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4fa051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406718
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 0x4067c1
mov edx, 8
mov eax, ebx
call fcn.0040436c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x4088b4
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 0x408a19
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406894
cmp si, word [0x4f77dc]
jb 0x40894c
cmp si, word [0x4f79dc]
ja 0x40894c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40894c
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4f77dc]
jae 0x408926
mov edi, ebx
dec edi
jmp 0x408947
cmp si, word [ebx*8 + 0x4f77dc]
jbe 0x408936
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408947
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4f77e0]
call fcn.004087c4
jmp 0x40894c
cmp edi, dword [ebp - 8]
jae 0x408910
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4089fb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4089fb
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.00407264
push dword [ebp - 0x160]
push 0x408a34
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407264
push dword [ebp - 0x164]
push 0x408a44
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407264
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040749c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a20
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004068f4
ret
Function at 0x408bcc
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 0x408ccf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4fcb51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4fcb6a]
jne 0x408c18
mov eax, esi
mov edx, 0x4fcb6c
mov ecx, 0x55
call fcn.00407264
push 0x4fcb51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408cb9
push 0x4fcb51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406894
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408c87
cmp byte [0x4fcb50], 0
je 0x408c4c
mov edx, esi
mov eax, ebx
call fcn.00408ab0
jmp 0x408c87
mov edx, esi
mov eax, ebx
call fcn.004088b4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408c87
cmp dword [esi], 0
je 0x408c70
mov eax, esi
mov edx, 0x408ce8
call fcn.004073bc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004088b4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004073bc
push 0x4fcb51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4fcb6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.004071d8
push eax
push 0x4fcb6c
call sub.kernel32.dll_lstrcpynW
push 0x4fcb51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408cd6
lea eax, [ebp - 4]
call fcn.00406894
ret
Function at 0x409468
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.00406978
xor eax, eax
push ebp
push 0x409528
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
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.00407264
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407414
mov eax, dword [ebx]
call fcn.00409330
test al, al
jne 0x409505
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407264
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407414
mov eax, dword [ebx]
call fcn.00409330
test al, al
jne 0x409505
mov eax, ebx
call fcn.00406894
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40952f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004068f4
lea eax, [ebp - 4]
call fcn.00406894
ret

Function at 0x409e14
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 0x41a8dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41a935
test eax, edx
je 0x41a938
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41a8f3
movzx eax, word [eax]
sub eax, ecx
jmp 0x41a91a
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41a91b
add ecx, 4
js 0x41a90b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41a918
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41a91a
xor eax, eax
ret
test eax, eax
je 0x41a944
test edx, edx
jne 0x41a8e4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41e8cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41e905
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004069fc
jmp 0x41e90e
mov eax, ebx
mov edx, esi
call fcn.00406c54
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41e918
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41e93a
movzx eax, word [esp]
jmp 0x41e93c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret