joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007911
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [0x100244f8], 0x1866
mov dword [ebp - 0x10], eax
call fcn.100071cc
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov esi, dword [eax + esi + 0x78]
mov dword [0x100244f8], 0x229
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov ebx, dword [eax + esi + 0x24]
mov dword [0x100244fc], 0x450f
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
je 0x10007a6e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add eax, ecx
mov dword [ebp - 0x2c], eax
xor eax, eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
jmp 0x10007991
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + ecx*4]
mov dword [0x100244f8], 0x1866
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov ecx, eax
mov edx, dword [ebp - 0x40]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x49], bh
mov byte [ebp - 0x4a], cl
je 0x10007a13
mov eax, dword [ebp - 0x48]
add eax, 1
mov cl, byte [ebp - 0x49]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4a]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], ch
mov al, byte [ebp - 0x51]
test al, 1
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x44], ecx
jne 0x100079b5
jmp 0x10007a13
mov al, byte [ebp - 0x4a]
test al, 1
jne 0x10007a4b
jmp 0x10007a1c
mov eax, dword [ebp - 0x38]
add eax, 2
mov dword [ebp - 0x58], eax
xor eax, eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov edx, dword [ebp - 0x18]
cmp ecx, edx
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], eax
jb 0x10007991
jmp 0x10007a6e
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x100244fc], 0xeaa
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x28]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10007a79
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10024504], 0
mov byte [0x10024508], 0
mov dword [0x100244fc], 0xdee
mov dword [0x10024500], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10007b3b
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x10024504]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov eax, esi
cdq
idiv ecx
mov dword [0x10024504], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x10024508], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x10024508]
mov esi, dword [0x10024504]
mov byte [ebx + esi], cl
mov esi, dword [0x10024500]
add esi, 1
mov dword [0x10024500], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x10007ac0
jmp 0x10007b7f
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x100244f8], 0x1665
mov eax, dword [0x10024500]
add eax, 1
mov dword [0x10024500], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10007b3b
xor eax, eax
mov dword [0x10024500], 0
mov dword [ebp - 0x20], eax
jmp 0x10007ac0
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10007da6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [0x100244f8], 0x1176
mov dword [0x100244fc], 0x1408
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.100083db
lea ecx, [0x10007c08]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], edx
mov dword [esp + 0x4c], 0x126c00
mov dword [0x100244f8], 0x119a
mov edx, dword [0x100244e4]
mov dword [esp + 0x5c], edx
mov edx, dword [0x100244e8]
mov dword [esp + 0x64], edx
mov edx, dword [0x100244ec]
mov dword [esp + 0x54], edx
mov edx, dword [0x100244f0]
mov dword [esp + 0x74], edx
mov edx, dword [0x100244f4]
mov dword [esp + 0x68], edx
mov dword [0x100244fc], 0x505
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x10007e5e
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x10007e8b
jmp 0x10007e6d
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
je 0x10007e48
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x100244f8], 0x1b27
mov dword [esp + 0x14], eax
jmp 0x10007e5e
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov dword [0x100244fc], 0x2091
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x48], edx
mov dword [0x100244f8], 0x2252
call fcn.100074e9
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
jne 0x10007e40
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10008275
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x100244f8], 0xc31
mov dword [esp + 0x10], eax
jmp 0x10007e40
Function at 0x10008275
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x100244f8], 0x29f
mov dword [0x100244fc], 0x2124
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
jmp 0x100082bc
mov dword [0x100244f8], 0x15da
mov eax, dword [ebp - 0x30]
add eax, 0x2620
mov dword [ebp - 0x34], eax
jmp 0x100083ae
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 0x100094cc]
mov dl, byte [eax + 0x1000949d]
sub dl, cl
mov byte [ebp + eax - 0x20], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x2c], eax
jne 0x100082bc
lea eax, [ebp - 0x20]
mov dword [0x100244f8], 0x1f59
mov dword [ebp - 0x38], eax
call fcn.10007ff6
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.10008122
mov dword [ebp - 0x3c], eax
xor eax, eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0
mov dword [ebp - 0x34], eax
je 0x100083ae
mov eax, dword [ebp - 0x3c]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x100244f8], 0x1234
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x30], eax
call fcn.100077c1
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov dword [0x100244fc], 0x156f
mov edx, dword [ebp - 0x28]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x30]
mov dword [edx + 0x54], ecx
mov dword [0x100244f8], 0x1054
cmp ecx, 0
mov dword [ebp - 0x34], eax
jne 0x100082a2
mov eax, dword [ebp - 0x34]
add esp, 0x4c
pop ebp
ret
Function at 0x4070f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d468
cmp edx, dword [eax]
je 0x407117
add eax, 8
inc ecx
cmp eax, 0x40d4f8
jl 0x407108
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d468]
jne 0x407245
mov eax, dword [0x40e498]
cmp eax, 1
je 0x40721f
test eax, eax
jne 0x407148
cmp dword [0x40d39c], 1
je 0x40721f
cmp edx, 0xfc
je 0x407245
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40717f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404350
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004041a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4071c2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004041a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b5ec
push edi
call fcn.00408c80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404350
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404360
lea eax, [ebp - 0xa0]
push 0x40b5cc
push eax
call fcn.00404360
push dword [esi + 0x40d46c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404360
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408bf2
add esp, 0x2c
pop edi
jmp 0x407245
lea eax, [ebp + 8]
lea esi, [esi + 0x40d46c]
push 0
push eax
push dword [esi]
call fcn.004041a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, reloc.comdlg32.dll_GetSaveFileNameW
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00431219
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 [0x4ca8c8]
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 [0x4ca050], 0
je 0x4065a5
cmp word [0x4ca32c], 0xd7b2
jne 0x40656d
cmp dword [0x4ca334], 0
jbe 0x40656d
mov eax, 0x4ca328
call dword [0x4ca344]
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 [0x4c7028], 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 [0x4c702c], 0
je 0x40677b
mov edx, edi
mov eax, esi
call dword [0x4c702c]
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 [0x4ca051], 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 0x4088c0
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 0x408a25
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406894
cmp si, word [0x4c77dc]
jb 0x408958
cmp si, word [0x4c79dc]
ja 0x408958
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408958
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4c77dc]
jae 0x408932
mov edi, ebx
dec edi
jmp 0x408953
cmp si, word [ebx*8 + 0x4c77dc]
jbe 0x408942
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408953
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4c77e0]
call fcn.004087d0
jmp 0x408958
cmp edi, dword [ebp - 8]
jae 0x40891c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408a07
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a07
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.00407270
push dword [ebp - 0x160]
push 0x408a40
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407270
push dword [ebp - 0x164]
push 0x408a50
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407270
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004074a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a2c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004068f4
ret
Function at 0x408bd8
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 0x408cdb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4ccb51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4ccb6a]
jne 0x408c24
mov eax, esi
mov edx, 0x4ccb6c
mov ecx, 0x55
call fcn.00407270
push 0x4ccb51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408cc5
push 0x4ccb51
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 0x408c93
cmp byte [0x4ccb50], 0
je 0x408c58
mov edx, esi
mov eax, ebx
call fcn.00408abc
jmp 0x408c93
mov edx, esi
mov eax, ebx
call fcn.004088c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408c93
cmp dword [esi], 0
je 0x408c7c
mov eax, esi
mov edx, 0x408cf4
call fcn.004073c8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004088c0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004073c8
push 0x4ccb51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4ccb6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.004071e4
push eax
push 0x4ccb6c
call sub.kernel32.dll_lstrcpynW
push 0x4ccb51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ce2
lea eax, [ebp - 4]
call fcn.00406894
ret
Function at 0x408f10
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.00406978
xor eax, eax
push ebp
push 0x409135
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408f50
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408f6a
push 0x105
mov eax, dword [ebp - 4]
call fcn.004071e4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40911f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409144
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409039
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409144
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409039
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409180
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409039
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409180
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409039
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409039
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40911f
xor eax, eax
push ebp
push 0x409118
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408d1c
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 0x4090a8
mov eax, dword [ebp - 0x10]
call fcn.00404350
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.00407234
jmp 0x4090f3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409228
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4090f3
mov eax, dword [ebp - 0x10]
call fcn.00404350
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409228
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407234
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40911f
cmp dword [ebp - 8], 0
je 0x40910e
mov eax, dword [ebp - 8]
call fcn.0040436c
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 0x40913c
lea eax, [ebp - 4]
call fcn.00406894
ret
Function at 0x409474
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 0x409534
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.00407270
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407420
mov eax, dword [ebx]
call fcn.0040933c
test al, al
jne 0x409511
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407270
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407420
mov eax, dword [ebx]
call fcn.0040933c
test al, al
jne 0x409511
mov eax, ebx
call fcn.00406894
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40953b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004068f4
lea eax, [ebp - 4]
call fcn.00406894
ret

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

Disassembly:
cmp eax, edx
je 0x41abf9
test eax, edx
je 0x41abfc
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41abb7
movzx eax, word [eax]
sub eax, ecx
jmp 0x41abde
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 0x41abdf
add ecx, 4
js 0x41abcf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41abdc
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41abde
xor eax, eax
ret
test eax, eax
je 0x41ac08
test edx, edx
jne 0x41aba8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41ed10
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 0x41ed49
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004069fc
jmp 0x41ed52
mov eax, ebx
mov edx, esi
call fcn.00406c54
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41ed5c
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 0x41ed7e
movzx eax, word [esp]
jmp 0x41ed80
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret