joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d5d9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea edx, [ecx + 0x98]
mov dword [edx], 0x7c
mov dword [edx + 4], 0x16041101
mov eax, dword [ecx + 0x1c]
sub eax, dword [ecx + 0x18]
sar eax, 2
mov dword [edx + 8], eax
mov eax, dword [ecx + 0x18]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x28]
sub eax, dword [ecx + 0x24]
sar eax, 2
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0x24]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 0x124]
push esi
mov esi, dword [ecx + 0x120]
sub eax, esi
sar eax, 2
cmp eax, 1
jbe 0x40d649
mov eax, dword [esi + 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x138]
mov eax, dword [eax + 4]
mov dword [edx + 0x18], eax
mov eax, dword [ecx + 0x150]
mov eax, dword [eax + 4]
jmp 0x40d654
mov eax, 0x43e03c
mov dword [edx + 0x1c], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x44], eax
lea eax, [ecx + 0x48]
push 8
pop esi
cmp dword [eax + 0x14], esi
jb 0x40d664
mov eax, dword [eax]
mov dword [edx + 0x20], eax
lea eax, [ecx + 0x60]
cmp dword [eax + 0x14], esi
jb 0x40d671
mov eax, dword [eax]
mov dword [edx + 0x40], eax
movzx eax, byte [ecx + 0x78]
mov dword [edx + 0x24], eax
mov eax, dword [ecx + 0x8c]
sub eax, dword [ecx + 0x88]
sar eax, 2
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 0x88]
and dword [edx + 0x34], 0
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], 1
mov eax, dword [ecx + 0x94]
mov dword [edx + 0x38], eax
lea eax, [ecx + 0x30]
cmp dword [eax + 0x14], esi
jb 0x40d6b4
mov eax, dword [eax]
mov dword [edx + 0x3c], eax
mov eax, dword [ecx + 0x124]
sub eax, dword [ecx + 0x120]
sar eax, 2
mov dword [edx + 0x48], eax
mov eax, dword [ecx + 0x120]
mov dword [edx + 0x4c], eax
mov eax, dword [ecx + 0x13c]
sub eax, dword [ecx + 0x138]
sar eax, 2
mov dword [edx + 0x50], eax
mov eax, dword [ecx + 0x138]
mov dword [edx + 0x54], eax
mov eax, dword [ecx + 0x154]
sub eax, dword [ecx + 0x150]
sar eax, 2
mov dword [edx + 0x58], eax
mov eax, dword [ecx + 0x150]
mov dword [edx + 0x5c], eax
mov eax, dword [ecx + 0x16c]
sub eax, dword [ecx + 0x168]
sar eax, 2
mov dword [edx + 0x60], eax
mov eax, dword [ecx + 0x168]
mov dword [edx + 0x64], eax
lea eax, [ecx + 0x180]
cmp dword [eax + 0x14], esi
jb 0x40d730
mov eax, dword [eax]
mov dword [edx + 0x68], eax
lea eax, [ecx + 0x198]
cmp dword [eax + 0x14], esi
jb 0x40d740
mov eax, dword [eax]
mov dword [edx + 0x6c], eax
lea eax, [ecx + 0x1b0]
cmp dword [eax + 0x14], esi
jb 0x40d750
mov eax, dword [eax]
add ecx, 0x1c8
mov dword [edx + 0x70], eax
cmp dword [ecx + 0x14], esi
pop esi
jb 0x40d761
mov ecx, dword [ecx]
mov eax, dword [0x4537b8]
mov dword [edx + 0x74], ecx
test eax, eax
je 0x40d778
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 4], eax
jmp 0x40d783
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
mov ecx, dword [ebp - 8]
mov dword [edx + 0x78], ecx
mov eax, edx
leave
ret
Function at 0x40e1dc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40e1ec
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [eax + 0x10]
mov edx, 0x811c9dc5
push 0
pop esi
add edi, edi
je 0x40e20e
movzx eax, byte [esi + ecx]
xor eax, edx
imul edx, eax, 0x1000193
inc esi
cmp esi, edi
jb 0x40e1fd
pop edi
mov eax, edx
pop esi
pop ebp
ret 4

Function at 0x40f3e5
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43699d
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x45200c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x88]
call fcn.004017e5
lea ecx, [esi + 0x70]
call fcn.0040d9a2
lea ecx, [esi + 0x68]
call fcn.00412419
lea ecx, [esi + 0x50]
call fcn.0040d9a2
lea ecx, [esi + 0x48]
call fcn.00412435
lea ecx, [esi + 0x30]
call fcn.0040d9a2
lea ecx, [esi + 0x28]
call fcn.0041244f
push 0x412430
push 3
push 0xc
push esi
call fcn.0042f2f2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x41a0a5
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x437f82
call fcn.00434115
mov esi, ecx
push 8
call fcn.0042f02f
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov edx, dword [edx]
mov dword [eax], edx
mov dword [eax + 4], 0x419f90
xor ebx, ebx
lea edi, [esi + 4]
push edi
push ebx
push eax
push 0x41a230
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x41a0f6
mov eax, esi
call fcn.004340e3
ret 8
push 6
mov dword [edi], ebx
call fcn.004331c9
int3
Function at 0x422d6d
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
xor ebx, ebx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x422d85
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x422d8f
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
pop ecx
pop ecx
test eax, eax
je 0x422df9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, esi
mov eax, dword [eax]
mov dword [ebp - 4], eax
call fcn.0040abca
test al, al
jne 0x422def
cmp dword [ebp - 4], 0xd
jne 0x422df5
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x422dc3
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x422dcd
mov ecx, dword [edi]
push eax
push ecx
push str.Retrying_Rename___s__to___s__due_to_EACCES_error
call fcn.00404e83
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x1f4
jl 0x422d7b
jmp 0x422df5
mov eax, dword [ebp + 8]
mov byte [eax], 1
xor al, al
jmp 0x422dfb
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4231d0
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x437c45
call fcn.00434148
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
lea eax, [edi + 0x14]
mov dword [ebp - 0x18], ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.0040670f
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
mov ecx, esi
call fcn.0042307c
or dword [ebp - 4], 0xffffffff
mov ebx, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42324d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x423244
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x423244
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042f05f
pop ecx
pop ecx
push dword [edi + 4]
mov ecx, dword [ebp - 0x2c]
xor eax, eax
push dword [edi]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042ed86
mov esi, dword [edi + 8]
mov eax, dword [ebp - 0x2c]
push ebx
push esi
push 1
push dword [eax + 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, esi
jne 0x423295
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
call fcn.004340f7
ret 8
push str.Failure_extracting_contents_of_the_application_bundle.
call fcn.00404eb2
mov dword [esp], str.I_O_failure_when_writing_extracted_files.
call fcn.00404eb2
lea eax, [ebp - 0x30]
mov dword [esp], 0x450758
push eax
mov dword [ebp - 0x30], 0x800080a0
call fcn.004307ce
int3
Function at 0x428abd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x45200c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x38], 0
je 0x428b2e
cmp byte [ebx + 0x3d], 0
je 0x428b2e
mov eax, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x43b2c4]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
je 0x428b68
push edi
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [edi]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
mov ecx, dword [esi + 0x20]
call dword [0x43b2c4]
mov ecx, edi
call dword [esi + 0x20]
xor ecx, ecx
pop edi
sub eax, ecx
je 0x428b3e
sub eax, 1
je 0x428b41
dec eax
sub eax, 1
jne 0x428b68
mov byte [ebx + 0x3d], cl
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f021
leave
ret
mov byte [ebx + 0x3d], cl
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x428b5f
push dword [ebx + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x428b68
cmp byte [ebx + 0x3d], 0
sete al
jmp 0x428b30
xor al, al
jmp 0x428b30
Function at 0x401be0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sym._EnterCriticalSection_4
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x401c2b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401c24
test esi, esi
je 0x401c24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401c00
mov dword [esp], 0x408048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401e10
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401f34
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401e9e
cmp eax, 4
jne 0x401ec0
test esi, esi
je 0x401eb2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401ea4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401eff
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401ef1
cmp ecx, 0x40
je 0x401eb2
cmp ecx, 4
je 0x401eb2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401e10
lea esi, [esi]
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x40520c
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
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
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
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406bd0
Capabilities:
Encode data using xor

Disassembly:
xor ebx, ecx
mov edi, 0x11c76482
xor edi, 0x49c5e2fd
mov ecx, edi
xor ecx, 0xffffffff
and ecx, 0x61e55a7b
and edi, 0x9e1aa584
or edi, ecx
mov edx, 0x6f924cde
mov ecx, 0x6894ca3c
xor ecx, edx
xor edi, ecx
mov esi, edi
xor esi, 0xffffffff
and esi, 0x3ea104a5
and edi, 0xc15efb5a
or edi, esi
mov ecx, 0x60e665d8
xor ecx, 0x60a6e1f8
mov esi, 0xd625d04
mov eax, 0xd625d14
xor eax, esi
xor ecx, eax
push 0x4884a826
mov esi, 0x282fc46f
pop eax
xor esi, eax
mov eax, 0x2a97c1bd
mov edx, 0x4a3ca57c
xor edx, eax
xor edx, esi
xor ecx, edx
mov edx, ebx
mov esi, 0
xor esi, edx
mov eax, 4
sub esp, eax
les ecx, [ecx - 0x3176dbcc]
push esi
pop edx
push 0x9cd8d790
mov esi, 0x6327286c
pop eax
xor esi, eax
add esp, esi
mov dword [esp], edx
xor ebx, ebx
mov bl, byte [edi]
add ecx, ebx
mov bl, byte [ecx]
mov edx, 0x7e542d63
add edx, 0xffffffe3
push edx
push 0x4c124181
mov esi, 0x6a883b65
pop edx
xor esi, edx
pop eax
xor esi, eax
xor edx, edx
add edx, esi
mov eax, 0x98c6eb45
xor edx, eax
xor edx, 0x673914ba
and edx, 0xbc79f6ca
mov esp, 0x935e681
xchg byte [ebx + 9], al
salc
xor eax, eax
add eax, ecx
add eax, 0
je 0x406b6d
pop ecx
mov byte [edi], bl
push 0x1b0717bf
mov edx, 0x1b0717be
pop esi
xor edx, esi
sub edi, edx
pop ebx
mov eax, 0x73164921
xor eax, 0x73164921
mov esi, 0x13d763a9
mov edx, 0x13d763a8
xor edx, esi
xor eax, edx
sub ebx, eax
mov edx, 0xfffffffc
add esp, edx
xor eax, eax
add eax, esp
mov dword [eax], ebx
pop esi
and esi, esi
jne 0x406b6d
invalid
inc edi

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404de0
add esp, 0x104
pop ebx
ret
Function at 0x408fbc
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 - 0xc]
mov eax, ebx
call fcn.00408f70
test al, al
jne 0x408fdd
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x409029
xor eax, eax
push ebp
push 0x409019
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403414
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409020
lea eax, [ebp - 0xc]
call fcn.00408fac
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409330
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x40941f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406cf4
mov edx, dword [ebp - 8]
mov ecx, 0x409438
xor eax, eax
call fcn.00409224
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4093ed
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x409350
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.00408dd8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c94
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407284
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x68
call int.00408da8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x404660
call fcn.00405890
call fcn.00402eb4
jmp 0x409350
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409426
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret

Function at 0x409448
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
cmp dword [0x40b07c], 2
jne 0x4094af
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40946a
xor eax, eax
jmp 0x4094be
lea eax, [esp + 8]
push eax
push 0x4094c4
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
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_1
test eax, eax
je 0x4094af
xor eax, eax
jmp 0x4094be
push 0
push 2
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret
Function at 0xf0d8fc
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf0d906
pushal
call 0xf0d90c
pop ebp
sub ebp, 0x10
sub ebp, 0xb0d8fc
jmp 0xf0d922
mov eax, 0xb0d8fc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5af
mov edx, 0xa2b47ad9
xor byte [eax], dl
inc eax
dec ecx
jne 0xf0d939
jmp 0xf0d94c
push edx
adc al, 0x52
push eax
in eax, 0xd9
fstpnce st(1), st(0)
pop eax
sbb byte [ecx], ah
fstpnce st(1), st(0)
fstpnce st(2), st(0)
adc al, 0x61
invalid
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1002aaee
pop dword [ebp - 0x44]
mov eax, 0x87c12f1c
add eax, 0x88417bd2
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x6dee1ab9
add dword [ebp - 0x54], 0xe0642a92
mov dword [ebp - 0x50], 0x26048b75
sub dword [ebp - 0x50], 0xf3d13f30
mov dword [ebp - 0x4c], 0xb34c68bc
add dword [ebp - 0x4c], 0x98ffdb72
mov dword [ebp - 0x48], 0x5e53a0b6
add dword [ebp - 0x48], 0xa1ac5f4a
lea eax, [ebp - 0x54]
push eax
mov eax, 0x35f5b0c5
add eax, 0xda0d0f73
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xa48d096f
add dword [ebp - 0x54], 0xcfe55fe7
mov dword [ebp - 0x50], 0x8736de37
add dword [ebp - 0x50], 0xba35833e
mov dword [ebp - 0x4c], 0x80648f7f
add dword [ebp - 0x4c], 0xe30adced
mov dword [ebp - 0x48], 0x6ddf83a
add dword [ebp - 0x48], 0xf92207c6
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x37188
push 0
call eax
mov ecx, 0x1678675f
sub ecx, 0x16781cdc
xor edi, edi
add edi, eax
mov edx, 0x110df0fe
sub edx, 0x10a5afe
add edx, dword [ebp - 0x44]
mov esi, 0xb3594303
sub esi, 0x96f0df09
add dword [ebp - 0xc], ecx
mov ebx, dword [edx]
add dword [ebp - 0x10], 0xc206297c
sub ebx, esi
xor dword [ebp - 0x28], 0xffdf4fd3
mov dword [edi], ebx
xor dword [ebp - 0x18], 0x7b520ffd
add edi, 4
add edx, 0xeb78b6ed
add edx, 0x14874917
loop 0x1002ac0d
add eax, 0x4be18c03
add eax, 0xb41f90dc
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xfd9bfd24
sub ecx, 0xed9bfd24
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x404dc0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404f7c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404e21
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404f98
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404e93
xor eax, eax
push ebp
push 0x404e8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404c18
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404e75
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404fb8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404e93
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404f74
cmp byte [ebp - 0xd], 0
jne 0x404ed5
cmp byte [ebp - 0x12], 0
je 0x404f74
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404eee
dec ebx
cmp byte [ebx], 0x2e
je 0x404efd
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404eed
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404f74
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404f2a
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404f74
cmp byte [ebp - 0xd], 0
je 0x404f74
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404f74
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4084b0
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 0x4084e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040399c
jmp 0x4084f2
mov eax, ebx
mov edx, esi
call fcn.00403908
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4084fc
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 0x40851d
mov al, byte [esp]
jmp 0x40851f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413620
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x413626
ret

Function at 0x415984
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4159d5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4159bc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4159ac
jmp 0x4159d5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4159bd
pop ebx
mov esp, ebp
pop ebp
ret