joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45dd20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47f970
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00479bfc
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x45dd53
xor al, al
jmp 0x45de7f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x45dd75
xor al, al
jmp 0x45de7f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x45dd88
xor al, al
jmp 0x45de7f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x45dd9c
xor al, al
jmp 0x45de7f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.0046e56b
test eax, eax
jne 0x45ddd0
xor al, al
jmp 0x45de7f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x48835c
mov dword [esp + 0x20], ebp
call fcn.00479bfc
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.00476a74
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.00476acb
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x45de64
mov ax, word [ebx]
test ax, ax
je 0x45de56
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0045dea0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x45de3a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.00476acb
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x45e3f0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.0047813d
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x45e436
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.0045fe08
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x4a1034
push ecx
call fcn.00461452
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x47206e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4720a6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004700cc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004700a4
jmp 0x4720b2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x473835
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x473877
call fcn.00479bfc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x473877
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47386e
xor eax, eax
jmp 0x47387f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00473885
pop edi
pop esi
pop ebx
ret 4

Function at 0x47a12c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47a15a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47a178
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047a092
jmp 0x47a178
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47a178
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047a092
test edi, edi
mov eax, edi
jne 0x47a162
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x43b633
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
dec ebx
and ebx, ebx
call fcn.0043b667
add ebx, ebx
xor dword [edi], eax
sub ecx, ebx
add ebx, 0xc210e1a4
inc edi
and ebx, ecx
sub ecx, ebx
add ebx, 0x86b4e9bb
cmp edi, esi
jne fcn.0043b633
sub ebx, ebx
push ecx
mov ecx, dword [esp]
add esp, 4
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x4eccd3
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4eca52
add eax, eax
mov esi, 0x12584c7d
add eax, 0x728fa40b
call fcn.004ecd16
mov esi, 0x777e6131
mov eax, eax
xor dword [edi], ebx
sub eax, eax
sub esi, eax
add edi, 1
add esi, 0xb6a8e06
sub eax, esi
cmp edi, edx
jl fcn.004eccd3
sub esi, eax
ret
Function at 0x40471c
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.00406e1c
test esi, esi
jne 0x404752
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.00406f84
jmp 0x404770
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404660
mov edi, eax
test esi, esi
je 0x404770
cmp dword [ebx], 0
je 0x404770
dec esi
jmp 0x404759
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405bc8
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.00405fb4
mov byte [esp], al
cmp byte [esp], 0
jne 0x405d51
test edi, edi
je 0x405d51
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405c88
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405c63
cmp edi, 0xffffffff
je 0x405c27
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405c27
mov byte [esp], 0
jmp 0x405d51
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405c63
test ebx, ebx
jne 0x405c5c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.0040257c
test eax, eax
jne 0x405c5c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405d51
pause
dec ebp
test ebp, ebp
jg 0x405c0c
cmp edi, 0xffffffff
je 0x405c88
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405c86
mov byte [esp], 0
jmp 0x405d51
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405bd6
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.0040257c
cmp ebx, eax
jne 0x405c88
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405dc4
mov edx, eax
mov ebx, dword [0x4d48c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405cef
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405ced
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405cef
xor edi, edi
cmp byte [esp], 0
je 0x405d18
mov ebx, dword [esi]
test bl, 1
jne 0x405d31
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.0040257c
cmp ebx, eax
jne 0x405cf5
mov byte [esp + 1], 1
jmp 0x405d31
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.0040257c
cmp ebx, eax
jne 0x405d18
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405ca2
cmp byte [esp], 0
je 0x405d51
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 0x406acc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d4050], 0
je 0x406b2d
cmp word [0x4d432c], 0xd7b2
jne 0x406af5
cmp dword [0x4d4334], 0
jbe 0x406af5
mov eax, 0x4d4328
call dword [0x4d4344]
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 0x406b58
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d1028], 0
jne 0x406b49
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406cd8
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 [0x4d102c], 0
je 0x406d03
mov edx, edi
mov eax, esi
call dword [0x4d102c]
mov ebx, eax
jmp 0x406d14
mov eax, 8
call fcn.00404394
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d4051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406ca0
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 0x406d49
mov edx, 8
mov eax, ebx
call fcn.004043b0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408f5c
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 0x4090c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406e1c
cmp si, word [0x4d17dc]
jb 0x408ff4
cmp si, word [0x4d19dc]
ja 0x408ff4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408ff4
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4d17dc]
jae 0x408fce
mov edi, ebx
dec edi
jmp 0x408fef
cmp si, word [ebx*8 + 0x4d17dc]
jbe 0x408fde
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408fef
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d17e0]
call fcn.00408e6c
jmp 0x408ff4
cmp edi, dword [ebp - 8]
jae 0x408fb8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4090a3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4090a3
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.0040790c
push dword [ebp - 0x160]
push 0x4090dc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040790c
push dword [ebp - 0x164]
push 0x4090ec
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040790c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407b44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090c8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406e7c
ret
Function at 0x409274
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 0x409377
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d6b51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4d6b6a]
jne 0x4092c0
mov eax, esi
mov edx, 0x4d6b6c
mov ecx, 0x55
call fcn.0040790c
push 0x4d6b51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409361
push 0x4d6b51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406e1c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40932f
cmp byte [0x4d6b50], 0
je 0x4092f4
mov edx, esi
mov eax, ebx
call fcn.00409158
jmp 0x40932f
mov edx, esi
mov eax, ebx
call fcn.00408f5c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40932f
cmp dword [esi], 0
je 0x409318
mov eax, esi
mov edx, 0x409390
call fcn.00407a64
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408f5c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407a64
push 0x4d6b51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4d6b6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407880
push eax
push 0x4d6b6c
call sub.kernel32.dll_lstrcpynW
push 0x4d6b51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40937e
lea eax, [ebp - 4]
call fcn.00406e1c
ret
Function at 0x4095ac
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.00406f00
xor eax, eax
push ebp
push 0x4097d1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4095ec
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409606
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407880
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4097bb
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096d5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096d5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40981c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096d5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40981c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096d5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409850
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096d5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409884
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4097bb
xor eax, eax
push ebp
push 0x4097b4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004093b8
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 0x409744
mov eax, dword [ebp - 0x10]
call fcn.00404394
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.004078d0
jmp 0x40978f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4098c4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40978f
mov eax, dword [ebp - 0x10]
call fcn.00404394
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4098c4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004078d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097bb
cmp dword [ebp - 8], 0
je 0x4097aa
mov eax, dword [ebp - 8]
call fcn.004043b0
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 0x4097d8
lea eax, [ebp - 4]
call fcn.00406e1c
ret
Function at 0x409b10
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.00406f00
xor eax, eax
push ebp
push 0x409bd0
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.0040790c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407abc
mov eax, dword [ebx]
call fcn.004099d8
test al, al
jne 0x409bad
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040790c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407abc
mov eax, dword [ebx]
call fcn.004099d8
test al, al
jne 0x409bad
mov eax, ebx
call fcn.00406e1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409bd7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406e7c
lea eax, [ebp - 4]
call fcn.00406e1c
ret

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

Disassembly:
cmp eax, edx
je 0x41b47d
test eax, edx
je 0x41b480
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41b43b
movzx eax, word [eax]
sub eax, ecx
jmp 0x41b462
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 0x41b463
add ecx, 4
js 0x41b453
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41b460
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41b462
xor eax, eax
ret
test eax, eax
je 0x41b48c
test edx, edx
jne 0x41b42c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00407880
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41c382
test ah, 4
je 0x41c37b
test bl, bl
jne 0x41c340
mov al, 1
jmp 0x41c3a9
test al, 0x10
je 0x41c348
xor eax, eax
jmp 0x41c3a9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41c36c
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41c3a9
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41c3a9
test al, 0x10
sete al
jmp 0x41c3a9
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41c3a3
cmp ebx, 3
je 0x41c3a3
cmp ebx, 0x7b
je 0x41c3a3
mov eax, esi
call fcn.0041c2d8
test al, al
jne 0x41c3a7
xor eax, eax
jmp 0x41c3a9
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41c3b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00407880
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41c457
test esi, 0x400
jne 0x41c3ec
test esi, 0x10
setne bl
jmp 0x41c471
cmp byte [esp], 0
je 0x41c420
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41c471
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41c471
test esi, 0x10
je 0x41c42c
mov bl, 1
jmp 0x41c471
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41c453
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41c471
mov bl, 1
jmp 0x41c471
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x41c46b
cmp eax, 3
je 0x41c46b
cmp eax, 0x7b
jne 0x41c46f
xor ebx, ebx
jmp 0x41c471
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41fabc
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 0x41faf5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406f84
jmp 0x41fafe
mov eax, ebx
mov edx, esi
call fcn.004071dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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