joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457810
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc1c
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [esp + 0x21c]
push 0x208
push ecx
push eax
call fcn.004577f0
mov edx, dword [0x4837e4]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], edx
push 0x46d884
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
call fcn.0045a7b3
lea ecx, [esp + 0x230]
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.0045a7b3
lea eax, [esp + 0x30]
push 0x480614
push eax
call fcn.0045a7b3
mov ecx, dword [0x4837e4]
xor eax, eax
mov dword [esp + 0x448], ecx
mov ecx, 0x1ff
lea edi, [esp + 0x44c]
add esp, 0x24
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc2c]
lea edx, [esp + 8]
test ecx, ecx
setne al
add eax, 0x80000001
push edx
push 0x466fe0
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, dword [esp + 0xc28]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x424]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push esi
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x457949
lea ecx, [esp + 0x424]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0045a1b7
add esp, 8
test eax, eax
je 0x45793b
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 8]
lea ecx, [esp + 0x14]
shl eax, 1
push eax
push ecx
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
mov eax, 1
pop esi
add esp, 0xc1c
ret
pop edi
xor eax, eax
pop esi
add esp, 0xc1c
ret

Function at 0x458ec0
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
and ecx, 0xffff
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x1c]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push edi
push 0
mov ebx, eax
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
mov ebp, eax
push 0
push 2
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, edi
mov edi, eax
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
Function at 0x1000a240
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x10035490], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x1003548c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x10035490], edx
cmp eax, 0x26f
jl 0x1000a248
mov dword [0x10029940], 0x270
ret

Function at 0x1000a280
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x10035494]
mov ebx, dword [eax*4 + 0x10035490]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x10035ac4]
mov dword [eax*4 + 0x10035490], edx
cmp eax, 0xe2
jl 0x1000a288
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x10035494]
mov ebx, dword [eax*4 + 0x10035490]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x10035104]
mov dword [eax*4 + 0x10035490], edx
cmp eax, 0x26e
jl 0x1000a2d8
mov edx, dword [0x10035490]
mov ecx, dword [0x10035e4c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x10035ac0]
mov dword [0x10035e4c], eax
mov dword [0x10029940], 0
pop ebx
ret

Function at 0x1000a360
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x10029940]
add dword [0x10029940], 1
mov eax, dword [0x10034020]
cmp eax, dword [0x10029460]
jne 0x1000a383
cmp ebx, 0x271
jb 0x1000a3a4
mov eax, dword [0x10034020]
call fcn.1000a240
not dword [0x10034020]
mov eax, dword [0x10034020]
mov dword [0x10029460], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x1000a3c0
call fcn.1000a280
xor ebx, ebx
mov dword [0x10029940], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x10035490]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x1000be50
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x100291c0]
cmp ax, 0xcb
je 0x1000bf5c
cmp ax, 0xcc
je 0x1000bf5c
lea esi, [esi]
mov edx, dword [0x10036090]
test edx, edx
je 0x1000be85
mov eax, dword [0x10035f40]
call edx
mov ebx, eax
jmp 0x1000be8a
mov ebx, 0x10035f44
cmp word [0x10035f30], 0
jle 0x1000beb0
mov eax, 0x10035f10
call fcn.1000c0c0
mov eax, ebx
call fcn.1000ba10
mov eax, ebx
call fcn.1000ba80
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x1000bed2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x1000becd
mov edx, edi
mov eax, ebx
call fcn.1000ae80
jmp 0x1000bed0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x1000beb8
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x10035f30], 0
jle 0x1000bf5c
mov edx, 0x10035e50
mov eax, ebx
call fcn.1000afc0
mov edi, eax
test edi, edi
je 0x1000bf2c
mov eax, dword [0x10035ee4]
mov dword [edi + 0xc], eax
cmp dword [0x10035ee4], 0
je 0x1000bf20
mov eax, dword [0x10035ee4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x10035ee4], eax
nop
sub word [0x10035f30], 1
cmp word [0x10035f30], 0
sete bl
mov eax, 0x10035f10
call fcn.1000c0e0
test bl, bl
je 0x1000bf5c
mov eax, 0x10035f10
call fcn.1000c0b0
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x1000e070
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x10035260], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.1000e250
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x10035260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.10002230
call sub.kernel32.dll_GetCommandLineA
mov dword [0x10029240], eax
mov ebx, eax
jmp 0x1000e213
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x1000e0f8
cmp byte [ebx], 0
je 0x1000e21c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x1000e173
mov al, byte [ebx]
cmp al, 1
jb 0x1000e168
sub al, 0x20
jbe 0x1000e138
sub al, 2
je 0x1000e14c
jmp 0x1000e168
mov al, byte [ebp - 0x114]
test al, al
je 0x1000e178
add dword [ebp - 0x110], 1
jmp 0x1000e170
cmp byte [ebx + 1], 0x22
je 0x1000e163
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x1000e170
add ebx, 1
jmp 0x1000e170
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x1000e128
test dword [ebp - 0x10c], 0xffffffff
je 0x1000e20c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.1000e250
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x10035260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x1000e203
mov al, byte [ebx]
cmp al, 1
jb 0x1000e1f8
sub al, 0x20
jbe 0x1000e1c8
sub al, 2
je 0x1000e1dc
jmp 0x1000e1f8
mov al, byte [ebp - 0x114]
test al, al
je 0x1000e208
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x1000e200
cmp byte [ebx + 1], 0x22
je 0x1000e1f3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x1000e200
add ebx, 1
jmp 0x1000e200
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x1000e1b8
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x1000e0fb
mov ebx, dword [ebp - 0x10c]
mov dword [0x10035250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x10035260
call fcn.1000bc90
mov eax, dword [0x10035260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e2c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 8]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call fcn.100028d0
mov byte [0x10029210], 1
mov eax, dword [0x100352d0]
mov dword [0x100299f0], eax
mov dword [ebp - 8], 0
mov eax, dword [0x100352d0]
test eax, eax
je 0x1000e3ec
sub eax, 1
je 0x1000e314
sub eax, 1
je 0x1000e38c
sub eax, 1
je 0x1000e3bc
jmp 0x1000e438
call sub.kernel32.dll_GetCurrentThreadId
mov dword [0x100360c0], eax
mov eax, 0x10036180
call fcn.10002820
test eax, eax
jne 0x1000e370
xor eax, eax
push 0x1000e35a
push ebp
push 0x1000f350
push dword fs:[eax]
mov dword fs:[eax], esp
call dword [0x10035334]
mov dword [ebp - 8], 0xffffffff
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x1000e438
cmp dword [0x10034010], 0
sete al
and eax, 0xff
neg eax
mov dword [ebp - 8], eax
jmp 0x1000e438
call fcn.1000c2e0
mov eax, 0x1000000
call fcn.1000bf60
cmp dword [0x10029430], 0
je 0x1000e438
mov eax, dword [0x100352e0]
call dword [0x10029430]
nop
jmp 0x1000e438
cmp dword [0x10029440], 0
je 0x1000e3d0
mov eax, dword [0x100352e0]
call dword [0x10029440]
mov eax, dword [0x10029980]
push dword [eax]
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x1000e438
call fcn.1000c030
lea esi, [esi]
jmp 0x1000e438
cmp dword [0x100360c0], 0
je 0x1000e442
lea esi, [esi]
mov eax, 0x10036180
call fcn.10002820
test eax, eax
jne 0x1000e424
cmp dword [0x10029420], 0
je 0x1000e41c
mov eax, dword [0x100352e0]
call dword [0x10029420]
mov esi, esi
call fcn.1000a660
lea esi, [esi]
call fcn.1000c400
call fcn.1000c380
mov dword [0x100360c0], 0
mov dword [0x100299f0], 0xffffffff
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.10010650
push ebp
push 0x1000efd0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x10010770
mov al, byte [ebp - 0x110]
test al, al
je 0x10010739
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.100033b0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.10006580
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.100070b0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x1002ba94
call fcn.10023c00
mov edx, 0x100106ca
mov ecx, ebp
call fcn.1000ee90
jmp 0x10010770
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x1002ba94
call fcn.10023c00
mov edx, 0x10010739
mov ecx, ebp
call fcn.1000ee90
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x10010834
mov al, byte [ebp - 0x110]
test al, al
je 0x100107fd
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.100033b0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.10006580
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.100070b0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x1002ba94
call fcn.10023c00
mov edx, 0x1001078e
mov ecx, ebp
call fcn.1000ee90
jmp 0x10010834
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x1002ba94
call fcn.10023c00
mov edx, 0x100107fd
mov ecx, ebp
call fcn.1000ee90
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.10010390
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.10010650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100106ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.10010650
push ebp
push 0x1000efd0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x10010770
mov al, byte [ebp - 0x110]
test al, al
je 0x10010739
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.100033b0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.10006580
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.100070b0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x1002ba94
call fcn.10023c00
mov edx, 0x100106ca
mov ecx, ebp
call fcn.1000ee90
jmp 0x10010770
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x1002ba94
call fcn.10023c00
mov edx, 0x10010739
mov ecx, ebp
call fcn.1000ee90
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x10010834
mov al, byte [ebp - 0x110]
test al, al
je 0x100107fd
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.100033b0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.10006580
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.100070b0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x1002ba94
call fcn.10023c00
mov edx, 0x1001078e
mov ecx, ebp
call fcn.1000ee90
jmp 0x10010834
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x1002ba94
call fcn.10023c00
mov edx, 0x100107fd
mov ecx, ebp
call fcn.1000ee90
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.10010390
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.10010650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10010739
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.10010650
push ebp
push 0x1000efd0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x10010770
mov al, byte [ebp - 0x110]
test al, al
je 0x10010739
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.100033b0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.10006580
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.100070b0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x1002ba94
call fcn.10023c00
mov edx, 0x100106ca
mov ecx, ebp
call fcn.1000ee90
jmp 0x10010770
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x1002ba94
call fcn.10023c00
mov edx, 0x10010739
mov ecx, ebp
call fcn.1000ee90
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x10010834
mov al, byte [ebp - 0x110]
test al, al
je 0x100107fd
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.100033b0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.10006580
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.100070b0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x1002ba94
call fcn.10023c00
mov edx, 0x1001078e
mov ecx, ebp
call fcn.1000ee90
jmp 0x10010834
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x1002ba94
call fcn.10023c00
mov edx, 0x100107fd
mov ecx, ebp
call fcn.1000ee90
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.10010390
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.10010650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10024880
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.10024870
push ebp
push 0x1000efd0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x100248f0
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.10007d00
cmp ebx, 1
jle 0x100248e0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.10007780
jmp 0x100248fb
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.10005d00
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.10024870
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10024a90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.10024a80
push ebp
push 0x1000efd0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x1003695c]
xor edx, edx
call fcn.10005d00
mov dword [ebx*4 + 0x1003697c], 0xffffffff
cmp ebx, 7
jl 0x10024ab8
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x10024b44
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.100066f0
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.1001f1d0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x10024b44
push 4
push ebx
push esi
mov eax, 0x10024960
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x100249f0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.10024a80
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10025170
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x100369c0], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x10036820], eax
mov eax, dword [ebp - 0x90]
mov dword [0x10036830], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x10036840], eax
mov eax, dword [ebp - 0x88]
mov dword [0x10036850], eax
mov edx, 0x10036861
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.10002230
lea eax, [ebp - 0x80]
call fcn.10002e90
mov byte [0x10036860], al
mov eax, str.kernel32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x100369d0], eax
test eax, eax
je 0x10025210
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x100369d0]
call sub.kernel32.dll_GetProcAddress
mov dword [0x100369c0], eax
nop
cmp dword [0x10036830], 6
jae 0x10025224
mov dword [0x10029c70], 0
nop
cmp dword [0x10036830], 6
jb 0x10025240
cmp dword [0x10036840], 1
jb 0x10025240
mov dword [0x10029c80], 2
mov esp, ebp
pop ebp
ret
Function at 0x401063
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 4
push esi
push 3
push 0xc0000000
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4010ce
mov eax, dword [ebp + 0xc]
cmp eax, esi
jge 0x40109a
push 2
pop ecx
jmp 0x40109c
xor ecx, ecx
cmp eax, esi
jge 0x4010a2
xor eax, eax
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, esi
je 0x4010c9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x4010d0
xor eax, eax
pop edi
pop esi
leave
ret