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

Disassembly:
push 0xffffffffffffffff
push 0x5692c9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x28], edi
mov byte [edi + 4], bl
mov ecx, 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebx
cmp byte [esp + 0x4c], bl
je 0x5556ca
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
jb 0x5556d5
mov eax, dword [eax + 4]
jmp 0x5556d8
add eax, 4
lea esi, [esp + 0x18]
push esi
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x555795
cmp dword [ebp + 0x18], 0x10
lea eax, [ebp + 4]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
jb 0x555706
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
push ebx
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x55578a
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x55578a
cmp dword [esp + 0x20], 3
je 0x55578a
push eax
call fcn.0052b867
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x55578a
mov ecx, dword [esp + 0x14]
push ecx
push ebx
push esi
call fcn.0052b710
add esp, 0xc
cmp dword [ebp + 0x18], 0x10
jb 0x55575d
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
jmp 0x555761
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push esi
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x555781
push esi
mov ecx, edi
call fcn.004056c4
push esi
call fcn.0052b78a
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x403fa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movsx eax, word [0x453114]
add eax, 0x1f46ce49
cmp eax, 0x30dc3e84
jge 0x404028
fld dword [0x453170]
fadd qword [0x44cdd8]
fstp dword [0x453170]
mov cx, word [0x453350]
add cx, 1
mov word [0x453350], cx
movsx edx, word [0x453350]
mov dword [ebp - 0x10], edx
fild dword [ebp - 0x10]
fadd dword [0x453170]
fadd qword [0x44dcd8]
fld qword [0x44dcd0]
fxch st(1)
fucompi st(1)
fstp st(0)
lahf
test ah, 0x44
jnp 0x404026
fld qword [0x4530a0]
fadd qword [0x44dcc8]
fsub qword [0x453438]
fsubr qword [0x453168]
fstp qword [0x453168]
jmp 0x40403a
movsx eax, word [0x453248]
sub eax, 0x5803359f
mov word [0x453248], ax
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
jmp 0x40405d
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xc]
je 0x4040b0
fld dword [0x453204]
fsub qword [0x44dcc0]
fstp dword [0x453204]
mov edx, dword [ebp - 4]
mov eax, dword [edx]
xor eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp - 8]
shl eax, 0x1f
or edx, eax
mov dword [ebp - 8], edx
movzx ecx, byte [ebp - 8]
movzx edx, byte [ebp - 7]
add edx, ecx
mov byte [ebp - 7], dl
movzx eax, byte [ebp - 7]
movzx ecx, byte [ebp - 8]
add ecx, eax
mov byte [ebp - 8], cl
jmp 0x404054
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x407110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movsx eax, word [0x453180]
sub eax, 0x18d38239
cmp eax, 0xf08bfe77
jg 0x4071bb
mov ecx, 1
test ecx, ecx
je 0x4071bb
movsx edx, word [0x453038]
mov dword [ebp - 0x10], edx
fild dword [ebp - 0x10]
movsx eax, word [0x453174]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fsubr dword [0x453418]
faddp st(1)
fld qword [0x4533a0]
movsx ecx, word [0x4533bc]
mov dword [ebp - 0x18], ecx
fild dword [ebp - 0x18]
fsubrp st(1)
mov dx, word [0x453174]
sub dx, 1
mov word [0x453174], dx
fld dword [0x453418]
fsub qword [0x44cdd8]
fstp dword [0x453418]
fld qword [0x4533a0]
fadd qword [0x44cdd8]
fstp qword [0x4533a0]
mov ax, word [0x4533bc]
sub ax, 1
mov word [0x4533bc], ax
fucompi st(1)
fstp st(0)
movsx ecx, word [0x453180]
sub ecx, 0x7cbaad02
cmp ecx, 0x5dd5f6a2
je 0x4071ff
xor edx, edx
je 0x4071e2
fld dword [0x453400]
fstp dword [0x453204]
jmp 0x4071ff
movsx eax, word [0x453080]
mov ecx, 0xf2aa53a2
sub ecx, eax
mov edx, dword [0x45330c]
imul edx, ecx
mov dword [0x45330c], edx
cmp dword [0x455304], 0
jne 0x407224
call fcn.00420d70
mov dword [0x455304], eax
fld dword [0x453268]
fmul qword [0x44df60]
fstp dword [0x453268]
push 3
push 0x32d
call fcn.00412b20
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004223b5
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
push 3
call fcn.004021e0
add esp, 8
cmp dword [ebp - 4], 0
jne 0x407317
push 0x3e8
call dword [0x454aa0]
fld qword [0x4533e0]
fsub qword [0x44cdd8]
fstp qword [0x4533e0]
fld dword [0x45341c]
fsubr qword [0x44df58]
fld qword [0x4533e0]
movsx eax, word [0x4532d0]
sub eax, 0xcc8040f
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
faddp st(1)
fucompi st(1)
fstp st(0)
lahf
test ah, 0x44
jnp 0x4072e4
mov ecx, dword [0x4531a0]
mov dword [ebp - 0x20], ecx
fild dword [ebp - 0x20]
fsub dword [0x453204]
fsub qword [0x44df50]
fadd dword [0x4532e4]
fstp dword [0x4532e4]
fld dword [0x453204]
fadd qword [0x44cdd8]
fstp dword [0x453204]
push 3
push 0x32d
call fcn.00412b20
add esp, 8
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004223b5
add esp, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 3
call fcn.004021e0
add esp, 8
cmp dword [ebp - 4], 0
je 0x40736e
mov edx, dword [ebp - 4]
push edx
push 1
push 4
push 0x455304
call fcn.00422837
add esp, 0x10
movsx eax, word [0x453304]
sub eax, 0x7cb64389
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fsub dword [0x4533d4]
mov ecx, dword [0x453338]
mov dword [ebp - 0x28], ecx
fild dword [ebp - 0x28]
fmulp st(1)
call fcn.00421a50
mov dword [0x453338], eax
mov edx, dword [ebp - 4]
push edx
call fcn.0042266c
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4129c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
movsx eax, word [0x4533b8]
mov dword [ebp - 8], eax
fild dword [ebp - 8]
mov ecx, dword [0x4530d8]
mov dword [ebp - 0xc], ecx
fild dword [ebp - 0xc]
fld dword [0x4533d4]
fsub qword [0x44cde0]
fsubrp st(1)
mov edx, dword [0x4530d8]
add edx, 1
mov dword [0x4530d8], edx
fld dword [0x4533d4]
fadd qword [0x44cdd8]
fstp dword [0x4533d4]
fxch st(1)
fcompi st(1)
fstp st(0)
jb 0x412a7c
mov eax, dword [0x4533d0]
mov ecx, 0x2b7f8851
sub ecx, eax
mov dword [ebp - 0x10], ecx
fld dword [0x453380]
fild dword [ebp - 0x10]
fcompi st(1)
fstp st(0)
jb 0x412a56
movsx edx, word [0x4531fc]
sub edx, 0x5df2e6c
movsx eax, word [0x453114]
imul eax, edx
mov word [0x453114], ax
jmp 0x412a7a
fld qword [0x453018]
fsub qword [0x4531f0]
fstp qword [0x453018]
fld qword [0x4531f0]
fsub qword [0x44cdd8]
fstp qword [0x4531f0]
jmp 0x412a8e
fld dword [0x453264]
fmul qword [0x44cdd0]
fstp dword [0x453264]
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x67452301
movsx ecx, word [0x4533c8]
sub ecx, 0x6d890e07
mov word [0x4533c8], cx
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0xefcdab89
mov eax, dword [0x453310]
imul eax, eax, 0xb016914b
mov dword [0x453310], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [0x4530cc]
add edx, 1
mov dword [0x4530cc], edx
mov eax, dword [0x4530cc]
add eax, 0x45cb8246
mov ecx, dword [0x4533d0]
imul ecx, eax
mov dword [0x4533d0], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x42e3ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x453bb0]
jne 0x42e3c4
repz ret
jmp fcn.00435c90

Function at 0x433594
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x453bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0042c1e8
and dword [ebp - 0x14], 0
cmp dword [0x455c6c], 0
mov dword [ebp - 0x18], eax
jne 0x433647
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4336ef
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4336ef
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x455c6c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x455c70], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x455c74], eax
call edi
push eax
call esi
mov dword [0x455c7c], eax
test eax, eax
je 0x433647
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x455c78], eax
mov eax, dword [0x455c78]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4336a0
cmp dword [0x455c7c], ecx
je 0x4336a0
push eax
call esi
push dword [0x455c7c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4336a0
test ebx, ebx
je 0x4336a0
call edi
test eax, eax
je 0x433697
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x433697
test byte [ebp - 8], 1
jne 0x4336a0
or dword [ebp + 0x10], 0x200000
jmp 0x4336d3
mov eax, dword [0x455c70]
cmp eax, dword [ebp - 0x18]
je 0x4336d3
push eax
call esi
test eax, eax
je 0x4336d3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4336d3
mov eax, dword [0x455c74]
cmp eax, dword [ebp - 0x18]
je 0x4336d3
push eax
call esi
test eax, eax
je 0x4336d3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x455c6c]
call esi
test eax, eax
je 0x4336ef
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4336f1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e3ba
leave
ret
Function at 0x406b18
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.00408e74
test esi, esi
jne 0x406b4e
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.00408ffc
jmp 0x406b6c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004069fc
mov edi, eax
test esi, esi
je 0x406b6c
cmp dword [ebx], 0
je 0x406b6c
dec esi
jmp 0x406b55
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406ba0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x66b008], 0x8088405
inc edx
mov dword [ebx + 0x66b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x407ba8
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.00407f80
mov byte [esp], al
cmp byte [esp], 0
jne 0x407d28
test edi, edi
je 0x407d28
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407c68
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407c43
cmp edi, 0xffffffff
je 0x407c07
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407c07
mov byte [esp], 0
jmp 0x407d28
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407c43
test ebx, ebx
jne 0x407c39
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407c39
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407d28
call 0x4080a0
dec ebp
test ebp, ebp
jg 0x407bec
cmp edi, 0xffffffff
je 0x407c68
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407c66
mov byte [esp], 0
jmp 0x407d28
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407bb6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407c68
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407d94
mov edx, eax
mov ebx, dword [0x6838f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407ccc
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407cca
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407ccc
xor edi, edi
cmp byte [esp], 0
je 0x407cf2
mov ebx, dword [esi]
test bl, 1
jne 0x407d08
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407cd2
mov byte [esp + 1], 1
jmp 0x407d08
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407cf2
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407c7f
cmp byte [esp], 0
je 0x407d28
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 0x408b10
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x683058], 0
je 0x408b77
cmp word [0x683344], 0xd7b2
jne 0x408b39
cmp dword [0x68334c], 0
jbe 0x408b39
mov eax, 0x683340
call dword [0x68335c]
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, 0x408ba4
call fcn.004098bc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x66b034], 0
jne 0x408b93
push 0
push 0x66b9ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408d34
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 [0x66b038], 0
je 0x408d5f
mov edx, edi
mov eax, esi
call dword [0x66b038]
mov ebx, eax
jmp 0x408d70
mov eax, 8
call fcn.00406738
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x683059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x408cfc
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 0x408da0
mov eax, ebx
call fcn.00406754
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40bb6c
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 0x40bcd1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408e74
cmp si, word [0x66ba08]
jb 0x40bc04
cmp si, word [0x66bc08]
ja 0x40bc04
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bc04
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x66ba08]
jae 0x40bbde
mov edi, ebx
dec edi
jmp 0x40bbff
cmp si, word [ebx*8 + 0x66ba08]
jbe 0x40bbee
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bbff
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x66ba0c]
call fcn.0040ba8c
jmp 0x40bc04
cmp edi, dword [ebp - 8]
jae 0x40bbc8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bcb3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bcb3
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.00409d98
push dword [ebp - 0x160]
push 0x40bcec
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409d98
push dword [ebp - 0x164]
push 0x40bcfc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409d98
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409fd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bcd8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00408ed4
ret
Function at 0x40be84
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 0x40bf88
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x685b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x685ba0]
jne 0x40bed0
mov eax, esi
mov edx, 0x685ba2
mov ecx, 0x55
call fcn.00409d98
push 0x685b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bf72
push 0x685b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00408e74
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bf3f
cmp byte [0x685b84], 0
je 0x40bf04
mov edx, esi
mov eax, ebx
call fcn.0040bd68
jmp 0x40bf3f
mov edx, esi
mov eax, ebx
call fcn.0040bb6c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bf3f
cmp dword [esi], 0
je 0x40bf28
mov eax, esi
mov edx, 0x40bfa0
call fcn.00409ef0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bb6c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409ef0
push 0x685b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x685ba0], bx
mov eax, dword [esi]
call fcn.00409cdc
mov ecx, eax
mov eax, 0x685ba2
mov edx, 0xaa
call fcn.0040b9ec
push 0x685b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf8f
lea eax, [ebp - 4]
call fcn.00408e74
ret
Function at 0x40c1b8
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.00408f58
xor eax, eax
push ebp
push 0x40c3dd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c1f8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c212
mov eax, dword [ebp - 4]
call fcn.00409cdc
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b9ec
cmp word [ebp - 0x21a], 0
je 0x40c3c7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2e1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2e1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c428
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2e1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c428
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2e1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c45c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2e1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c490
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c3c7
xor eax, eax
push ebp
push 0x40c3c0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bfc8
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 0x40c350
mov eax, dword [ebp - 0x10]
call fcn.00406738
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.00409d44
jmp 0x40c39b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c4d0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c39b
mov eax, dword [ebp - 0x10]
call fcn.00406738
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c4d0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409d44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3c7
cmp dword [ebp - 8], 0
je 0x40c3b6
mov eax, dword [ebp - 8]
call fcn.00406754
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 0x40c3e4
lea eax, [ebp - 4]
call fcn.00408e74
ret
Function at 0x40c6cc
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.00408f58
xor eax, eax
push ebp
push 0x40c78c
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.00409d98
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409f48
mov eax, dword [ebx]
call fcn.0040c594
test al, al
jne 0x40c769
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409d98
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409f48
mov eax, dword [ebx]
call fcn.0040c594
test al, al
jne 0x40c769
mov eax, ebx
call fcn.00408e74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c793
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00408ed4
lea eax, [ebp - 4]
call fcn.00408e74
ret

Function at 0x41f2d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41f329
test eax, edx
je 0x41f32c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41f2e7
movzx eax, word [eax]
sub eax, ecx
jmp 0x41f30e
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 0x41f30f
add ecx, 4
js 0x41f2ff
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41f30c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41f30e
xor eax, eax
ret
test eax, eax
je 0x41f338
test edx, edx
jne 0x41f2d8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4204d8
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 0x420505
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4