joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f024c
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404e78
xor eax, eax
push ebp
push 0x4f02e2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404a60
xor esi, esi
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x4f02c5
push 4
mov eax, dword [ebp - 8]
call fcn.00404e88
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
jbe 0x4f02bf
lea eax, [ebp - 0x24]
push eax
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4f02b9
mov esi, dword [ebp - 0x20]
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f02e9
lea eax, [ebp - 8]
mov edx, 2
call fcn.004049ec
ret

Function at 0x4f0a18
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4f0a20
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4f0b92
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x44]
mov bl, 0x41
lea eax, [ebp - 0xc]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.004030dc
mov edx, 0x4f0ba0
lea eax, [ebp - 0x10]
mov cl, 2
call fcn.004030ac
lea edx, [ebp - 0x10]
lea eax, [ebp - 5]
mov cl, 4
call fcn.004030e8
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00404bb0
lea eax, [ebp - 0x14]
mov edx, 0x4f0bac
call fcn.00404c90
mov eax, dword [ebp - 0x14]
call fcn.00404e88
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 6
ja case.0x4f0aa3.0
jmp dword [eax*4 + 0x4f0aaa]
lea eax, [ebp - 0x18]
lea edx, [ebp - 5]
call fcn.00404c2c
mov edx, dword [ebp - 0x18]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x4f0aa3.0
lea eax, [ebp - 0x1c]
lea edx, [ebp - 5]
call fcn.00404c2c
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x4f0aa3.0
lea eax, [ebp - 0x28]
lea edx, [ebp - 5]
call fcn.00404c2c
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0040a274
push dword [ebp - 0x24]
push 0x4f0bb8
lea eax, [ebp - 0x2c]
lea edx, [ebp - 5]
call fcn.00404c2c
push dword [ebp - 0x2c]
push 0x4f0bc4
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404d48
mov edx, dword [ebp - 0x20]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x4f0aa3.0
lea eax, [ebp - 0x30]
lea edx, [ebp - 5]
call fcn.00404c2c
mov edx, dword [ebp - 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x4f0aa3.0
lea eax, [ebp - 0x34]
lea edx, [ebp - 5]
call fcn.00404c2c
mov edx, dword [ebp - 0x34]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp bl, 0x5b
jne 0x4f0a43
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f0b99
lea eax, [ebp - 0x34]
mov edx, 9
call fcn.004049ec
ret
Function at 0x4f12d4
Capabilities:
Get file system object information

Disassembly:
add esp, 0xfffffea0
push 0x4009
push 0x160
lea edx, [esp + 8]
push edx
push 0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
ret

Function at 0x4f12fc
Capabilities:
Get file system object information

Disassembly:
add esp, 0xfffffea0
push 0x400b
push 0x160
lea edx, [esp + 8]
push edx
push 0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
ret

Function at 0x4f167c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4f1777
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004f23c0
lea eax, [ebx + 0x354]
push eax
call sub.shell32.dll_SHGetDesktopFolder
lea eax, [ebp - 8]
push eax
push 0x11
mov eax, ebx
call fcn.0046e5b4
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov edx, dword [ebp - 8]
xor eax, eax
call fcn.004f1158
mov edi, eax
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x354]
call fcn.004f11d0
push edi
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, dword [ebx + 0x26c]
call fcn.00447f74
mov esi, eax
mov edx, 1
mov eax, esi
call fcn.00446fa4
mov eax, edi
call fcn.004f12d4
mov edx, eax
mov eax, esi
call fcn.00446ea4
mov eax, edi
call fcn.004f12fc
mov edx, eax
mov eax, esi
call fcn.00446efc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x503aec]
push eax
push 0
push edi
mov eax, dword [ebx + 0x354]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
push esi
mov ecx, 0x40000000
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004f1788
mov eax, dword [ebx + 0x26c]
call fcn.00447ea8
mov dword [ebx + 0x344], eax
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f177e
lea eax, [ebp - 0xc]
call fcn.00406628
lea eax, [ebp - 4]
call fcn.004049c8
ret
Function at 0x4f238b
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffea0
mov ebx, eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4643c0]
call fcn.0047530c
mov edx, eax
mov eax, ebx
call fcn.0044a604
push 0x4001
push 0x160
lea eax, [esp + 8]
push eax
push 0
push 0x4f23bc
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4f23b2
mov edx, eax
mov eax, dword [ebx + 0x234]
call fcn.00475668
mov eax, dword [ebx + 0x234]
mov byte [eax + 0x42], 1
add esp, 0x160
pop ebx
ret

Function at 0x4fac08
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, eax
mov ebx, dword [0x5037b4]
mov eax, dword [0x504e98]
call fcn.00403b94
mov eax, dword [ebx]
mov eax, dword [eax + 0x324]
call fcn.00403b94
mov eax, dword [ebx]
mov eax, dword [eax + 0x328]
call fcn.00403b94
mov eax, dword [ebx]
mov eax, dword [eax + 0x32c]
call fcn.00403b94
mov eax, dword [ebx]
mov eax, dword [eax + 0x334]
call fcn.00403b94
mov eax, dword [ebx]
mov eax, dword [eax + 0x338]
call fcn.00403b94
mov eax, dword [0x5037b0]
mov eax, dword [eax]
call fcn.00403b94
mov eax, dword [0x503950]
mov eax, dword [eax]
call fcn.00403b94
mov eax, dword [0x503a9c]
mov eax, dword [eax]
call fcn.00403b94
mov eax, dword [0x5039f4]
mov eax, dword [eax]
call fcn.00403b94
mov eax, dword [0x503c10]
mov eax, dword [eax]
call fcn.00403b94
mov eax, dword [ebx]
mov eax, dword [eax + 0x320]
call fcn.00403b94
mov eax, dword [0x504e94]
call fcn.00403b94
mov eax, dword [0x504e90]
call fcn.00403b94
mov eax, dword [ebx]
call fcn.00403b94
mov eax, dword [0x503b20]
mov eax, dword [eax]
call fcn.00403b94
mov eax, dword [0x503ae8]
mov eax, dword [eax]
call fcn.00403b94
mov eax, dword [0x5036e0]
mov eax, dword [eax]
call fcn.00403b94
mov eax, dword [edi + 0x3c8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4fad0f
inc ebx
xor esi, esi
mov eax, dword [edi + 0x3c8]
mov edx, esi
call fcn.0041ab1c
xor edx, edx
call fcn.0040275c
inc esi
dec ebx
jne 0x4facf7
mov eax, dword [edi + 0x3c8]
call fcn.00403b94
cmp dword [0x504e80], 0
je 0x4fad32
mov edx, 0x33fb8
mov eax, dword [0x504e80]
call fcn.0040275c
mov eax, dword [0x503a8c]
mov eax, dword [eax]
mov byte [eax + 0x5b], 0
xor edx, edx
mov eax, edi
call fcn.004819b8
push 0
mov eax, dword [0x503a8c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [edi + 0x6e8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4fad81
inc ebx
xor esi, esi
mov eax, dword [edi + 0x6e8]
mov edx, esi
call fcn.0041ab1c
xor edx, edx
call fcn.0040275c
inc esi
dec ebx
jne 0x4fad69
mov eax, dword [edi + 0x6e8]
call fcn.00403b94
pop edi
pop esi
pop ebx
ret

Function at 0x4fb450
Capabilities:
Hide graphical window

Disassembly:
cmp byte [0x503684], 0
jne 0x4fb46b
push 0
mov eax, dword [0x503a8c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x5037e0]
mov eax, dword [eax]
call fcn.004dfe58
ret
Function at 0x402ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402f68
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f48
xor eax, eax
push ebp
push 0x402f41
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402f84
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f48
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403834
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x610044], 0
je 0x403895
cmp word [0x610218], 0xd7b2
jne 0x40385d
cmp dword [0x610220], 0
jbe 0x40385d
mov eax, 0x610214
call dword [0x610230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40905c
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 0x4038bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x4038b1
push 0
push 0x409054
push 0x40905c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4046d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40473e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403c00
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ac4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404728
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404745
lea eax, [ebp - 0x10]
call fcn.004039b8
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403d88
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x405955
test al, 0x10
jne 0x405959
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4065b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4065e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403aa8
jmp 0x4065f2
mov eax, ebx
mov edx, esi
call fcn.00403a0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4065fc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40661d
mov al, byte [esp]
jmp 0x40661f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406cb4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406b1c
mov eax, dword [0x60f80c]
cmp byte [eax], 0
je 0x406d30
mov eax, dword [0x60f768]
call fcn.00402a40
call fcn.00402968
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405a84
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406d78
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406d66
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x60f748]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x610660]
call fcn.004040a8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x408548
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x408508
call fcn.00404950
xor eax, eax
push ebp
push 0x408653
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x408668
call fcn.0040593c
test al, al
jne 0x40857e
mov eax, 0x408668
call fcn.00405a68
mov eax, 0x40867c
call fcn.0040593c
test al, al
je 0x40859f
push 0
push 0x408688
push 0x40868c
push 0
call sub.user32.dll_MessageBoxA_1
mov edx, 0x409294
mov eax, 0x610798
mov ecx, 0xda2a8
call fcn.00403aa8
mov edx, dword [0x610798]
mov eax, 0x408698
call fcn.0040832c
mov eax, 0x40867c
call fcn.0040593c
test al, al
je 0x4085e4
push 0
push 0x408688
push 0x4086b0
push 0
call sub.user32.dll_MessageBoxA_1
mov edx, 0x4e353c
mov eax, 0x610798
mov ecx, 0x12c1bf
call fcn.00403aa8
mov edx, dword [0x610798]
mov eax, 0x4086bc
call fcn.0040832c
mov eax, 0x40867c
call fcn.0040593c
test al, al
je 0x408629
push 0
push 0x408688
push 0x4086d0
push 0
call sub.user32.dll_MessageBoxA_1
mov edx, 0x4086bc
mov eax, 0x408698
call fcn.004083ac
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40865a
ret
Function at 0x40903d
Capabilities:
Encode data using xor

Disassembly:
or cl, cl
jne 0x408291
or eax, eax
jns fcn.0040828c
neg eax
call fcn.0040828c
mov ax, 0x2d
mov word [esi - 2], ax
sub esi, 2
inc ecx
ret
or cl, cl
jne fcn.00408364
mov ecx, 0xa
test dword [eax + 4], 0x80000000
je fcn.00408364
push dword [eax + 4]
push dword [eax]
mov eax, esp
neg dword [esp]
adc dword [esp + 4], 0
neg dword [esp + 4]
call fcn.00408364
inc ecx
mov word [esi - 2], 0x2d
sub esi, 2
add esp, 8
ret
and al, 0xdf
mov cl, al
mov eax, 1
mov ebx, dword [ebp - 0xc]
cmp ebx, dword [ebp + 8]
jg case.default.0x40905d
inc dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
lea esi, [esi + ebx*8]
mov eax, dword [esi]
movzx edx, byte [esi + 4]
jmp dword [edx*4 + 0x409064]
xor eax, eax
call fcn.004092c4
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
sub ecx, edx
shr ecx, 1
mov ebx, dword [ebp - 4]
call fcn.00408e40
lea esi, [ebp - 0x66]
mov edx, dword [ebp - 0x20]
cmp edx, 0x20
jbe 0x4090d2
xor edx, edx
mov ebx, ecx
sub cl, 0x44
je 0x40832c
mov ecx, 0x10
cmp bl, 0x58
je 0x40832c
mov ecx, 0xa
cmp bl, 0x55
je 0x40832c
jmp case.0x40905d.1
lea esi, [ebp - 0x86]
mov edx, dword [ebp - 0x20]
mov ebx, ecx
cmp edx, 0x10
jbe 0x40910d
xor edx, edx
sub cl, 0x44
je 0x408270
mov ecx, 0x10
cmp bl, 0x58
je 0x408270
mov ecx, 0xa
cmp bl, 0x55
je 0x408270
jmp case.0x40905d.1
cmp cl, 0x53
jne case.0x40905d.1
mov eax, esi
mov ecx, 1
jmp 0x409186
xor ecx, ecx
ret
cmp cl, 0x53
jne case.0x40905d.1
movzx ecx, byte [eax]
inc eax
mov esi, 0x404d38
jmp 0x4091a2
add esi, dword [ebp - 4]
mov edx, eax
lea eax, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 4]
call esi
pop ebx
mov esi, dword [ebp - 0x10]
jmp 0x4091d5
or esi, esi
je 0x409176
mov ecx, dword [esi - 4]
shr ecx, 1
cmp ecx, dword [ebp - 0x20]
ja 0x4091e4
ret
mov ecx, dword [ebp - 0x20]
ret
mov bh, 0
mov esi, eax
mov bl, 0
cmp cl, 0x47
je 0x409278
mov bl, 1
cmp cl, 0x45
je 0x409278
mov bl, 2
cmp cl, 0x46
je 0x409259
mov bl, 3
cmp cl, 0x4e
je 0x409259
cmp cl, 0x4d
jne case.0x40905d.1
mov bl, 4
mov eax, 0x12
mov edx, dword [ebp - 0x20]
cmp edx, eax
jbe 0x40928a
mov edx, 2
cmp cl, 0x4d
jne 0x40928a
movzx edx, byte [0x41ab72]
jmp 0x40928a
mov eax, dword [ebp - 0x20]
mov edx, 3
cmp eax, 0x12
jbe 0x40928a
mov eax, 0xf
push ebx
push eax
push edx
lea eax, [ebp - 0xa6]
mov edx, esi
movzx ecx, bh
mov ebx, dword [ebp - 4]
call fcn.00408ee4
mov ecx, eax
lea edx, [ebp - 0xa6]
lea eax, [ebp - 0x10]
mov ebx, dword [ebp - 4]
call fcn.00404d48
mov esi, dword [ebp - 0x10]
or esi, esi
je 0x409176
mov ecx, dword [esi - 4]
shr ecx, 1
ret

Function at 0x40b8ac
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 0x40b8e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405008
jmp 0x40b8ee
mov eax, ebx
mov edx, esi
call fcn.00404ecc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b8f8
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 0x40b91a
movzx eax, word [esp]
jmp 0x40b91c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40da63
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404ac0
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x40da86
mov eax, edi
add eax, eax
call fcn.00402e24
mov esi, eax
jmp 0x40da88
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40dac1
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40daab
mov eax, esp
cmp esi, eax
je 0x40dace
mov eax, esi
call fcn.00402e40
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40db08
cmp bl, 0
je 0x40db04
cmp bl, 0x41
jl 0x40daff
cmp bl, 0x5a
jg 0x40daff
or bl, 0x20
xor al, bl
inc esi
jmp 0x40dae3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40da48

Function at 0x40e6f8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e73e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040e68c
mov eax, dword [ebp - 4]
call fcn.00404f58
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 0x40e745
lea eax, [ebp - 4]
call fcn.00404ebc
ret

Function at 0x40e95c
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 0x40e9f3
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40e9a7
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00405008
jmp 0x40e9dd
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x40e9c0
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404f20
jmp 0x40e9d3
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040e81c
mov ebx, eax
test esi, esi
je 0x40e9d3
dec esi
jmp 0x40e9ae
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404ecc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9fa
lea eax, [ebp - 4]
call fcn.00404ebc
ret
Function at 0x40ea04
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.00408bd8
add esp, 0x208
pop ebx
ret

Function at 0x40eb68
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 0x40eca0
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_1
test eax, eax
jne 0x40ec8a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40ebc5
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40ec8a
cmp dword [ebp - 0x14], 0
jne 0x40ebdc
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404ecc
mov bl, 1
jmp 0x40ec8a
cmp dword [ebp - 0x14], 0x70000000
jb 0x40ebea
call fcn.0040c210
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00405008
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.004056e0
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x40eb8e
test eax, eax
jne 0x40ec8a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40ec38
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40ec8a
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x40ec40
dec esi
test esi, esi
je 0x40ec4f
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x40ec3f
cmp dword [ebp - 0x10], 7
jne 0x40ec5a
test esi, esi
je 0x40ec5a
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00405134
cmp dword [ebp - 0x10], 7
jne 0x40ec7d
test esi, esi
je 0x40ec7d
lea eax, [ebp - 4]
call fcn.004056e0
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404ecc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eca7
lea eax, [ebp - 4]
call fcn.00404ebc
ret

Function at 0x40f6e4
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x41cd98
mov eax, esi
mov edx, 8
test al, 1
je 0x40f700
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f702
shr eax, 1
dec edx
jne 0x40f6f3
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40f6ec
pop esi
ret

Function at 0x40f718
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x41cd94], 0
jne 0x40f73b
call fcn.0040f6e4
push 1
push 0x41cd94
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40f766
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x41cd98]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40f741
mov eax, ebx
pop edi
pop esi
pop ebx
ret