joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002e01
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10002e10
pop dword [ebp - 8]
mov eax, 0x34d5aa15
sub eax, 0x24d57c05
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xd85ce91b
sub dword [ebp - 0x18], 0x8a0aa3d0
mov dword [ebp - 0x14], 0x47944e4
sub dword [ebp - 0x14], 0xd245f89f
mov dword [ebp - 0x10], 0x895d436
add dword [ebp - 0x10], 0x43b66ff8
mov dword [ebp - 0xc], 0x7cee20e9
sub dword [ebp - 0xc], 0x7cee20e9
lea eax, [ebp - 0x18]
push eax
mov eax, 0xa26770aa
sub eax, 0x9267151a
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x7ac3a702
add dword [ebp - 0x18], 0xf9aec254
mov dword [ebp - 0x14], 0xf108705c
sub dword [ebp - 0x14], 0xaf9c0ee7
mov dword [ebp - 0x10], 0x7895efab
sub dword [ebp - 0x10], 0x1526833f
mov dword [ebp - 0xc], 0xa9eb1b50
add dword [ebp - 0xc], 0x5614e4b0
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x386fe
push 0
call eax
mov ecx, 0x857b5d6f
add ecx, 0x7a84f213
mov edx, eax
mov esi, 0xfc699bbd
sub esi, 0xec68e3bd
add esi, dword [ebp - 8]
mov ebx, 0xa1061578
add ebx, 0xfb759d34
sub dword [ebp - 4], 0xe916e1e3
mov edi, dword [esi]
xor dword [ebp - 4], eax
sub edi, ebx
add dword [ebp - 4], 0x574e700
mov dword [edx], edi
add edx, 4
add esi, 4
loop 0x10002f2d
add eax, 0xb05e59bf
sub eax, 0xb05d28e4
mov ebx, eax
add eax, 0x5b0a692d
add eax, 0xa4f596d8
mov ecx, 0x2e4dc2b9
sub ecx, 0x1e4dc2b9
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x10021130
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x134
call fcn.10024c30
call fcn.10034970
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0xa
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.10020b70
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret 8
Function at 0x10023180
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062a09
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100a0054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [0x100a1c98]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [0x100a2628]
cmp eax, dword [edx + 4]
jle 0x10023214
push 0x100a2628
call fcn.1003b60f
add esp, 4
cmp dword [0x100a2628], 0xffffffff
jne 0x10023214
mov dword [ebp - 4], 0
push 0x100940b0
mov ecx, 0x100a2630
call fcn.1001e6b0
push 0x100645e0
call fcn.1003bbdf
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x100a2628
call fcn.1003b5c5
add esp, 4
mov ecx, dword [ebp + 8]
call fcn.1001c3a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x10023297
push 0xffffffffffffffff
push 0x100a2630
mov ecx, dword [ebp + 8]
call fcn.10024a60
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x10023281
mov ecx, dword [ebp - 0x34]
push ecx
push 0
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.100249e0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.10023180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1001c3e0
push 0
mov ecx, dword [ebp + 8]
call fcn.1001c3a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x48], eax
jmp 0x100232bf
mov edx, dword [ebp - 0x30]
and edx, 0x10
jne 0x100232b2
mov eax, dword [ebp - 0x30]
and eax, 0x400
jne 0x100232b2
mov dword [ebp - 0x38], 0
jmp 0x100232b9
mov dword [ebp - 0x38], 1
mov cl, byte [ebp - 0x38]
mov byte [ebp - 0x29], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003b4c9
mov esp, ebp
pop ebp
ret 4
Function at 0x10023b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x100a0054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x2c], ecx
call fcn.1001e8d0
mov word [ebp - 0x36], ax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x36]
push ecx
call fcn.1001e8e0
add esp, 8
movzx edx, al
test edx, edx
je 0x10023bb5
lea eax, [ebp + 8]
push eax
call fcn.10025e20
add esp, 4
jmp 0x10023d58
mov ecx, dword [ebp - 0x2c]
call fcn.10008b30
test eax, eax
je 0x10023bff
mov ecx, dword [ebp - 0x2c]
call fcn.10008b30
mov esi, eax
mov ecx, dword [ebp - 0x2c]
call fcn.10025460
cmp esi, eax
jae 0x10023bff
lea ecx, [ebp + 8]
push ecx
call fcn.1001e910
add esp, 4
mov word [ebp - 0x38], ax
mov ecx, dword [ebp - 0x2c]
call fcn.1001e920
mov dx, word [ebp - 0x38]
mov word [eax], dx
mov ax, word [ebp + 8]
jmp 0x10023d58
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x4c], 0
jne 0x10023c12
call fcn.1001e8d0
jmp 0x10023d58
mov ecx, dword [ebp - 0x2c]
call fcn.10024ff0
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x38], 0
jne 0x10023c70
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x48], eax
lea ecx, [ebp + 8]
push ecx
call fcn.1001e910
add esp, 4
mov word [ebp - 0x3a], ax
mov edx, dword [ebp - 0x48]
push edx
movzx eax, word [ebp - 0x3a]
push eax
call fcn.10020c30
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x10023c5e
mov dx, word [ebp + 8]
mov word [ebp - 0x32], dx
jmp 0x10023c67
call fcn.1001e8d0
mov word [ebp - 0x32], ax
mov ax, word [ebp - 0x32]
jmp 0x10023d58
mov dword [ebp - 0x58], 0x20
lea eax, [ebp + 8]
push eax
call fcn.1001e910
add esp, 4
mov word [ebp - 0x30], ax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2e]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x2c]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.100202d0
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x10023cd1
cmp dword [ebp - 0x40], 1
je 0x10023cd1
cmp dword [ebp - 0x40], 3
je 0x10023d1f
jmp 0x10023d53
mov ecx, dword [ebp - 0x50]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x44], ecx
je 0x10023d03
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.1004610b
add esp, 0x10
cmp dword [ebp - 0x44], eax
je 0x10023d03
call fcn.1001e8d0
jmp 0x10023d58
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3e], 1
lea edx, [ebp - 0x30]
cmp dword [ebp - 0x54], edx
je 0x10023d18
mov ax, word [ebp + 8]
jmp 0x10023d58
call fcn.1001e8d0
jmp 0x10023d58
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, word [ebp - 0x30]
push edx
call fcn.10020c30
add esp, 8
movzx eax, al
test eax, eax
je 0x10023d44
mov cx, word [ebp + 8]
mov word [ebp - 0x34], cx
jmp 0x10023d4d
call fcn.1001e8d0
mov word [ebp - 0x34], ax
mov ax, word [ebp - 0x34]
jmp 0x10023d58
call fcn.1001e8d0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b4c9
mov esp, ebp
pop ebp
ret 4
Function at 0x10025080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x100a0054]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x100250a7
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x100250ae
mov al, 1
jmp 0x1002519d
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x44], edx
call fcn.1001e8d0
mov word [ebp - 0x2e], ax
movzx eax, word [ebp - 0x2e]
push eax
mov ecx, dword [ebp - 0x2c]
call dword [ebp - 0x44]
mov word [ebp - 0x30], ax
call fcn.1001e8d0
mov word [ebp - 0x32], ax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x32]
push edx
call fcn.1001e8e0
add esp, 8
movzx eax, al
test eax, eax
je 0x100250f8
xor al, al
jmp 0x1002519d
mov dword [ebp - 0x50], 0x20
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x48], edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x48]
call fcn.10020310
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x1002513a
cmp dword [ebp - 0x38], 1
je 0x10025141
cmp dword [ebp - 0x38], 3
je 0x10025190
jmp 0x1002519b
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3e], 0
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x10025170
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x3c]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call fcn.1004610b
add esp, 0x10
cmp dword [ebp - 0x3c], eax
je 0x10025170
xor al, al
jmp 0x1002519d
mov edx, dword [ebp - 0x2c]
movzx eax, byte [edx + 0x3e]
test eax, eax
jne 0x10025184
mov dword [ebp - 0x40], 1
jmp 0x1002518b
mov dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
jmp 0x1002519d
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3e], 0
mov al, 1
jmp 0x1002519d
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b4c9
mov esp, ebp
pop ebp
ret
Function at 0x10028f40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x100a0054]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x10028f67
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x10028f6e
mov al, 1
jmp 0x10029059
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x40], edx
call fcn.10009f70
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
call dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
call fcn.10009f70
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.10009fd0
add esp, 8
movzx eax, al
test eax, eax
je 0x10028fb4
xor al, al
jmp 0x10029059
mov dword [ebp - 0x54], 0x20
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.10020310
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x10028ff6
cmp dword [ebp - 0x30], 1
je 0x10028ffd
cmp dword [ebp - 0x30], 3
je 0x1002904c
jmp 0x10029057
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x1002902c
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x34]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call fcn.1004610b
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x1002902c
xor al, al
jmp 0x10029059
mov edx, dword [ebp - 0x2c]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x10029040
mov dword [ebp - 0x38], 1
jmp 0x10029047
mov dword [ebp - 0x38], 0
mov al, byte [ebp - 0x38]
jmp 0x10029059
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 0
mov al, 1
jmp 0x10029059
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b4c9
mov esp, ebp
pop ebp
ret
Function at 0x1002a4f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1bc]
sub esp, 0x23c
mov eax, dword [0x100a0054]
xor eax, ebp
mov dword [ebp + 0x1b8], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], 2
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0xffffffff
jne 0x1002a534
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002a599
push 0x22c
push 0
lea eax, [ebp - 0x74]
push eax
call fcn.1003d400
add esp, 0xc
mov dword [ebp - 0x74], 0x22c
lea ecx, [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1002a583
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp + 0x1c4]
call fcn.1002aa30
lea ecx, [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1002a560
jmp 0x1002a58c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp + 0x1b8]
xor ecx, ebp
call fcn.1003b4c9
add ebp, 0x1bc
mov esp, ebp
pop ebp
ret
Function at 0x10034680
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
call fcn.10007ac0
lea eax, [eax + eax + 2]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
call fcn.1001c3a0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
call fcn.1001c3a0
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 1
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100346f8
push str.Cannot_write_string_value:_RegSetValueExW_failed.
mov ecx, dword [ebp - 4]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10034700
push 0x1009dd1c
lea edx, [ebp - 0x2c]
push edx
call fcn.1003cdfd
mov esp, ebp
pop ebp
ret 8
Function at 0x10038a90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 8
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x10038bc0
push 0
push 0
call fcn.100488c5
add esp, 0x18
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esp, ebp
pop ebp
ret
Function at 0x100399d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 8]
add edx, 0x28
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x10039a70
push 0
push 0
call fcn.100488c5
add esp, 0x18
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x24], 0
je 0x10039a5e
mov eax, dword [ebp - 8]
cmp dword [eax + 0x28], 0
je 0x10039a5e
mov dword [ebp - 0xc], 0
jmp 0x10039a39
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0xa
jae 0x10039a5e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 8]
call fcn.10039790
mov byte [ebp - 1], al
movzx edx, byte [ebp - 1]
test edx, edx
je 0x10039a5c
jmp 0x10039a5e
jmp 0x10039a30
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x10050ca2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10050953

Function at 0x10050cad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10050add

Function at 0x10057176
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10056df3

Function at 0x100672ba
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x100a503c], 0
je 0x1006731b
cmp word [0x100a5210], 0xd7b2
jne 0x100672e3
cmp dword [0x100a5218], 0
jbe 0x100672e3
mov eax, 0x100a520c
call dword [0x100a5228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x100a305c
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 0x10067342
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x100a3020], 0
jne 0x10067337
push 0
push 0x100a3054
push 0x100a305c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x1006871a
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 0x10068780
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.1006765e
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.1006671e
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x1006876a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10068787
lea eax, [ebp - 0x10]
call fcn.10067436
ret

Function at 0x1006ab16
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.1006748a
mov eax, ebx
call fcn.100678da
mov eax, dword [ebx]
call fcn.1006768a
test eax, eax
jle 0x1006ab47
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x1006ab3c
pop esi
pop ebx
ret
Function at 0x1006ae66
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x1006aeb2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.1006befa
test al, al
jne 0x1006aea8
cmp word [edi], 0x5a4d
jne 0x1006aea8
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x1006aea8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1006aebe
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1006b05e
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x100a3230], 0
jne 0x1006b13f
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1006b0b1
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
jmp 0x1006b0e2
push 0x105
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
cmp esi, 0xffffffff
je 0x1006b13f
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1006b10d
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x1006b11f
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x1006b139
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x1006b38a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x1006b485
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1006b3ce
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov ebx, eax
jmp 0x1006b402
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.10067b32
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.10067676
mov eax, dword [ebp - 8]
call fcn.1006788a
push eax
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1006b467
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x1006b461
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1006b45b
mov eax, dword [ebp - 4]
call fcn.1006ae66
test eax, eax
je 0x1006b448
cmp word [eax + 0x18], 0x20b
je 0x1006b44c
xor eax, eax
jmp 0x1006b44e
mov al, 1
neg al
sbb edi, edi
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push ebx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1006b48c
lea eax, [ebp - 0xc]
call fcn.10067a0a
lea eax, [ebp - 8]
call fcn.10067436
ret

Function at 0x1006b49a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
je 0x1006b573
push 0
push 0
push 0
push 2
push 0
push edi
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x1006b56d
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1006b567
mov eax, dword [ebp - 4]
call fcn.1006ae66
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1006b55e
mov eax, dword [ebp - 8]
cmp word [eax + 0x18], 0x20b
jne 0x1006b523
mov eax, dword [ebp - 8]
add eax, 0x18
mov eax, dword [eax + 0x70]
mov dword [ebp - 0xc], eax
jmp 0x1006b52c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1006b55e
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.1006afe6
add eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x1006b54c
cmp dword [eax + 0x14], 1
jg 0x1006b55c
cmp dword [eax + 0x10], 1
jne 0x1006b558
cmp dword [eax + 0x14], 0
jg 0x1006b55c
xor ebx, ebx
jmp 0x1006b55e
mov bl, 1
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push edi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1006ec1a
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
jne 0x1006ec96
cmp dword [esp + 0x10], 0x1000
jne 0x1006ec96
cmp dword [esp + 4], 0
je 0x1006ec96
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x1006ec96
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x1006ec96
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x1006ec96
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10070b46
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov ebx, dword [0x100a3ba8]
mov esi, dword [0x100a3bb0]
xor eax, eax
mov dword [0x100a3ba8], eax
xor eax, eax
mov dword [0x100a3bb0], eax
test ebx, ebx
je 0x10070b8b
push esp
push 0x40
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10070b8b
mov eax, dword [0x100a3bac]
mov dword [ebx], eax
push esp
mov eax, dword [esp + 4]
push eax
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
test esi, esi
je 0x10070bb3
push esp
push 0x40
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10070bb3
mov eax, dword [0x100a3bb4]
mov dword [esi], eax
push esp
mov eax, dword [esp + 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
mov byte [0x100a3bb8], 0
pop edx
pop esi
pop ebx
ret