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

Disassembly:
sub esp, 0x88
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov ebx, dword [ebp]
push esi
mov esi, dword [ebp + 0x340]
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
lea edi, [esi + 0x15c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x48b80f
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.004a7010
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x48b84a
push str.Received_too_short_packet
push ebx
call fcn.00484490
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a4a25
add esp, 0x88
ret
mov eax, edi
call fcn.0048a6b0
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x48b863
jmp dword [eax*4 + 0x48b94c]
cmp edx, 4
jle case.0x48b863.4
mov eax, edi
call fcn.0048a6c0
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x48b863.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.00484750
mov edi, eax
add esp, 0x10
test edi, edi
je 0x48b8b6
mov ecx, 5
mov eax, esi
call fcn.0048b700
mov eax, edi
jmp 0x48b831
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x38], eax
mov ecx, dword [ebx + 0x38]
adc dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0x3c]
push eax
push ecx
push ebx
call fcn.00498df0
jmp 0x48b922
mov eax, edi
call fcn.0048a6c0
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x4de1d8
push ebx
mov dword [esi + 8], edx
call fcn.00484400
jmp 0x48b922
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.0048a750
add esp, 0xc
test eax, eax
je case.0x48b863.4
jmp 0x48b831
push str.Internal_error:_Unexpected_packet
push 0x4efdc4
push ebx
call fcn.00484490
add esp, 0xc
push ebp
call fcn.00498eb0
add esp, 4
test eax, eax
je 0x48b82f
mov ecx, 5
mov eax, esi
call fcn.0048b700
mov eax, 0x2a
jmp 0x48b831

Function at 0x48d5b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0xc8]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x48d5f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00484490
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.0048d4b0
add esp, 4
pop esi
pop ecx
ret
Function at 0x48eba0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esi]
push edi
mov edi, dword [esi + 0xcc]
push 1
push 0
push esi
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x10
call fcn.004848b0
add esp, 0xc
test eax, eax
jle 0x48ec09
mov ecx, 0x3e8
cmp eax, ecx
jge 0x48ebe0
mov ecx, eax
push ecx
push 0xffffffffffffffff
push edi
call fcn.00496d70
add esp, 0xc
cmp eax, 0xffffffff
je 0x48eca1
test eax, eax
jne 0x48ec2e
push 1
push eax
push esi
call fcn.004848b0
add esp, 0xc
test eax, eax
jg 0x48ebd5
push str.Timeout_while_waiting_for_server_connect
push ebp
call fcn.00484490
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004a4a25
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x48ec5e
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
jne 0x48ec71
push str.Error_accept__ing_server_connect
jmp 0x48eca6
push str.Connection_accepted_from_server_n
push ebp
call fcn.00484400
push 1
push ebx
mov dword [esi + 0xcc], ebx
call fcn.0049bf50
add esp, 0x10
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004a4a25
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push ebp
call fcn.00484490
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.004a4a25
add esp, 0x18
ret
Function at 0x496d70
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
cmp ebx, 0xffffffff
jne 0x496db0
cmp ebp, ebx
jne 0x496db0
mov eax, dword [esp + 0x334]
call fcn.00496d50
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x496dcb
mov esi, edi
call fcn.004988a0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
cmp ebx, 0xffffffff
je 0x496dff
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
mov dword [esp + 0x228], eax
cmp ebp, 0xffffffff
je 0x496e43
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
test ecx, ecx
jbe 0x496e2c
cmp dword [esp + eax*4 + 0x24], ebp
je 0x496e2c
inc eax
cmp eax, ecx
jb 0x496e21
cmp eax, ecx
jne 0x496e3d
cmp ecx, 0x40
jae 0x496e3d
mov dword [esp + eax*4 + 0x24], ebp
inc dword [esp + 0x20]
cmp ebp, edx
jbe 0x496e43
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
dec ebx
and ebx, eax
xor eax, eax
cmp edi, eax
jle 0x496e85
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x496e8f
jne 0x496e8f
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x496ef9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x496ec2
cmp eax, 0x2714
jne 0x496efd
test edi, edi
jle 0x496e54
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.004988a0
push edx
push eax
call fcn.004988d0
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x496e54
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x496f0b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x496f1a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x496f51
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x496f3f
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x496f51
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x496f84
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x496f72
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x496f84
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x497ce0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.004988a0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.004988d0
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x497d9a
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.00496d70
add esp, 0xc
test eax, eax
jle 0x497dbd
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.00484130
add esp, 0x10
cmp eax, 0x51
je 0x497d79
test eax, eax
jne 0x497dc0
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x497da7
test eax, eax
je 0x497dbd
sub edi, eax
add ebp, eax
add dword [esp + 0x10], eax
call fcn.004988a0
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.004988d0
add esp, 0x10
cmp eax, ebx
jle 0x497d30
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x4995c0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4995cf
jmp dword [ecx*4 + 0x499624]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x4997b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004ad892
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x499815
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x499815
lea edx, [esp]
push edx
call dword [0x50a050]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a4a25
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004a4a25
add esp, 0x108
ret
jmp 0x4997b0
Function at 0x499830
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004ad892
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x499815
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x499815
lea edx, [esp]
push edx
call dword [0x50a050]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a4a25
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004a4a25
add esp, 0x108
ret
jmp 0x4997b0

Function at 0x49c010
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.004a5022
add esp, 0x18
test eax, eax
je 0x49c033
cmp eax, 0xffffffff
jne 0x49c035
xor eax, eax
ret

Function at 0x49c080
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a4]
test esi, esi
jne 0x49c099
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.004988a0
push edx
push eax
call fcn.004988d0
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x49c0e6
mov eax, dword [ebx + 0xbc]
mov ecx, dword [ebx + 0xb8]
push eax
push ecx
call fcn.004988a0
push edx
push eax
call fcn.004988d0
mov ecx, dword [edi + 0x19c]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x49c0e8
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x49cbb0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4a1500
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c6688
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x2c]
test bl, bl
je 0x4a1576
push str.UserManager
call fcn.004a1390
add esp, 4
cmp esi, eax
jne 0x4a1576
call fcn.0044c280
test al, al
je 0x4a1576
call fcn.004a1240
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push ecx
push ebx
push edx
mov ecx, eax
call fcn.004a1500
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
push str.Local_sgime_user_lock_proc
push edi
mov ecx, 0x50f760
mov byte [esi], bl
mov dword [esi + 4], eax
call fcn.0043b380
test al, al
jne 0x4a15ba
push 0x4e3860
push edi
call fcn.0042ca40
add esp, 8
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
push 0x4e3834
push edi
mov ecx, 0x50f998
call fcn.00435dd0
test al, al
je 0x4a1597
push 0x64
push 0
lea ecx, [esp + 0x18]
call fcn.00435ca0
mov dword [esp + 0x10], vtable.UserManager::t_locker.0
push 0x50f998
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.00435ce0
test al, al
jne 0x4a1636
push 0x4e3860
push edi
call fcn.0042ca40
add esp, 8
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x20], 0xffffffff
call fcn.00435cc0
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
xor bl, bl
cmp byte [esi + 0xa78], bl
jne 0x4a16d6
call fcn.00426da0
mov ecx, eax
call fcn.00425250
test al, al
jne 0x4a168d
push edi
call fcn.00426da0
mov ecx, eax
call fcn.00425330
test al, al
jne 0x4a168d
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00435cc0
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
call fcn.00426da0
mov ecx, eax
call fcn.00425260
test al, al
je 0x4a16a4
mov byte [esi + 0xa78], 1
mov ecx, esi
call fcn.004a0580
push 1
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.004a0fa0
test al, al
je 0x4a16d8
lea edx, [esp + 0x10]
push edx
push edi
mov ecx, esi
call fcn.004a0d00
test al, al
je 0x4a16d8
mov byte [esi + 0xa78], 1
mov bl, 1
call fcn.00426da0
mov ecx, eax
call fcn.00425260
test al, al
jne 0x4a16f0
test bl, bl
je 0x4a1665
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00435cc0
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc

Function at 0x4a4a25
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x50a4c0]
jne 0x4a4a2f
repz ret
jmp fcn.004b0ff4
Function at 0x4c0e0f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004aaa48
and dword [ebp - 4], 0
cmp dword [0x51095c], 0
mov ebx, eax
jne 0x4c0ec0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4c0f71
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4c0f71
push eax
call fcn.004aa9d6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x51095c], eax
call esi
push eax
call fcn.004aa9d6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x510960], eax
call esi
push eax
call fcn.004aa9d6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x510964], eax
call esi
push eax
call fcn.004aa9d6
pop ecx
mov dword [0x51096c], eax
test eax, eax
je 0x4c0ec0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004aa9d6
pop ecx
mov dword [0x510968], eax
mov eax, dword [0x510968]
cmp eax, ebx
je 0x4c0f18
cmp dword [0x51096c], ebx
je 0x4c0f18
push eax
call fcn.004aaa51
push dword [0x51096c]
mov esi, eax
call fcn.004aaa51
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4c0f18
test edi, edi
je 0x4c0f18
call esi
test eax, eax
je 0x4c0f0f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4c0f0f
test byte [ebp - 0xc], 1
jne 0x4c0f18
or dword [ebp + 0x10], 0x200000
jmp 0x4c0f51
mov eax, dword [0x510960]
cmp eax, ebx
je 0x4c0f51
push eax
call fcn.004aaa51
pop ecx
test eax, eax
je 0x4c0f51
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4c0f51
mov eax, dword [0x510964]
cmp eax, ebx
je 0x4c0f51
push eax
call fcn.004aaa51
pop ecx
test eax, eax
je 0x4c0f51
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x51095c]
call fcn.004aaa51
pop ecx
test eax, eax
je 0x4c0f71
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4c0f73
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4030fe
Capabilities:
Reference sql statements

Disassembly:
push 0x14
mov eax, 0x42e312
call fcn.004181ba
xor edi, edi
push str.SELECT_Value_FROM_Property_WHERE_Property.Property
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], edi
call fcn.00401a4a
mov esi, 0x4312e8
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00402c94
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.00402d34
push esi
lea ecx, [ebp - 0x18]
call fcn.00402c94
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004023ee
push eax
push esi
push dword [ebp + 0xc]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x403171
mov ecx, dword [ebp + 8]
call fcn.004012e9
jmp 0x403203
push edi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x403164
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.004023ee
push eax
push esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, edi
jne 0x403164
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp - 0x10]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call sub.msi.dll_MsiRecordSetStreamA
cmp dword [ebp - 0x1c], edi
je 0x403164
call fcn.004070dc
push eax
lea ecx, [ebp + 0x10]
call fcn.004011e0
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
inc eax
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00401307
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 1
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetStreamA
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.004011b6
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call fcn.00401780
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401038
cmp dword [ebp - 0x10], edi
je 0x403210
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], edi
je 0x40321d
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401038
mov eax, dword [ebp + 8]
call fcn.00418292
ret 0xc
Function at 0x403e0e
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x42e4ef
call fcn.004181ba
xor esi, esi
cmp dword [0x43f3b8], esi
je 0x403e2e
call fcn.00403b47
jmp 0x403f0e
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x14], esi
call fcn.00403233
push 0x44
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00418320
push 0x10
lea eax, [ebp - 0x24]
push esi
push eax
mov dword [ebp - 0x68], 0x44
call fcn.00418320
mov eax, dword [ebp - 0x10]
add esp, 0x18
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401307
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403eba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push str.InstallProduct:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x43f39c
call fcn.0040143e
add esp, 0x10
mov ecx, 0x43f2f8
call fcn.004052ca
mov eax, dword [ebp - 0x14]
mov dword [0x43f3fc], eax
jmp 0x403f03
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x14]
cmp eax, 0xbc2
jne 0x403eee
cmp dword [0x43f3ac], esi
jne 0x403eee
mov dword [0x43f3ac], 1
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x43f3fc], eax
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401038
call fcn.00418292
ret
Function at 0x404118
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
mov edi, ecx
call fcn.00418320
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 0x58], 0x44
call fcn.00418320
add edi, 8
mov eax, dword [edi]
add esp, 0x18
push dword [eax - 0xc]
mov ecx, edi
call fcn.00401307
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4041a0
cmp dword [0x43f3a8], esi
je 0x404192
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi]
push str.InstallUpdate:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x43f39c
call fcn.0040143e
add esp, 0x10
mov ecx, 0x43f2f8
call fcn.004052ca
xor eax, eax
jmp 0x40421a
xor edi, edi
cmp dword [0x43f3b0], esi
jne 0x4041ba
push esi
push esi
push esi
push esi
push 0x430b20
call fcn.0040e95a
mov edi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp edi, esi
je 0x4041e5
mov eax, dword [edi + 0x20]
cmp eax, esi
jne 0x4041d4
xor eax, eax
jmp 0x4041d7
mov eax, dword [eax + 0x20]
push esi
push esi
push 0x405
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor edi, edi
inc edi
test eax, eax
je 0x404208
cmp dword [ebp - 4], 0xbc2
jne 0x404208
mov dword [0x43f3ac], edi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4042e5
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x42e881
call fcn.004181ba
mov esi, ecx
push 0
lea ebx, [esi + 8]
push str.http:__
mov ecx, ebx
call fcn.004024e0
test eax, eax
je 0x40431a
push 0
push str.ftp:__
mov ecx, ebx
call fcn.004024e0
test eax, eax
jne 0x404399
push 0x2f
mov ecx, ebx
call fcn.00402404
mov ecx, dword [ebx]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ecx - 0xc]
jne 0x404337
mov ecx, ebx
call fcn.00401205
jmp 0x404399
lea ecx, [esi + 0x10]
push ebx
mov dword [esi + 0xc], 1
call fcn.004013f1
lea edi, [esi + 0x14]
mov esi, 0x104
push esi
mov ecx, edi
call fcn.00401307
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004011b6
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0040421e
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00402d34
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401038
push edi
mov ecx, ebx
call fcn.004013f1
call fcn.00418292
ret