joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dc78
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.00409b30
xor eax, eax
push ebp
push 0x40dd3a
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.0040a530
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a6e0
mov eax, dword [ebx]
call fcn.0040db20
test al, al
jne 0x40dd15
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a530
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a6e0
mov eax, dword [ebx]
call fcn.0040db20
test al, al
jne 0x40dd15
mov eax, ebx
call fcn.00409a3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd41
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409a9c
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x40f570
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 0x41109c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00411088
add esp, 0x208
pop ebx
ret

Function at 0x41c500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41c559
test eax, edx
je 0x41c55c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41c517
movzx eax, word [eax]
sub eax, ecx
jmp 0x41c53e
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x41c53f
add ecx, 4
js 0x41c52f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41c53c
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41c53e
xor eax, eax
ret
test eax, eax
je 0x41c568
test edx, edx
jne 0x41c508
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x421664
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
test eax, eax
jle 0x42169d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409bd4
jmp 0x4216a6
mov eax, ebx
mov edx, esi
call fcn.00409e2c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4216b0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4216d4
movzx eax, word [esp]
jmp 0x4216d6
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x422b08
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 0x422c2f
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00422910
mov esi, eax
mov eax, dword [0x4ac760]
cmp byte [eax], 0
je 0x422bd5
mov eax, dword [0x4ac5bc]
call fcn.00407748
call fcn.004070bc
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x422ad8]
call fcn.0040c664
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x422c48
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x422c11
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4ac58c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b0634]
call fcn.0040cbf8
push eax
call sub.user32.dll_LoadStringW
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 0x422c36
lea eax, [ebp - 4]
mov edx, dword [0x422ad8]
call fcn.0040c788
pop eax
jmp eax
Function at 0x4239c0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x423a03
mov eax, dword [ebp - 0x10c]
mov dword [0x4b08f8], eax
mov eax, 0x4b08fc
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040a530
mov eax, 0x4b0900
call fcn.00409a3c
xor eax, eax
mov dword [0x4b0904], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x4b07bc], 0xa
jl 0x423b59
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x423b64
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x423b59
xor eax, eax
push ebp
push 0x423b52
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x423bc0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x423ab2
cmp dword [ebp - 8], 2
jle 0x423ab2
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x423a85
adc edx, 0
mov eax, 0x4b0900
call fcn.0040a608
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4b0900]
call fcn.0040a494
push eax
push 0
push 0
push 0x423bc0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x423b0c
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x423be0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x423b0c
cmp dword [ebp - 8], 2
jle 0x423b0c
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x423ae1
adc edx, 0
mov eax, 0x4b0900
call fcn.0040a608
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4b0900]
call fcn.0040a494
push eax
push 0
push 0
push 0x423be0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x4b0904
push 0
push 0
push 0x423bf4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x423b39
xor eax, eax
mov dword [0x4b0904], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423b59
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x4ab2c0], 1
mov esp, ebp
pop ebp
ret
Function at 0x425164
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x425184
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42519e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x425199
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x4251a3
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x425211
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42525a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x4251cf
inc dword [ebp - 0xc]
jmp 0x4251e7
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x4251e7
cmp dword [ebp - 0xc], 0
jle 0x4251e7
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x425209
xor eax, eax
jmp 0x425205
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x425204
mov eax, esi
jmp 0x42525d
inc eax
cmp eax, ecx
jle 0x4251f1
inc esi
cmp esi, dword [ebp - 8]
jl 0x4251bb
jmp 0x42525a
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42525a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x425232
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x425254
xor eax, eax
jmp 0x425250
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42524f
mov eax, esi
jmp 0x42525d
inc eax
cmp eax, ecx
jle 0x42523c
inc esi
cmp esi, dword [ebp - 8]
jl 0x42521a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4253cc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4253eb
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x4253fb
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42551d
test ebx, ebx
jl 0x42551d
test esi, esi
jle 0x42551d
mov eax, dword [ebp - 8]
call fcn.0040a494
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040a494
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x4254ba
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42551d
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42549f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42546e
inc dword [ebp - 0x14]
jmp 0x42547e
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42547e
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x425489
or eax, 0xffffffff
jmp 0x42549f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42549c
inc eax
jmp 0x42549f
or eax, 0xffffffff
test eax, eax
jl 0x4254a7
cmp esi, eax
jg 0x42545c
cmp esi, eax
jg 0x4254b2
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x425520
inc edx
dec dword [ebp - 0x1c]
jne 0x425458
jmp 0x42551d
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42551d
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x425504
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x4254e3
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x4254ee
or eax, 0xffffffff
jmp 0x425504
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x425501
inc eax
jmp 0x425504
or eax, 0xffffffff
test eax, eax
jl 0x42550c
cmp esi, eax
jg 0x4254cc
cmp esi, eax
jg 0x425517
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x425520
inc edx
dec dword [ebp - 0x1c]
jne 0x4254c8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x431d98
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x431da0
mov eax, edx
pop esi
pop ebx
ret

Function at 0x434874
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x43488b
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x43487b
mov eax, ecx
pop ebx
ret
Function at 0x491a3c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x491a8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00491434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x491aa3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x49befc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x49bf44
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0049be90
mov eax, dword [ebp - 4]
call fcn.0040a494
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bf4b
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x49c164
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x49c1fb
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x49c1af
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00409bd4
jmp 0x49c1e3
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
cmp word [ebx], 0
jne 0x49c1c6
lea eax, [ebp - 4]
call fcn.00409a3c
jmp 0x49c1d9
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0049c01c
mov ebx, eax
test esi, esi
je 0x49c1d9
dec esi
jmp 0x49c1b6
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00409e2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c202
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x49c20c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041d3b0
add esp, 0x208
pop ebx
ret

Function at 0x49c26c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041d3b0
add esp, 0x208
pop ebx
ret
Function at 0x49c3cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x49c504
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x49c4ec
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x49c429
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x49c4ec
cmp dword [ebp - 0x14], 0
jne 0x49c43e
mov eax, dword [ebp - 0xc]
call fcn.00409a3c
mov bl, 1
jmp 0x49c4ec
cmp dword [ebp - 0x14], 0x70000000
jb 0x49c44c
call fcn.00422c6c
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00409bd4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00409fd0
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x49c3f2
test eax, eax
jne 0x49c4ec
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x49c49a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x49c4ec
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x49c4a2
dec esi
test esi, esi
je 0x49c4b1
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x49c4a1
cmp dword [ebp - 0x10], 7
jne 0x49c4bc
test esi, esi
je 0x49c4bc
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040a608
cmp dword [ebp - 0x10], 7
jne 0x49c4df
test esi, esi
je 0x49c4df
lea eax, [ebp - 4]
call fcn.00409fd0
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00409e2c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c50b
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x49dbc0
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4b3884
mov eax, esi
mov edx, 8
test al, 1
je 0x49dbdc
shr eax, 1
xor eax, 0xedb88320
jmp 0x49dbde
shr eax, 1
dec edx
jne 0x49dbcf
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x49dbc8
pop esi
ret

Function at 0x49dbf4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4b3880], 0
jne 0x49dc1e
call fcn.0049dbc0
mov dword [esp], 0x4b3880
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x49dc48
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4b3884]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x49dc24
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4a083c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 9]
mov eax, ebx
call fcn.004a07f0
test al, al
jne 0x4a085d
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4a08ab
xor eax, eax
push ebp
push 0x4a089b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040a494
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a08a2
lea eax, [ebp - 9]
call fcn.004a082c
pop eax
jmp eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a0938
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4a0940
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a0aa8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
call fcn.0049c240
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0049bb38
lea eax, [ebp - 0x20]
mov edx, 0x4a0ac4
call fcn.0040a688
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0049be70
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
mov edx, ebx
call fcn.0040a4f4
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0049bd7c
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0049be70
mov eax, dword [ebp - 0x28]
mov ecx, 1
mov edx, eax
mov eax, esi
call fcn.0040a9ac
dec eax
je 0x4a09e2
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x4a0a7e
call sub.kernel32.dll_GetLastError
mov dword [edi], eax
jmp 0x4a0a7e
lea eax, [ebp - 4]
call fcn.0049c54c
cmp dword [ebp - 4], 0
jne 0x4a09fd
lea eax, [ebp - 4]
mov edx, 0x4a0adc
call fcn.00409e74
push 0x4a0af0
push dword [ebp - 4]
push 0x4a0b30
push 0x4a0b40
push 0x4a0b80
lea eax, [ebp - 8]
mov edx, 5
call fcn.0040a768
push 0
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 8]
call fcn.0040a494
push eax
call sub.advapi32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x4a0a46
call sub.kernel32.dll_GetLastError
mov dword [edi], eax
xor ebx, ebx
jmp 0x4a0a7e
mov dword [ebp - 0x18], 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x4a0a75
call sub.kernel32.dll_GetLastError
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0aaf
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00409a9c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409a9c
pop eax
jmp eax
Function at 0x4a0e78
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
call fcn.00423c4c
cmp eax, 2
jne 0x4a0ee0
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4a0e9b
xor eax, eax
jmp 0x4a0eef
lea eax, [esp + 8]
push eax
push 0x4a0ef4
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x4a0ee0
xor eax, eax
jmp 0x4a0eef
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret

Function at 0x4a0f1c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4a0f76
inc esi
xor edi, edi
cmp edi, 1
jne 0x4a0f42
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4a0f50
cmp edi, 1
jle 0x4a0f50
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004a083c
test eax, eax
jne 0x4a0f76
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4a0f76
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4a0f76
inc edi
dec esi
jne 0x4a0f32
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4a0f80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4a0fa4
mov eax, dword [ebp - 4]
jmp 0x4a0fa7
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret