joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d6f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x466188
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00427ff0
test eax, eax
je 0x42d7f8
lea ecx, [esp + 0xc]
call fcn.00401510
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00427ff0
mov ecx, eax
call fcn.004257b0
test eax, eax
je 0x42d7df
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42d7df
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42d7df
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00401710
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42d7c1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42d7df
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x49ac88]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x470c58
call fcn.00401710
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42d840
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00427ff0
test eax, eax
je 0x42d92f
mov ecx, edi
call fcn.00427ff0
mov ecx, eax
call fcn.00425660
test eax, eax
jne 0x42d92f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42d92f
mov eax, dword [0x49ac88]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42d8a2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00427ff0
mov ecx, eax
call fcn.00425890
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42d92f
cmp ebx, eax
jne 0x42d92f
cmp dword [esp + 0x10], eax
jne 0x42d915
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x430560
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x466418
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x430599
inc eax
mov dword [esi + 0x10], eax
jmp 0x4306ac
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4305ad
mov eax, 0xffffffc7
jmp 0x4306ae
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4305be
cmp dword [esi + 8], eax
jne 0x4305ad
cmp dword [esi + 8], eax
jne 0x4305d7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4305d7
mov eax, 0xffffffc7
jmp 0x4306ae
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4305eb
push eax
mov ecx, ebx
call fcn.0042fd90
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401510
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43061c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401530
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042f500
test eax, eax
mov dword [esp + 0x38], eax
je 0x43064f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x470c58
call fcn.00401710
mov eax, dword [esp + 0x38]
jmp 0x4306ae
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004303c0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x430693
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004303e0
mov esi, eax
test esi, esi
jne 0x4306c3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004303c0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x430665
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x470c58
call fcn.00401710
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x470c58
call fcn.00401710
mov eax, esi
jmp 0x4306ae

Function at 0x4337f0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x433850
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x433850
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x433850
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x433850
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x433890
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x40486c
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.00406a24
test esi, esi
jne 0x4048a2
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.00406b7c
jmp 0x4048c0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004047b0
mov edi, eax
test esi, esi
je 0x4048c0
cmp dword [ebx], 0
je 0x4048c0
dec esi
jmp 0x4048a9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4057a0
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.00405b98
mov byte [esp], al
cmp byte [esp], 0
jne 0x40592c
test edi, edi
je 0x40592c
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405863
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40583e
cmp edi, 0xffffffff
je 0x4057ff
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4057ff
mov byte [esp], 0
jmp 0x40592c
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40583e
test ebx, ebx
jne 0x405834
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402770
test eax, eax
jne 0x405834
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40592c
call 0x405cbc
dec ebp
test ebp, ebp
jg 0x4057e4
cmp edi, 0xffffffff
je 0x405863
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405861
mov byte [esp], 0
jmp 0x40592c
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4057ae
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x405863
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040599c
mov edx, eax
mov ebx, dword [0x4ff8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4058ca
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4058c8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4058ca
xor edi, edi
cmp byte [esp], 0
je 0x4058f3
mov ebx, dword [esi]
test bl, 1
jne 0x40590c
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x4058d0
mov byte [esp + 1], 1
jmp 0x40590c
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x4058f3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40587d
cmp byte [esp], 0
je 0x40592c
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 0x4066bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ff058], 0
je 0x406723
cmp word [0x4ff344], 0xd7b2
jne 0x4066e5
cmp dword [0x4ff34c], 0
jbe 0x4066e5
mov eax, 0x4ff340
call dword [0x4ff35c]
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, 0x406750
call fcn.0040725c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4fb032], 0
jne 0x40673f
push 0
push 0x4fb9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4068e0
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 [0x4fb034], 0
je 0x40690b
mov edx, edi
mov eax, esi
call dword [0x4fb034]
mov ebx, eax
jmp 0x40691c
mov eax, 8
call fcn.004044ec
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4ff059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4068a8
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 0x406951
mov edx, 8
mov eax, ebx
call fcn.00404508
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408ba0
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 0x408d05
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406a24
cmp si, word [0x4fba00]
jb 0x408c38
cmp si, word [0x4fbc00]
ja 0x408c38
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408c38
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4fba00]
jae 0x408c12
mov edi, ebx
dec edi
jmp 0x408c33
cmp si, word [ebx*8 + 0x4fba00]
jbe 0x408c22
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408c33
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4fba04]
call fcn.00408ab0
jmp 0x408c38
cmp edi, dword [ebp - 8]
jae 0x408bfc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408ce7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408ce7
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.004075d0
push dword [ebp - 0x160]
push 0x408d20
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004075d0
push dword [ebp - 0x164]
push 0x408d30
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004075d0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407808
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d0c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406a84
ret
Function at 0x408eb8
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 0x408fbb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x501b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x501ba0]
jne 0x408f04
mov eax, esi
mov edx, 0x501ba2
mov ecx, 0x55
call fcn.004075d0
push 0x501b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408fa5
push 0x501b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406a24
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f73
cmp byte [0x501b84], 0
je 0x408f38
mov edx, esi
mov eax, ebx
call fcn.00408d9c
jmp 0x408f73
mov edx, esi
mov eax, ebx
call fcn.00408ba0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408f73
cmp dword [esi], 0
je 0x408f5c
mov eax, esi
mov edx, 0x408fd4
call fcn.00407728
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408ba0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407728
push 0x501b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x501ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040753c
push eax
push 0x501ba2
call sub.kernel32.dll_lstrcpynW
push 0x501b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408fc2
lea eax, [ebp - 4]
call fcn.00406a24
ret
Function at 0x4091f0
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.00406b08
xor eax, eax
push ebp
push 0x409415
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409230
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40924a
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040753c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4093ff
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409424
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409319
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409424
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409319
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409460
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409319
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409460
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409319
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409494
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409319
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4093ff
xor eax, eax
push ebp
push 0x4093f8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408ffc
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 0x409388
mov eax, dword [ebp - 0x10]
call fcn.004044ec
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.00407594
jmp 0x4093d3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409508
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4093d3
mov eax, dword [ebp - 0x10]
call fcn.004044ec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409508
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407594
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093ff
cmp dword [ebp - 8], 0
je 0x4093ee
mov eax, dword [ebp - 8]
call fcn.00404508
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 0x40941c
lea eax, [ebp - 4]
call fcn.00406a24
ret
Function at 0x4096f8
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.00406b08
xor eax, eax
push ebp
push 0x4097b8
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.004075d0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407780
mov eax, dword [ebx]
call fcn.004095c0
test al, al
jne 0x409795
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004075d0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407780
mov eax, dword [ebx]
call fcn.004095c0
test al, al
jne 0x409795
mov eax, ebx
call fcn.00406a24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097bf
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406a84
lea eax, [ebp - 4]
call fcn.00406a24
ret

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

Disassembly:
cmp eax, edx
je 0x41b491
test eax, edx
je 0x41b494
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41b44f
movzx eax, word [eax]
sub eax, ecx
jmp 0x41b476
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 0x41b477
add ecx, 4
js 0x41b467
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41b474
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41b476
xor eax, eax
ret
test eax, eax
je 0x41b4a0
test edx, edx
jne 0x41b440
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x41bafc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x41bb14
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41bb1c
mov al, 1
jmp 0x41bb39
movzx esi, word [ebp]
mov eax, esi
call fcn.0040de38
test al, al
jne 0x41bb35
cmp si, 0x5f
je 0x41bb35
xor eax, eax
jmp 0x41bb37
mov al, 1
xor al, 1
test al, al
jne 0x41bbc9
test bl, bl
je 0x41bb89
mov eax, ebp
test eax, eax
je 0x41bb50
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41bbc5
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040dec4
test al, al
jne 0x41bb7d
cmp di, 0x5f
je 0x41bb7d
cmp di, 0x2e
je 0x41bb7d
xor eax, eax
jmp 0x41bb7f
mov al, 1
test al, al
je 0x41bbc9
inc esi
dec ebx
jne 0x41bb5d
jmp 0x41bbc5
mov eax, ebp
test eax, eax
je 0x41bb94
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41bbc5
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040dec4
test al, al
jne 0x41bbbb
cmp di, 0x5f
je 0x41bbbb
xor eax, eax
jmp 0x41bbbd
mov al, 1
test al, al
je 0x41bbc9
inc esi
dec ebx
jne 0x41bba1
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41c668
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.0040753c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41c6d2
test ah, 4
je 0x41c6cb
test bl, bl
jne 0x41c690
mov al, 1
jmp 0x41c6f9
test al, 0x10
je 0x41c698
xor eax, eax
jmp 0x41c6f9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41c6bc
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41c6f9
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41c6f9
test al, 0x10
sete al
jmp 0x41c6f9
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41c6f3
cmp ebx, 3
je 0x41c6f3
cmp ebx, 0x7b
je 0x41c6f3
mov eax, esi
call fcn.0041c628
test al, al
jne 0x41c6f7
xor eax, eax
jmp 0x41c6f9
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x41c700
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040753c
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41c755
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41c74f
test ah, 4
je 0x41c74f
test al, 0x10
je 0x41c74f
mov eax, esi
call fcn.0040753c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41c755
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
Function at 0x420328
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 0x420361
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406b7c
jmp 0x42036a
mov eax, ebx
mov edx, esi
call fcn.00406dd4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x42105c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x421181
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00420e64
mov esi, eax
mov eax, dword [0x4fe640]
cmp byte [eax], 0
je 0x421129
mov eax, dword [0x4fe3b8]
call fcn.004049bc
call fcn.00404660
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42102c]
call fcn.004085f0
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42119c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x421165
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4fe34c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x501c50]
call fcn.004086e4
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421188
lea eax, [ebp - 4]
mov edx, dword [0x42102c]
call fcn.004085fc
ret