joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c320
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00426ad0
test eax, eax
je 0x42c40f
mov ecx, edi
call fcn.00426ad0
mov ecx, eax
call fcn.00424150
test eax, eax
jne 0x42c40f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42c40f
mov eax, dword [0x795cd0]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42c382
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00426ad0
mov ecx, eax
call fcn.00424380
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42c40f
cmp ebx, eax
jne 0x42c40f
cmp dword [esp + 0x10], eax
jne 0x42c3f5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x42f050
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x465498
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42f089
inc eax
mov dword [esi + 0x10], eax
jmp 0x42f19c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42f09d
mov eax, 0xffffffc7
jmp 0x42f19e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42f0ae
cmp dword [esi + 8], eax
jne 0x42f09d
cmp dword [esi + 8], eax
jne 0x42f0c7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42f0c7
mov eax, 0xffffffc7
jmp 0x42f19e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42f0db
push eax
mov ecx, ebx
call fcn.0042e880
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402200
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42f10c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402220
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042dff0
test eax, eax
mov dword [esp + 0x38], eax
je 0x42f13f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x76c460
call fcn.00402400
mov eax, dword [esp + 0x38]
jmp 0x42f19e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042eeb0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42f183
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042eed0
mov esi, eax
test esi, esi
jne 0x42f1b3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042eeb0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42f155
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x76c460
call fcn.00402400
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x76c460
call fcn.00402400
mov eax, esi
jmp 0x42f19e

Function at 0x4322d0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x432330
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x432330
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x432330
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x432330
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x432370
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4384a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x465ac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0045ec45
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00437e40
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0045eb73
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045b437
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045b437
push 1
push 0
push 0
mov ecx, esi
call fcn.0045b3df
push 1
push 0
push 1
mov ecx, esi
call fcn.0045b3df
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045ecb7
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x438620
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x465ae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0045ec45
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00437e40
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0045eb73
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4386e4
cmp dword [esp + 0x40], 1
jne 0x4386e2
cmp ecx, eax
jge 0x4386e4
mov eax, ecx
cmp eax, 0xc8
jge 0x4386f0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004384a0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045ecb7
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x438e60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x465b53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00459855
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0045eeed
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00460409
test eax, eax
je 0x438f7c
mov ecx, dword [esp + 0x3c]
call fcn.0045ef1a
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x438f40
push edi
mov ecx, esi
call fcn.0045c57e
mov ecx, esi
call fcn.004390e0
cmp dword [esp + 0x38], 1
jne 0x438f75
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045c6b9
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43b9a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43b9d3
push esi
call fcn.0043eaa0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43b9cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43ba59
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43ba42
mov eax, dword [esi + 8]
test eax, eax
je 0x43b9f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43ba3e
cmp eax, 2
je 0x43ba42
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43b9ea
cmp eax, 3
je 0x43ba1d
cmp eax, 1
jne 0x43b9ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43b9ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43b9ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043ba80
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43ba68
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043ba80
add esp, 4
pop esi
ret

Function at 0x45a64a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45a682
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00458701
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004586d9
jmp 0x45a68e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45bd3b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45bd7d
call fcn.004617f9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45bd7d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45bd74
xor eax, eax
jmp 0x45bd85
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045bd8b
pop edi
pop esi
pop ebx
ret 4

Function at 0x461d29
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x461d57
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x461d75
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00461c8f
jmp 0x461d75
mov eax, dword [esi + 0x14]
test eax, eax
je 0x461d75
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00461c8f
test edi, edi
mov eax, edi
jne 0x461d5f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100016a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x100016bd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x100016de
cmp esi, eax
jae 0x100016b7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100016d0
cmp esi, eax
jae 0x100016b7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x10003330
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x10035a8c]
push ebx
push esi
push edi
mov dword [esp + 0x11c], eax
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100034d9
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10003375
mov ecx, dword [str.GetShareFile.exe]
mov edx, dword [0x1002b66c]
mov eax, dword [0x1002b670]
mov dword [edi], ecx
mov ecx, dword [0x1002b674]
mov dword [edi + 4], edx
mov dx, word [0x1002b678]
mov dword [edi + 8], eax
lea eax, [esp + 0x10]
mov dword [edi + 0xc], ecx
push 0
push eax
mov word [edi + 0x10], dx
call fcn.10012fed
add esp, 8
cmp eax, 0xffffffff
jne 0x1000350c
mov dword [esp + 0xc], 0
call fcn.1002755e
mov eax, dword [eax + 8]
push str.ExecuteFile
push 0xce
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x10003428
push 0x45
push 0x5c
push str..Downloader.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
push str._SD___downloader_state:_Find_resource_failed.
call fcn.10007550
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x11c]
call fcn.1001291b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1002755e
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
call fcn.1002755e
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x1000348f
push 0x4d
push 0x5c
push str..Downloader.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
push str._SD__downloader_state:_Load_resource_failed.
call fcn.10007550
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x11c]
call fcn.1001291b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x100034ee
push 0x54
push 0x5c
push str..Downloader.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
push str._SD__downloader_state:_create_resource_file_failed..
call fcn.10007550
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x11c]
call fcn.1001291b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea edx, [esp + 0x10]
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x11c]
mov eax, 1
call fcn.1001291b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x10035a8c]
push edi
mov dword [esp + 0x114], eax
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 8]
dec edi
jmp 0x10005540
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005540
mov ecx, dword [str.SDDownloadQueue.dat]
mov edx, dword [0x1002bfa4]
mov eax, dword [0x1002bfa8]
mov dword [edi], ecx
mov ecx, dword [0x1002bfac]
mov dword [edi + 4], edx
mov edx, dword [0x1002bfb0]
mov dword [edi + 8], eax
mov al, byte [0x1002bfb4]
mov dword [edi + 0xc], ecx
lea ecx, [esp + 8]
mov dword [edi + 0x10], edx
push 0
push ecx
mov byte [edi + 0x14], al
call fcn.10012fed
mov ecx, dword [esp + 0x11c]
xor edx, edx
add esp, 8
cmp eax, 0xffffffff
setne dl
mov eax, edx
call fcn.1001291b
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10005e70
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x10035a8c]
push esi
push edi
mov dword [esp + 0x21c], eax
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 8], cl
inc eax
test cl, cl
jne 0x10005ec0
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005ed5
mov ecx, 6
mov esi, str.driversx86common_soft
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
push 0
push ecx
movsb byte es:[edi], byte [esi]
call fcn.10012fed
add esp, 8
cmp eax, 0xffffffff
jne 0x10005f23
push 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10005f23
mov ecx, dword [esp + 0x21c]
call fcn.1001291b
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
lea eax, [esp + 8]
mov ecx, eax
sub edx, ecx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10005f30
mov ecx, dword [esp + 0x21c]
mov eax, 1
call fcn.1001291b
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10005f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
lea ebp, [ecx + 0x208]
xor eax, eax
mov ecx, ebp
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
push esi
mov dword [ecx + 0x10], eax
lea edx, [esp + 0x10]
push edx
mov dword [ecx + 0x14], eax
push 0x1002bff0
mov dword [ecx + 0x18], eax
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ecx + 0x1c], eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push esi
push str.ServerIP
push edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 1
call ebx
test eax, eax
je 0x10005ffe
mov ecx, dword [str.192.168.2.105]
mov eax, ebp
mov dword [eax], ecx
mov edx, dword [0x1002c044]
mov dword [eax + 4], edx
mov ecx, dword [0x1002c048]
pop esi
mov dword [eax + 8], ecx
mov dx, word [0x1002c04c]
pop ebp
mov word [eax + 0xc], dx
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0xc]
push edi
push eax
call fcn.10020235
mov ecx, dword [esp + 0x14]
mov edx, ecx
mov esi, eax
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServerIP
push edx
call ebx
test eax, eax
pop edi
jne 0x10006052
mov edx, ebp
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10006048
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10006060
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, 4
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x1002bff0
mov esi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi + 0x228], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.UpdatePort
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100060dc
mov dword [esi + 0x228], 0x1f90
mov eax, dword [esi + 0x228]
pop esi
add esp, 0x10
ret
mov edx, dword [esp + 8]
mov dword [esi + 0x228], edx
mov eax, edx
pop esi
add esp, 0x10
ret
Function at 0x100069b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x10035a8c]
push edi
mov dword [esp + 0x114], eax
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 8]
dec edi
jmp 0x100069f0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100069f0
mov ecx, dword [str.SDInstallQueue.dat]
mov edx, dword [0x1002c25c]
mov eax, dword [0x1002c260]
mov dword [edi], ecx
mov ecx, dword [0x1002c264]
mov dword [edi + 4], edx
mov edx, dword [0x1002c268]
mov dword [edi + 8], eax
lea eax, [esp + 8]
mov dword [edi + 0xc], ecx
push 0
push eax
mov dword [edi + 0x10], edx
call fcn.10012fed
xor ecx, ecx
add esp, 8
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x114]
call fcn.1001291b
pop edi
mov esp, ebp
pop ebp
ret