joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x412d14
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x412d2a
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x412d38
mov eax, dword [eax]
push esi
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x412d51
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0xe
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x412d70
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x412d78
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x412e33
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push 0
push dword [ebp + 0xc]
push 0xe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
je 0x412e33
xor eax, eax
mov dword [ebp - 4], 0
cmp ax, word [ebx + 4]
jae 0x412e24
lea edi, [ebx + 0x12]
movzx eax, word [edi]
push 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x412e33
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x412e33
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x412e33
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 8]
movzx eax, word [edi]
push 0
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
je 0x412e33
mov eax, dword [ebp - 0xc]
add edi, 0xe
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
movzx eax, word [eax + 4]
cmp ecx, eax
jl 0x412dc1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
jne 0x412e3c
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a5f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66d950
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x726100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
sub esp, 8
mov edi, esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], edi
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
lea esi, [edi + 4]
mov dword [ebp - 0x14], esi
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00404750
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x1c]
mov dword [edi], vtable.CPathEx.0
push eax
call fcn.00417b50
add esp, 0xc
mov byte [ebp - 4], 1
test eax, eax
je 0x41a672
add eax, 4
jmp 0x41a674
xor eax, eax
push eax
lea ecx, [ebp + 0xc]
call fcn.00409750
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004117a0
sub esp, 8
mov edi, esp
mov dword [ebp - 0x18], edi
lea esi, [edi + 4]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00404750
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov dword [edi], vtable.CPathEx.0
call fcn.00414f20
add esp, 8
test al, al
je 0x41a748
call fcn.0041d300
test al, al
je 0x41a70d
sub esp, 8
mov edi, esp
mov dword [ebp - 0x18], edi
lea esi, [edi + 4]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00404750
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov dword [edi], vtable.CPathEx.0
call fcn.0041c340
add esp, 8
test al, al
je 0x41a70d
push dword [ebp + 0xc]
mov bl, 1
call fcn.00424730
add esp, 4
jmp 0x41a71b
lea eax, [ebp - 0x10]
xor bl, bl
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x41a748
lea eax, [esi + 1]
push eax
call fcn.00634e9c
mov edi, eax
add esp, 4
test edi, edi
je 0x41a748
push edi
push esi
test bl, bl
je 0x41a766
push dword [ebp + 0xc]
call fcn.00424710
add esp, 0xc
test eax, eax
jne 0x41a775
xor bl, bl
lea ecx, [ebp + 8]
call fcn.004117a0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41a748
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x6913d0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41a748
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
push edi
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
call fcn.00633c9f
add esp, 4
mov bl, 1
jmp 0x41a74a
Function at 0x41bee0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66dc59
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x726100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x10], 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
mov edi, dword [ebp + 8]
call fcn.00427fa4
mov ecx, eax
test ecx, ecx
jne 0x41bf42
push 0x80004005
call fcn.00404730
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 4], eax
mov dword [edi], vtable.CISPath.0
mov ecx, 1
mov dword [ebp - 4], 0
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
mov dword [ebp - 0x18], 1
or ecx, eax
jge 0x41bf82
push 0x104
lea ecx, [edi + 4]
call fcn.004049c0
push dword [edi + 4]
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [edi + 4]
test eax, eax
jne 0x41bf99
xor ecx, ecx
jmp 0x41bfab
push dword [eax - 8]
push eax
call fcn.0063465b
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41bff1
mov eax, dword [edi + 4]
cmp ecx, dword [eax - 8]
jg 0x41bff1
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi + 4]
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x10]
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00404730
int3
Function at 0x41d350
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66e080
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x726100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x72de44
mov dword [ebp - 4], 1
mov dword [0x72de3c], 0
call fcn.00404830
push 0x40
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.00617a20
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ax, word [ebp + 0x1c]
mov ecx, 1
mov esi, dword [ebp + 0x14]
add esp, 0xc
or dword [ebp - 0x44], 1
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x70], 0x44
mov word [ebp - 0x40], ax
sub ecx, dword [edx - 4]
cmp dword [esi - 0xc], 0
mov eax, dword [edx - 8]
je 0x41d3ee
or eax, ecx
jge 0x41d3e3
push 0
lea ecx, [ebp + 0xc]
call fcn.004049c0
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
jmp 0x41d409
or eax, ecx
jge 0x41d3ff
push 0
lea ecx, [ebp + 0xc]
call fcn.004049c0
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
jne 0x41d4a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x72de3c], eax
lea ecx, [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00410750
mov byte [ebp - 4], 2
test eax, eax
je 0x41d44a
add eax, 4
jmp 0x41d44c
xor eax, eax
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404750
add eax, 0x10
mov dword [ebp - 0x14], vtable.CPathEx.0
add esp, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
mov ecx, 0x72de44
call fcn.00409750
lea ecx, [ebp - 0x14]
call fcn.004117a0
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov dword [ebp - 0x1c], vtable.CStringEx.0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d4ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41d4ba
cmp byte [ebp + 0x18], 0
je 0x41d4ba
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp + 8]
call fcn.004117a0
lea ecx, [ebp + 0x10]
call fcn.004117a0
test esi, esi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41dfa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x41e039
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push edi
push esi
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp + 0x10], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test edx, edx
jne 0x41e031
test esi, esi
je 0x41e031
mov ecx, dword [edi]
test ecx, ecx
je 0x41e02c
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41e01c
cmp eax, 2
jbe 0x41e00d
cmp eax, 7
jne 0x41e01c
test cl, 1
jne 0x41e01c
shr ecx, 1
cmp ecx, 1
jb 0x41e01c
cmp word [esi + ecx*2 - 2], dx
jne 0x41e01c
cmp ecx, 1
jbe 0x41e031
cmp word [esi + ecx*2 - 4], dx
jmp 0x41e01a
test cl, 1
jne 0x41e01c
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41e031
xor eax, eax
mov word [esi], ax
mov eax, 0xd
pop edi
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
pop edi
mov eax, edx
pop esi
pop ebp
ret 0xc
push 0x80004005
call fcn.00404730
int3

Function at 0x423df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66ed49
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x726100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00403110
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 0
push eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 1
push eax
push 0
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x423ec7
mov edx, dword [ebp + 0x10]
test edx, edx
jns 0x423e6e
push 0x80070057
call fcn.00404730
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x423e8c
push edx
mov ecx, esi
call fcn.004049c0
mov edx, dword [ebp + 0x10]
push edx
push dword [esi]
mov ecx, edi
push dword [ebp + 0xc]
call fcn.00423f00
mov eax, dword [esi]
test eax, eax
jne 0x423ea3
xor ecx, ecx
jmp 0x423eb5
push dword [eax - 8]
push eax
call fcn.0063465b
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x423e64
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x423e64
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x424250
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66edc0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x726100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x72de44
mov dword [ebp - 4], 0
mov dword [0x72de3c], 0
call fcn.00404830
mov dl, byte [ebp + 0x14]
xor eax, eax
push 0
test dl, dl
mov byte [esi + 0x14], dl
push 0x80
sete al
mov ecx, 0xc0000000
add eax, 2
test dl, dl
push eax
push 0
push 0
mov eax, SysReAllocString
cmovne eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [esi + 0xc], ecx
cmp ecx, 0xffffffff
jne 0x42431c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x72de3c], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00404750
add eax, 0x10
mov dword [ebp - 0x14], vtable.CPathEx.0
add esp, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x72de44
call fcn.00409750
lea ecx, [ebp - 0x14]
call fcn.004117a0
xor bl, bl
jmp 0x42443f
mov edi, dword [ebp + 0x10]
xor eax, eax
cmp byte [esi + 0x14], al
push 0
setne al
push dword [edi]
push 0
lea eax, [eax*2 + 2]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [esi + 0x10], ecx
test ecx, ecx
jne 0x42438f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x72de3c], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00404750
add eax, 0x10
mov dword [ebp - 0x1c], vtable.CPathEx.0
add esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
mov ecx, 0x72de44
call fcn.00409750
lea ecx, [ebp - 0x1c]
call fcn.004117a0
xor bl, bl
jmp 0x42443f
push dword [edi]
xor eax, eax
cmp byte [esi + 0x14], al
push 0
sete al
push 0
lea eax, [eax*2 + 2]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
test eax, eax
jne 0x4243f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x72de3c], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00404750
add eax, 0x10
mov dword [ebp - 0x24], vtable.CPathEx.0
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
mov ecx, 0x72de44
call fcn.00409750
lea ecx, [ebp - 0x24]
call fcn.004117a0
xor bl, bl
jmp 0x42443f
cmp dword [edi], 0
jne 0x424434
push 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x424434
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
mov dword [0x72de3c], eax
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00412fc0
call fcn.0041f7a0
add esp, 8
xor bl, bl
jmp 0x42443f
mov eax, dword [edi]
mov bl, 1
mov dword [esi + 0x18], eax
mov byte [esi + 8], 1
lea ecx, [ebp + 8]
call fcn.004117a0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x424550
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6f9c88
push 0x617f90
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x726100]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
xor edi, edi
mov dword [ebp - 0x28], edi
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], esi
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x4246b1
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x4246b1
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x4246b1
mov eax, 0x5a4d
cmp word [esi], ax
je 0x4245fe
push 0xb
jmp 0x4246ab
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + esi], 0x454c
jne 0x4245f7
cmp dword [ecx + esi + 0xbc], 0
jne 0x424627
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
push 0x714
jmp 0x4246ab
mov ecx, dword [ecx + esi + 0xb8]
add ecx, esi
mov dword [ebp - 0x1c], ecx
add ecx, 3
mov dword [ebp - 0x1c], ecx
cmp byte [ecx], 0
je 0x424641
inc ecx
jmp 0x424636
add ecx, 3
mov dword [ebp - 0x1c], ecx
movzx edx, byte [ecx + 1]
shl edx, 8
movzx eax, byte [ecx]
add edx, eax
mov dword [ebp - 0x20], edx
lea eax, [ecx + 4]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
test ecx, ecx
je 0x4246a7
mov edx, dword [eax]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x20]
cmp dword [eax], edx
jb 0x4246a7
push dword [ebp - 0x34]
push 0
push ecx
call fcn.00617a20
push dword [ebp - 0x20]
push dword [ebp - 0x38]
push dword [ebp + 0x10]
call fcn.006174a0
add esp, 0x18
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x30], 1
jmp 0x4246b1
mov dword [eax], edx
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
call fcn.004246db
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c4ce
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x66f674
call fcn.005f4af7
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x18]
mov edi, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push edi
call fcn.0042ca43
and dword [ebp - 4], 0
mov dword [ebx], vtable.CFtpConnection.0
call fcn.00427fa4
push eax
lea ecx, [ebx + 0x18]
call fcn.00425b82
push dword [ebp + 0xc]
lea ecx, [ebx + 0x18]
mov byte [ebp - 4], 1
call fcn.004264de
push dword [ebx + 8]
mov eax, dword [ebp + 0x20]
neg eax
sbb eax, eax
and eax, 0x8000000
push eax
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 4], eax
test eax, eax
jne 0x42c555
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx + 8]
call fcn.0042d42e
push dword [ebx + 0xc]
mov ecx, 0x72de8c
push eax
call fcn.0042ef23
mov eax, ebx
call fcn.005f4ac0
ret 0x1c

Function at 0x42cbc9
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x42cbf2
call fcn.0042bb7f
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x42cc1f
push esi
push eax
mov ecx, 0x72de8c
call fcn.0042ef23
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.0042d42e
int3

Function at 0x430337
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x43037d
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43038c
push str.MoveFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x43038c
push dword [esi]
mov ecx, edi
push 2
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005f4aba
call edi
jmp 0x43038e
cmp dword [esi + 4], ebx
je 0x43038c
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x431880
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x4318c0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4318cf
push str.SetFileAttributesTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4318cf
push dword [esi]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005f4aba
call edi
jmp 0x4318d1
cmp dword [esi + 4], 0
je 0x4318cf
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x4339c3
Capabilities:
Delete registry key

Disassembly:
push 8
mov eax, 0x670177
call fcn.005f4af7
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00403110
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x433a25
call fcn.0042bbcd
cmp eax, 1
jne 0x433a25
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.00432ce9
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00409750
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00426485
inc esi
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
push esi
test ecx, ecx
je 0x433a37
call fcn.00433d8f
jmp 0x433a3d
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.00426485
mov eax, esi
call fcn.005f4ac0
ret 0xc

Function at 0x433b88
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x6701f8
call fcn.005f4af7
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00403110
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x433be6
call fcn.0042bbcd
cmp eax, 1
jne 0x433be6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.00432ce9
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00409750
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00426485
inc esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00426485
mov eax, esi
call fcn.005f4ac0
ret 0x10

Function at 0x433c0d
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x670223
call fcn.005f4af7
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00403110
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x433c6b
call fcn.0042bbcd
cmp eax, 1
jne 0x433c6b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.00432ce9
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00409750
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00426485
inc esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00426485
mov eax, esi
call fcn.005f4ac0
ret 0x14