joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6dd5ab20
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6dd38620
push 0x6dd58d62
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff88
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xc]
mov dword [eax], 4
call fcn.6dd5aa00
test eax, eax
je 0x6dd5ab67
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
or edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x4c]
test eax, eax
je 0x6dd5aba1
movzx ecx, word [ebp - 0x4c]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
jmp 0x6dd5abda
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0x182
je 0x6dd5abbb
cmp dword [ebp - 0x74], 0x1e6
je 0x6dd5abc6
jmp 0x6dd5abd1
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
jmp 0x6dd5abda
mov edx, dword [ebp + 8]
mov dword [edx], 4
jmp 0x6dd5abda
mov eax, dword [ebp + 8]
mov dword [eax], 0
movzx ecx, word [ebp - 0x6c]
test ecx, ecx
je 0x6dd5abe7
jmp 0x6dd5ad0d
cmp dword [ebp - 0x54], 0x24a
jae 0x6dd5abf5
jmp 0x6dd5ad0d
mov dword [ebp - 4], 0
xor eax, eax
cpuid
mov dword [0x6de459a8], ebx
mov dword [0x6de459b0], ecx
mov dword [0x6de459ac], edx
mov byte [0x6de459b4], 0
mov eax, 1
cpuid
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x6dd5ac46
mov edx, dword [ebp - 0x2c]
and edx, 0x10
jne 0x6dd5ac53
jmp 0x6dd5ad0d
mov eax, dword [ebp - 0x2c]
and eax, 0x8000
je 0x6dd5ac72
mov ecx, dword [ebp - 0x2c]
and ecx, 1
je 0x6dd5ac72
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
or eax, 2
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x6dd5ac8a
mov eax, dword [ebp - 0x38]
and eax, 0xf00
sar eax, 8
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 0x78], 0x6dd38280
mov dword [ebp - 0x7c], 0x6de459a8
mov edx, dword [ebp - 0x7c]
mov al, byte [edx]
mov byte [ebp - 0x7d], al
mov ecx, dword [ebp - 0x78]
cmp al, byte [ecx]
jne 0x6dd5acd8
cmp byte [ebp - 0x7d], 0
je 0x6dd5accc
mov edx, dword [ebp - 0x7c]
mov al, byte [edx + 1]
mov byte [ebp - 0x7e], al
mov ecx, dword [ebp - 0x78]
cmp al, byte [ecx + 1]
jne 0x6dd5acd8
add dword [ebp - 0x7c], 2
add dword [ebp - 0x78], 2
cmp byte [ebp - 0x7e], 0
jne 0x6dd5ac98
mov dword [ebp - 0x84], 0
jmp 0x6dd5ace3
sbb edx, edx
sbb edx, 0xffffffff
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x6dd5ad0d
mov ecx, dword [ebp + 8]
cmp dword [ecx], 5
jbe 0x6dd5ad0d
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
and eax, 0xfffffffb
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6dd5ad30
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x6de41080]
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, 0x27
lea edi, [ebp - 0xa0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x6dd5adae
cmp dword [ebp - 0x90], 2
jne 0x6dd5adae
cmp dword [ebp - 0x9c], 5
jne 0x6dd5adb8
mov ecx, dword [ebp - 0x98]
xor eax, eax
cmp ecx, eax
jne 0x6dd5adb8
cmp word [ebp - 0xc], ax
mov dword [0x6de41098], eax
je 0x6dd5adb8
mov dword [0x6de459c0], 1
mov ecx, dword [ebp - 4]
call fcn.6dd58dd9
mov esp, ebp
pop ebp
ret
mov dword [0x6de41098], 0
mov ecx, dword [ebp - 4]
call fcn.6dd58dd9
mov esp, ebp
pop ebp
ret

Function at 0x6dd5add0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6de41080]
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x108], 0
mov ecx, 0x40
lea edi, [ebp - 0x106]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x20c], 0
xor eax, eax
mov ecx, 0x40
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
pop edi
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6dd5ae40
sub eax, edx
dec eax
js 0x6dd5ae5c
mov cl, 0x5c
mov edi, edi
cmp byte [ebp + eax - 0x108], cl
je 0x6dd5ae5c
dec eax
jns 0x6dd5ae50
lea eax, [ebp + eax - 0x107]
lea edx, [ebp - 0x20c]
sub edx, eax
jmp 0x6dd5ae70
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x6dd5ae70
lea edx, [ebp - 0x210]
push edx
push 0x6dd38634
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x6dd5aed5
lea eax, [ebp - 0x20c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6dd5aea0
mov ecx, dword [ebp - 0x210]
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x6dd3862c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
call fcn.6dd58dd9
mov esp, ebp
pop ebp
ret
Function at 0x6dd84940
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x6de41080]
push esi
mov esi, ecx
mov dword [ebp - 4], eax
cmp dword [esi + 0x1a4], 0xffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x6dd8496e
call edi
mov dword [esi + 0x1a4], eax
mov ecx, dword [esi + 0x1a0]
inc ecx
mov eax, ecx
cmp eax, 0x78
mov dword [esi + 0x1a0], ecx
jb 0x6dd849ef
call edi
mov edx, dword [esi + 0x1a4]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x7d0
jb 0x6dd849ef
mov eax, dword [esi + 0x1a0]
imul eax, eax, 0x2710
xor edx, edx
div ecx
xor edx, edx
mov ecx, 0xa
div ecx
lea ecx, [ebp - 0x104]
push edx
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [edx + 0x234]
push eax
push 0x6dd39fa4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call edi
mov dword [esi + 0x1a4], eax
mov dword [esi + 0x1a0], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.6dd58dd9
mov esp, ebp
pop ebp
ret
Function at 0x6dd85000
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, esi
call fcn.6dd825d0
xor ebx, ebx
lea edx, [esi + 0x8c]
xor eax, eax
mov edi, edx
mov dword [esi], 0x6dd3a054
mov dword [esi + 0x1c], 0x6dd3a040
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x198], ebx
mov dword [esi + 0x1a0], ebx
mov dword [esi + 0x1a4], 0xffffffff
mov ecx, 0x36
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x204]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [edx], ecx
lea edx, [ebp + 0xc]
push edx
push 0x6dd31614
push 0x80000002
mov dword [esi + 0xc8], 0xcc0020
mov dword [esi + 0x160], 0x80004005
call edi
test eax, eax
jne 0x6dd85128
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
push ebx
push 0x6dd3a030
push eax
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6dd850eb
cmp dword [ebp - 4], ebx
je 0x6dd850eb
or dword [esi + 0x198], 1
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push ebx
push 0x6dd3a024
push ecx
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6dd8511e
cmp dword [ebp - 4], ebx
je 0x6dd8511e
or dword [esi + 0x198], 2
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
push eax
push 0x6dd3a004
push 0x80000002
mov dword [esi + 0x19c], ebx
call edi
test eax, eax
jne 0x6dd8517c
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
push ebx
push 0x6dd39ff0
push ecx
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6dd85172
mov edx, dword [ebp - 8]
mov dword [esi + 0x19c], edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x6dd8cf30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [esp + 4], esi
mov dword [esp], ebx
add esp, 0xfffffff4
lea eax, [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [ebp - 0xc], ebx
mov dword [esp + 4], 0x6dd3a420
mov dword [esp], 0x80000002
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x6dd8cfdb
add esp, 0xffffffe8
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
lea ecx, [ebp - 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x6dd8cfc0
mov eax, dword [ebp - 4]
cmp eax, 4
jne 0x6dd8cfc0
mov eax, dword [ebp - 0x10]
cmp eax, 4
je 0x6dd8cfcd
mov eax, ebx
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov esp, ebp
pop ebp
ret
Function at 0x6ddba130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ddba220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [ebp - 0x10], esp
mov dword [ecx], 0x6de41b40
mov dword [ebp - 0x1c], ecx
mov dword [ecx + 0x30], 0
mov dword [ebp - 4], 0
add esp, 0xfffffff0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0x4000
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 0x1c]
test eax, eax
mov dword [edx + 0x1c], eax
je 0x6ddba1f0
mov edi, eax
mov eax, 0xcccccccc
mov ecx, 0x1000
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
mov esp, ebp
pop ebp
ret 4
add esp, 0xfffffff8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x6dd3a4a0
mov dword [esp + 4], 0x6de419a0
mov dword [esp], eax
call sub.msvcrt.dll__CxxThrowException
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x1c]
jmp 0x6ddba1a2
Function at 0x6ddeab70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ddeac60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [ebp - 0x10], esp
mov dword [ecx], 0x6de42140
mov dword [ebp - 0x1c], ecx
mov dword [ecx + 0x30], 0
mov dword [ebp - 4], 0
add esp, 0xfffffff0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0x4000
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 0x1c]
test eax, eax
mov dword [edx + 0x1c], eax
je 0x6ddeac30
mov edi, eax
mov eax, 0xcccccccc
mov ecx, 0x1000
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
mov esp, ebp
pop ebp
ret 4
add esp, 0xfffffff8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x6dd3a4a0
mov dword [esp + 4], 0x6de419a0
mov dword [esp], eax
call sub.msvcrt.dll__CxxThrowException
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x1c]
jmp 0x6ddeabe2
Function at 0x6ddf0010
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 0x28]
push edi
jne 0x6ddf0027
inc dword [esi + 0x2c]
mov edi, dword [ebp + 8]
test dword [edi + 0x12fa8], 0x200000
je 0x6ddf004b
mov eax, dword [edi + 0x13810]
cmp eax, 0xffffffff
je 0x6ddf004b
mov dword [ebp + 8], eax
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x6ddf0063
mov ecx, dword [edi + 0x12fa4]
mov edx, dword [edi + 0x11c18]
mov eax, dword [edi + 0x11c1c]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], edx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x1c]
cmp eax, edx
jl 0x6ddf01c9
jg 0x6ddf0082
cmp ecx, dword [esi + 8]
jb 0x6ddf01c9
cmp eax, dword [esi + 0x14]
jg 0x6ddf01c9
jl 0x6ddf0096
cmp ecx, dword [esi + 0x10]
jae 0x6ddf01c9
mov eax, dword [esi + 0x20]
test eax, eax
mov ecx, 0x12345605
je 0x6ddf00a7
mov ecx, 0x92345605
mov dword [esi + 0x350], 0
mov eax, dword [edi + 0x11b58]
test eax, eax
push ebx
je 0x6ddf00f5
lea esp, [esp]
mov edx, dword [esi + 0x350]
mov ebx, dword [eax + 0xc]
mov dword [esi + edx*8 + 0x30], ebx
mov edx, dword [esi + 0x350]
mov ebx, dword [eax + 0x20]
mov dword [esi + edx*8 + 0x34], ebx
mov ebx, dword [esi + 0x350]
inc ebx
mov edx, ebx
cmp edx, 0x64
mov dword [esi + 0x350], ebx
jae 0x6ddf00f5
mov eax, dword [eax + 0x58]
test eax, eax
jne 0x6ddf00c0
mov edx, dword [edi + 0x12fc0]
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.msvcrt.dll_fwrite]
mov dword [ebp - 0x38], ecx
mov ecx, dword [edi + 0x12fa4]
mov dword [ebp - 0x30], ecx
mov ecx, dword [edi + 0x12fa8]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov edx, dword [edi + 0x12fbc]
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0x12fc4]
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi]
push ecx
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x12fb8]
push 0x30
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x350]
lea edx, [ebp - 0x38]
push 1
push edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
call ebx
mov eax, dword [esi]
mov ecx, dword [esi + 0x350]
push eax
push ecx
lea edx, [esi + 0x30]
push 8
push edx
call ebx
mov eax, dword [esi + 0x20]
add esp, 0x20
test eax, eax
jne 0x6ddf01bc
test dword [edi + 0x12fbc], 0x80000
jne 0x6ddf01a0
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0x12fcc]
push eax
push ecx
push 2
push edx
call ebx
add esp, 0x10
mov ecx, dword [edi + 0x12fc0]
imul ecx, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [edi + 0x12fc8]
push eax
push ecx
push 1
push edx
call ebx
add esp, 0x10
mov eax, dword [esi]
push eax
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 4
pop ebx
mov edx, dword [esi + 0x18]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x24]
add edx, ecx
mov ecx, dword [esi + 0x1c]
adc ecx, 0
inc eax
pop edi
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x24], eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x6de19c30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0x6dd31614
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x6de19c96
mov edx, dword [ebp + 0x10]
push esi
lea ecx, [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x6de19c96
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 8]
jne 0x6de19c96
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402e88
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402ee1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d24
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d24
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402ecb
inc ebx
jmp 0x402eb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ee8
lea eax, [ebp - 8]
call fcn.00404c4c
ret

Function at 0x402ef0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404c4c
test esi, esi
jne 0x402f27
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404d3c
jmp 0x402f48
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d24
mov dword [esp], eax
test esi, esi
je 0x402f48
cmp dword [ebx], 0
je 0x402f48
dec esi
jmp 0x402f2f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403ca0
Capabilities:
Query or enumerate registry value

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

Function at 0x404a44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53204c], 0
je 0x404aa5
cmp word [0x532220], 0xd7b2
jne 0x404a6d
cmp dword [0x532228], 0
jbe 0x404a6d
mov eax, 0x53221c
call dword [0x532238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x52c070
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 0x404acc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52c030], 0
jne 0x404ac1
push 0
push 0x52c068
push 0x52c070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404c00
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.00402ac4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x53204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404bc8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406dec
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 0x406e52
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.00404ebc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004036f0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406e3c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e59
lea eax, [ebp - 0x10]
call fcn.00404c4c
ret

Function at 0x409ccc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040510c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409ce5
test al, 0x10
jne 0x409ce9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40cfc0
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 0x40cff9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d3c
jmp 0x40d002
mov eax, ebx
mov edx, esi
call fcn.00404ca0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d810
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d678
mov eax, dword [0x53160c]
cmp byte [eax], 0
je 0x40d88c
mov eax, dword [0x53126c]
call fcn.004033a8
call fcn.00402c50
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.0040a124
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 0x40d8d4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d8c2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5311d0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x532668]
call fcn.00406218
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