joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1086c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
lea eax, [ebp - 0x20]
push eax
xor ebx, ebx
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 0x40
mov dword [ebp - 0x18], 0x11a3c
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
je 0x108b2
or eax, 0xffffffff
jmp 0x109de
push edi
push ebx
push dword [ebp - 4]
call fcn.00010636
mov edi, eax
cmp edi, ebx
je 0x109d2
push esi
push dword [ebp - 4]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
call esi
push ebx
push edi
mov dword [ebp - 4], edi
call fcn.00010636
mov edi, eax
cmp edi, ebx
je 0x109d1
push dword [ebp - 4]
call esi
push ebx
push edi
mov dword [ebp - 4], edi
call fcn.00010636
mov edi, eax
cmp edi, ebx
je 0x109d1
push dword [ebp - 4]
call esi
mov esi, dword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 1
mov dword [ebp - 4], edi
push ebx
push dword [ebp - 4]
xor edi, edi
call esi
cmp eax, 0x8000001a
je 0x109d1
push 0x4d5a444d
push dword [ebp - 8]
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
test ebx, ebx
je 0x109d1
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push 1
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x109c8
cmp dword [ebx + 0xc], 0xc
jb 0x109c8
mov eax, dword [ebx + 8]
add eax, ebx
cmp dword [eax], 0x54445344
jne 0x109c8
push 4
pop ecx
mov dword [ebp - 8], ecx
mov edx, dword [ebx + 0xc]
sub edx, 0xc
cmp edx, ecx
jle 0x109c8
cmp dword [eax + ecx], 0x5f35535f
je 0x10991
inc ecx
mov dword [ebp - 8], ecx
mov edx, dword [ebx + 0xc]
sub edx, 0xc
cmp ecx, edx
jl 0x10978
jmp 0x109c8
add ecx, eax
movzx ax, byte [ecx + 8]
test ax, ax
mov word [0x1339c], ax
jne 0x109ac
mov word [0x1339c], 7
movzx ax, byte [ecx + 0xa]
test ax, ax
mov word [0x133a6], ax
jne 0x109c5
mov word [0x133a6], 7
xor edi, edi
inc edi
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x10e74
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
push 0x4d5a4450
mov esi, 0x816
push esi
xor edi, edi
push edi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x10e9e
xor eax, eax
jmp 0x10f54
mov eax, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 4]
push ecx
push esi
push dword [ebp - 8]
mov dword [ebp - 0x20], edi
push edi
push edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x40
call edi
mov ebx, 0x8000001a
jmp 0x10f3a
test eax, eax
jl 0x10f25
mov ecx, dword [ebp - 8]
mov ax, word [ecx + 0xc]
mov word [ebp - 0x16], ax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x30]
push eax
push 0xf003f
lea eax, [ebp - 0xc]
add ecx, 0x10
push eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x10f25
push dword [ebp - 0xc]
call fcn.00010dc4
cmp eax, 2
mov dword [ebp - 4], eax
jge 0x10f45
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
inc dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
push 0
push dword [ebp - 0x10]
push dword [ebp + 8]
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10edc
and dword [ebp - 0xc], 0
push 0
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0xc]
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x10f5a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
test byte [0x1338c], 0x20
je 0x10f70
xor eax, eax
jmp 0x11093
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x13020]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x10f94
push eax
push dword [ebp + 8]
call fcn.00010c02
test eax, eax
jne 0x10fa4
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jb 0x10f76
xor eax, eax
jmp 0x11092
push esi
push 0x4d5a4450
mov esi, 0x816
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x10fc5
xor eax, eax
jmp 0x11091
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 4]
push ecx
push esi
push dword [ebp + 8]
mov dword [ebp - 0x24], edi
push edi
push edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 8], edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
push eax
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 0x40
call edi
mov ebx, 0x8000001a
jmp 0x11075
test eax, eax
jl 0x11060
mov eax, dword [ebp + 8]
push dword [ebp - 0x14]
add eax, 0x10
push eax
call fcn.00010c02
test eax, eax
je 0x11060
mov ecx, dword [ebp + 8]
mov ax, word [ecx + 0xc]
mov word [ebp - 0x1a], ax
mov word [ebp - 0x1c], ax
lea eax, [ecx + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
push 0xf003f
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x11060
push dword [ebp - 0xc]
call fcn.00010e74
push dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x10], 0
jne 0x11080
inc dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push 0
push dword [ebp - 8]
push dword [ebp + 0xc]
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x11003
xor esi, esi
jmp 0x11083
mov esi, dword [ebp - 0x10]
push 0
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
pop ebx
pop esi
pop edi
leave
ret 8
Function at 0x11098
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 0x4d5a4450
mov edi, 0x816
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
cmp esi, ebx
je 0x11203
lea eax, [ebp - 8]
push eax
push edi
push esi
push 1
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
mov ebx, 0x8000001a
jmp 0x1111f
mov ax, word [esi + 0x10]
mov word [ebp - 0x16], ax
mov word [ebp - 0x18], ax
lea eax, [esi + 0x14]
mov dword [ebp - 0x14], eax
push dword [esi + 0xc]
mov eax, dword [esi + 8]
add eax, esi
push eax
push dword [esi + 4]
lea eax, [ebp - 0x18]
push dword [esi]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
inc dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push edi
push esi
push 1
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
cmp eax, ebx
jne 0x110db
test byte [0x1338e], 1
je 0x111fa
lea ecx, [ebp - 8]
push ecx
push edi
xor eax, eax
push esi
push eax
mov dword [ebp - 4], eax
push eax
jmp 0x111e6
test eax, eax
jl 0x111d8
mov ax, word [esi + 0xc]
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
mov word [ebp - 0x16], ax
mov word [ebp - 0x18], ax
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0xf003f
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x24], 0x40
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x111d8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x30]
push eax
push 0xf003f
lea eax, [ebp - 0xc]
push eax
call dword [0x13390]
test eax, eax
jl 0x111cf
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.00011098
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push dword [ebp - 0x10]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
inc dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x11142
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x11236
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x1120c
lea eax, [esi + edi*2]
push eax
call fcn.00010bb4
xor ebx, ebx
cmp eax, ebx
je 0x11374
add eax, edi
lea edi, [esi + eax*2]
push 3
push edi
mov dword [ebp - 4], edi
call fcn.000103a6
cmp eax, 0xa
mov dword [ebp - 8], eax
jb 0x11374
push 0x11224
lea eax, [edi + eax*2 + 2]
push eax
call fcn.00010bb4
test eax, eax
je 0x11374
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
push 0xf003f
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [0x13390]
test eax, eax
jl 0x11374
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 1
mov ebx, 0x130d0
push ebx
push dword [ebp + 8]
call esi
mov edi, 0xc0000034
cmp eax, edi
jne 0x11311
push 0x4e
push str.17CCA71B_ECD7_11D0_B908_00A0C9223196
push 1
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea eax, [ebp + 0xc]
push eax
push 0
push 0
push 1
mov ebx, 0x13144
push ebx
push dword [ebp + 8]
call esi
cmp eax, edi
jne 0x1136b
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
push str.Wave
lea eax, [esi + edi*2 - 0xc]
push eax
call fcn.00010bb4
test eax, eax
jne 0x11356
push str.Topology
lea eax, [esi + edi*2 - 0x14]
push eax
call fcn.00010bb4
test eax, eax
je 0x1136b
push 0x32
push str.Microsoft_Kernel_Audioer
push 1
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x13574
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
push edi
lea eax, [ebp - 0x24]
push eax
mov edi, 0xf003f
xor ebx, ebx
push edi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x1c], 0x11978
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call esi
test eax, eax
jl 0x13615
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x1c], 0x131a0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call esi
push dword [ebp - 8]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 4], eax
call esi
cmp dword [ebp - 4], ebx
jl 0x13615
push 4
lea eax, [ebp - 4]
push eax
push 4
push ebx
push 0x131b4
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1366e
Capabilities:
Create device object

Disassembly:
push esi
push edi
call fcn.000104a8
mov esi, dword [esp + 0xc]
push 0x13394
mov dword [0x13384], eax
xor eax, eax
push eax
push eax
push 0x22
mov edi, 0x131dc
push edi
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jne 0x136b7
push edi
push 0x1320c
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
test eax, eax
je 0x136bc
push dword [0x13394]
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
or eax, 0xffffffff
jmp 0x136e3
mov eax, 0x1174a
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x70], 0x11764
call fcn.000133ca
call fcn.000134f2
push dword [esp + 0x10]
call fcn.0001361a
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x1001bd52
Capabilities:
Encode data using xor

Disassembly:
pop eax
stosb byte es:[edi], al
invalid
add eax, 4
jmp 0x1001be7b
call 0x1001bd2b
mov edi, 0xb5760b29
arpl word [ebx - 0x3a], ax
jecxz 0x1001bd76
inc ebx
push edx
xor edx, edx
push ebx
push ecx
push eax
push esi
push edi
je 0x1001bd41
or dword [ebp + 0x5b], esi
push es
sbb eax, 0xe548602
loop 0x1001bd75
xchg ebx, eax
pop eax
mov ch, 0xb2
scasb al, byte es:[edi]
push ebx
inc esp
les esi, [edi + 0x37]
aaa
sbb al, 0xee
loopne 0x1001bd8a
jne 0x1001beea
test dword [edx + 1], ebp
add byte [eax], al
jae 0x1001bdf9
sub eax, dword [eax + edx*8 - 0x3890921b]
sbb ebx, eax
sal byte [ebx - 0x1b12bea8], cl
adc bh, 0x41
out 0xbd, al
insd dword es:[edi], dx
outsd dx, dword [esi]
invalid
jne 0x1001bdc2
jb 0x1001be32
mov ch, 0xf4
push esi
or dl, byte [eax + edi*2]
cmc
hlt
push dword [ebx]
pop eax
jmp 0x1001bedd
mov edx, dword [ebx + 4]
jmp 0x1001beea
stc
sbb ebx, 0xfffffff7
jmp 0x1001bebf
sub ebx, 0xfffffffc
jmp 0x1001bdc2
call fcn.1001befb
jmp 0x1001becc
jmp 0x100085c5
dec edx
clc
jae 0x1001bd7a
fcom dword [eax + ebp + 0xde7007c]
je 0x1001becc
stc
jmp 0x1001beb0
mov ecx, ebx
jmp 0x1001be09
dec dword [ecx]
stc
jb 0x1001bd9a
cmp al, 0xb6
sbb ch, cl
pop edi
pop esi
pop eax
pop ecx
pop ebx
pop edx
stc
jb 0x1001be4b
popfd
dec esp
mov cs, ecx
add eax, ebx
jmp 0x1001bddf
sub dword [eax], 0xa01f031f
jmp 0x1001bd14
Function at 0x4029fc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040441c
test esi, esi
jne 0x402a32
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040450c
jmp 0x402a50
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402910
mov edi, eax
test esi, esi
je 0x402a50
cmp dword [ebx], 0
je 0x402a50
dec esi
jmp 0x402a39
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40349c
Capabilities:
Query or enumerate registry value

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

Function at 0x4041fc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45d048], 0
je 0x40425d
cmp word [0x45d21c], 0xd7b2
jne 0x404225
cmp dword [0x45d224], 0
jbe 0x404225
mov eax, 0x45d218
call dword [0x45d234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45b054
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 0x404284
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45b01c], 0
jne 0x404279
push 0
push 0x45b074
push 0x45b054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4043d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402718
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x45d049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404398
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405d44
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 0xf0019
push 0
push 0x405f74
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405dc7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f74
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405dc7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405e50
xor eax, eax
push ebp
push 0x405e49
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405b8c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405e2e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405fb0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405e2e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e50
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x405f6a
cmp byte [ebp - 0xd], 0
jne 0x405e97
cmp byte [ebp - 0x12], 0
je 0x405f6a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405eb0
dec ebx
cmp byte [ebx], 0x2e
je 0x405ebf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405eaf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405f6a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405efc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405f6a
cmp byte [ebp - 0xd], 0
je 0x405f6a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405f6a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x40b510
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 0x40b549
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040450c
jmp 0x40b552
mov eax, ebx
mov edx, esi
call fcn.00404470
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bc04
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba7c
mov eax, dword [0x45bf20]
cmp byte [eax], 0
je 0x40bc6c
mov eax, dword [0x45bd64]
call fcn.00402db8
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408ca0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40bcb4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bca2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45bd20]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45d714]
call fcn.00405b50
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 0x40c984
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 0x40c9e8
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.00404684
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004087b0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9ef
lea eax, [ebp - 0xc]
call fcn.0040441c
ret

Function at 0x41ddac
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041dc20
dec esi
jne 0x41ddce
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret