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

Disassembly:
push ebx
xor ecx, ecx
mov dword [0x100bb158], 0xea60
push esi
mov eax, 0x1f4
mov dword [0x100bb154], ecx
push edi
push ecx
mov dword [0x100bb150], eax
mov dword [0x100bb15c], ecx
mov dword [0x100bb160], eax
mov dword [0x100bb164], ecx
mov dword [0x100bb168], ecx
call fcn.1005c04b
mov edi, eax
mov esi, edx
mov eax, 0x55555555
mov dword [0x100bb178], edi
xor ebx, ebx
mov dword [0x100bc4f8], eax
pop ecx
mov dword [0x100bc4fc], eax
inc ebx
mov dword [0x100bb17c], esi
push 0x5851f42d
xor eax, eax
mov ecx, esi
push 0x4c957f2d
shr ecx, 0x1e
xor eax, esi
xor ecx, edi
push eax
push ecx
call fcn.10039cf0
mov edi, eax
mov esi, edx
mov eax, ebx
cdq
add edi, eax
mov eax, 0x138
mov dword [ebx*8 + 0x100bb178], edi
adc esi, edx
mov dword [ebx*8 + 0x100bb17c], esi
inc ebx
cmp ebx, eax
jl 0x100305f2
movaps xmm0, xmmword [0x10087960]
pop edi
pop esi
mov dword [0x100bb170], eax
mov eax, 0x100bb150
movups xmmword [0x100bc500], xmm0
pop ebx
ret 0x10

Function at 0x10033ae0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10091084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov eax, esi
push edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x10033b29
cmp word [edx], cx
je 0x10033b29
push ecx
lea eax, [ebp - 8]
push eax
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10033b4e
mov eax, dword [ebp - 8]
xor ecx, ecx
push dword [ebp + 0x14]
push ebx
push 1
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 8]
mov edi, eax
test ecx, ecx
je 0x10033b4c
cmp ecx, esi
je 0x10033b4c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038ef5
mov esp, ebp
pop ebp
ret

Function at 0x10033d77
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10091084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xb
mov ebx, ecx
lea edi, [ebp - 0x34]
pop ecx
mov esi, str._pipediscord_ipc_0
rep movsd dword es:[edi], dword [esi]
push 0x30
pop eax
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
mov word [ebp - 0xa], ax
jmp 0x10033de3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10033dc9
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x10033e12
inc ax
mov word [ebp - 0xa], ax
jmp 0x10033de3
cmp eax, 0xe7
jne 0x10033e12
push 0x2710
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x10033e12
push edi
push edi
push 3
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x34]
push eax
call esi
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x10033dac
mov byte [ebx], 1
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038ef5
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x10033e01
Function at 0x10036220
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100363f0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100362fd
mov edx, dword [ebp - 4]
cmp edx, dword [0x10091064]
jb 0x1003626a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10091068]
ja 0x1003626a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003623a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10051560
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1003628f
jmp 0x100362fd
cmp dword [ebp - 0x14], 0x10000
jne 0x100362e3
cmp dword [ebp - 0x18], 0x10000
jb 0x100362e3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100362c6
mov eax, dword [ebp - 8]
jmp 0x100362ff
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100362d6
xor eax, eax
jmp 0x100362ff
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100362f8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100363f0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003623a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10036310
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10036420
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100363e5
mov edx, dword [ebp - 4]
cmp edx, dword [0x10091064]
jb 0x10036355
mov eax, dword [ebp - 4]
cmp eax, dword [0x10091068]
ja 0x10036355
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10036325
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10051560
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1003637a
jmp 0x100363e5
cmp dword [ebp - 0x14], 0x10000
jne 0x100363ce
cmp dword [ebp - 0x18], 0x10000
jb 0x100363ce
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100363b1
mov eax, dword [ebp - 8]
jmp 0x100363e7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100363c1
xor eax, eax
jmp 0x100363e7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100363e0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10036420
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10036325
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10036450
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10036840
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10094ad8], 0
jne 0x1003648d
cmp dword [0x10094ad4], 0
je 0x1003648d
mov eax, dword [0x10094ad4]
mov dword [0x10094ad8], eax
cmp dword [0x10094ad8], 0
je 0x1003650a
mov ecx, dword [0x10094ad8]
cmp dword [ecx + 8], 0
je 0x1003650a
mov edx, dword [0x10094ad8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1003650a
mov ecx, dword [0x10094ad8]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1003650a
mov eax, dword [0x10094ad8]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x100364d9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x100364e0
xor eax, eax
jmp 0x10036629
mov ecx, dword [0x10094ad8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10051560
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10036629
mov edx, dword [0x10094ad4]
mov dword [0x10094ad8], edx
jmp 0x10036526
mov eax, dword [0x10094ad8]
mov ecx, dword [eax + 4]
mov dword [0x10094ad8], ecx
cmp dword [0x10094ad8], 0
je 0x10036566
cmp dword [0x10094ad8], 0
je 0x10036564
mov edx, dword [0x10094ad8]
cmp dword [edx + 8], 0
je 0x10036564
mov eax, dword [0x10094ad8]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10036564
mov edx, dword [0x10094ad8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10036564
jmp 0x100364be
jmp 0x10036518
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10036630
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10036627
mov eax, dword [ebp - 0x18]
mov dword [0x10094ad8], eax
mov ecx, dword [0x10094ad8]
mov dword [ecx], 0x52727464
mov edx, dword [0x10094ad8]
mov dword [edx + 8], 0
mov eax, dword [0x10094ad8]
mov ecx, dword [0x10094ad4]
mov dword [eax + 4], ecx
mov edx, dword [0x10094ad8]
mov dword [0x10094ad4], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10094ad8]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x100365f7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10036617
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x100365ee
mov eax, dword [0x10094ad8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x100364be
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10037370
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10094ad4]
mov dword [ebp - 4], eax
jmp 0x10037389
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100373b0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100373ae
call sub.KERNEL32.dll_GetLastError
jmp 0x100373b2
jmp 0x10037380
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10037850
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10094ae4], eax
je 0x10037874
mov eax, 0x10dd
jmp 0x10037a1c
cmp dword [0x10094ae8], 0
je 0x10037887
mov eax, dword [0x10094ae8]
jmp 0x10037a1c
cmp dword [ebp + 0xc], 0
jne 0x10037897
mov eax, 0x57
jmp 0x10037a1c
cmp dword [ebp + 8], 0
jne 0x100378a7
mov eax, 6
jmp 0x10037a1c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x100378d0
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x10094ae8], ecx
mov edx, dword [ebp + 8]
mov dword [0x10094aec], edx
mov eax, dword [ebp - 8]
jmp 0x10037a1c
push 0x18
call fcn.10038f06
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003792b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x10094ae8], ecx
cmp dword [ebp - 4], 0
je 0x1003791a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10038f5c
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x10094aec], ecx
mov eax, dword [ebp - 8]
jmp 0x10037a1c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10037830
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10037830
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1003796b
cmp dword [ebp - 0xc], 0x1e
jbe 0x10037987
mov dword [ebp - 8], 9
cmp dword [0x10094adc], 0
je 0x10037982
jmp 0x100378f9
jmp 0x100378f0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x100379ae
mov dword [ebp - 8], 9
cmp dword [0x10094adc], 0
je 0x100379a9
jmp 0x100378f9
jmp 0x100378f0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100379d9
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x100378f0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x10094af4]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10094af4], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10037a30
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10094ae4], eax
je 0x10037a4d
mov eax, 0x10dd
jmp 0x10037b30
mov eax, dword [0x10094af4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10037acc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10037aa8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10037aa8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.100368d0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10038f5c
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10037a55
mov dword [0x10094af4], 0
call fcn.100371b0
mov ecx, dword [0x10094af0]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10037b1a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10038f5c
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10037ae4
mov dword [0x10094af0], 0
mov dword [0x10094ae4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10038010
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10094ae8], 0
je 0x10038029
mov eax, dword [0x10094ae8]
jmp 0x100380c8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1003803a
xor eax, eax
jmp 0x100380c8
push 8
call fcn.10038f06
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10038092
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1003807b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10038f5c
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10094ae8], eax
mov dword [0x10094aec], 0
mov eax, dword [ebp - 8]
jmp 0x100380c8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x100380aa
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003805a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10094af0]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10094af0], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x1003bd72
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x1005e3cb
Capabilities:
Read file on windows

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

Function at 0x10066535
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100661f5
Function at 0x404620
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00407520
test esi, esi
jne 0x404658
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040765c
jmp 0x404676
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404564
mov edi, eax
test esi, esi
je 0x404676
cmp dword [ebx], 0
je 0x404676
dec esi
jmp 0x40465f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406458
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d7054], 0
je 0x4064b9
cmp word [0x4d7330], 0xd7b2
jne 0x406481
cmp dword [0x4d7338], 0
jbe 0x406481
mov eax, 0x4d732c
call dword [0x4d7348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x4064e4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d1030], 0
jne 0x4064d5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406664
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4d1038], 0
je 0x40668a
mov edx, esi
mov eax, ebx
call dword [0x4d1038]
jmp 0x406699
mov eax, 8
call fcn.004042ac
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4d7055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40662c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x409648
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4097af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407520
cmp si, word [0x4d17e0]
jb 0x4096e2
cmp si, word [0x4d19e0]
ja 0x4096e2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4096e2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4d17e0]
jae 0x4096bc
mov edi, ebx
dec edi
jmp 0x4096dd
cmp si, word [ebx*8 + 0x4d17e0]
jbe 0x4096cc
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4096dd
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4d17e4]
call fcn.00409558
jmp 0x4096e2
cmp edi, dword [ebp - 0xc]
jae 0x4096a6
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409791
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409791
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407718
push dword [ebp - 0x164]
push 0x4097cc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407718
push dword [ebp - 0x168]
push 0x4097dc
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407718
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407ad0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097b6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407518
ret
Function at 0x409968
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a6d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d9b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4d9b74]
jne 0x4099b4
mov eax, esi
mov edx, 0x4d9b78
mov ecx, 0x55
call fcn.00407718
push 0x4d9b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409a57
push 0x4d9b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407520
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409a25
cmp byte [0x4d9b58], 0
je 0x4099ea
mov edx, esi
mov eax, ebx
call fcn.00409848
jmp 0x409a25
mov edx, esi
mov eax, ebx
call fcn.00409648
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409a25
cmp dword [esi], 0
je 0x409a0e
mov eax, esi
mov edx, 0x409a88
call fcn.0040792c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409648
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040792c
push 0x4d9b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4d9b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.004075ac
push eax
push 0x4d9b78
call sub.kernel32.dll_lstrcpynW
push 0x4d9b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a74
lea eax, [ebp - 4]
call fcn.00407510
ret
Function at 0x409cac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407508
xor eax, eax
push ebp
push 0x409e91
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409cec
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409d06
push 0x105
mov eax, dword [ebp - 4]
call fcn.004075ac
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409e7b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409ea0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409d95
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409ea0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409d95
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409ed4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409d95
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409f08
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409e7b
xor eax, eax
push ebp
push 0x409e74
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409ab0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409e04
mov eax, dword [ebp - 0x10]
call fcn.004042ac
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004076dc
jmp 0x409e4f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409f48
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409e4f
mov eax, dword [ebp - 0x10]
call fcn.004042ac
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409f48
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004076dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e7b
cmp dword [ebp - 8], 0
je 0x409e6a
mov eax, dword [ebp - 8]
call fcn.004042c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e98
lea eax, [ebp - 4]
call fcn.00407510
ret