joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418d52
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push dword [esi + 4]
call dword [eax + 0x34]
cmp dword [esi + 0xc], 0xffffffff
je 0x418da5
and dword [esi + 8], 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x418da5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x14]
mov dword [esi + 8], eax
test ecx, ecx
je 0x418da5
push dword [esi + 0x10]
mov edx, dword [ecx]
push eax
push 0x170
push str.CPortableWinPFile.cpp
call dword [edx + 4]
mov eax, dword [esi + 8]
pop esi
pop ebp
ret 0xc

Function at 0x418dad
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push esi
mov esi, ecx
je 0x418e2e
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x418e2e
cmp dword [ebp + 0xc], 0
jbe 0x418dd7
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.005502f0
add esp, 0xc
and dword [ebx], 0
mov eax, dword [esi]
push dword [esi + 4]
mov ecx, esi
call dword [eax + 0x34]
cmp dword [esi + 0xc], 0xffffffff
jne 0x418def
mov eax, dword [esi + 8]
jmp 0x418e31
and dword [esi + 8], 0
push 0
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418dea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x14]
mov dword [esi + 8], eax
test ecx, ecx
je 0x418dea
push dword [esi + 0x10]
mov edx, dword [ecx]
push eax
push 0x196
push str.CPortableWinPFile.cpp
call dword [edx + 4]
jmp 0x418dea
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4191bc
Capabilities:
Get disk size
Get system information on windows

Disassembly:
push 0x3c
mov eax, 0x572d1c
call fcn.00551162
mov esi, ecx
mov dword [ebp - 0x14], esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004186a6
mov eax, dword [ebp + 0x10]
xor edx, edx
lea ebx, [esi + 0x30]
and eax, 1
mov dword [ebp - 4], edx
mov dword [esi], vtable.CPortableUnBufWinPFile.0
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edx
mov dword [ebx], edx
mov dword [ebx + 4], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 8], edx
mov dword [esi + 0x50], eax
cmp dword [esi + 0x10], edx
je 0x41929c
push edx
push dword [esi + 0x10]
lea eax, [ebp - 0x24]
push eax
call fcn.00415f3c
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x419264
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x38], eax
jmp 0x41928e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x14]
mov dword [esi + 8], eax
test ecx, ecx
je 0x419287
push dword [esi + 0x10]
mov edx, dword [ecx]
push eax
push 0xd6
push str.CPortableUnBufWinPFile.cpp
call dword [edx + 4]
mov dword [esi + 0x38], 0x200
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.0041778f
xor edx, edx
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x48], edx
lea edi, [ebp - 0x44]
push 0x24
rep stosd dword es:[edi], eax
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.005502f0
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x44]
mov eax, 0x20000
cmp ecx, eax
cmova eax, ecx
xor edx, edx
div ecx
push dword [ebp + 0xc]
mov dword [esi + 0x40], ecx
imul eax, ecx
mov ecx, esi
mov dword [esi + 0x3c], eax
call fcn.00419385
cmp dword [esi + 0xc], 0xffffffff
je 0x4192f4
push ebx
mov ecx, esi
call fcn.004187e5
mov eax, esi
call fcn.00551130
ret 0x10
Function at 0x41a377
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 0x2c], 0
push ebx
push esi
push edi
push 8
mov ebx, ecx
pop ecx
xor eax, eax
push 0x24
lea edi, [ebp - 0x28]
push eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.005502f0
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x28]
mov esi, 0x5f90a0
cmp ecx, 0x20000
ja 0x41a3c8
xor edx, edx
lea eax, [ecx + 0x5f909f]
div ecx
mov esi, eax
imul esi, ecx
push 5
pop edi
and dword [ebp - 4], 0
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea ecx, [ebx + 4]
add esi, 0x20000
call fcn.0041a4f4
dec edi
jne 0x41a3cb
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x41a846
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x5f63b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push 0x24c
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x250]
push edi
xor ebx, ebx
push eax
mov esi, ecx
inc ebx
mov dword [ebp - 0x254], edi
call fcn.005502f0
push 0x250
lea eax, [ebp - 0x254]
push edi
push eax
call fcn.005502f0
add esp, 0x18
cmp dword [esi + 0x3c], 0xffffffff
jne 0x41a8ed
push dword [esi + 8]
lea eax, [ebp - 0x26c]
push dword [esi + 0x30]
push 2
push ebx
push eax
call fcn.00416149
add esp, 0x14
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
mov edi, ebx
cmove edi, ecx
lea ecx, [ebp - 0x26c]
mov dword [esi + 0x3c], eax
call fcn.0041778f
jmp 0x41a8ff
lea eax, [ebp - 0x254]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
je 0x41a9b3
lea eax, [ebp - 0x228]
push eax
lea ecx, [esi + 0x40]
call fcn.00417847
mov ecx, dword [ebp - 0x25c]
lea eax, [ebp - 0x20]
push eax
call fcn.00417847
cmp dword [ebp - 0x24c], 0
mov eax, dword [ebp - 0x254]
mov dword [esi + 0x50], eax
jne 0x41a940
cmp dword [ebp - 0x250], 0
je 0x41a942
xor ebx, ebx
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x250]
mov dword [eax], ebx
lea eax, [ebp - 0x248]
test ebx, ebx
cmove eax, ecx
push eax
lea ecx, [esi + 0x54]
call fcn.00418058
lea eax, [ebp - 0x248]
push eax
lea ecx, [esi + 0x64]
call fcn.00418058
lea eax, [ebp - 0x240]
push eax
lea ecx, [esi + 0x74]
call fcn.00418058
mov ecx, dword [ebp - 0x238]
xor eax, eax
add eax, dword [ebp - 0x234]
adc ecx, 0
test byte [esi + 0x50], 0x10
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], ecx
je 0x41a9b3
or dword [esi + 0x88], 0xffffffff
or dword [esi + 0x8c], 0xffffffff
mov ecx, dword [ebp - 4]
mov dword [esi + 0x90], edi
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054cf7e
leave
ret 8
Function at 0x41a9cc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x5f63b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
push dword [ecx + 0x30]
xor ebx, ebx
push 2
inc ebx
lea eax, [ebp - 0x838]
push ebx
push eax
call fcn.00416149
add esp, 0x14
test byte [ebp + 8], 0x10
jne 0x41aa45
push 0
push 0x80
push 3
push 0
push ebx
push SysReAllocString
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x828], ecx
cmp eax, 0xffffffff
je 0x41aa3f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x828]
xor ebx, ebx
test ecx, ecx
jmp 0x41aa9e
xor eax, eax
push 0x81e
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.005502f0
add esp, 0xc
lea eax, [ebp - 0x824]
push eax
push 0x40f
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41aaa1
push edi
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x41aa99
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor ebx, ebx
test edi, edi
pop edi
sete bl
lea ecx, [ebp - 0x838]
call fcn.0041778f
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0054cf7e
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573299
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5f63b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x6b90b8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.tinyxml::TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x6b90b8
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x5c0e00
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0041b0b0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41dcf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57333b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5f63b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x41dd44
push edi
push edi
push edi
push 2
call fcn.00420bd0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x41dd5f
jmp 0x41dd50
mov ecx, esi
mov esi, dword [esi + 0x28]
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
jne 0x41dd50
push 2
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
push 0
push edi
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 4], 0xffffffff
call fcn.005538d1
push edi
call fcn.00553ca9
push 0
push 0
push edi
mov ebx, eax
call fcn.005538d1
add esp, 0x1c
test ebx, ebx
jg 0x41ddc4
mov ecx, dword [ebp - 0x14]
push 0
push 0
push 0
push 0xd
call fcn.00420bd0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x10], 0x6b90b8
push ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0041aff0
lea eax, [ebx + 1]
push eax
call fcn.00427877
push edi
mov esi, eax
push 1
push ebx
push esi
mov dword [ebp - 0x18], esi
mov byte [esi], 0
call fcn.00551b5d
add esp, 0x14
cmp eax, 1
je 0x41de1e
push esi
call fcn.004278ad
mov ecx, dword [ebp - 0x14]
add esp, 4
push 0
push 0
push 0
push 2
call fcn.00420bd0
xor bl, bl
jmp 0x41df16
mov eax, dword [ebp - 0x18]
add ebx, eax
mov edi, esi
mov byte [ebx], 0
cmp byte [eax], 0
je 0x41dedb
cmp esi, ebx
jb 0x41de4c
push 0x410
push str.tinyxml.cpp
push 0x58b83c
call fcn.00553e4d
add esp, 0xc
mov al, byte [esi]
cmp al, 0xa
jne 0x41de6f
mov eax, esi
sub eax, edi
inc eax
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.0041b190
inc esi
mov edi, esi
cmp esi, ebx
jbe 0x41ded2
push 0x417
jmp 0x41debd
cmp al, 0xd
jne 0x41ded1
mov eax, esi
sub eax, edi
test eax, eax
jle 0x41de85
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.0041b190
push 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp + 8], 0xa
call fcn.0041b190
cmp byte [esi + 1], 0xa
lea eax, [esi + 1]
jne 0x41deb0
add esi, 2
mov edi, esi
cmp esi, ebx
jbe 0x41ded2
push 0x425
jmp 0x41debd
mov esi, eax
mov edi, esi
cmp esi, ebx
jbe 0x41ded2
push 0x42b
push str.tinyxml.cpp
push str.p____buflength_
call fcn.00553e4d
add esp, 0xc
jmp 0x41ded2
inc esi
cmp byte [esi], 0
jne 0x41de31
sub esi, edi
je 0x41dee9
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.0041b190
push dword [ebp - 0x18]
call fcn.004278ad
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edx, dword [esi]
add esp, 4
add eax, 8
push dword [ebp + 0xc]
mov ecx, esi
push 0
push eax
call dword [edx + 8]
cmp byte [esi + 0x2c], 0
je 0x41df14
xor bl, bl
jmp 0x41df16
mov bl, 1
mov ecx, dword [ebp - 0x10]
cmp ecx, 0x6b90b8
je 0x41df2a
push ecx
call fcn.004278ad
add esp, 4
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 8
Function at 0x423080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
cmp dword [edi + 0x18], 0
mov dword [ebp - 8], 0
jne 0x4230a3
call fcn.004233c0
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x4230b0
mov eax, dword [esi]
jmp 0x4230b2
mov eax, esi
lea ecx, [ebp - 8]
push ecx
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push dword [edi + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x423112
cmp dword [ebp - 4], 4
je 0x4230de
push 0x50000
push 0x65d
jmp 0x423118
cmp dword [esi + 0x14], 8
mov dword [ebp - 0xc], 0
jb 0x4230ed
mov esi, dword [esi]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push esi
push dword [edi + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop edi
pop esi
test eax, eax
jne 0x423112
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
push 0x50000
push eax
lea ecx, [ebp - 0x20]
call fcn.00422cf0
push 0x5d0530
lea eax, [ebp - 0x20]
push eax
call fcn.005510d5
int3

Function at 0x423130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5739e8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x5f63b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x18], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jne 0x42317a
call fcn.004233c0
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x423187
mov eax, dword [esi]
jmp 0x423189
mov eax, esi
lea ecx, [ebp - 0x10]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [ebx + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4231bf
push 0x50000
push eax
lea ecx, [ebp - 0x2c]
call fcn.00422cf0
push 0x5d0530
lea eax, [ebp - 0x2c]
push eax
call fcn.005510d5
cmp dword [ebp - 0x14], 1
je 0x4231d1
push 0x50000
push 0x65d
jmp 0x4231a9
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0xc]
push ecx
inc eax
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp + 0xc], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.004148b0
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x42320d
mov esi, dword [esi]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push esi
push dword [ebx + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x423242
push 0x50000
push eax
lea ecx, [ebp - 0x40]
call fcn.00422cf0
push 0x5d0530
lea eax, [ebp - 0x40]
jmp 0x4231b9
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.0041038d
test edi, edi
je 0x42325a
push edi
call fcn.004278ad
add esp, 4
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 8
Function at 0x4234d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x4234e4
call fcn.004233c0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4234f5
mov eax, dword [eax]
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0
push eax
push dword [esi + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
test eax, eax
jne 0x423514
mov esp, ebp
pop ebp
ret 8
push 0x50000
push eax
lea ecx, [ebp - 0x18]
call fcn.00422cf0
push 0x5d0530
lea eax, [ebp - 0x18]
push eax
call fcn.005510d5
int3

Function at 0x423540
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x423554
call fcn.004233c0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
lea edx, [eax*2 + 2]
jb 0x423569
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x423574
mov eax, dword [eax]
push edx
push ecx
push 1
push 0
push eax
push dword [esi + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
test eax, eax
jne 0x42358f
mov esp, ebp
pop ebp
ret 8
push 0x50000
push eax
lea ecx, [ebp - 0x14]
call fcn.00422cf0
push 0x5d0530
lea eax, [ebp - 0x14]
push eax
call fcn.005510d5
int3
Function at 0x424bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x6b94e8
sub esp, 0xc
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424be0
sub ecx, edx
sar ecx, 1
jne 0x424c77
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x58cab0
push SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [0x6b94e0], eax
test eax, eax
jne 0x424c7d
push ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x6b94e8
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [0x6b94e0], eax
test eax, eax
jne 0x424c55
cmp dword [ebp - 8], 1
jne 0x424c55
mov bl, 1
jmp 0x424c57
xor bl, bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
pop ebx
je 0x424c7d
push 0x6b94e8
push 0x6b94e8
call fcn.00424d50
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x6b94e0], 0
jne 0x424c9d
test eax, eax
jle 0x424c98
movzx eax, ax
or eax, 0x80070000
mov dword [0x6b94e0], eax
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
Function at 0x42a4ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x42a4f8
call fcn.0043902c
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42a4f5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x42a531
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test edi, edi
je 0x42a51a
push dword [ebp + 0x10]
mov edx, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, eax
test esi, esi
je 0x42a51a
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x42a52f
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0xa0]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42d324
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x578d57
call fcn.00551162
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x42d34a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42d39e
call fcn.004285d4
push eax
lea ecx, [ebp - 0x10]
call fcn.00404a50
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.005516cb
push eax
call fcn.00404aa0
add esp, 0x14
test edi, edi
je 0x42d391
push edi
call fcn.0055040b
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404a80
mov eax, esi
call fcn.00551130
ret 8
Function at 0x42ecbd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5f63b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6bb1c0]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x42ed09
push 0x5c18e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42ed26
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x6bb1c0], eax
jmp 0x42ed12
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x42ed26
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x42ed93
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42ed41
xor eax, eax
jmp 0x42ed93
lea eax, [ebp - 0x210]
push eax
call fcn.0055040b
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x42ed72
push 0x5c18dc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00554ea2
add esp, 0xc
test eax, eax
jne 0x42ed3d
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00554ea2
add esp, 0xc
test eax, eax
jne 0x42ed3d
lea eax, [ebp - 0x210]
push eax
call fcn.00433a62
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0054cf7e
leave
ret

Function at 0x42f53a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x42f57f
call fcn.0043902c
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42f57f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x42f59b
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044b895
mov ebx, eax
test edi, edi
je 0x42f599
test esi, esi
je 0x42f599
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4340d3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0043902c
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43410a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00434129
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x436fc8
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x574839
call fcn.00551162
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004370a9
and dword [ebp - 4], 0
mov dword [ebx], vtable.CHttpConnection.0
call fcn.004285d4
push eax
lea ecx, [ebx + 0x18]
call fcn.00404a50
push dword [ebp + 0xc]
lea ecx, [ebx + 0x18]
mov byte [ebp - 4], 1
call fcn.00404250
push dword [ebx + 8]
push 0
push 3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 4], eax
test eax, eax
jne 0x43703e
push eax
push dword [ebx + 8]
call fcn.00437514
push dword [ebx + 0xc]
mov ecx, 0x6bb200
push eax
call fcn.00437e4e
mov eax, ebx
call fcn.00551130
ret 0x18

Function at 0x4371af
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 0x4371d8
call fcn.0043902c
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 0x437205
push esi
push eax
mov ecx, 0x6bb200
call fcn.00437e4e
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.00437514
int3