joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dd7c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
cmp dword [0x429018], 0
jne 0x41ddb7
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], str._s_called_before_XOpenDisplay__n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 3
call sub.cygwin1.dll_exit
mov dword [esp + 4], ebx
mov eax, dword [0x429018]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
test eax, eax
jne 0x41ddf7
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], str.failed_to_find__s_n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 2
call sub.cygwin1.dll_exit
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x41ddfc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
cmp dword [0x429018], 0
jne 0x41de37
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], str._s_called_before_XOpenDisplay__n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 3
call sub.cygwin1.dll_exit
mov dword [esp + 4], ebx
mov eax, dword [0x429018]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x41deb7
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x84
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 8], eax
mov dword [esp + 4], str.rxvt_08x
lea ebx, [ebp - 0x68]
mov dword [esp], ebx
call sub.cygwin1.dll_sprintf
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x34], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
lea eax, [ebp - 0x38]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], str.CONOUT_
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
lea edx, [ebp - 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_GetConsoleScreenBufferInfo
sub esp, 8
test eax, eax
je 0x41df9a
cmp word [ebp - 0x24], 0
jne 0x41df9a
cmp word [ebp - 0x22], 0
jne 0x41df9a
mov dword [esp], ebx
call sub.KERNEL32.dll_SetConsoleTitleA
sub esp, 4
jmp 0x41df70
mov dword [esp], 0x28
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.USER32.dll_FindWindowA
sub esp, 8
test eax, eax
je 0x41df61
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_ShowWindowAsync
sub esp, 8
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x41e0a9
Capabilities:
Query environment variable
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x25c
mov ebx, dword [ebp + 8]
mov dword [esp], str.W11_LIBRARY
call sub.cygwin1.dll_getenv
test eax, eax
je 0x41e104
mov dword [esp], eax
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
mov dword [0x429018], eax
test eax, eax
jne 0x41e104
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.failed_to_load_W11_LIBRARY_n
call sub.cygwin1.dll_fwrite
cmp dword [0x429018], 0
sete al
test ebx, ebx
setne dl
movzx eax, al
test eax, edx
je 0x41e240
mov esi, ebx
mov edi, 0x42841c
mov ecx, 3
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
je 0x41e240
mov dword [ebp - 0x38], str.cygX11_9
mov dword [ebp - 0x34], str.cygX11_8
mov dword [ebp - 0x30], str.cygX11_7
mov dword [ebp - 0x2c], str.cygX11_6
mov dword [ebp - 0x28], str.libX11
mov dword [ebp - 0x24], 0
lea esi, [ebp - 0x38]
cmp dword [0x429018], 0
jne 0x41e2b6
mov eax, dword [esi]
mov dword [esp], eax
add esi, 4
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
mov dword [0x429018], eax
cmp dword [esi], 0
je 0x41e198
test eax, eax
je 0x41e175
jmp 0x41e2b6
cmp dword [0x429018], 0
jne 0x41e2b6
lea esi, [ebp - 0x38]
cmp dword [ebp - 0x38], 0
je 0x41e20b
lea edi, [ebp - 0x148]
mov dword [esp + 4], str._usr_X11R6_bin_
mov dword [esp], edi
call sub.cygwin1.dll_strcpy
mov eax, dword [esi]
mov dword [esp + 4], eax
add esi, 4
mov dword [esp], edi
call sub.cygwin1.dll_strcat
lea eax, [ebp - 0x258]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.cygwin1.dll_cygwin_conv_to_full_win32_path
lea eax, [ebp - 0x258]
mov dword [esp], eax
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
mov dword [0x429018], eax
cmp dword [esi], 0
je 0x41e20b
test eax, eax
je 0x41e1b4
jmp 0x41e2b6
cmp dword [0x429018], 0
jne 0x41e2b6
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2b
mov dword [esp + 4], 1
mov dword [esp], str.failed_to_load_an_X_lib__cygX11_6__libX11__n
call sub.cygwin1.dll_fwrite
cmp dword [0x429018], 0
jne 0x41e2b6
mov dword [esp], str.libW11
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
mov dword [0x429018], eax
test eax, eax
jne 0x41e295
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x25
mov dword [esp + 4], 1
mov dword [esp], str.failed_to_load_libW11.dll.__Exiting._n
call sub.cygwin1.dll_fwrite
mov dword [esp], 1
call sub.cygwin1.dll_exit
call fcn.0041df9f
movzx eax, ax
mov dword [esp], eax
call fcn.0041e051
mov dword [esp], str.W11AddEventHandler
call fcn.0041dd7c
mov dword [fcn.00429048], eax
cmp dword [0x429058], 0
jne 0x41e2d0
mov dword [esp], str.XOpenDisplay
call fcn.0041dd7c
mov dword [0x429058], eax
mov dword [esp], ebx
call dword [0x429058]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x409c30
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
lea edx, [esp + 4]
mov eax, dword [0x40c85c]
mov ecx, 0x40
call fcn.004029b8
mov dword [0x40c7a8], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x40c7a8
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x409c5e
xor ebx, ebx
xor edi, edi
xor esi, esi
xor ebp, ebp
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x40c7a8]
add eax, esi
add eax, ebp
mov edx, 3
call fcn.00409b10
mov esi, eax
mov dword [ebx*4 + 0x40c7a8], esi
lea edx, [ebp + esi]
mov eax, dword [esp + edi*4 + 4]
add eax, esi
add eax, ebp
call fcn.00409b10
mov ebp, eax
mov dword [esp + edi*4 + 4], ebp
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc edi
and edi, 0x8000000f
jns 0x409cce
dec edi
or edi, 0xfffffff0
inc edi
dec dword [esp]
jne 0x409c7e
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409d58
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov eax, dword [0x40c854]
sub dword [ebx + 8], eax
mov eax, dword [0x40c850]
sub dword [ebx], eax
mov esi, 0x14
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [ebx + 0xc], edx
mov edx, dword [ebx + 4]
mov dword [ebx + 8], edx
mov edx, dword [ebx]
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov eax, dword [ebx + 0xc]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.00409b10
mov ebp, eax
mov eax, dword [ebx + 4]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.00409b10
mov edi, eax
mov eax, dword [ebx + 8]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x40c7ac]
mov edx, edi
call fcn.00409b18
xor eax, ebp
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x40c7a8]
mov edx, ebp
call fcn.00409b18
xor edi, eax
mov dword [ebx], edi
dec esi
test esi, esi
jne 0x409d72
mov eax, dword [0x40c7ac]
sub dword [ebx + 0xc], eax
mov eax, dword [0x40c7a8]
sub dword [ebx + 4], eax
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409f90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403dd8
mov eax, dword [ebp - 8]
call fcn.00403dd8
xor eax, eax
push ebp
push 0x40a01e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x800
call fcn.00402864
mov ebx, eax
push ebx
push 0
push 0x40a02c
mov eax, dword [ebp - 4]
call fcn.00403de8
push eax
call sub.kernel32.dll_GetTempFileNameA
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00403be8
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov edx, dword [ebp - 8]
call fcn.00405c9c
mov eax, ebx
call fcn.00402894
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a025
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403a30
ret
Function at 0x4063a4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d8c], 0
push esi
jne 0x4063db
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4063b5
mov dword [ecx*4 + 0x426d88], eax
inc ecx
cmp ecx, 0x100
jl 0x4063b0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40640c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d88]
xor eax, esi
inc ecx
dec edx
jne 0x4063ee
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x33da4a3c
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x22f3061c
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x1c383867
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x5f691f59
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x406adc
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.00409970
test esi, esi
jne 0x406b12
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.00409af8
jmp 0x406b30
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406a20
mov edi, eax
test esi, esi
je 0x406b30
cmp dword [ebx], 0
je 0x406b30
dec esi
jmp 0x406b19
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4086d0
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.00408ab4
mov byte [esp], al
cmp byte [esp], 0
jne 0x40885a
test edi, edi
je 0x40885a
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40879a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408775
cmp edi, 0xffffffff
je 0x408735
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408735
mov byte [esp], 0
jmp 0x40885a
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408775
test ebx, ebx
jne 0x408767
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408767
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40885a
lea eax, [esp + 0xc]
call fcn.004083b0
dec ebp
test ebp, ebp
jg 0x40871a
cmp edi, 0xffffffff
je 0x40879a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408798
mov byte [esp], 0
jmp 0x40885a
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4086de
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40879a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004088c8
mov edx, eax
mov ebx, dword [0x50c8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4087fe
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4087fc
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4087fe
xor edi, edi
cmp byte [esp], 0
je 0x408824
mov ebx, dword [esi]
test bl, 1
jne 0x40883a
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408804
mov byte [esp + 1], 1
jmp 0x40883a
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408824
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4087b1
cmp byte [esp], 0
je 0x40885a
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 0x409600
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50c058], 0
je 0x409667
cmp word [0x50c344], 0xd7b2
jne 0x409629
cmp dword [0x50c34c], 0
jbe 0x409629
mov eax, 0x50c340
call dword [0x50c35c]
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, 0x409694
call fcn.0040a394
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x507032], 0
jne 0x409683
push 0
push 0x5079ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409830
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 [0x507034], 0
je 0x40985b
mov edx, edi
mov eax, esi
call dword [0x507034]
mov ebx, eax
jmp 0x40986c
mov eax, 8
call fcn.0040677c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x50c059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4097f8
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 0x40989c
mov eax, ebx
call fcn.00406798
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c134
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 0x40c299
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409970
cmp si, word [0x507a08]
jb 0x40c1cc
cmp si, word [0x507c08]
ja 0x40c1cc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c1cc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x507a08]
jae 0x40c1a6
mov edi, ebx
dec edi
jmp 0x40c1c7
cmp si, word [ebx*8 + 0x507a08]
jbe 0x40c1b6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c1c7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x507a0c]
call fcn.0040c054
jmp 0x40c1cc
cmp edi, dword [ebp - 8]
jae 0x40c190
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c27b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c27b
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.0040a7b0
push dword [ebp - 0x160]
push 0x40c2b4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a7b0
push dword [ebp - 0x164]
push 0x40c2c4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a7b0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a9e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2a0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004099d0
ret
Function at 0x40c44c
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 0x40c550
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x50eb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x50eba0]
jne 0x40c498
mov eax, esi
mov edx, 0x50eba2
mov ecx, 0x55
call fcn.0040a7b0
push 0x50eb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c53a
push 0x50eb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409970
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c507
cmp byte [0x50eb84], 0
je 0x40c4cc
mov edx, esi
mov eax, ebx
call fcn.0040c330
jmp 0x40c507
mov edx, esi
mov eax, ebx
call fcn.0040c134
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c507
cmp dword [esi], 0
je 0x40c4f0
mov eax, esi
mov edx, 0x40c568
call fcn.0040a908
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c134
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a908
push 0x50eb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x50eba0], bx
mov eax, dword [esi]
call fcn.0040a70c
mov ecx, eax
mov eax, 0x50eba2
mov edx, 0xaa
call fcn.0040bfb4
push 0x50eb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c557
lea eax, [ebp - 4]
call fcn.00409970
ret
Function at 0x40c780
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.00409a54
xor eax, eax
push ebp
push 0x40c9a5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c7c0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c7da
mov eax, dword [ebp - 4]
call fcn.0040a70c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bfb4
cmp word [ebp - 0x21a], 0
je 0x40c98f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c9b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c8a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c9b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c8a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c9f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c8a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c9f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c8a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ca24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c8a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ca58
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c98f
xor eax, eax
push ebp
push 0x40c988
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c590
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 0x40c918
mov eax, dword [ebp - 0x10]
call fcn.0040677c
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.0040a774
jmp 0x40c963
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40ca98
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c963
mov eax, dword [ebp - 0x10]
call fcn.0040677c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40ca98
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a774
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c98f
cmp dword [ebp - 8], 0
je 0x40c97e
mov eax, dword [ebp - 8]
call fcn.00406798
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 0x40c9ac
lea eax, [ebp - 4]
call fcn.00409970
ret
Function at 0x40cc94
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.00409a54
xor eax, eax
push ebp
push 0x40cd54
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.0040a7b0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a960
mov eax, dword [ebx]
call fcn.0040cb5c
test al, al
jne 0x40cd31
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a7b0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a960
mov eax, dword [ebx]
call fcn.0040cb5c
test al, al
jne 0x40cd31
mov eax, ebx
call fcn.00409970
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd5b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004099d0
lea eax, [ebp - 4]
call fcn.00409970
ret

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

Disassembly:
cmp eax, edx
je 0x41f4c5
test eax, edx
je 0x41f4c8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41f483
movzx eax, word [eax]
sub eax, ecx
jmp 0x41f4aa
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 0x41f4ab
add ecx, 4
js 0x41f49b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41f4a8
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41f4aa
xor eax, eax
ret
test eax, eax
je 0x41f4d4
test edx, edx
jne 0x41f474
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x420630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x42065d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4