joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a080
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x42fc14], 0
push esi
push edi
je 0x41a0b1
cmp dword [0x42fc10], 0
je 0x41a0b1
cmp dword [0x42fc0c], 0
jne 0x41a18d
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41a128
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push str.SeDebugPrivilege
push 0
movups xmmword [ebp - 0x14], xmm0
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x41a11f
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x41a19f
cmp dword [0x42fc10], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x41a159
push str.NtWow64QueryInformationProcess64
push esi
call edi
mov dword [0x42fc10], eax
test eax, eax
je 0x41a19f
cmp dword [0x42fc14], 0
jne 0x41a173
push str.NtWow64ReadVirtualMemory64
push esi
call edi
mov dword [0x42fc14], eax
test eax, eax
je 0x41a19f
cmp dword [0x42fc0c], 0
jne 0x41a18d
push str.NtQueryInformationProcess
push esi
call edi
mov dword [0x42fc0c], eax
test eax, eax
je 0x41a19f
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bed2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0041bed2
mov esp, ebp
pop ebp
ret
Function at 0x41a4d0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], edx
push eax
push 0x24
lea eax, [ebp - 0x28]
mov dword [ebp - 8], 0
push eax
mov ebx, ecx
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
push 0
push ebx
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x41a55e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.query_error:__d
push str.service_func
call fcn.00401ea0
add esp, 0xc
test esi, esi
je 0x41a55e
push esi
push str.get_status:__d
push str.service_func
call fcn.00401ea0
add esp, 0xc
mov eax, 2
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bed2
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x24]
cmp esi, dword [ebp + 8]
je 0x41a5e2
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x41a590
push dword [ebp + 0x1c]
mov ecx, ebx
push dword [ebp + 0x18]
push dword [ebp - 0x2c]
call fcn.0041a1c0
add esp, 0xc
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bed2
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
cmp esi, dword [ebp + 0x10]
je 0x41a5a4
cmp esi, edx
je 0x41a5a8
push esi
push str.start_state:__d
jmp 0x41a53c
cmp esi, edx
jne 0x41a5c3
push dword [ebp + 0x1c]
mov ecx, ebx
push dword [ebp + 0x18]
push dword [ebp - 0x2c]
call fcn.0041a1c0
add esp, 0xc
cmp eax, 6
jne 0x41a5e7
mov esi, dword [ebp - 0x24]
xor eax, eax
cmp esi, dword [ebp + 0x10]
sete al
lea eax, [eax*4 + 2]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bed2
mov esp, ebp
pop ebp
ret
mov eax, 6
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bed2
mov esp, ebp
pop ebp
ret
Function at 0x41a600
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ea45
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x2c], edi
mov esi, ecx
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov byte [ebp - 0x44], 1
mov dword [ebp - 0x48], ebx
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x41a67d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [edi], eax
push str.invalid_manager:__d
push str.service_func
call fcn.00401ea0
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0xc
mov esi, 2
jmp 0x41a791
cmp dword [esi + 0x44], 7
lea eax, [esi + 0x30]
jbe 0x41a688
mov eax, dword [eax]
cmp dword [esi + 0x2c], 7
lea ecx, [esi + 0x18]
jbe 0x41a693
mov ecx, dword [ecx]
cmp dword [esi + 0x14], 7
jbe 0x41a69b
mov esi, dword [esi]
push 0
push 0
push 0
push 0
push 0
push eax
push 0
push 2
push 0x10
push 0xc0000012
push ecx
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
mov byte [ebp - 0x4c], 1
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x41a6f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
cmp eax, 0x431
jne 0x41a6eb
lea esi, [edi + 6]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41a791
push eax
push str.invalid_service:__d
jmp 0x41a660
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
push 2
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x40], 0x15180
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 3
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x41a771
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2c]
push eax
push str.change_config_error:__d
push str.service_func
mov dword [ecx], eax
call fcn.00401ea0
add esp, 0xc
push str.install_successed
push str.service_func
call fcn.00401ed0
add esp, 8
mov esi, 6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test ebx, ebx
je 0x41a798
push ebx
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bed2
mov esp, ebp
pop ebp
ret
Function at 0x41ab40
Capabilities:
Query service status
Stop service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ead5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], edx
mov edi, ecx
mov esi, dword [ebx + 8]
push 1
push 0
push 0
mov dword [ebp - 0x58], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 1
mov dword [ebp - 4], 0
test eax, eax
jne 0x41abf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.invalid_manager:__d
push str.service_func
mov dword [esi], eax
call fcn.00401ea0
add esp, 0xc
mov esi, 2
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x41abd7
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041bed2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp dword [edi + 0x14], 7
jbe 0x41abff
mov edi, dword [edi]
push 0x24
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov byte [ebp - 0x70], 1
mov dword [ebp - 0x74], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x41ac2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.invalid_service:__d
jmp 0x41acf7
push dword [ebx + 0x10]
mov edx, dword [ebp - 0x5c]
mov ecx, edi
push dword [ebx + 0xc]
push 2
push 4
push 3
push 1
call fcn.0041a4d0
mov esi, eax
add esp, 0x18
cmp esi, 6
jne 0x41ad36
lea eax, [ebp - 0x60]
mov dword [ebp - 0x34], 0
push eax
push 0x24
lea eax, [ebp - 0x54]
mov dword [ebp - 0x60], 0
push eax
xorps xmm0, xmm0
push 0
push edi
movups xmmword [ebp - 0x54], xmm0
movups xmmword [ebp - 0x44], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x41acb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.query_error:__d
push str.service_func
mov dword [ebp - 0x64], eax
call fcn.00401ea0
mov esi, dword [ebp - 0x58]
add esp, 0xc
mov eax, dword [ebp - 0x64]
mov dword [esi], eax
test eax, eax
je 0x41acba
push eax
push str.get_status:__d
jmp 0x41acf9
mov esi, dword [ebp - 0x58]
mov dword [esi], 0
cmp dword [ebp - 0x50], 1
jne 0x41acc7
mov esi, 6
jmp 0x41ad36
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], 0
push eax
xorps xmm0, xmm0
push 1
push edi
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x41ad0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.stop_error:__d
mov dword [esi], eax
push str.service_func
call fcn.00401ea0
add esp, 0xc
mov esi, 2
jmp 0x41ad36
push str.set_stop_successed
push str.service_func
call fcn.00401ed0
push dword [ebx + 0x10]
mov edx, 3
mov ecx, edi
push dword [ebx + 0xc]
push dword [ebp - 0x5c]
call fcn.0041a1c0
add esp, 0x14
mov esi, eax
test edi, edi
je 0x41abc7
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x41abcd
Function at 0x41b5d0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ec75
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x42f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 1
push 0
push 0
lea esi, [edi + 8]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov byte [ebp - 0x14], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x41b654
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.invalid_manager:__d
push str.service_func
mov dword [edi + 0xf4], eax
call fcn.00401ea0
add esp, 0xc
lea eax, [ebx + 2]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x41b65e
mov eax, dword [esi]
push 0x10000
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov byte [ebp - 0x1c], 1
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x41b6ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
push eax
push str.invalid_service:__d
push str.service_func
mov dword [ecx + 0xf4], eax
call fcn.00401ea0
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [edi + 2]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x41b713
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xf4], eax
cmp dword [esi + 0x14], 7
jbe 0x41b6dc
mov esi, dword [esi]
push eax
push esi
push str._ls_delete_fail:__d
push str.service_func
call fcn.00401ea0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0x10
push edi
call esi
push ebx
call esi
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.uninstall_successed
push str.service_func
call fcn.00401ed0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
push edi
call esi
push ebx
call esi
mov eax, 6
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 0x41cc50
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41cc8f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41cc8f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41cc8f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41cc8f
cmp dword [ecx + 0x74], 0xe
jbe 0x41cc8f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x570d0
Capabilities:
Get steam token

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
push 0x64000
call 0x75a9b100
nop
add esp, 4
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x458]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0x605bd
lea ecx, [ebp - 0x1c]
call fcn.0005a740
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x1fffff
call 0x960cfa
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x57148
mov dword [ebp - 0x45c], 0x605be
lea ecx, [ebp - 0x1c]
call fcn.0005a800
mov eax, dword [ebp - 0x45c]
jmp 0x572df
mov edx, 1
test edx, edx
je 0x572ae
mov byte [ebp - 0x438], 0
push 0x207
push 0
lea eax, [ebp - 0x437]
push eax
call fcn.0005aae0
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0xfff
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x60ba8
mov edx, dword [ebp - 4]
push edx
call fcn.00056f00
add esp, 0x20
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
add eax, 0x208
mov ecx, dword [ebp - 0x24]
adc ecx, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x24], 0
ja 0x571ca
jb 0x571c5
cmp dword [ebp - 0x28], 0
ja 0x571ca
jmp 0x572ae
cmp dword [ebp - 0x24], 0
ja 0x571d9
cmp dword [ebp - 0x28], 0xffff
jbe 0x571f5
push 0
push 0x208
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
call 0x960dae
nop
lea edx, [ebp - 0x438]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0005a820
lea ecx, [ebp - 0x1c]
call fcn.0005aad0
push eax
call dword [fcn.0028a784]
cmp eax, 0x12c
jle 0x572a9
lea ecx, [ebp - 0x1c]
call fcn.0005aad0
push eax
lea ecx, [ebp - 0x478]
call fcn.00057320
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x454]
push ecx
call fcn.00056b60
add esp, 8
lea ecx, [ebp - 0x478]
call fcn.00048060
lea ecx, [ebp - 0x454]
call fcn.00057380
movzx edx, al
test edx, edx
jne 0x5729e
lea ecx, [ebp - 0x454]
call fcn.00057360
cmp eax, 0xa
jbe 0x5729e
lea ecx, [ebp - 0x1c]
call fcn.0005aad0
mov dword [ebp - 0x47c], eax
lea ecx, [ebp - 0x454]
call fcn.00048060
lea ecx, [ebp - 0x1c]
call fcn.0005a800
mov eax, dword [ebp - 0x47c]
jmp 0x572df
lea ecx, [ebp - 0x454]
call fcn.00048060
jmp 0x57148
mov eax, dword [ebp - 8]
mov dword [ebp - 0x480], eax
mov ecx, dword [ebp - 0x480]
push ecx
nop
call 0x75a9b0f3
add esp, 4
mov dword [ebp - 0x484], 0x605bf
lea ecx, [ebp - 0x1c]
call fcn.0005a800
mov eax, dword [ebp - 0x484]
mov esp, ebp
pop ebp
ret

Function at 0x59750
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x59780
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x59793
xor eax, eax
jmp 0x59851
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x597ae
xor eax, eax
jmp 0x59851
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x597cc
xor eax, eax
jmp 0x59851
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x5980e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x5984f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00058a30
add esp, 8
test eax, eax
jne 0x5984d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x59851
jmp 0x59805
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x42e005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x65240a59
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x18903a2b
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x10001050
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x10031014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x24c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov cx, word [esi]
add esi, 2
cmp cx, 0x22
jne 0x100010c0
push 0x22
push esi
call fcn.10008566
mov edx, eax
add esp, 8
test edx, edx
je 0x100010d7
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100010a0
sub ecx, esi
sar ecx, 1
cmp ecx, 2
ja 0x100010bb
mov esi, 0x10023768
jmp 0x100010d7
lea esi, [edx + 4]
jmp 0x100010d7
push 0x20
push esi
call fcn.10008566
add esp, 8
mov esi, 0x1002376c
test eax, eax
je 0x100010d7
lea esi, [eax + 2]
push 0x208
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.10008fb0
mov ax, word [0x10023778]
movq xmm0, qword [str.PBVM]
push 0x32
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x36]
push 0
push eax
movq qword [ebp - 0x40], xmm0
call fcn.10008fb0
lea ecx, [ebp - 0x40]
add esp, 0x18
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10001120
mov eax, dword [str..dll]
mov dword [ecx], eax
mov eax, dword [0x10023780]
mov dword [ecx + 4], eax
mov ax, word [0x10023784]
mov word [ecx + 8], ax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.10001e40
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100011af
lea ecx, [ebp - 0x248]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001170
sub ecx, edx
sar ecx, 1
je 0x1000119a
push 0x1010
push str.Error
lea eax, [ebp - 0x248]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006cd3
mov esp, ebp
pop ebp
ret 0x10
push str.PBHostAttachedDebug
push esi
call fcn.100086ce
add esp, 8
test eax, eax
je 0x100011d6
push str.PD_HostAttachedTarget
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100011e2
or esi, 0xffffffff
jmp 0x100011f8
push str.FN_RunExecutable
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0x3e8
push dword [ebp + 0x14]
push esi
push dword [ebp - 0x24c]
push ebx
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006cd3
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10001970
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x421c
call fcn.10006cf0
mov eax, dword [0x10031014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0x421c], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10008fb0
push 0x4000
lea eax, [ebp - 0x420c]
push 0
push eax
call fcn.10008fb0
mov ecx, edi
add esp, 0x18
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100019d0
sub ecx, edx
sar ecx, 1
cmp ecx, 0xb
jne 0x10001b48
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push str.SoftwareSybasePowerBuilder_Runtime
push 0x1002325c
push eax
call edi
add esp, 0x10
mov dword [ebp - 0x4218], 0x104
lea eax, [ebp - 0x4210]
mov dword [ebp - 0x4214], 1
mov dword [ebp - 0x4210], 0
push eax
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001a77
mov eax, dword [ebp - 0x4210]
test eax, eax
je 0x10001a77
lea ecx, [ebp - 0x4218]
push ecx
push esi
lea ecx, [ebp - 0x4214]
push ecx
push 0
push 0x10023268
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x4210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001a80
sub ecx, edx
sar ecx, 1
je 0x10001b48
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10008fb0
push dword [ebp - 0x421c]
lea eax, [ebp - 0x20c]
push esi
push str._s_s
push eax
call edi
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001b48
push esi
push 0x10023298
lea eax, [ebp - 0x420c]
push 0x2000
push eax
call fcn.10002cc0
add esp, 0x10
mov esi, ebx
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10001af0
lea edi, [ebp - 0x420c]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10001b06
mov ecx, ebx
lea eax, [ebp - 0x420c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.Path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006cd3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006cd3
mov esp, ebp
pop ebp
ret