joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f049
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
jne 0x41f069
xor eax, eax
jmp 0x41f1d2
mov eax, dword [ebp + 8]
sar eax, 5
lea ebx, [eax*4 + 0x43a320]
mov eax, dword [ebp + 8]
and eax, 0x1f
lea esi, [eax + eax*8]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41f099
push 2
push edi
push dword [ebp + 8]
call fcn.0041d948
add esp, 0xc
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41f16b
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x41f1a6
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x418]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
cmp ecx, dword [ebp + 0x10]
jae 0x41f0f4
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
inc ecx
mov dl, byte [edx]
cmp dl, 0xa
jne 0x41f0e5
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 4]
mov byte [eax], dl
inc eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x400
jl 0x41f0c8
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0x418]
push edi
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f134
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x41f13d
mov eax, dword [ebp - 8]
xor edi, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x41f0b9
jmp 0x41f13f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x41f1cf
cmp dword [ebp + 8], edi
je 0x41f1a6
push 5
pop esi
cmp dword [ebp + 8], esi
jne 0x41f198
call fcn.0041932a
mov dword [eax], 9
call fcn.00419333
mov dword [eax], esi
jmp 0x41f1a1
lea ecx, [ebp - 0x14]
push edi
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f18d
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x41f13f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x41f13f
push dword [ebp + 8]
call fcn.004192bc
pop ecx
or eax, 0xffffffff
jmp 0x41f1d2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41f1bb
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x41f062
call fcn.0041932a
mov dword [eax], 0x1c
call fcn.00419333
mov dword [eax], edi
jmp 0x41f1a1
sub eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42079a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 3
push 0x1f03ff
push str.C:_Program_Files_Gold_Miner_crtlog.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
je 0x420818
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x804]
push dword [ebp + 8]
push eax
call fcn.00419861
add esp, 0xc
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x42081c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov ebx, eax
push esi
push 0x80
push 4
push esi
push 3
push 0x1f03ff
push str.C:_Program_Files_Gold_Miner_crtlog.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
lea eax, [ebp - 4]
push esi
push eax
push 0x400
push ebx
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 4]
lea eax, [ebp - 0x808]
push ebx
push str.Win32__d:__s_r_n
push eax
call fcn.00417a28
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, esi
je 0x4208c6
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x808]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404738
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40477a
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x40479a
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00407d00
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x4049f0
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.00406e34
test esi, esi
jne 0x404a26
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.00406fbc
jmp 0x404a44
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004048d4
mov edi, eax
test esi, esi
je 0x404a44
cmp dword [ebx], 0
je 0x404a44
dec esi
jmp 0x404a2d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x405b58
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.00405f50
mov byte [esp], al
cmp byte [esp], 0
jne 0x405ce4
test edi, edi
je 0x405ce4
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405c1b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405bf6
cmp edi, 0xffffffff
je 0x405bb7
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405bb7
mov byte [esp], 0
jmp 0x405ce4
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405bf6
test ebx, ebx
jne 0x405bec
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004027cc
test eax, eax
jne 0x405bec
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405ce4
call 0x406074
dec ebp
test ebp, ebp
jg 0x405b9c
cmp edi, 0xffffffff
je 0x405c1b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405c19
mov byte [esp], 0
jmp 0x405ce4
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405b66
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004027cc
cmp ebx, eax
jne 0x405c1b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405d54
mov edx, eax
mov ebx, dword [reloc.kernel32.dll_TryEnterCriticalSection]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405c82
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405c80
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405c82
xor edi, edi
cmp byte [esp], 0
je 0x405cab
mov ebx, dword [esi]
test bl, 1
jne 0x405cc4
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004027cc
cmp ebx, eax
jne 0x405c88
mov byte [esp + 1], 1
jmp 0x405cc4
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004027cc
cmp ebx, eax
jne 0x405cab
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405c35
cmp byte [esp], 0
je 0x405ce4
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 0x406a90
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x700058], 0
je 0x406af7
cmp word [0x700344], 0xd7b2
jne 0x406ab9
cmp dword [reloc.kernel32.dll_LocalAlloc], 0
jbe 0x406ab9
mov eax, 0x700340
call dword [0x70035c]
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, 0x406b24
call fcn.0040788c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6f5034], 0
jne 0x406b13
push 0
push 0x6f59ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406cf0
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 [0x6f5038], 0
je 0x406d1b
mov edx, edi
mov eax, esi
call dword [0x6f5038]
mov ebx, eax
jmp 0x406d2c
mov eax, 8
call fcn.00404560
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x700059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406cb8
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 0x406d61
mov edx, 8
mov eax, ebx
call fcn.0040457c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4098f0
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 0x409a55
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406e34
cmp si, word [0x6f5a08]
jb 0x409988
cmp si, word [0x6f5c08]
ja 0x409988
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409988
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x6f5a08]
jae 0x409962
mov edi, ebx
dec edi
jmp 0x409983
cmp si, word [ebx*8 + 0x6f5a08]
jbe 0x409972
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409983
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x6f5a0c]
call fcn.00409800
jmp 0x409988
cmp edi, dword [ebp - 8]
jae 0x40994c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409a37
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409a37
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.00407d00
push dword [ebp - 0x160]
push 0x409a70
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407d00
push dword [ebp - 0x164]
push 0x409a80
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407d00
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407f38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a5c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406e94
ret
Function at 0x409c08
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 0x409d0b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x702b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x702ba0]
jne 0x409c54
mov eax, esi
mov edx, 0x702ba2
mov ecx, 0x55
call fcn.00407d00
push 0x702b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409cf5
push 0x702b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406e34
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409cc3
cmp byte [0x702b84], 0
je 0x409c88
mov edx, esi
mov eax, ebx
call fcn.00409aec
jmp 0x409cc3
mov edx, esi
mov eax, ebx
call fcn.004098f0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409cc3
cmp dword [esi], 0
je 0x409cac
mov eax, esi
mov edx, 0x409d24
call fcn.00407e58
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004098f0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407e58
push 0x702b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x702ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407c54
push eax
push 0x702ba2
call sub.kernel32.dll_lstrcpynW
push 0x702b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d12
lea eax, [ebp - 4]
call fcn.00406e34
ret
Function at 0x409f40
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.00406f18
xor eax, eax
push ebp
push 0x40a165
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409f80
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409f9a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407c54
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a14f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a174
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a069
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a174
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a069
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a1b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a069
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a1b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a069
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a1e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a069
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a218
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a14f
xor eax, eax
push ebp
push 0x40a148
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409d4c
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 0x40a0d8
mov eax, dword [ebp - 0x10]
call fcn.00404560
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.00407cac
jmp 0x40a123
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a258
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a123
mov eax, dword [ebp - 0x10]
call fcn.00404560
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a258
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407cac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a14f
cmp dword [ebp - 8], 0
je 0x40a13e
mov eax, dword [ebp - 8]
call fcn.0040457c
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 0x40a16c
lea eax, [ebp - 4]
call fcn.00406e34
ret
Function at 0x40a448
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.00406f18
xor eax, eax
push ebp
push 0x40a508
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.00407d00
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407eb0
mov eax, dword [ebx]
call fcn.0040a310
test al, al
jne 0x40a4e5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407d00
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407eb0
mov eax, dword [ebx]
call fcn.0040a310
test al, al
jne 0x40a4e5
mov eax, ebx
call fcn.00406e34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a50f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406e94
lea eax, [ebp - 4]
call fcn.00406e34
ret

Function at 0x41f36c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41f3c5
test eax, edx
je 0x41f3c8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41f383
movzx eax, word [eax]
sub eax, ecx
jmp 0x41f3aa
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 0x41f3ab
add ecx, 4
js 0x41f39b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41f3a8
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41f3aa
xor eax, eax
ret
test eax, eax
je 0x41f3d4
test edx, edx
jne 0x41f374
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x41fb98
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 0x41fbb0
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41fbb8
mov al, 1
jmp 0x41fbd5
movzx esi, word [ebp]
mov eax, esi
call fcn.00410594
test al, al
jne 0x41fbd1
cmp si, 0x5f
je 0x41fbd1
xor eax, eax
jmp 0x41fbd3
mov al, 1
xor al, 1
test al, al
jne 0x41fc65
test bl, bl
je 0x41fc25
mov eax, ebp
test eax, eax
je 0x41fbec
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41fc61
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.00410620
test al, al
jne 0x41fc19
cmp di, 0x5f
je 0x41fc19
cmp di, 0x2e
je 0x41fc19
xor eax, eax
jmp 0x41fc1b
mov al, 1
test al, al
je 0x41fc65
inc esi
dec ebx
jne 0x41fbf9
jmp 0x41fc61
mov eax, ebp
test eax, eax
je 0x41fc30
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41fc61
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.00410620
test al, al
jne 0x41fc57
cmp di, 0x5f
je 0x41fc57
xor eax, eax
jmp 0x41fc59
mov al, 1
test al, al
je 0x41fc65
inc esi
dec ebx
jne 0x41fc3d
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x420810
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.00407c54
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42087a
test ah, 4
je 0x420873
test bl, bl
jne 0x420838
mov al, 1
jmp 0x4208a1
test al, 0x10
je 0x420840
xor eax, eax
jmp 0x4208a1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x420864
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x4208a1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4208a1
test al, 0x10
sete al
jmp 0x4208a1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x42089b
cmp ebx, 3
je 0x42089b
cmp ebx, 0x7b
je 0x42089b
mov eax, esi
call fcn.004207d0
test al, al
jne 0x42089f
xor eax, eax
jmp 0x4208a1
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4208a8
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.00407c54
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42094f
test esi, 0x400
jne 0x4208e4
test esi, 0x10
setne bl
jmp 0x42096e
cmp byte [esp], 0
je 0x420918
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42096e
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x42096e
test esi, 0x10
je 0x420924
mov bl, 1
jmp 0x42096e
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42094b
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x42096e
mov bl, 1
jmp 0x42096e
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x420968
cmp eax, 3
je 0x420968
cmp eax, 0x7b
je 0x420968
cmp eax, 0x35
jne 0x42096c
xor ebx, ebx
jmp 0x42096e
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x420978
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.00407c54
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4209cd
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4209c7
test ah, 4
je 0x4209c7
test al, 0x10
je 0x4209c7
mov eax, esi
call fcn.00407c54
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4209cd
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x424ac0
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 0x424af9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406fbc
jmp 0x424b02
mov eax, ebx
mov edx, esi
call fcn.00407214
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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