joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d5bc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0046d1e0
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404874
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46d61a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4798f8]
mov dl, 1
mov eax, dword [0x46d06c]
call fcn.0040a430
call fcn.00403e24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46d624
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404874
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x46d67c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x479ae0]
mov dl, 1
mov eax, dword [0x46d06c]
call fcn.0040a430
call fcn.00403e24
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0046d210
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4711a4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x471315
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4712f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.004045a4
lea eax, [ebp - 0x118]
mov edx, 0x47132c
call fcn.00404684
mov eax, dword [ebp - 0x118]
call fcn.00404874
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x471262
lea eax, [ebp - 0x111]
call fcn.00408dc8
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.004044b4
jmp 0x471269
mov eax, esi
call fcn.004043c4
cmp bl, 0x61
jae 0x47128a
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040adc8
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404418
jmp 0x4712a4
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040ad3c
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404418
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x471338
call fcn.00409528
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404418
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4712f7
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4751d4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4752b9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp edx, 0xffffffff
je 0x475296
cmp edx, 1
jne 0x47521d
mov edx, 0x4752d0
mov eax, ebx
call fcn.004750f0
dec eax
jne 0x475296
mov eax, dword [0x479968]
mov eax, dword [eax]
call fcn.00458c00
jmp 0x475296
cmp edx, 2
jne 0x475231
mov edx, 0x4752f4
mov eax, ebx
call fcn.004750f0
dec eax
jmp 0x475296
cmp edx, 8
jne 0x475296
lea edx, [ebp - 8]
mov eax, dword [ebx + 0x300]
call fcn.00439380
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x475310
call fcn.004046c8
push 5
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x300]
call fcn.00439380
mov eax, dword [ebp - 0xc]
call fcn.00404874
push eax
push 0
lea eax, [ebp - 4]
call fcn.004048cc
push eax
push 0x475320
mov eax, ebx
call fcn.0043fa00
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x479968]
mov eax, dword [eax]
call fcn.00458c00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4752c0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004043e8
lea eax, [ebp - 4]
call fcn.004043c4
ret
Function at 0x404ab8
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.00406ed8
test esi, esi
jne 0x404aee
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.00407060
jmp 0x404b0c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040499c
mov edi, eax
test esi, esi
je 0x404b0c
cmp dword [ebx], 0
je 0x404b0c
dec esi
jmp 0x404af5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405bfc
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.00405ff4
mov byte [esp], al
cmp byte [esp], 0
jne 0x405d88
test edi, edi
je 0x405d88
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405cbf
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405c9a
cmp edi, 0xffffffff
je 0x405c5b
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405c5b
mov byte [esp], 0
jmp 0x405d88
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405c9a
test ebx, ebx
jne 0x405c90
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402940
test eax, eax
jne 0x405c90
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405d88
call 0x406118
dec ebp
test ebp, ebp
jg 0x405c40
cmp edi, 0xffffffff
je 0x405cbf
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405cbd
mov byte [esp], 0
jmp 0x405d88
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405c0a
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402940
cmp ebx, eax
jne 0x405cbf
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405df8
mov edx, eax
mov ebx, dword [0x6d28f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405d26
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405d24
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405d26
xor edi, edi
cmp byte [esp], 0
je 0x405d4f
mov ebx, dword [esi]
test bl, 1
jne 0x405d68
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402940
cmp ebx, eax
jne 0x405d2c
mov byte [esp + 1], 1
jmp 0x405d68
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402940
cmp ebx, eax
jne 0x405d4f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405cd9
cmp byte [esp], 0
je 0x405d88
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 0x406b34
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6d2058], 0
je 0x406b9b
cmp word [0x6d2344], 0xd7b2
jne 0x406b5d
cmp dword [0x6d234c], 0
jbe 0x406b5d
mov eax, 0x6d2340
call dword [0x6d235c]
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, 0x406bc8
call fcn.004077e0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6c0032], 0
jne 0x406bb7
push 0
push 0x6c09c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406d94
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 [0x6c0034], 0
je 0x406dbf
mov edx, edi
mov eax, esi
call dword [0x6c0034]
mov ebx, eax
jmp 0x406dd0
mov eax, 8
call fcn.004046d8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x6d2059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406d5c
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 0x406e05
mov edx, 8
mov eax, ebx
call fcn.004046f4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40943c
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 0x4095a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406ed8
cmp si, word [0x6c0a00]
jb 0x4094d4
cmp si, word [0x6c0c00]
ja 0x4094d4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4094d4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x6c0a00]
jae 0x4094ae
mov edi, ebx
dec edi
jmp 0x4094cf
cmp si, word [ebx*8 + 0x6c0a00]
jbe 0x4094be
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4094cf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x6c0a04]
call fcn.0040934c
jmp 0x4094d4
cmp edi, dword [ebp - 8]
jae 0x409498
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409583
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409583
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.00407b6c
push dword [ebp - 0x160]
push 0x4095bc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407b6c
push dword [ebp - 0x164]
push 0x4095cc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407b6c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407da4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095a8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406f38
ret
Function at 0x409754
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 0x409857
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6d4b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x6d4ba0]
jne 0x4097a0
mov eax, esi
mov edx, 0x6d4ba2
mov ecx, 0x55
call fcn.00407b6c
push 0x6d4b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409841
push 0x6d4b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406ed8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40980f
cmp byte [0x6d4b84], 0
je 0x4097d4
mov edx, esi
mov eax, ebx
call fcn.00409638
jmp 0x40980f
mov edx, esi
mov eax, ebx
call fcn.0040943c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40980f
cmp dword [esi], 0
je 0x4097f8
mov eax, esi
mov edx, 0x409870
call fcn.00407cc4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040943c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407cc4
push 0x6d4b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x6d4ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407ac0
push eax
push 0x6d4ba2
call sub.kernel32.dll_lstrcpynW
push 0x6d4b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40985e
lea eax, [ebp - 4]
call fcn.00406ed8
ret
Function at 0x409a8c
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.00406fbc
xor eax, eax
push ebp
push 0x409cb1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409acc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409ae6
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407ac0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409c9b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409cc0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409bb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409cc0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409bb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409cfc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409bb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409cfc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409bb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d30
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409bb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d64
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409c9b
xor eax, eax
push ebp
push 0x409c94
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409898
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 0x409c24
mov eax, dword [ebp - 0x10]
call fcn.004046d8
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.00407b18
jmp 0x409c6f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409da4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409c6f
mov eax, dword [ebp - 0x10]
call fcn.004046d8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409da4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407b18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c9b
cmp dword [ebp - 8], 0
je 0x409c8a
mov eax, dword [ebp - 8]
call fcn.004046f4
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 0x409cb8
lea eax, [ebp - 4]
call fcn.00406ed8
ret
Function at 0x409f94
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.00406fbc
xor eax, eax
push ebp
push 0x40a054
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.00407b6c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407d1c
mov eax, dword [ebx]
call fcn.00409e5c
test al, al
jne 0x40a031
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407b6c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407d1c
mov eax, dword [ebx]
call fcn.00409e5c
test al, al
jne 0x40a031
mov eax, ebx
call fcn.00406ed8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a05b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406f38
lea eax, [ebp - 4]
call fcn.00406ed8
ret

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

Disassembly:
cmp eax, edx
je 0x41ebc1
test eax, edx
je 0x41ebc4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41eb7f
movzx eax, word [eax]
sub eax, ecx
jmp 0x41eba6
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 0x41eba7
add ecx, 4
js 0x41eb97
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41eba4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41eba6
xor eax, eax
ret
test eax, eax
je 0x41ebd0
test edx, edx
jne 0x41eb70
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x41f42c
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 0x41f444
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41f44c
mov al, 1
jmp 0x41f469
movzx esi, word [ebp]
mov eax, esi
call fcn.0040fdb4
test al, al
jne 0x41f465
cmp si, 0x5f
je 0x41f465
xor eax, eax
jmp 0x41f467
mov al, 1
xor al, 1
test al, al
jne 0x41f4f9
test bl, bl
je 0x41f4b9
mov eax, ebp
test eax, eax
je 0x41f480
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41f4f5
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040fe40
test al, al
jne 0x41f4ad
cmp di, 0x5f
je 0x41f4ad
cmp di, 0x2e
je 0x41f4ad
xor eax, eax
jmp 0x41f4af
mov al, 1
test al, al
je 0x41f4f9
inc esi
dec ebx
jne 0x41f48d
jmp 0x41f4f5
mov eax, ebp
test eax, eax
je 0x41f4c4
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41f4f5
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040fe40
test al, al
jne 0x41f4eb
cmp di, 0x5f
je 0x41f4eb
xor eax, eax
jmp 0x41f4ed
mov al, 1
test al, al
je 0x41f4f9
inc esi
dec ebx
jne 0x41f4d1
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4200d8
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.00407ac0
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x420142
test ah, 4
je 0x42013b
test bl, bl
jne 0x420100
mov al, 1
jmp 0x420169
test al, 0x10
je 0x420108
xor eax, eax
jmp 0x420169
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42012c
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x420169
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x420169
test al, 0x10
sete al
jmp 0x420169
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x420163
cmp ebx, 3
je 0x420163
cmp ebx, 0x7b
je 0x420163
mov eax, esi
call fcn.00420098
test al, al
jne 0x420167
xor eax, eax
jmp 0x420169
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x420170
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.00407ac0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x420217
test esi, 0x400
jne 0x4201ac
test esi, 0x10
setne bl
jmp 0x420236
cmp byte [esp], 0
je 0x4201e0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x420236
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x420236
test esi, 0x10
je 0x4201ec
mov bl, 1
jmp 0x420236
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x420213
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x420236
mov bl, 1
jmp 0x420236
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x420230
cmp eax, 3
je 0x420230
cmp eax, 0x7b
je 0x420230
cmp eax, 0x35
jne 0x420234
xor ebx, ebx
jmp 0x420236
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Function at 0x42475c
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 0x424795
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407060
jmp 0x42479e
mov eax, ebx
mov edx, esi
call fcn.004072b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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