joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7c875769
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x7c8856cc]
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 8]
push 0x10
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
push 0x2020f
mov dword [ebp - 0x74], eax
push 0
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ntdll.dll_CsrClientCallServer]
cmp dword [ebp - 0x84], 0
jl 0x7c8757be
mov eax, dword [ebp - 0x70]
jmp 0x7c8757e6
push dword [ebp - 0x84]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.7c80935e
and word [ebp - 0xa6], 0
and word [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 4]
call fcn.7c8097aa
leave
ret 8

Function at 0x7c8758c9
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov ecx, dword [ebp + 8]
test ecx, ecx
mov eax, dword [0x7c8856cc]
mov dword [ebp - 4], eax
je 0x7c8758ec
cmp ecx, 1
je 0x7c8758ec
push 0x57
jmp 0x7c875938
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
push 0xc
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
push 0x20244
mov dword [ebp - 0x74], eax
push 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0x78], ecx
call dword [sym.imp.ntdll.dll_CsrClientCallServer]
cmp dword [ebp - 0x84], 0
jl 0x7c87592b
xor eax, eax
inc eax
jmp 0x7c87593f
push dword [ebp - 0x84]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.7c80935e
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.7c8097aa
leave
ret 8

Function at 0x7c875a38
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x7c8856cc]
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 8]
push 0xc
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
push 0x20215
mov dword [ebp - 0x74], eax
push 0
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ntdll.dll_CsrClientCallServer]
cmp dword [ebp - 0x84], 0
jl 0x7c875a8d
xor eax, eax
inc eax
jmp 0x7c875aa1
push dword [ebp - 0x84]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.7c80935e
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.7c8097aa
leave
ret 8
Function at 0x7c875ab2
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x7c8856cc]
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 8]
push 0xc
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
push 0x20216
mov dword [ebp - 0x74], eax
push 0
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ntdll.dll_CsrClientCallServer]
cmp dword [ebp - 0x84], 0
jl 0x7c875b07
xor eax, eax
inc eax
jmp 0x7c875b1b
push dword [ebp - 0x84]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.7c80935e
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.7c8097aa
leave
ret 8

Function at 0x7c875b2c
Capabilities:
Get process heap force flags

Disassembly:
push 0xac
push 0x7c875be8
call fcn.7c8024d6
mov eax, dword [0x7c8856cc]
mov dword [ebp - 0x1c], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x8c], ecx
mov al, byte [eax + 4]
mov byte [ebp - 0x88], al
or dword [ebp - 4], 0xffffffff
push 0x10
push 0x20217
push esi
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.ntdll.dll_CsrClientCallServer]
cmp dword [ebp - 0x9c], esi
jl 0x7c875ba0
xor eax, eax
inc eax
jmp 0x7c875bd2
push dword [ebp - 0x9c]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.7c80935e
jmp 0x7c875bd0
xor eax, eax
mov ecx, dword [ebp - 0x1c]
call fcn.7c8097aa
call fcn.7c802511
ret 8

Function at 0x7c875e11
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x7c8856cc]
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 8]
push 0xc
mov dword [ebp - 0x78], eax
mov ax, word [ebp + 0xc]
push 0x2021a
mov word [ebp - 0x74], ax
push 0
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ntdll.dll_CsrClientCallServer]
cmp dword [ebp - 0x84], 0
jl 0x7c875e68
xor eax, eax
inc eax
jmp 0x7c875e7c
push dword [ebp - 0x84]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.7c80935e
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.7c8097aa
leave
ret 8
Function at 0x7c875e8d
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x7c8856cc]
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 8]
push 0xc
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
push 0x2021b
mov dword [ebp - 0x74], eax
push 0
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ntdll.dll_CsrClientCallServer]
cmp dword [ebp - 0x84], 0
jl 0x7c875ee2
xor eax, eax
inc eax
jmp 0x7c875ef6
push dword [ebp - 0x84]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.7c80935e
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.7c8097aa
leave
ret 8

Function at 0x7c875f7b
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x7c8856cc]
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
and dword [ebp - 0x74], 0
push 0xc
push 0x2023f
mov dword [ebp - 0x7c], eax
push 0
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ntdll.dll_CsrClientCallServer]
cmp dword [ebp - 0x84], 0
jl 0x7c875fc8
mov eax, dword [ebp - 0x78]
jmp 0x7c875fdc
push dword [ebp - 0x84]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.7c80935e
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.7c8097aa
leave
ret

Function at 0x7c8760a6
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x7c8856cc]
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
and dword [ebp - 0x70], 0
push 0x10
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 8]
push 0x20240
mov dword [ebp - 0x78], eax
push 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0x74], 1
call dword [sym.imp.ntdll.dll_CsrClientCallServer]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x84]
call fcn.7c8097aa
leave
ret 4

Function at 0x7c876415
Capabilities:
Get process heap flags

Disassembly:
push 0xac
push 0x7c8764c8
call fcn.7c8024d6
mov eax, dword [0x7c8856cc]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
push 0xc
push 0x2020a
xor edi, edi
push edi
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.ntdll.dll_CsrClientCallServer]
cmp dword [ebp - 0x9c], edi
jl 0x7c87649e
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x8c]
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x7c8764b2
push dword [ebp - 0x9c]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.7c80935e
xor eax, eax
mov ecx, dword [ebp - 0x1c]
call fcn.7c8097aa
call fcn.7c802511
ret 8
Function at 0x7c8764d9
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x7c8856cc]
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
push 0xc
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 8]
push 0x20214
mov dword [ebp - 0x78], eax
push 0
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ntdll.dll_CsrClientCallServer]
cmp dword [ebp - 0x84], 0
jl 0x7c876528
mov eax, dword [ebp - 0x74]
jmp 0x7c876550
push dword [ebp - 0x84]
and word [ebp - 0xa6], 0
and word [ebp - 0xa8], 0
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.7c80935e
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 4]
call fcn.7c8097aa
leave
ret 4

Function at 0x7c876627
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x7c8856cc]
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
push 0x10
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x10]
push 0x20249
mov dword [ebp - 0x70], eax
push 0
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ntdll.dll_CsrClientCallServer]
cmp dword [ebp - 0x84], 0
jl 0x7c876682
xor eax, eax
inc eax
jmp 0x7c876696
push dword [ebp - 0x84]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.7c80935e
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.7c8097aa
leave
ret 0xc

Function at 0x7c8766a7
Capabilities:
Get process heap force flags

Disassembly:
push 0xac
push 0x7c876760
call fcn.7c8024d6
mov eax, dword [0x7c8856cc]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
push 0x10
push 0x2024a
xor ebx, ebx
push ebx
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.ntdll.dll_CsrClientCallServer]
cmp dword [ebp - 0x9c], ebx
jl 0x7c87673b
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x8c]
mov dword [esi], eax
mov eax, dword [ebp - 0x88]
mov dword [edi], eax
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x7c87674f
push dword [ebp - 0x9c]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.7c80935e
xor eax, eax
mov ecx, dword [ebp - 0x1c]
call fcn.7c8097aa
call fcn.7c802511
ret 0xc
Function at 0x7c876a91
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
movzx eax, word [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
lea edi, [eax + ebx + 0x18]
push edi
push 0x40
call sym.KERNEL32.dll_LocalAlloc
mov esi, eax
test esi, esi
jne 0x7c876ac9
mov eax, 0xc0000017
jmp 0x7c876b2a
lea eax, [ebp - 4]
push eax
push edi
push esi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
mov dword [ebp + 0xc], eax
jl 0x7c876b21
push dword [esi + 0xc]
mov eax, dword [esi + 8]
mov edi, dword [ebp + 0x14]
add eax, esi
push eax
push edi
call fcn.7c83298c
add esp, 0xc
cmp dword [esi + 4], 1
jne 0x7c876b21
mov eax, dword [esi + 0xc]
lea ecx, [eax + 2]
cmp ecx, ebx
jbe 0x7c876b10
add eax, 0xfffffffe
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov byte [edi + eax], 0
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
mov byte [edi + eax], 0
push esi
call sym.KERNEL32.dll_LocalFree
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x7c87704b
Capabilities:
Get process heap force flags

Disassembly:
push 0xac
push 0x7c877108
call fcn.7c8024d6
mov eax, dword [0x7c8856cc]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8c], eax
push 0x10
push 0x20247
xor edi, edi
push edi
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.ntdll.dll_CsrClientCallServer]
cmp dword [ebp - 0x9c], edi
jl 0x7c8770dd
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x88]
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x7c8770f1
push dword [ebp - 0x9c]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.7c80935e
xor eax, eax
mov ecx, dword [ebp - 0x1c]
call fcn.7c8097aa
call fcn.7c802511
ret 0xc
Function at 0x7c8783a3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x7c8856cc]
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push edi
mov dword [ebp - 4], eax
push 0x7c8784a8
lea eax, [ebp - 0x140]
push eax
xor edi, edi
call esi
movzx ecx, word [ebp + 8]
push 5
lea eax, [ebp - 0x10]
push eax
xor edx, edx
call fcn.7c87c6f8
test eax, eax
je 0x7c878493
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x134]
push eax
call esi
lea eax, [ebp - 0x140]
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x12c]
push eax
push 0x20019
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x12c], 0x18
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x120], 0x40
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x118], edi
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x7c878491
lea eax, [ebp - 0x138]
push eax
push 0x100
lea eax, [ebp - 0x110]
push eax
push 2
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x114]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jl 0x7c878485
cmp dword [ebp - 0x10c], 1
jne 0x7c878485
cmp word [ebp - 0x104], 0x31
jne 0x7c878485
xor edi, edi
inc edi
push dword [ebp - 0x114]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.7c8097aa
leave
ret 4
Function at 0x7c87a343
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x7c8856cc]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
push edi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], esi
jne 0x7c87a375
push 0x57
jmp 0x7c87a558
mov eax, dword [ebp + 0xc]
test eax, 0xfffffffc
jne 0x7c87a553
lea ecx, [eax - 1]
and ecx, eax
test cl, 3
jne 0x7c87a553
and eax, 1
cmp dword [0x7c8857a4], esi
mov dword [ebp - 0x224], eax
jne 0x7c87a3f0
mov edi, 0x7c885360
push edi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x7c8857a4], esi
jne 0x7c87a3e9
push 0x20019
push 0x7c838660
push 0x7c81b118
push 0x7c8857a4
call fcn.7c81aec6
test eax, eax
je 0x7c87a3e9
push 0x3f1
call fcn.7c80935e
push edi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
jmp 0x7c87a55d
push edi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov ebx, dword [sym.imp.ntdll.dll_NtEnumerateValueKey]
xor eax, eax
mov ecx, 0x85
lea edi, [ebp - 0x218]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x228]
push eax
push 0x214
lea eax, [ebp - 0x218]
push eax
push 1
push esi
jmp 0x7c87a4c9
cmp eax, esi
jl 0x7c87a506
mov eax, dword [ebp - 0x208]
shr eax, 1
cmp eax, 5
ja 0x7c87a499
cmp word [ebp - 0x204], 0x30
jb 0x7c87a499
cmp word [ebp - 0x204], 0x39
ja 0x7c87a499
cmp dword [ebp - 0x224], esi
je 0x7c87a45a
cmp dword [ebp - 0x20c], 2
jbe 0x7c87a499
cmp dword [ebp + 0x10], esi
mov word [ebp + eax*2 - 0x204], si
lea eax, [ebp - 0x204]
je 0x7c87a476
push eax
call dword [ebp - 0x21c]
jmp 0x7c87a490
push esi
push esi
push esi
push esi
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x21c]
push dword [0x7c8853a8]
call fcn.7c838103
cmp eax, 1
jne 0x7c87a54e
inc dword [ebp - 0x220]
xor eax, eax
mov ecx, 0x85
lea edi, [ebp - 0x218]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x228]
push eax
push 0x214
lea eax, [ebp - 0x218]
push eax
push 1
push dword [ebp - 0x220]
push dword [0x7c8857a4]
call ebx
cmp eax, 0x8000001a
jne 0x7c87a420
cmp dword [ebp + 0x10], esi
je 0x7c87a50d
push 0x7c87a57c
call dword [ebp - 0x21c]
xor esi, esi
inc esi
cmp eax, esi
jne 0x7c87a502
push 0x7c87a570
call dword [ebp - 0x21c]
cmp eax, esi
je 0x7c87a54e
mov eax, esi
jmp 0x7c87a55f
push 0x3f1
jmp 0x7c87a558
push esi
push esi
push esi
push esi
push esi
push 0x7c87a57c
push dword [ebp + 0xc]
push dword [ebp - 0x21c]
push dword [0x7c8853a8]
call fcn.7c838103
cmp eax, 1
jne 0x7c87a54e
push esi
push esi
push esi
push esi
push esi
push 0x7c87a570
push dword [ebp + 0xc]
push dword [ebp - 0x21c]
push dword [0x7c8853a8]
call fcn.7c838103
xor eax, eax
inc eax
jmp 0x7c87a55f
push 0x3ec
call fcn.7c80935e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.7c8097aa
leave
ret 0xc
Function at 0x402b10
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404690
test esi, esi
jne 0x402b46
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404780
jmp 0x402b64
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a24
mov edi, eax
test esi, esi
je 0x402b64
cmp dword [ebx], 0
je 0x402b64
dec esi
jmp 0x402b4d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4036ec
Capabilities:
Query or enumerate registry value

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

Function at 0x404514
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a904c], 0
je 0x404575
cmp word [0x4a9220], 0xd7b2
jne 0x40453d
cmp dword [0x4a9228], 0
jbe 0x40453d
mov eax, 0x4a921c
call dword [0x4a9238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a6070
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 0x40459c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a6030], 0
jne 0x404591
push 0
push 0x4a6068
push 0x4a6070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406850
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 0x4068b6
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.00404900
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403154
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4068a0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4068bd
lea eax, [ebp - 0x10]
call fcn.00404690
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b50
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4093d5
test al, 0x10
jne 0x4093d9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c5b0
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c5e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404780
jmp 0x40c5f2
mov eax, ebx
mov edx, esi
call fcn.004046e4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d628
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d6fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404728
lea eax, [ebp - 8]
call fcn.00404ba0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b50
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d6e8
mov eax, ebx
call fcn.004027e8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d6e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b50
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d6cb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d710
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d6cb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6e8
mov eax, dword [ebp - 0x10]
call fcn.00402808
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d705
lea eax, [ebp - 8]
call fcn.00404690
ret