joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a8d2
Capabilities:
Delete file
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x220]
push ecx
call fcn.0048c190
add esp, 4
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
movsx eax, byte [ebp + edx - 0x221]
cmp eax, 0x5c
je 0x48a930
push 0x482618
lea ecx, [ebp - 0x220]
push ecx
call fcn.0048c220
add esp, 8
push 0x48261c
lea edx, [ebp - 0x220]
push edx
call fcn.0048c220
add esp, 8
push 0x8000
call fcn.0048c3e1
add esp, 4
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x48a973
xor eax, eax
jmp 0x48aadf
mov ecx, dword [ebp - 0x11c]
push ecx
push 0x481fa8
test al, 0x1f
dec eax
add al, ch
jl 0x48a98c
add byte [eax], al

Function at 0x48aae3
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x114]
push eax
push 1
push 0
push 0x482630
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48ab24
mov eax, 1
jmp 0x48ac39
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x118]
push eax
push 0
push 0x48265c
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48ab88
movsx edx, byte [ebp - 0x10b]
cmp edx, 0x3a
jne 0x48ab88
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00492320
add esp, 8
test eax, eax
jne 0x48ab88
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x48ac39
mov dword [ebp - 0x114], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x114]
push eax
push 0xf003f
push 0
push 0x482668
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x48ac34
push 0x482694
lea ecx, [ebp - 0x110]
push ecx
call fcn.0048c210
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0048c220
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
call fcn.0048c190
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x110]
push eax
push 2
push 0
push 0x48269c
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x48ac34
xor eax, eax
jmp 0x48ac39
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x48ac3d
Capabilities:
Delete file
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x120]
push ecx
call fcn.0048c190
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
movsx eax, byte [ebp + edx - 0x121]
cmp eax, 0x5c
je 0x48ac95
push 0x4826a8
lea ecx, [ebp - 0x120]
push ecx
call fcn.0048c220
add esp, 8
push 0x4826ac
lea edx, [ebp - 0x120]
push edx
call fcn.0048c220
add esp, 8
push 0x8000
call fcn.0048c3e1
add esp, 4
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x48acd2
xor eax, eax
jmp 0x48adfb
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x4818c8
call fcn.0048b400
add esp, 8
mov dword [ebp - 4], eax
push 0x80
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x48ad53
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 0x128]
push eax
call fcn.0048c31d
add esp, 4
mov dword [ebp - 0x1c], 0
xor eax, eax
jmp 0x48adfb
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.0048c31d
add esp, 4
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x120]
push edx
call fcn.0048aae3
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
push 0x4826b8
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.0048b356
add esp, 0xc
mov dword [ebp - 8], eax
push 0x80
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x48adee
xor eax, eax
jmp 0x48adfb
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x48b1c0
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48b28f
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 1
push 3
push 1
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x48b240
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x48b240
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x48b285
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x48b26e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x48b26e
mov dword [ebp - 0x10], 0
jmp 0x48b275
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x48b400
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0048b481
jae 0x48b40e
xor ecx, ecx
call fcn.0048b481
jae 0x48b438
xor eax, eax
call fcn.0048b481
jae 0x48b449
mov al, 0x10
call fcn.0048b481
adc al, al
jae 0x48b42a
jne 0x48b476
stosb byte es:[edi], al
jmp 0x48b40f
call fcn.0048b48d
dec ecx
loop 0x48b455
mov eax, ebp
call fcn.0048b48b
jmp 0x48b477
lodsb al, byte [esi]
shr eax, 1
je 0x48b49d
adc ecx, 2
mov ebp, eax
jmp 0x48b477
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0048b48b
cmp eax, 0x7d00
jae 0x48b475
cmp eax, 0x500
jae 0x48b476
cmp eax, 0x7f
ja 0x48b477
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x48b40f
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret
Function at 0x491b50
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], edi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x30]
push ecx
push edx
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x491bca
lea eax, [esp + 0x24]
push 0x15
push eax
push 0x484fbc
mov dword [esp + 0x20], 0xc8
call fcn.0048bfa0
add esp, 0xc
test eax, eax
jne 0x491bca
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x12c]
cmp ecx, eax
je 0x491bdc
mov eax, ecx
inc eax
mov dword [esp + 0x10], eax
inc edi
test esi, esi
je 0x491b75
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
mov edx, dword [esp + 0x130]
mov ecx, dword [0x484fb4]
mov eax, edx
lea edi, [esp + 0x24]
mov dword [eax], ecx
mov cl, byte [0x484fb8]
mov byte [eax + 4], cl
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x411960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496c88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4bc040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
mov dword [ebp - 0x14], 0
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x4b0e7c
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.0040f600
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x3c], 0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 1
push eax
call fcn.004137a0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
movzx ebx, ax
test ecx, ecx
je 0x411a1e
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x411a1e
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], bx
jne 0x411a38
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.0040f580
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x412840
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496d70
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4bc040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], 0x4a3828
call fcn.00475cbc
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00474c19
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4129e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496d70
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4bc040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], 0x4b0ee4
call fcn.00475cbc
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00474c19
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4244f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498363
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4bc040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x4bd3b8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], 0x49972c
mov dword [ebp - 4], 0
mov dword [ecx], 0x4bd3b8
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x4b0b8f
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.004242f0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x469e25
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
test esi, esi
jle 0x469e51
push ebx
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx]
mov ecx, edi
shl ecx, 3
movzx edx, byte [eax + 0x49b3b0]
xor edx, ecx
xor edi, edx
inc ebx
dec esi
test esi, esi
jg 0x469e37
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x48851e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00488394
Function at 0x406200
Capabilities:
Encode data using xor

Disassembly:
hlt
push ebp
mov ebp, esp
pop es
in al, dx
or byte [ebx + 0x56530c45], cl
push edi
sub dword [0x85df0104], 0x77
add dword [eax], eax
add byte [esi + 0x58], ch
or al, 0x8b
scasd eax, dword es:[edi]
or byte [ebx], dh
jns 0x4061aa
push eax
in eax, 0x8b
jnp 0x406228
insd dword es:[edi], dx
ror byte [ecx + 0x1576f87d], cl
clc
jbe 0x406240
mov al, 0x1c
lodsb al, byte [esi]
add byte [eax], al
xchg edi, eax
invalid
pop ebx
pop esi
int 0x7f
adc dword [ecx], eax
add byte [ebx - 0x75], bl
in eax, 0x5d
ret 8

Function at 0x407d28
Capabilities:
Encode data using xor

Disassembly:
pop esi
push esi
xor dword [esi], ebx
lodsd eax, dword [esi]
add ebx, eax
test eax, eax
jne 0x407d2a
ret
Function at 0x1029004
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1002008
call fcn.0102927c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x102903f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x102903f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1029057
cmp eax, 0x20b
je 0x1029044
mov dword [ebp - 0x1c], edi
jmp 0x102906b
cmp dword [ecx + 0x84], 0xe
jbe 0x102903f
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1029065
cmp dword [ecx + 0x74], 0xe
jbe 0x102903f
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10c1818], 0xffffffff
or dword [0x10c181c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10bee5c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10bee58]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10c1814], eax
call fcn.0105647e
cmp dword [0x10ae1e4], edi
jne 0x10290c8
push fcn.0105647e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01029263
push 0x10ae100
push 0x10ae0fc
call sub.msvcrt.dll__initterm
mov eax, dword [0x10bee54]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10bee50]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x10ae0f8
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x102912e
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x10291e8
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x102917c
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x102914a
cmp ax, 0x22
jne 0x1029137
cmp word [esi], 0x22
jne 0x1029155
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1029163
cmp ax, 0x20
jbe 0x1029150
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x1029189
movzx eax, word [ebp - 0x50]
jmp 0x102918c
cmp word [esi], 0x20
jbe 0x1029155
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x102917c
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x10291ad
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10291e2
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010292b7
ret
Function at 0x10a935a
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x820]
mov dword [esi], 0x1028420
call fcn.0106b5a4
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
and dword [esi + 0x1c], 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x20], eax
shl eax, 8
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], pe_nt_image_headers32
xor ecx, ecx
lea eax, [esi + 0x34]
and dword [eax], 0
inc ecx
add eax, 4
cmp ecx, dword [esi + 0x24]
jb 0x10a93a7
xor eax, eax
lea edi, [esi + 0x434]
mov ecx, 0xfb
rep stosd dword es:[edi], eax
and dword [esi + 0x30], eax
and dword [esi + 0x2c], eax
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x405d34
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 0x405d9a
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.004044e4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402fa8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d84
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405da1
lea eax, [ebp - 0x10]
call fcn.00404274
ret

Function at 0x4078d4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404734
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4078f6
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40a118
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 0x40a151
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404364
jmp 0x40a15a
mov eax, ebx
mov edx, esi
call fcn.004042c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a164
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 0x40a185
mov al, byte [esp]
jmp 0x40a187
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a81c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a684
mov eax, dword [0x41b5dc]
cmp byte [eax], 0
je 0x40a898
mov eax, dword [0x41b4e4]
call fcn.00402e98
call fcn.00402b08
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.00407a58
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 0x40a8e0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a8ce
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41b4c0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41c660]
call fcn.004051dc
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 0x40b5e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b644
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044e4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004075cc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b64b
lea eax, [ebp - 0xc]
call fcn.00404274
ret

Function at 0x417520
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push edi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, 0
mov edi, dword [0x41d908]
shl edi, 2
xor edx, dword [esi + 0x41c880]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x41c908]
mov bl, dl
add ecx, dword [ebx*4 + 0x41cd08]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x41d108]
mov bl, dl
add ecx, dword [ebx*4 + 0x41d508]
xor eax, ecx
xchg edx, eax
add esi, 4
cmp esi, edi
jne 0x41753d
xchg edx, eax
xor eax, dword [esi + 0x41c880]
xor edx, dword [esi + 0x41c884]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop edi
pop esi
pop ecx
pop ebx
ret

Function at 0x417598
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, dword [0x41d908]
inc esi
shl esi, 2
xor edx, dword [esi + 0x41c880]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x41c908]
mov bl, dl
add ecx, dword [ebx*4 + 0x41cd08]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x41d108]
mov bl, dl
add ecx, dword [ebx*4 + 0x41d508]
xor eax, ecx
xchg edx, eax
sub esi, 4
cmp esi, 4
jne 0x4175b0
xchg edx, eax
xor eax, dword [0x41c884]
xor edx, dword [0x41c880]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop esi
pop ecx
pop ebx
ret