joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4668c4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x466a6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x466a50
mov dl, 1
mov eax, dword [0x41caf0]
call fcn.004038dc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047c8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x466a3f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004537f8
test al, al
je 0x466a32
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x466a80
lea eax, [ebp - 0x254]
call fcn.0040a7cc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x466a32
xor eax, eax
push ebp
push 0x466a2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x466ab8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x466a14
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a38
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x466a14
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466a32
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x466935
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00422310
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466a76
lea eax, [ebp - 0x260]
call fcn.004047c8
ret

Function at 0x4673b8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x61fb7c]
cmp byte [eax + 0xa5], 0
jne 0x467429
cmp dword [0x61fb94], 0
jne 0x4673ea
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x467374
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x61fb94], eax
cmp dword [0x61fb90], 0
jne 0x467405
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x61fb90], eax
cmp dword [0x61fb98], 0
jne 0x467429
push esp
push 0
push 0
push 0x467318
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x61fb98], eax
pop edx
ret
Function at 0x467aec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x61fb7c]
cmp dword [eax + 0x30], 0
je 0x467b96
cmp dword [ebx + 0x94], 0
jne 0x467b90
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x467a7c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x467b90
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x467b56
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x467b90
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041f1d4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x467b65
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4686f4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x468729
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004048b8
jmp 0x468736
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040481c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4698f0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x469931
mov eax, esi
call fcn.0044ed2c
test al, al
je 0x469931
mov eax, dword [ebx + 0x84]
call fcn.0044ea28
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x469931
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044ea28
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47a5e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47a60e
mov eax, ebx
call fcn.0047b094
cmp dword [ebx + 0x40], 0
je 0x47a607
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47a67f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47a671
cmp dword [ebx + 8], 0
je 0x47a630
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47a642
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47a671
cmp dword [ebx + 8], 0
je 0x47a623
cmp eax, 3
je 0x47a655
dec eax
jne 0x47a623
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47a623
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47a623
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47a69d
cmp dword [ebx + 0x14], 0xcc
je 0x47a69d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047a6a8
pop ebx
ret
Function at 0x48adc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c78
xor eax, eax
push ebp
push 0x48ae64
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x48ae7c
call fcn.00404860
mov eax, dword [ebp - 4]
call fcn.00404a88
mov esi, eax
test esi, esi
jle 0x48ae3b
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00404ce0
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
xor edx, edi
mov byte [eax + ebx - 1], dl
lea eax, [ebp - 0xc]
mov edx, 0x48ae90
call fcn.00404860
inc ebx
dec esi
jne 0x48ae14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040481c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ae6b
lea eax, [ebp - 0xc]
call fcn.004047c8
lea eax, [ebp - 4]
call fcn.004047c8
ret

Function at 0x50f5fc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41b748]
call fcn.00405398
xor eax, eax
push ebp
push 0x50f740
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x61bb78], 0
jne 0x50f64f
mov ecx, dword [0x61e384]
mov dl, 1
mov eax, dword [0x408484]
call fcn.0040d994
call fcn.004041c0
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004031ec
mov eax, ebx
call fcn.00405054
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x50f750
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406730
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405064
test eax, eax
jle 0x50f6e7
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x50f6e0
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404a50
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404a38
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004093f4
test eax, eax
jne 0x50f6e0
mov ebx, 0x15
jmp 0x50f6ec
mov ebx, 0x10
jmp 0x50f6ec
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x61bb78]
call fcn.0050f474
mov eax, dword [ebp - 8]
call fcn.0050f474
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406748
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f747
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004047ec
lea eax, [ebp - 0x10]
mov edx, dword [0x41b748]
call fcn.00405468
ret
Function at 0x52d60f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x61c992
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x52d667
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x61c9b3
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x52d65d
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
jmp 0x52d66b
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x54f0a4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
lea eax, [esp + 0x100]
push eax
push 0xff
call sub.KERNEL32.DLL_GetTempPathA
push esp
push 0
push 0x54f0e8
lea eax, [esp + 0x10c]
push eax
call sub.KERNEL32.DLL_GetTempFileNameA
mov edx, ebx
mov eax, esp
call fcn.0040a34c
add esp, 0x200
pop ebx
ret

Function at 0x5720d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x57218a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x10]
add dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x20]
mov dl, byte [ebx + 0x30]
mov byte [eax], dl
mov esi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x1c]
sub esi, eax
test esi, esi
je 0x57210f
mov edx, dword [ebx + 0x10]
mov ecx, esi
call fcn.00402e94
add esi, dword [ebx + 0x10]
mov dword [ebx + 0x14], esi
mov ecx, dword [ebx + 0x18]
sub ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 4]
mov esi, dword [eax]
call dword [esi + 0xc]
add dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x1c], eax
mov esi, dword [ebx + 0x14]
mov dword [ebx + 0x20], esi
cmp esi, dword [ebx + 0x18]
jne 0x572166
mov edx, esi
dec edx
mov eax, dword [ebx + 0x10]
call fcn.0041ed60
mov edi, eax
mov dword [ebx + 0x20], edi
cmp edi, dword [ebx + 0x10]
jne 0x572166
lea edx, [ebp - 4]
mov eax, dword [0x61e920]
call fcn.00406c10
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00571fac
mov eax, dword [ebx + 0x20]
mov al, byte [eax]
mov byte [ebx + 0x30], al
mov eax, dword [ebx + 0x20]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x572191
lea eax, [ebp - 4]
call fcn.004047c8
ret
Function at 0x5cf8fc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x5cf919
add esp, 0xfffffff0
call fcn.00403c94
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x5cfab5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.005c602c
test al, al
jne 0x5cf956
mov ecx, 0x5cfae8
mov dl, 1
mov eax, dword [0x5ba6fc]
call fcn.0040d8d8
call fcn.004041c0
xor eax, eax
push ebp
push 0x5cf982
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.005c4ad8
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.005c49c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5cf9a2
mov eax, dword [ebp - 0x10]
mov edx, 0x5cfb24
call fcn.00405180
je 0x5cf9bf
mov eax, esi
mov edx, 0x5cfb24
call fcn.00405180
jne 0x5cf9e3
mov eax, edi
mov edx, 0x5cfb34
call fcn.00405180
je 0x5cf9e3
mov ecx, 0x5cfb0c
mov dl, 1
mov eax, dword [0x5ba9a4]
call fcn.0040d8d8
call fcn.004041c0
mov eax, edi
xor edx, edx
call fcn.00405180
jne 0x5cfa10
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00405180
je 0x5cfa10
mov ecx, 0x5cfb0c
mov dl, 1
mov eax, dword [0x5ba9a4]
call fcn.0040d8d8
call fcn.004041c0
mov eax, dword [ebp - 0x10]
mov edx, 0x5cfb74
call fcn.00405180
jne 0x5cfa43
mov eax, edi
mov edx, 0x5cfb80
call fcn.00405180
je 0x5cfa43
mov ecx, 0x5cfb0c
mov dl, 1
mov eax, dword [0x5ba9a4]
call fcn.0040d8d8
call fcn.004041c0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.005cd9e4
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404f10
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.00404f10
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404f10
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404f10
lea eax, [ebx + 8]
call fcn.00404ed4
mov byte [ebx + 0xc], 2
xor eax, eax
mov dword [ebx + 0x30], eax
mov al, byte [ebp + 8]
mov byte [ebx + 0x34], al
mov ax, word [0x5cfbcc]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5cfabc
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404eec
ret
Function at 0x5d13b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x5d13cd
add esp, 0xfffffff0
call fcn.00403c94
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x5d1568
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.005c602c
test al, al
jne 0x5d140a
mov ecx, 0x5d159c
mov dl, 1
mov eax, dword [0x5ba6fc]
call fcn.0040d8d8
call fcn.004041c0
xor eax, eax
push ebp
push 0x5d1436
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.005c4ad8
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.005c49c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5d1456
mov eax, edi
xor edx, edx
call fcn.00405180
jne 0x5d1483
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00405180
je 0x5d1483
mov ecx, 0x5d15c0
mov dl, 1
mov eax, dword [0x5ba9a4]
call fcn.0040d8d8
call fcn.004041c0
mov eax, dword [ebp - 0x10]
mov edx, 0x5d15d8
call fcn.00405180
jne 0x5d14b6
mov eax, edi
mov edx, 0x5d15e4
call fcn.00405180
je 0x5d14b6
mov ecx, 0x5d15c0
mov dl, 1
mov eax, dword [0x5ba9a4]
call fcn.0040d8d8
call fcn.004041c0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.005cd9e4
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404f10
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.00404f10
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404f10
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404f10
lea eax, [ebx + 8]
call fcn.00404ed4
mov byte [ebx + 0xc], 1
mov dl, 1
mov eax, dword [0x41c2c0]
call fcn.004038dc
mov dword [ebx + 0x38], eax
mov dl, 1
mov eax, dword [0x41c2c0]
call fcn.004038dc
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x41c2c0]
call fcn.004038dc
mov dword [ebx + 0x34], eax
push ebx
mov eax, dword [ebx + 0x38]
push eax
mov ax, word [0x5d1630]
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x5bd720]
call fcn.005ccc3c
mov dword [ebx + 0x3c], eax
mov ax, word [0x5d1634]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d156f
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404eec
ret
Function at 0x5d3fd4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x5d3ff6
add esp, 0xfffffff0
call fcn.00403c94
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x5d4161
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.005c602c
test al, al
jne 0x5d4033
mov ecx, 0x5d4194
mov dl, 1
mov eax, dword [0x5ba6fc]
call fcn.0040d8d8
call fcn.004041c0
push dword [0x61e05c]
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xbc]
push dword [ebp - 0x10]
push dword [0x61e05c]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405138
mov eax, dword [ebp - 0xc]
call fcn.005c6b2c
test al, al
jne 0x5d4105
push dword [0x61e058]
push dword [ebp + 8]
push dword [0x61e058]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405138
mov eax, dword [ebp - 0x14]
call fcn.005c6b2c
test al, al
jne 0x5d4105
push dword [0x61e05c]
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
push dword [ebp - 0x1c]
push dword [0x61e05c]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405138
mov eax, dword [ebp - 0x18]
call fcn.005c6c44
test al, al
jne 0x5d4105
push dword [0x61e058]
push edi
push dword [0x61e058]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00405138
mov eax, dword [ebp - 0x20]
call fcn.005c6c44
test al, al
jne 0x5d4105
mov ecx, 0x5d4194
mov dl, 1
mov eax, dword [0x5ba6fc]
call fcn.0040d8d8
call fcn.004041c0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.005cd9e4
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404f10
lea eax, [ebx + 8]
call fcn.00404ed4
lea eax, [ebx + 0x30]
mov edx, edi
call fcn.00404f10
lea eax, [ebx + 0x34]
mov edx, dword [ebp + 8]
call fcn.00404f10
mov byte [ebx + 0xc], 0xc
mov ax, word [0x5d41b0]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d4168
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00404eec
ret

Function at 0x608df8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x608e73
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push 0x59
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x608e5a
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404a38
mov eax, dword [ebp - 0x104]
mov edx, ebx
call fcn.0040923c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x608e7a
lea eax, [ebp - 0x104]
call fcn.004047c8
ret
Function at 0x10001ac0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x1001f025
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1002c014]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [edi], 0x100272ac
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
lea eax, [ebp]
push 0x105
push eax
mov dword [edi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10001bff
cmp eax, 0x105
jae 0x10001bff
call fcn.10002610
mov ecx, eax
test ecx, ecx
je 0x10001c4f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea eax, [ebp]
test eax, 0xffff0000
jne 0x10001b74
movzx eax, ax
lea ecx, [ebp - 0x10]
push eax
call fcn.100028f0
jmp 0x10001b9c
lea ecx, [ebp]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001b80
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.10002ca0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 1
push 0x10027328
call fcn.10002160
push 0xc
push str.Advapi32.dll
lea ecx, [ebp - 0x10]
call fcn.10002160
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.10011071
add esp, 8
test eax, eax
jne 0x10001bd4
xor ebx, ebx
jmp 0x10001be1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10001c01
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10001c01
xor ebx, ebx
mov eax, dword [edi + 4]
cmp ebx, eax
je 0x10001c14
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [edi + 4], ebx
mov eax, ebx
test eax, eax
jne 0x10001c21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.1000fd1c
lea esp, [ebp + 0x210]
pop ebp
ret 8
push 0x80004005
call fcn.10001a10
int3
Function at 0x10002770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f2e0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1002c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100027f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100027f5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100027d7
cmp esi, edx
jae 0x100027f5
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100027c5
cmp esi, edx
jae 0x100027f5
cmp word [esi], 0
je 0x100027f5
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
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 0x1000a400
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
lea ebx, [esi + 4]
push edi
test eax, eax
je 0x1000a416
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 8]
cmp dword [eax - 4], 1
jle 0x1000a42d
push dword [eax - 0xc]
lea ecx, [esi + 8]
call fcn.10002aa0
mov eax, dword [esi + 8]
push 0
push ebx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1000a452
pop edi
pop esi
xor al, al
pop ebx
ret 8
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x1000a46a
push dword [eax - 0xc]
mov ecx, esi
call fcn.10002aa0
mov eax, dword [esi]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
test eax, eax
pop esi
sete al
pop ebx
ret 8