joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10034d90
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x20
push ebp
mov ebp, dword [esp + 0x28]
push esi
lea eax, [esp + 0xc]
push eax
xor esi, esi
push ebp
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10034e38
cmp dword [esp + 0x10], 1
je 0x10034e46
lea ecx, [esp + 0xc]
push ecx
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10034e38
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call edi
mov ebx, dword [esp + 0x38]
test ebx, ebx
jbe 0x10034e1e
lea edx, [esp + 0x14]
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10034e10
cmp dword [esp + 0x18], 1
je 0x10034e5c
push 0x3e8
call edi
add esi, 0x3e8
mov eax, ebx
sub eax, esi
jne 0x10034de4
jmp 0x10034e1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x18], 1
je 0x10034e50
test esi, esi
jne 0x10034e50
pop edi
pop ebx
pop esi
mov eax, 0x5b4
pop ebp
add esp, 0x20
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
add esp, 0x20
ret 8
mov eax, esi
pop esi
pop ebp
add esp, 0x20
ret 8
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0x20
ret 8
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x20
ret 8

Function at 0x10034e70
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x20
push ebp
mov ebp, dword [esp + 0x28]
push esi
lea eax, [esp + 0xc]
push eax
xor esi, esi
push ebp
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10034f14
cmp dword [esp + 0x10], 4
je 0x10034f22
push esi
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x10034f14
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call edi
mov ebx, dword [esp + 0x38]
test ebx, ebx
jbe 0x10034efa
nop
lea ecx, [esp + 0x14]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10034eec
cmp dword [esp + 0x18], 4
je 0x10034f38
push 0x3e8
call edi
add esi, 0x3e8
mov edx, ebx
sub edx, esi
jne 0x10034ec0
jmp 0x10034ef6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x18], 4
je 0x10034f2c
test esi, esi
jne 0x10034f2c
pop edi
pop ebx
pop esi
mov eax, 0x5b4
pop ebp
add esp, 0x20
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
add esp, 0x20
ret 8
mov eax, esi
pop esi
pop ebp
add esp, 0x20
ret 8
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0x20
ret 8
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x20
ret 8
Function at 0x10035080
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10052260
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1006b2c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [eax], edi
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
push edi
push edi
mov dword [ecx], edi
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x10035127
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10035129
mov edx, dword [ebp - 0x14]
push edx
mov dword [ebp - 4], edi
call fcn.1003641c
mov esi, eax
add esp, 4
cmp esi, edi
je 0x10035166
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push edx
push esi
push ebx
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x10035141
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x14]
mov dword [ecx], esi
mov dword [eax], edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.10037e4b
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 8
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 0x10035b00
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x10052376
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x1006b2c8]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006b2c8]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov eax, dword [esp + 0x274]
xor esi, esi
push esi
mov edi, 7
push 0x100533f4
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], esi
mov word [esp + 0x44], si
call fcn.100017e0
push esi
push 0x100533f4
lea ecx, [esp + 0x24]
mov dword [esp + 0x270], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], esi
mov word [esp + 0x28], si
call fcn.100017e0
push 0x206
lea ecx, [esp + 0x5a]
push esi
push ecx
mov byte [esp + 0x274], 1
mov word [esp + 0x60], si
call fcn.100376a0
mov eax, dword [esp + 0x27c]
add esp, 0xc
cmp eax, esi
je 0x10035c95
xor edi, edi
cmp word [eax], si
je 0x10035c82
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
cmp edi, esi
movzx eax, word [ebx]
jne 0x10035bf7
cmp ax, 0x25
jne 0x10035be9
mov edi, 1
jmp 0x10035c61
push eax
push 1
lea ecx, [esp + 0x24]
call fcn.10001540
jmp 0x10035c61
cmp ax, 0x25
je 0x10035c0b
push eax
push 1
lea ecx, [esp + 0x40]
call fcn.10001540
jmp 0x10035c61
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x10035c1a
lea eax, [esp + 0x3c]
push 0x104
lea edx, [esp + 0x58]
push edx
push eax
call ebp
test eax, eax
jbe 0x10035c6f
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10035c32
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
call fcn.100015f0
push esi
push 0x100533f4
lea ecx, [esp + 0x40]
call fcn.100017e0
xor edi, edi
add ebx, 2
cmp word [ebx], si
jne 0x10035bd2
jmp 0x10035c7e
push esi
push 0x100533f4
lea ecx, [esp + 0x24]
call fcn.100017e0
cmp edi, esi
jne 0x10035c95
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.100016f0
jmp 0x10035c9d
mov dword [esp + 0x14], 0x57
mov edi, 8
cmp dword [esp + 0x34], edi
jb 0x10035cb5
mov edx, dword [esp + 0x20]
push edx
call fcn.10036ea6
add esp, 4
cmp dword [esp + 0x50], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], esi
mov word [esp + 0x20], si
jb 0x10035cd9
mov eax, dword [esp + 0x3c]
push eax
call fcn.10036ea6
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.1003754f
add esp, 0x258
ret
Function at 0x10035d10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100523d8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1006b2c8]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006b2c8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [esp + 0x88]
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebp
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov di, word [esp + 0x8c]
xor eax, eax
push eax
push ebp
push ebx
push ebp
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x94], ebx
mov word [ebp + 0x10], di
call fcn.10004b10
cmp esi, ebx
je 0x10035eea
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10035d90
sub eax, edx
sar eax, 1
je 0x10035eea
push esi
lea ecx, [esp + 0x5c]
call fcn.100018f0
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
movzx ecx, di
push 1
push ebx
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0x64]
mov byte [esp + 0x8c], 2
xor esi, esi
call fcn.10006480
mov edi, eax
cmp edi, 0xffffffff
je 0x10035e61
movzx eax, word [esp + 0x8c]
mov dword [esp + 0x14], eax
mov ecx, edi
sub ecx, esi
push ecx
push esi
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x64]
call fcn.100037b0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 3
call fcn.100016f0
cmp dword [esp + 0x38], 8
mov byte [esp + 0x80], 2
jb 0x10035e3a
mov eax, dword [esp + 0x24]
push eax
call fcn.10036ea6
add esp, 4
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
call fcn.100050e0
push 1
lea esi, [edi + 1]
push esi
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x64]
call fcn.10006480
mov edi, eax
cmp edi, 0xffffffff
jne 0x10035df5
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x64]
call fcn.100037b0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 4
call fcn.100016f0
mov esi, 8
cmp dword [esp + 0x38], esi
mov byte [esp + 0x80], 2
jb 0x10035ea7
mov ecx, dword [esp + 0x24]
push ecx
call fcn.10036ea6
add esp, 4
lea edx, [esp + 0x3c]
push edx
mov ecx, ebp
call fcn.100050e0
cmp dword [esp + 0x54], esi
jb 0x10035ec6
mov eax, dword [esp + 0x40]
push eax
call fcn.10036ea6
add esp, 4
cmp dword [esp + 0x70], esi
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jb 0x10035eea
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.10036ea6
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.1003754f
add esp, 0x70
ret 8
Function at 0x10035f10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10052428
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1006b2c8]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006b2c8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [esp + 0x88]
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebp
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov di, word [esp + 0x8c]
xor eax, eax
push eax
push ebp
push ebx
push ebp
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x94], ebx
mov word [ebp + 0x10], di
call fcn.10004b10
cmp dword [esi + 0x14], ebx
je 0x100360e5
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
call fcn.100016f0
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
movzx ecx, di
push 1
push ebx
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0x64]
mov byte [esp + 0x8c], 2
xor esi, esi
call fcn.10006480
mov edi, eax
cmp edi, 0xffffffff
je 0x1003605c
movzx eax, word [esp + 0x8c]
mov dword [esp + 0x14], eax
lea ebx, [ebx]
mov ecx, edi
sub ecx, esi
push ecx
push esi
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x64]
call fcn.100037b0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 3
call fcn.100016f0
cmp dword [esp + 0x38], 8
mov byte [esp + 0x80], 2
jb 0x10036035
mov eax, dword [esp + 0x24]
push eax
call fcn.10036ea6
add esp, 4
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
call fcn.100050e0
push 1
lea esi, [edi + 1]
push esi
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x64]
call fcn.10006480
mov edi, eax
cmp edi, 0xffffffff
jne 0x10035ff0
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x64]
call fcn.100037b0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 4
call fcn.100016f0
mov esi, 8
cmp dword [esp + 0x38], esi
mov byte [esp + 0x80], 2
jb 0x100360a2
mov ecx, dword [esp + 0x24]
push ecx
call fcn.10036ea6
add esp, 4
lea edx, [esp + 0x3c]
push edx
mov ecx, ebp
call fcn.100050e0
cmp dword [esp + 0x54], esi
jb 0x100360c1
mov eax, dword [esp + 0x40]
push eax
call fcn.10036ea6
add esp, 4
cmp dword [esp + 0x70], esi
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jb 0x100360e5
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.10036ea6
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.1003754f
add esp, 0x70
ret 8
Function at 0x100361f0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x18]
cmp eax, 0x24a
ja 0x1003623f
je 0x10036239
sub eax, 0x182
je 0x10036239
sub eax, 0x64
xor eax, eax
add esp, 0x24
ret
cmp eax, 0x898
je 0x10036256
cmp eax, 0x21d8
jne 0x10036239
mov eax, 0x20000000
add esp, 0x24
ret
mov eax, 0x10000000
add esp, 0x24
ret

Function at 0x1003754f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1006b2c8]
jne 0x10037559
repz ret
jmp fcn.1003dfbc
Function at 0x100479f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1006c050]
je 0x10047a0b
inc edi
cmp edi, 0x17
jb 0x100479fc
cmp edi, 0x17
jae 0x10047b8b
push ebp
push 3
call fcn.1004c4a1
cmp eax, 1
pop ecx
je 0x10047b57
push 3
call fcn.1004c4a1
test eax, eax
pop ecx
jne 0x10047a3f
cmp dword [0x1006c9c8], 1
je 0x10047b57
cmp ebx, 0xfc
je 0x10047b8a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1006d028
push ebp
call fcn.100399eb
add esp, 0xc
test eax, eax
je 0x10047a75
push esi
push esi
push esi
push esi
push esi
call fcn.10036f8b
add esp, 0x14
push 0x104
mov esi, 0x1006d041
push esi
push 0
mov byte [0x1006d145], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10047ab9
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.100399eb
add esp, 0xc
test eax, eax
je 0x10047ab9
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10036f8b
add esp, 0x14
push esi
call fcn.1003a430
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10047afe
push esi
call fcn.1003a430
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1006d33c
push 0x100624f4
sub ecx, eax
push ecx
push eax
call fcn.100457b6
add esp, 0x14
test eax, eax
je 0x10047afe
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10036f8b
add esp, 0x14
jmp 0x10047b00
xor esi, esi
push 0x100624f0
push ebx
push ebp
call fcn.1003997a
add esp, 0xc
test eax, eax
je 0x10047b20
push esi
push esi
push esi
push esi
push esi
call fcn.10036f8b
add esp, 0x14
push dword [edi*8 + 0x1006c054]
push ebx
push ebp
call fcn.1003997a
add esp, 0xc
test eax, eax
je 0x10047b42
push esi
push esi
push esi
push esi
push esi
call fcn.10036f8b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1004c2e4
add esp, 0xc
jmp 0x10047b8a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10047b8a
cmp ebp, 0xffffffff
je 0x10047b8a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1006c054]
push dword [esi]
call fcn.1003a430
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1004c2e4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1003ccd7
xor ebx, ebx
cmp dword [0x1006d468], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1004c3ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1004c49a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1004c49a
push eax
call fcn.1003cc69
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1006d468], eax
call esi
push eax
call fcn.1003cc69
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1006d46c], eax
call esi
push eax
call fcn.1003cc69
mov dword [0x1006d470], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1003c2af
test eax, eax
pop ecx
pop ecx
je 0x1004c388
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10036f8b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1004c3ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1003cc69
cmp eax, ebx
pop ecx
mov dword [0x1006d478], eax
je 0x1004c3ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1003cc69
pop ecx
mov dword [0x1006d474], eax
mov eax, dword [0x1006d474]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1004c43f
cmp dword [0x1006d478], ecx
je 0x1004c43f
push eax
call fcn.1003cce0
push dword [0x1006d478]
mov esi, eax
call fcn.1003cce0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1004c43f
cmp edi, ebx
je 0x1004c43f
call esi
cmp eax, ebx
je 0x1004c40c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1004c40c
test byte [ebp - 0x18], 1
jne 0x1004c43f
lea eax, [ebp - 0x10]
push eax
call fcn.1003c2e6
test eax, eax
pop ecx
je 0x1004c427
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10036f8b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1004c436
or dword [ebp + 0x10], 0x200000
jmp 0x1004c47a
or dword [ebp + 0x10], 0x40000
jmp 0x1004c47a
mov eax, dword [0x1006d46c]
cmp eax, dword [ebp - 8]
je 0x1004c47a
push eax
call fcn.1003cce0
cmp eax, ebx
pop ecx
je 0x1004c47a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1004c47a
mov eax, dword [0x1006d470]
cmp eax, dword [ebp - 8]
je 0x1004c47a
push eax
call fcn.1003cce0
cmp eax, ebx
pop ecx
je 0x1004c47a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1006d468]
call fcn.1003cce0
cmp eax, ebx
pop ecx
je 0x1004c49a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1004c49c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x300204a7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x3001c404]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x30020548
cmp dword [ebp - 0x90], 2
mov edx, dword [ebp - 0x98]
mov dword [0x30069808], edx
jne 0x3002053c
mov eax, dword [ebp - 0x9c]
cmp eax, 5
mov cx, word [ebp - 0xc]
mov dword [0x30069804], eax
mov word [0x3006980c], cx
jne 0x30020526
xor eax, eax
inc eax
cmp edx, eax
jb 0x30020548
test cx, cx
mov dword [0x30069810], eax
ja 0x3002051a
cmp edx, eax
jbe 0x3002051f
mov dword [0x30069814], eax
cmp cx, ax
jbe 0x30020548
jmp 0x30020535
jbe 0x30020548
xor eax, eax
inc eax
mov dword [0x30069810], eax
mov dword [0x30069814], eax
mov dword [0x30069818], eax
jmp 0x30020548
push 0
push 0x77617376
call fcn.3001eabf
push 0x56
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
neg eax
xor ecx, ebp
mov dword [section..data], eax
call fcn.300320dd
leave
ret

Function at 0x30021298
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x300212de
push edi
push esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.3002bfb0
mov edi, eax
cmp edi, 0xffffffff
je 0x300212dd
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret
Function at 0x30025f59
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x30025fc9
push esi
lea eax, [ebp - 4]
push eax
call fcn.3001e6f9
test eax, eax
je 0x30025fc9
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x30025fc1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x3000738c
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x30025fc1
cmp dword [ebp - 8], ebx
je 0x30025fc1
mov esi, dword [ebp - 0xc]
push edi
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov bl, 1
pop edi
push dword [ebp - 4]
call fcn.3001e62e
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x3002729c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 4], eax
je 0x30027327
mov eax, dword [ebp + 8]
test eax, 3
je 0x300272da
cmp byte [eax], 0
je 0x3002731e
lea eax, [eax + 1]
test eax, 3
je 0x300272da
cmp byte [eax], 0
je 0x3002731e
lea eax, [eax + 1]
test eax, 3
je 0x300272da
cmp byte [eax], 0
je 0x3002731e
lea eax, [eax + 1]
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x1010101
xor edx, ecx
and edx, 0x80808080
je 0x300272da
test cl, cl
lea eax, [eax - 4]
je 0x3002731e
test ecx, 0xff00
lea eax, [eax + 1]
je 0x3002731e
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x3002731e
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x3002731e
lea eax, [eax + 1]
jmp 0x300272da
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x3002732d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 4], eax
je 0x3002739f
mov eax, dword [ebp + 8]
test eax, 3
je 0x3002735e
cmp word [eax], 0
je 0x30027357
lea eax, [eax + 2]
test eax, 3
je 0x3002735e
jmp 0x30027345
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x30027399
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x3002735e
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x30027399
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x30027399
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x3002735e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4