joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432bc8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x432bfd
cmp edi, dword [esi + 0xc]
jge 0x432bfd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x432bfd
cmp edi, dword [eax + 8]
jge 0x432bfd
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x432bff
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x432d03
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x432d37
jmp fcn.0042777b
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x432da8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x432ea1
cmp eax, dword [edi + 0xc]
jge 0x432ea1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x432df9
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x432e8a
cmp dword [ebp + 0xc], ebx
je 0x432e8a
jmp 0x432e23
push 0x10
call fcn.00432a94
cmp eax, ebx
je 0x432e0f
mov ecx, eax
call fcn.00432cfa
mov esi, eax
jmp 0x432e11
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x432e3a
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x432e4a
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x432e5c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0042777b
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00418fe0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x432e9c
cmp ecx, dword [esi + 8]
jge 0x432e9c
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x432ea2
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x432f61
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x432f8f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x432fad
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00432ecb
jmp 0x432fad
mov eax, dword [esi + 0x14]
test eax, eax
je 0x432fad
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00432ecb
test edi, edi
mov eax, edi
jne 0x432f97
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44fc44]
test ecx, ecx
je 0x433060
jmp 0x432f60
ret 8
Function at 0x105e0
Capabilities:
Create device object
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
push 0x10500
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
push 0x1050c
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
mov edx, dword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
push edx
push 0
push 0
push 0x40
lea eax, [ebp - 0x10]
push eax
call sub.ntoskrnl.exe_ObReferenceObjectByName
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x10663
push 0x10530
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x10768
mov ecx, dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x10765
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x2c]
push ecx
push 0
push 0x24
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x106bf
push 0x10564
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x10768
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStack]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x106f9
push 0x105a4
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
jmp 0x10768
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00010490
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x30]
add ecx, 1
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0x30], cl
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
and ecx, 0x2014
mov edx, dword [ebp - 0x1c]
or ecx, dword [edx + 0x1c]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
jmp 0x10675
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret 8
Function at 0x10790
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11180
push 0x1108a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_IoDetachDevice]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0
push 0x10770
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov dword [ebp - 4], 0
jmp 0x10824
mov dword [ebp - 4], 0xffffffff
call fcn.00010832
jmp 0x10833
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10b80
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 5], 0
mov dword [ebp - 4], 0
movzx eax, byte [ebp + 8]
and eax, 0x80
jne 0x10c31
movzx ecx, byte [ebp + 8]
cmp ecx, 0x47
jl 0x10bc8
movzx edx, byte [ebp + 8]
cmp edx, 0x47
jl 0x10bd9
movzx eax, byte [ebp + 8]
cmp eax, 0x54
jge 0x10bd9
mov ecx, dword [0x112bc]
and ecx, 4
je 0x10bd9
movzx edx, byte [ebp + 8]
mov eax, dword [ebp - 4]
mov cl, byte [eax + edx + section..data]
mov byte [ebp - 5], cl
movzx edx, byte [ebp + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
sub eax, 0x2a
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1b
ja case.0x10bf9.1
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x10cb6]
jmp dword [edx*4 + 0x10ca6]
mov eax, dword [0x112bc]
xor eax, 2
mov dword [0x112bc], eax
jmp case.0x10bf9.1
mov ecx, dword [0x112bc]
or ecx, 1
mov dword [0x112bc], ecx
jmp case.0x10bf9.1
mov edx, dword [0x112bc]
xor edx, 4
mov dword [0x112bc], edx
jmp 0x10c57
movzx eax, byte [ebp + 8]
cmp eax, 0xaa
je 0x10c48
movzx ecx, byte [ebp + 8]
cmp ecx, 0xb6
jne 0x10c57
mov edx, dword [0x112bc]
and edx, 0xfffffffe
mov dword [0x112bc], edx
movzx eax, byte [ebp - 5]
cmp eax, 0x20
jl 0x10ca0
movzx ecx, byte [ebp - 5]
cmp ecx, 0x7f
jge 0x10ca0
cmp dword [0x112bc], 6
jne 0x10c8e
movzx edx, byte [ebp - 5]
cmp edx, 0x61
jl 0x10c8e
movzx eax, byte [ebp - 5]
cmp eax, 0x7a
jg 0x10c8e
movzx ecx, byte [ebp - 5]
sub ecx, 0x20
mov byte [ebp - 5], cl
movzx edx, byte [ebp - 5]
push edx
push 0x10b60
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov esp, ebp
pop ebp
ret 4
Function at 0x10c00
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 5], 0
mov dword [ebp - 4], 0
movzx eax, byte [ebp + 8]
and eax, 0x80
jne 0x10c31
movzx ecx, byte [ebp + 8]
cmp ecx, 0x47
jl 0x10bc8
movzx edx, byte [ebp + 8]
cmp edx, 0x47
jl 0x10bd9
movzx eax, byte [ebp + 8]
cmp eax, 0x54
jge 0x10bd9
mov ecx, dword [0x112bc]
and ecx, 4
je 0x10bd9
movzx edx, byte [ebp + 8]
mov eax, dword [ebp - 4]
mov cl, byte [eax + edx + section..data]
mov byte [ebp - 5], cl
movzx edx, byte [ebp + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
sub eax, 0x2a
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1b
ja case.0x10bf9.1
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x10cb6]
jmp dword [edx*4 + 0x10ca6]
mov eax, dword [0x112bc]
xor eax, 2
mov dword [0x112bc], eax
jmp case.0x10bf9.1
mov ecx, dword [0x112bc]
or ecx, 1
mov dword [0x112bc], ecx
jmp case.0x10bf9.1
mov edx, dword [0x112bc]
xor edx, 4
mov dword [0x112bc], edx
jmp 0x10c57
movzx eax, byte [ebp + 8]
cmp eax, 0xaa
je 0x10c48
movzx ecx, byte [ebp + 8]
cmp ecx, 0xb6
jne 0x10c57
mov edx, dword [0x112bc]
and edx, 0xfffffffe
mov dword [0x112bc], edx
movzx eax, byte [ebp - 5]
cmp eax, 0x20
jl 0x10ca0
movzx ecx, byte [ebp - 5]
cmp ecx, 0x7f
jge 0x10ca0
cmp dword [0x112bc], 6
jne 0x10c8e
movzx edx, byte [ebp - 5]
cmp edx, 0x61
jl 0x10c8e
movzx eax, byte [ebp - 5]
cmp eax, 0x7a
jg 0x10c8e
movzx ecx, byte [ebp - 5]
sub ecx, 0x20
mov byte [ebp - 5], cl
movzx edx, byte [ebp - 5]
push edx
push 0x10b60
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov esp, ebp
pop ebp
ret 4
Function at 0x10c0f
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 5], 0
mov dword [ebp - 4], 0
movzx eax, byte [ebp + 8]
and eax, 0x80
jne 0x10c31
movzx ecx, byte [ebp + 8]
cmp ecx, 0x47
jl 0x10bc8
movzx edx, byte [ebp + 8]
cmp edx, 0x47
jl 0x10bd9
movzx eax, byte [ebp + 8]
cmp eax, 0x54
jge 0x10bd9
mov ecx, dword [0x112bc]
and ecx, 4
je 0x10bd9
movzx edx, byte [ebp + 8]
mov eax, dword [ebp - 4]
mov cl, byte [eax + edx + section..data]
mov byte [ebp - 5], cl
movzx edx, byte [ebp + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
sub eax, 0x2a
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1b
ja case.0x10bf9.1
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x10cb6]
jmp dword [edx*4 + 0x10ca6]
mov eax, dword [0x112bc]
xor eax, 2
mov dword [0x112bc], eax
jmp case.0x10bf9.1
mov ecx, dword [0x112bc]
or ecx, 1
mov dword [0x112bc], ecx
jmp case.0x10bf9.1
mov edx, dword [0x112bc]
xor edx, 4
mov dword [0x112bc], edx
jmp 0x10c57
movzx eax, byte [ebp + 8]
cmp eax, 0xaa
je 0x10c48
movzx ecx, byte [ebp + 8]
cmp ecx, 0xb6
jne 0x10c57
mov edx, dword [0x112bc]
and edx, 0xfffffffe
mov dword [0x112bc], edx
movzx eax, byte [ebp - 5]
cmp eax, 0x20
jl 0x10ca0
movzx ecx, byte [ebp - 5]
cmp ecx, 0x7f
jge 0x10ca0
cmp dword [0x112bc], 6
jne 0x10c8e
movzx edx, byte [ebp - 5]
cmp edx, 0x61
jl 0x10c8e
movzx eax, byte [ebp - 5]
cmp eax, 0x7a
jg 0x10c8e
movzx ecx, byte [ebp - 5]
sub ecx, 0x20
mov byte [ebp - 5], cl
movzx edx, byte [ebp - 5]
push edx
push 0x10b60
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov esp, ebp
pop ebp
ret 4
Function at 0x10c20
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 5], 0
mov dword [ebp - 4], 0
movzx eax, byte [ebp + 8]
and eax, 0x80
jne 0x10c31
movzx ecx, byte [ebp + 8]
cmp ecx, 0x47
jl 0x10bc8
movzx edx, byte [ebp + 8]
cmp edx, 0x47
jl 0x10bd9
movzx eax, byte [ebp + 8]
cmp eax, 0x54
jge 0x10bd9
mov ecx, dword [0x112bc]
and ecx, 4
je 0x10bd9
movzx edx, byte [ebp + 8]
mov eax, dword [ebp - 4]
mov cl, byte [eax + edx + section..data]
mov byte [ebp - 5], cl
movzx edx, byte [ebp + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
sub eax, 0x2a
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1b
ja case.0x10bf9.1
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x10cb6]
jmp dword [edx*4 + 0x10ca6]
mov eax, dword [0x112bc]
xor eax, 2
mov dword [0x112bc], eax
jmp case.0x10bf9.1
mov ecx, dword [0x112bc]
or ecx, 1
mov dword [0x112bc], ecx
jmp case.0x10bf9.1
mov edx, dword [0x112bc]
xor edx, 4
mov dword [0x112bc], edx
jmp 0x10c57
movzx eax, byte [ebp + 8]
cmp eax, 0xaa
je 0x10c48
movzx ecx, byte [ebp + 8]
cmp ecx, 0xb6
jne 0x10c57
mov edx, dword [0x112bc]
and edx, 0xfffffffe
mov dword [0x112bc], edx
movzx eax, byte [ebp - 5]
cmp eax, 0x20
jl 0x10ca0
movzx ecx, byte [ebp - 5]
cmp ecx, 0x7f
jge 0x10ca0
cmp dword [0x112bc], 6
jne 0x10c8e
movzx edx, byte [ebp - 5]
cmp edx, 0x61
jl 0x10c8e
movzx eax, byte [ebp - 5]
cmp eax, 0x7a
jg 0x10c8e
movzx ecx, byte [ebp - 5]
sub ecx, 0x20
mov byte [ebp - 5], cl
movzx edx, byte [ebp - 5]
push edx
push 0x10b60
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov esp, ebp
pop ebp
ret 4

Function at 0x11305
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x112c4]
test eax, eax
mov ecx, 0xbb40
je 0x1131c
cmp eax, ecx
jne 0x1133f
mov edx, dword [sym.imp.ntoskrnl.exe_KeTickCount]
mov eax, 0x112c4
shr eax, 8
xor eax, dword [edx]
and eax, 0xffff
mov dword [0x112c4], eax
jne 0x1133f
mov eax, ecx
mov dword [0x112c4], eax
not eax
mov dword [0x112c0], eax
pop ebp
jmp 0x10fe0
Function at 0x40699a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x4069d1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069ab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x4069a6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x4069e4
pop edi
not eax
pop esi
ret 0xc
Function at 0x40326c
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x40329f
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x4032a6
cmp edx, dword [ebx + 8]
je 0x4032b0
mov eax, 0x65
jmp 0x4032ab
mov eax, 5
jmp 0x4032ab
call sub.kernel32.dll_GetLastError
call fcn.00402894
mov eax, ebx
pop ebx
ret

Function at 0x403748
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x494020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4037c0
xor eax, eax
push ebp
push 0x4037b9
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 0x4037fc
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 0x4037c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x494020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x494020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x496048], 0
je 0x404505
cmp word [0x49621c], 0xd7b2
jne 0x4044cd
cmp dword [0x496224], 0
jbe 0x4044cd
mov eax, 0x496218
call dword [0x496234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x494090
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 0x40452c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x494030], 0
jne 0x404521
push 0
push 0x494088
push 0x494090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405974
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 0x405ba4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4059f7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ba4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4059f7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405bc0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405a80
xor eax, eax
push ebp
push 0x405a79
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004057bc
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 0x405a5e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405be0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405a5e
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 0x405a80
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 0x405b9a
cmp byte [ebp - 0xd], 0
jne 0x405ac7
cmp byte [ebp - 0x12], 0
je 0x405b9a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405ae0
dec ebx
cmp byte [ebx], 0x2e
je 0x405aef
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405adf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405b9a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405b2c
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 0x405b9a
cmp byte [ebp - 0xd], 0
je 0x405b9a
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 0x405b9a
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 0x40626c
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 0x4062d2
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.00404890
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403198
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4062bc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062d9
lea eax, [ebp - 0x10]
call fcn.00404620
ret

Function at 0x40b7dc
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 0x40b815
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404710
jmp 0x40b81e
mov eax, ebx
mov edx, esi
call fcn.00404674
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bed0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bd48
mov eax, dword [0x495b90]
cmp byte [eax], 0
je 0x40bf4c
mov eax, dword [0x495994]
call fcn.00402d30
call fcn.00402874
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.00408f14
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 0x40bf94
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bf82
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x495938]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x496664]
call fcn.00405780
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