joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494b30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x5035d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 0x5c0]
mov ebx, dword [eax]
lea edi, [esi + 0x15c]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x8c], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [edi]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x494bc3
push dword [ebp - 0x8c]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.004a4870
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x494bf6
push str.Received_too_short_packet
push ebx
call fcn.00476c00
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret
push edi
call fcn.00494730
movzx eax, ax
add esp, 4
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x494c11
jmp dword [eax*4 + 0x494d38]
cmp edx, 4
jle case.0x494c11.4
push edi
call fcn.00494710
movzx ecx, word [esi + 0x40]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x494c11.4
lea eax, [edx - 4]
push eax
mov eax, dword [edi]
mov edi, dword [ebp - 0x88]
add eax, 4
push eax
push 1
push edi
call fcn.00476af0
add esp, 0x10
mov dword [ebp - 0x88], eax
test eax, eax
je 0x494c7f
push 5
push esi
call fcn.00495470
mov eax, dword [ebp - 0x88]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], edx
push dword [ebx + 0x74]
push dword [ebx + 0x70]
push ebx
call fcn.0047f930
add esp, 0xc
jmp 0x494d03
push edi
call fcn.00494710
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [edi]
add eax, 4
push eax
push 0x4de098
push ebx
call fcn.00476cb0
add esp, 0x10
jmp case.0x494c11.4
lea eax, [edx - 2]
push eax
mov eax, dword [edi]
add eax, 2
push eax
push esi
call fcn.004948e0
add esp, 0xc
test eax, eax
je case.0x494c11.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x4ded40
push ebx
call fcn.00476c00
add esp, 0xc
mov edi, dword [ebp - 0x88]
push edi
call fcn.0047fca0
add esp, 4
test eax, eax
je 0x494be3
push 5
push esi
call fcn.00495470
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.004a1365
mov esp, ebp
pop ebp
ret
Function at 0x495470
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x495482
jmp dword [edx*4 + 0x4954d8]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00494fa0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00494d50
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00495680
push str.TFTP_finished
push 0x4de098
push eax
call fcn.00476cb0
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x4ded40
push eax
call fcn.00476c00
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x4965a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5035d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004bb023
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x496604
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x496604
lea eax, [ebp - 0x108]
push eax
call dword [0x50355c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret

Function at 0x496620
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004965a0
Function at 0x4999d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 3
jne 0x4999fa
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4999eb
pop edi
pop esi
pop ebp
ret
push dword [ecx + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call eax
jmp 0x499a2d
mov eax, dword [esi + 8]
test eax, eax
jne 0x499a1f
push 0x4de2d8
push dword [ecx + 8]
call fcn.004b5f17
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x499a1f
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push eax
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004ac831
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x499a4f
mov eax, dword [esi + 8]
test eax, eax
je 0x499a49
push eax
call fcn.004ac12d
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x49db60
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x49db93
push 0x2e
push edi
call fcn.004a5ec0
add esp, 8
test eax, eax
je 0x49db91
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x49eb40
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
push edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x49eb50
sub esi, ecx
lea eax, [esi + esi]
push eax
mov dword [ebp - 0xc], eax
call dword [0x503550]
mov edi, eax
add esp, 4
test edi, edi
jne 0x49eb78
lea eax, [edi + 0x1b]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 0xc]
push edi
call fcn.0049ec20
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x49ebf7
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8002
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x49ebec
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x10
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 0x10]
push eax
push esi
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x503554]
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49ec50
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5035d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x49ece2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0x208
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x6601
push edi
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x10], 8
call fcn.0049ed40
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.004a1160
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x49ecf4
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push dword [ebp - 0x20]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004a1365
mov esp, ebp
pop ebp
ret

Function at 0x4a1160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x4a11b0
push ebx
mov ebx, dword [ebp + 8]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
and dl, 2
movzx ecx, cl
cmp dl, 2
cmovb ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x4a1172
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4a1210
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x503550]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4a123d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4a1287
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x4a128d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4a12eb
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4a12b0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x4a1317
mov eax, dword [esi + 4]
push 1
push 0x4e82be
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4e82bf
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4a12f0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c2fec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c2e6b

Function at 0x4c6e0d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c6acd
Function at 0x401500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0040df2a

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

Disassembly:
push 0xffffffffffffffff
push 0x57ef99
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5e68f0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
call fcn.00418ab3
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401e13
push 0x80004005
call fcn.00401920
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x18], ebx
lea edi, [esi + 4]
call fcn.00418ab3
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401e42
push 0x80004005
call fcn.00401920
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov ecx, esi
mov byte [esp + 0x18], 3
call fcn.00408010
mov ecx, edi
call fcn.00408010
mov ecx, esi
call fcn.00409520
mov dword [esi + 0x28], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x402300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e448
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5e68f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
movzx ecx, word [ebp + 8]
push eax
xor ebx, ebx
push ecx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
je 0x40237d
lea ecx, [ebp - 0x24]
call fcn.0041ab2c
mov edx, dword [ebp + 0x10]
push ebx
push 0x1001
push edx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.0041aff4
cmp eax, ebx
jne 0x402393
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0041ac6c
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 0xc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
lea ecx, [ebp - 0x24]
call fcn.0041a862
lea ecx, [ebp - 0x24]
call fcn.0041aac6
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0041ac6c
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402870
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x4028cf
cmp dword [esp + 4], 2
jne 0x4028cf
mov ecx, dword [esi + 4]
push str._upgrade
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpICW]
test eax, eax
jne 0x4028c8
push 0x5bde80
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [edi + 0x7c], 3
mov dword [edi + 0x80], 2
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop ecx
ret
Function at 0x402ba0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x5e68f0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.0050fd50
add esp, 0xc
cmp dword [0x5efd30], 0
mov esi, 1
jne 0x402c10
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x402c0a
push 0x5efd34
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov dword [0x5efd30], esi
cmp dword [0x5efd34], 0
je 0x402c1e
mov esi, 0x101
lea edx, [esp + 0x10]
push edx
push esi
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallBring_V4.0
mov ebp, 0x208
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402c5d
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0050c2f2
add esp, 0x214
ret
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push str.DlpFolderName
push edx
mov dword [esp + 0x24], ebp
call edi
test eax, eax
jne 0x402cac
lea eax, [esp + 0x14]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402c90
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x44]
lea eax, [esp + 0x18]
call fcn.00406660
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push str.DlpupdateFolderName
push edx
mov dword [esp + 0x24], ebp
call edi
test eax, eax
jne 0x402cf1
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402cd5
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x60]
lea eax, [esp + 0x18]
call fcn.00406660
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push str.InstallLocation
push edx
mov dword [esp + 0x24], ebp
call edi
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x402c43
lea eax, [esp + 0x14]
lea edx, [eax + 2]
jmp 0x402d30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402d30
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x24]
lea eax, [esp + 0x18]
call fcn.00406660
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0050c2f2
add esp, 0x214
ret
Function at 0x402d70
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x57ea71
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x5e68f0]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e68f0]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x270]
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x5a]
push ecx
mov dword [esp + 0x20], 0
mov word [esp + 0x5c], ax
call fcn.0050fd50
add esp, 0xc
lea edx, [esp + 0x50]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x50]
lea edx, [eax + 2]
jmp 0x402df0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402df0
sub eax, edx
sar eax, 1
lea edi, [ebp + 8]
push eax
lea eax, [esp + 0x54]
mov esi, edi
call fcn.00406660
push edi
mov ebx, str.pkg_
lea esi, [esp + 0x1c]
call fcn.004073e0
add esp, 4
push 0xffffffffffffffff
push 0
mov ecx, edi
mov dword [esp + 0x270], 0
call fcn.004060b0
mov esi, 8
mov dword [esp + 0x268], 0xffffffff
cmp dword [esp + 0x30], esi
jb 0x402e59
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040d4cc
add esp, 4
cmp dword [edi + 0x18], esi
jb 0x402e63
mov eax, dword [edi + 4]
jmp 0x402e66
lea eax, [edi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 3
je 0x402e7c
mov dword [esp + 0x14], 1
push edi
mov ebx, str.insorunis.xml
lea esi, [esp + 0x1c]
call fcn.004073e0
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [ebp + 0xdc]
mov dword [esp + 0x270], 1
call fcn.004060b0
mov dword [esp + 0x268], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x402ec7
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0040d4cc
add esp, 4
push edi
mov ebx, str.Vista
lea esi, [esp + 0x38]
call fcn.004073e0
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [ebp + 0xf8]
mov dword [esp + 0x270], 2
call fcn.004060b0
cmp dword [esp + 0x4c], 8
jb 0x402f07
mov edx, dword [esp + 0x38]
push edx
call fcn.0040d4cc
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.0050c2f2
add esp, 0x258
ret 4
Function at 0x4034b0
Capabilities:
Create process on windows
Print debug messages

Disassembly:
sub esp, 0x3c
push ebx
push esi
push edi
push 0x38
xor esi, esi
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0050fd50
mov edi, 8
add esp, 0xc
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x64], edi
jb 0x4034f5
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x1c], ecx
jmp 0x4034fd
lea edx, [esp + 0x50]
mov dword [esp + 0x1c], edx
cmp dword [esp + 0x80], edi
jb 0x403510
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
jmp 0x403518
lea ecx, [esp + 0x6c]
mov dword [esp + 0x20], ecx
mov ebx, 0x13
lea eax, [esp + 0x4c]
mov dword [esp + 0x24], esi
call fcn.00406160
inc eax
neg eax
sbb eax, eax
lea edx, [esp + 0xc]
and eax, 5
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x80], edi
jae 0x403558
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esp + 0x84], esi
je 0x403575
mov eax, dword [esp + 0x44]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x64], edi
jb 0x403588
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0040d4cc
add esp, 4
xor edx, edx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], esi
mov word [esp + 0x50], dx
cmp dword [esp + 0x80], edi
jb 0x4035b1
mov eax, dword [esp + 0x6c]
push eax
call fcn.0040d4cc
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x3c
ret 0x3c
Function at 0x404da0
Capabilities:
Create thread
Print debug messages

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, eax
push edi
call fcn.004032b0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push edi
push 0x402f70
push 0
push 0
mov byte [0x5efbac], 0
call ebx
sub esp, 0x1c
mov esi, esp
mov ebp, eax
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov dword [esp + 0x2c], esp
mov word [esi + 4], ax
push 0xa
mov eax, str.ck_W_exS
call fcn.00406660
push edi
mov ecx, ebp
call fcn.00403360
mov ecx, 0x5efbe0
call fcn.00407e60
mov esi, dword [0x5efbb0]
push 0x5efbe8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 2
jne 0x404e32
mov ecx, edi
call fcn.00404d10
test eax, eax
jne 0x404e32
push str._u7b
jmp 0x404ecd
push 0
push 0
push edi
push 0x402fb0
push 0
push 0
mov byte [0x5efbac], 0
call ebx
sub esp, 0x1c
mov esi, esp
mov ebp, eax
mov dword [esp + 0x2c], esp
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0xa
mov eax, str.ck_WSxS
mov word [esi + 4], cx
call fcn.00406660
push edi
mov ecx, ebp
call fcn.00403360
mov ecx, 0x5efbe0
call fcn.00407e60
mov esi, dword [0x5efbb0]
push 0x5efbe8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 2
jne 0x404eae
mov ecx, edi
call fcn.00404d10
test eax, eax
jne 0x404eae
push str._u7b
jmp 0x404ecd
mov ecx, edi
call fcn.00404ae0
cmp dword [edi + 0xa0], 8
jb 0x404ec6
mov eax, dword [edi + 0x8c]
jmp 0x404ecc
lea eax, [edi + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [edi + 0x80], 2
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
jne 0x404ef4
mov edi, dword [edi + 0x7c]
cmp edi, 1
je 0x404f09
cmp edi, 3
je 0x404f09
cmp edi, 2
jne 0x404f09
mov edx, dword [0x5efba8]
mov eax, dword [edx + 0x20]
push 0
push 0
push 0x402
push eax
call esi
mov ecx, dword [0x5efba8]
mov edx, dword [ecx + 0x20]
push 0
push 0
push 0x10
push edx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret