joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411f30
Capabilities:
Get system information on windows

Disassembly:
push 0
push 0
push 0x100000
push 0x200000
push 0
push 0x1002
call dword [sym.imp.ntdll.dll_RtlCreateHeap]
mov dword [0x68299c], eax
test eax, eax
jne 0x411f5a
mov eax, 0xc000009a
ret
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 8]
mov dword [0x6829bc], edx
call fcn.00412120
call fcn.004127c0
test al, al
jne 0x411f80
mov eax, 0xc0000001
ret
push 0
push 0x2c
push 0x6829c0
push 0
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push 0
push 0
push 0xf0003
push 0x681224
call dword [sym.imp.ntdll.dll_NtCreateKeyedEvent]
test eax, eax
js 0x411f7a
mov al, byte [0x6829e8]
mov cl, 1
cmp cl, al
sbb edx, edx
and edx, 0xfa0
mov dword [0x678710], edx
cmp cl, al
sbb edx, edx
and edx, 0xfa0
mov dword [0x6785ec], edx
call fcn.004122a0
test eax, eax
js 0x411f7a
call fcn.00410c90
test al, al
je 0x411f7a
call fcn.00412000
call fcn.004120d0
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x3fffffff
add eax, 0xc0000001
ret

Function at 0x412120
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
jns 0x412166
mov dword [0x6829a8], 0x7fffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x11c]
push esi
push edi
mov ecx, 0x47
lea esi, [ebp - 0x120]
mov edi, 0x682a00
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp eax, 5
jne 0x4121e1
mov eax, dword [ebp - 0x118]
cmp eax, 1
jb 0x4121e3
cmp eax, 1
jne 0x4121ef
mov dword [0x6829a8], 0x33
mov dword [0x6829a4], 0x400
mov dword [0x6829ec], 0x1f0fff
mov dword [0x6829b8], 0x40
mov dword [0x6829b0], 0x20
mov dword [0x6829ac], 0x1f03ff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
jae 0x412200
mov dword [0x6829a8], 0
jmp 0x4121a1
cmp eax, 2
jne 0x412243
mov dword [0x6829a8], 0x34
jmp 0x4121a1
cmp eax, 6
jne 0x412290
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x41221f
mov dword [0x6829a8], 0x3c
jmp 0x412250
cmp eax, 1
jne 0x412230
mov dword [0x6829a8], 0x3d
jmp 0x412250
cmp eax, 2
jne 0x412241
mov dword [0x6829a8], 0x3e
jmp 0x412250
ja 0x412292
cmp dword [0x6829a8], 0x3c
jb 0x4121a1
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x6829a4], 0x1000
mov dword [0x6829ec], 0x1f1fff
mov dword [0x6829b8], 0x800
mov dword [0x6829b0], 0x400
mov dword [0x6829ac], 0x1f0fff
call fcn.00534bba
mov esp, ebp
pop ebp
ret
jbe 0x412243
mov dword [0x6829a8], 0x7fffffff
jmp 0x412250
Function at 0x4122a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push esi
push edi
push 0x682980
call dword [sym.imp.ntdll.dll_RtlInitializeSListHead]
xor edi, edi
push 0x30
lea eax, [esp + 0xc]
push edi
push eax
mov dword [0x682988], edi
mov dword [0x68298c], 0x200
mov dword [0x682990], 0x40
call fcn.00534b40
lea ecx, [esp + 0x14]
mov dword [0x681750], ecx
add esp, 0xc
lea ecx, [edi + 0x30]
lea eax, [esp + 8]
call fcn.004124f0
lea edx, [esp + 0x18]
mov ecx, 1
lock xadd dword [edx], ecx
mov dword [eax], 1
mov dword [eax + 8], 0x30
add eax, 0x10
lea edx, [esp + 8]
mov dword [eax - 4], edx
mov dword [eax], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], str.Type
mov dword [eax + 0x10], edi
mov dword [0x681750], eax
mov dword [eax - 4], eax
mov eax, dword [0x681750]
mov dword [eax + 0x10], 1
mov eax, dword [0x681750]
lea ecx, [edi + 0x30]
mov esi, eax
call fcn.004124f0
lea ecx, [esi + 0x10]
mov edx, 1
lock xadd dword [ecx], edx
mov dword [eax], 1
mov dword [eax + 8], 0x30
mov dword [eax + 0xc], esi
add eax, 0x10
mov dword [eax], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], str.Alloc
mov dword [eax + 0x10], edi
mov dword [0x681758], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [0x681220], eax
pop edi
pop esi
lea eax, [ecx - 1]
and eax, 0xc000009a
mov esp, ebp
pop ebp
ret

Function at 0x412c60
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x68123c]
push edi
test eax, eax
je 0x412c7e
mov ecx, dword [0x681238]
mov dword [esi], ecx
mov dword [esi + 4], eax
pop edi
mov esp, ebp
pop ebp
ret
mov edi, 0x7ffe0030
mov eax, edi
lea edx, [eax + 2]
jmp 0x412c90
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412c90
sub eax, edx
sar eax, 1
add eax, eax
cmp word [eax + 0x7ffe002e], 0x5c
jne 0x412cae
sub eax, 2
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x681238], eax
xchg dword [ebp - 4], eax
mov dword [0x68123c], edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x412cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0x10
test edx, edx
je 0x412d11
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412cf0
sub eax, esi
sar eax, 1
add eax, eax
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov word [ebp - 0x12], cx
jmp 0x412d16
xor eax, eax
mov dword [ebp - 0x14], eax
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x100
mov dword [ebp - 0x10], edx
mov edx, dword [0x68299c]
push 4
push edx
mov dword [ebp - 8], 0x100
call ebx
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, eax
mov edi, edi
mov ecx, dword [ebp - 8]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push ecx
push esi
push 2
lea edx, [ebp - 0x14]
push edx
push eax
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jns 0x412d85
mov ecx, dword [0x68299c]
push esi
push 0
push ecx
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x412d90
call edi
mov edx, dword [ebp - 8]
mov eax, dword [0x68299c]
push edx
push 4
push eax
call ebx
dec dword [ebp - 0xc]
mov esi, eax
jne 0x412d40
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4180f0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x676300]
xor eax, esp
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
push ebx
mov ebx, ecx
xor edx, edx
sub ebx, eax
je 0x418151
sub eax, ecx
cdq
mov ecx, eax
xor eax, eax
add dword [esi + 8], ecx
adc dword [esi + 0xc], edx
test byte [esi + 4], 8
jne 0x41814b
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
push 0xe
push 8
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
push edx
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edx, eax
test eax, eax
js 0x418161
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, edx
mov ecx, dword [esp + 0x1c]
pop ebx
xor ecx, esp
call fcn.00534bba
mov esp, ebp
pop ebp
ret

Function at 0x418180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x10]
sub esp, 8
xor eax, eax
test byte [esi + 4], 8
je 0x418197
lea eax, [esi + 8]
push 0
push eax
push ecx
mov ecx, dword [esi]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x4181ca
mov edx, dword [esi]
push 0
push 0
push edx
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x4181e6
mov eax, dword [ebp - 8]
test eax, eax
js 0x4181e6
mov ecx, dword [ebp - 4]
add dword [esi + 8], ecx
mov dword [esi + 0x20], 0
adc dword [esi + 0xc], 0
or dword [esi + 4], 0x80000000
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a1a3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x676300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x678b80
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], ebx
mov dword [ecx], 0x678b80
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x65c915
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.00422230
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423040
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a219
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x676300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x678b80
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], 0x678b80
mov dword [esi + 0x30], 0x678b80
mov dword [esi + 0x34], 0x678b80
mov ecx, dword [ebp + 8]
mov eax, ecx
lea edx, [eax + 1]
mov byte [ebp - 4], 3
mov dword [ebp + 8], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4230c3
sub eax, dword [ebp + 8]
push eax
push ecx
lea ecx, [esi + 0x2c]
call fcn.00422230
mov edi, dword [ebp + 0xc]
mov eax, edi
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4230e0
sub eax, ecx
push eax
push edi
lea ecx, [esi + 0x30]
call fcn.00422230
mov edx, dword [ebp + 0x10]
mov eax, edx
lea edi, [eax + 1]
jmp 0x423100
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x423100
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x34]
call fcn.00422230
mov eax, esi
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 0x425c40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push str._CreateParamFile:_s_
push str.CAlarmUserFile
push 0x67903c
mov edi, ecx
call fcn.004ebd86
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 3
push 0x1f01ff
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
xor eax, eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push 0x18
lea ecx, [ebp - 0x1c]
push ecx
push esi
mov dword [ebp - 0x14], 0x34
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xf1
add edi, 0x125
push 0
push edi
call fcn.00534b40
add esp, 0xc
mov ebx, 0xc8
push 0
lea edx, [ebp - 0x20]
push edx
push 0xf1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec ebx
jne 0x425cd3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534bba
mov esp, ebp
pop ebp
ret 4
Function at 0x425f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.00534b40
push 0x103
add esi, 0x20
lea ecx, [ebp - 0x108]
push esi
push ecx
call fcn.00537970
lea edi, [ebp - 0x108]
add esp, 0x18
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x425fd0
mov dx, word [0x579fac]
lea eax, [ebp - 0x108]
push 0x579fa8
push eax
mov word [edi], dx
call fcn.00536808
mov edi, eax
add esp, 8
test edi, edi
je 0x426013
push edi
push 1
lea ecx, [ebp + 8]
push 4
push ecx
call fcn.00535138
push edi
call fcn.00536f74
add esp, 0x14
lea edx, [ebp - 0x248]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x244]
mov edx, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x260], edx
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24c], edx
cdq
push 0
add eax, 0xb6109100
push 0x989680
adc edx, 2
mov dword [ebp - 0x254], ecx
mov ecx, dword [ebp - 0x234]
push edx
push eax
mov dword [ebp - 0x250], ecx
call fcn.00537aa0
push 0
push 0x90000080
push 3
push 0
push 3
mov dword [ebp - 0x250], eax
push 0xc0000000
mov eax, edx
push esi
sar eax, 0x1f
mov dword [ebp - 0x24c], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4260f0
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x260]
push edx
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._create_file_failed_s___d_
push str.CAlarmUserFile
push 0x67903c
call fcn.004ebec7
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
xor ecx, ebp
pop esi
call fcn.00534bba
mov esp, ebp
pop ebp
ret 4
Function at 0x427640
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a792
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x676300]
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 esi, dword [ebp + 8]
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
cmp dword [ebx + 0x3c], edi
je 0x4277d9
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
push 0x3d
push str.SELECT_name_FROM_sqlite_master_WHERE_type__table_AND_name
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.0040a3f0
push 1
push 0x5796b4
lea ecx, [ebp - 0x2c]
call fcn.0040b110
cmp esi, edi
jne 0x4276dd
push 0xffffffffffffffff
push edi
add ebx, 0x20
push ebx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
call fcn.0040b230
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 1
lea ebx, [edi + 1]
jmp 0x42770e
mov eax, esi
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4276f0
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0040a3f0
mov ebx, 2
lea eax, [ebp - 0x48]
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x6c], ebx
call fcn.0040bc80
mov esi, 0x10
test bl, 2
je 0x427749
and ebx, 0xfffffffd
cmp dword [ebp - 0x34], esi
jb 0x42773b
mov eax, dword [ebp - 0x48]
push eax
call fcn.00535f7c
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
mov dword [ebp - 4], edi
test bl, 1
je 0x427762
cmp dword [ebp - 0x50], esi
jb 0x427762
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00535f7c
add esp, 4
push 1
push 0x5796b4
lea ecx, [ebp - 0x2c]
call fcn.0040b110
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x42777c
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x70]
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
push 0xffffffffffffffff
push eax
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x4277c8
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
push eax
lea ecx, [ebp - 0x68]
call fcn.004ebfc1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.004f161a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
test al, al
jne 0x4277dd
call fcn.004ebfcf
cmp dword [ebp - 0x18], esi
jb 0x4277d9
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00535f7c
add esp, 4
xor al, al
jmp 0x4277f5
call fcn.004ebfcf
cmp dword [ebp - 0x18], esi
jb 0x4277f3
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00535f7c
add esp, 4
mov al, 1
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.00534bba
mov esp, ebp
pop ebp
ret 4
Function at 0x42e450
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1858
call fcn.005382c0
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x403]
push ebx
push eax
mov byte [ebp - 0x404], bl
call fcn.00534b40
lea ecx, [ebp - 0x404]
push ecx
call fcn.004f05e1
push 0x3ff
lea edx, [ebp - 0xc03]
push ebx
push edx
mov byte [ebp - 0xc04], bl
call fcn.00534b40
push 0x3ff
lea eax, [ebp - 0x803]
push ebx
push eax
mov byte [ebp - 0x804], bl
call fcn.00534b40
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0xc04]
push str._sverdata104010.xml
push edx
call fcn.00535bfb
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x804]
push str._sUpgrade_
push ecx
call fcn.00535bfb
lea edx, [ebp - 0x804]
add esp, 0x40
push edx
call fcn.004ee7f1
lea eax, [ebp - 0x804]
add esp, 4
dec eax
jmp 0x42e510
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x42e510
mov ecx, dword [str.verdata104010.xml]
mov edx, dword [0x57a71c]
mov dword [eax], ecx
mov ecx, dword [0x57a720]
mov dword [eax + 4], edx
mov edx, dword [0x57a724]
mov dword [eax + 8], ecx
mov cx, word [0x57a728]
mov dword [eax + 0xc], edx
push ebx
lea edx, [ebp - 0x804]
mov word [eax + 0x10], cx
push edx
lea eax, [ebp - 0xc04]
push eax
call fcn.004ee8f9
add esp, 0xc
test eax, eax
je 0x42e67d
cmp dword [ebp + 0x14], 1
mov ecx, str.SHOW
je 0x42e575
mov ecx, str.HIDE
mov eax, str.DETECT
cmp dword [ebp + 0x10], ebx
je 0x42e584
mov eax, str.Install
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push esi
lea edx, [ebp - 0x1404]
push str._Verifyrzx_1218_Server_s_Port_u_ProductID104010_Type_s__ShowUI_s
push edx
call fcn.00535bfb
push 0x3ff
lea eax, [ebp - 0x1003]
push ebx
push eax
mov byte [ebp - 0x1004], bl
call fcn.00534b40
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x1804]
push str._sUpgradeLog_104010.log
push edx
call fcn.00535bfb
lea eax, [ebp - 0x1804]
push eax
call fcn.004ee73a
push 0x44
lea ecx, [ebp - 0x1858]
push ebx
push ecx
call fcn.00534b40
add esp, 0x40
lea edx, [ebp - 0x1404]
push edx
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x1004]
push str.__sUpgrade.exe___s
push ecx
mov dword [ebp - 0x1858], 0x44
call fcn.00535bfb
add esp, 0x10
lea edx, [ebp - 0x1814]
push edx
lea eax, [ebp - 0x1858]
push eax
lea ecx, [ebp - 0x404]
push ecx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea edx, [ebp - 0x1004]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 1
jne 0x42e67d
mov eax, dword [ebp - 0x1814]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x1810]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x1814]
push edx
call esi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00534bba
mov esp, ebp
pop ebp
ret
Function at 0x4301c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x100
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x1c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.00538174
add esp, 4
mov edi, eax
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
mov dword [ebp - 0x24], 0x100
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x43034d
lea esp, [esp]
push 0x100
push 0
push edi
call fcn.00534b40
push 0x10
mov dword [ebp - 0x24], 0x100
call fcn.00535efc
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
lea edx, [ebp - 0x24]
push edx
push edi
mov esi, eax
push 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [esi], ecx
mov ecx, dword [ebp - 0x28]
push ebx
mov dword [esi + 0xc], 0
call fcn.004300d0
test eax, eax
jne 0x4302f8
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x28]
push edi
push eax
lea edx, [ebp - 0x20]
push edx
push ebx
call fcn.004300d0
test eax, eax
jne 0x4302f8
lea eax, [ebp - 0x24]
push eax
push edi
push 7
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x28]
push ebx
call fcn.004300d0
test eax, eax
jne 0x4302f8
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
push edx
push edi
push 8
lea eax, [ebp - 0x20]
push eax
push ebx
call fcn.004300d0
test eax, eax
jne 0x4302f8
mov ecx, dword [str._Unknown_Device_]
mov dword [edi], ecx
mov edx, dword [0x57a7cc]
mov dword [edi + 4], edx
mov eax, dword [0x57a7d0]
mov dword [edi + 8], eax
mov ecx, dword [0x57a7d4]
mov dword [edi + 0xc], ecx
mov dl, byte [0x57a7d8]
mov byte [edi + 0x10], dl
push edi
mov dword [ebp - 0x24], 0x14
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], eax
mov ecx, dword [ebp - 0x24]
inc ecx
push ecx
call fcn.00538174
mov dword [esi + 4], eax
mov edx, dword [ebp - 0x24]
inc edx
push edx
push 0
push eax
call fcn.00534b40
mov eax, dword [ebp - 0x24]
mov ecx, dword [esi + 4]
push eax
push edi
push ecx
call fcn.00534c80
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
add esp, 0x1c
lea ecx, [ebp - 0x20]
inc eax
push ecx
push eax
push ebx
mov dword [edx + 0xc], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x430230
push edi
call fcn.005383cd
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00534bba
mov esp, ebp
pop ebp
ret 8
Function at 0x430f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b549
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x676300]
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
push str.LSConfigSetInfo.Dat
push 0x678bc8
lea eax, [ebp - 0x410]
push 0x57a838
push eax
mov esi, ecx
call fcn.00535bfb
add esp, 0x10
cmp dword [esi + 8], 0
jne 0x430fdb
push 4
call fcn.00535efc
add esp, 4
mov dword [ebp - 0x474], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x430fcf
push 1
push str.LSConfigSetInfo.Dat
mov ecx, eax
call fcn.004ef860
jmp 0x430fd1
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 8], eax
mov ebx, dword [esi + 8]
mov dword [ebp - 0x474], ebx
test ebx, ebx
je 0x430fef
mov ecx, ebx
call fcn.004ef6fb
push 0x57a855
lea ecx, [ebp - 0x410]
push ecx
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00430cb0
mov edi, eax
cmp edi, 0xfffffff7
je 0x43101f
cmp dword [esi + 0x18], 0x5d
mov edx, dword [esi + 0x1c]
mov dword [ebp - 0x478], edx
jae 0x431094
push 0x5d
lea eax, [ebp - 0x470]
push 0
push eax
call fcn.00534b40
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 3
push 0x1f01ff
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43105f
mov edi, 0xfffffffe
jmp 0x431094
push 0
lea edx, [ebp - 0x478]
push edx
push 0x5d
lea eax, [ebp - 0x470]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x57a855
lea ecx, [ebp - 0x410]
push ecx
mov ecx, esi
call fcn.00430cb0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4310a6
mov ecx, ebx
call fcn.004ef710
mov eax, edi
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.00534bba
mov esp, ebp
pop ebp
ret