joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409270
Capabilities:
Get graphical window text

Disassembly:
xchg edx, eax
movzx ecx, byte [edx + 0x3a]
jecxz 0x40927f
mov edx, dword [edx + 0x36]
jmp fcn.004034b0
mov ecx, dword [edx + 0x18]
jecxz 0x409277
push ebx
push esi
xchg ebx, eax
mov esi, ecx
push esi
call sub.user32.dll_GetWindowTextLengthA
mov edx, eax
inc eax
push eax
mov eax, ebx
call fcn.00403878
pop edx
mov ecx, dword [ebx]
jecxz 0x4092a7
push edx
push ecx
push esi
call sub.user32.dll_GetWindowTextA
pop esi
pop ebx
ret

Function at 0x40ba7c
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
cmp byte [0x4343c4], 0xff
je 0x40ba92
mov al, byte [0x4343c4]
jmp 0x40baf2
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x40bacb
mov al, 3
mov edx, dword [esp + 4]
cmp edx, 6
jb 0x40bab7
mov al, 6
jmp 0x40baed
cmp edx, 5
jb 0x40baed
cmp dword [esp + 8], 1
jb 0x40bac7
mov al, 5
jmp 0x40baed
mov al, 4
jmp 0x40baed
cmp eax, 1
jne 0x40baeb
mov al, 1
cmp dword [esp + 4], 4
ja 0x40bae7
cmp dword [esp + 4], 4
jne 0x40baed
cmp dword [esp + 8], 0xa
jb 0x40baed
mov al, 2
jmp 0x40baed
xor eax, eax
mov byte [0x4343c4], al
add esp, 0x94
ret

Function at 0x4158b4
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 1], cl
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x415924
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x41590e
mov esi, 0x20000000
cmp byte [ebp - 1], 0
je 0x4158ec
or esi, 0x80000000
push esi
mov eax, ebx
call fcn.00403548
push eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004039fc
mov eax, dword [ebp - 8]
call fcn.00403a0c
push eax
push edi
call sub.winhttp.dll_WinHttpAddRequestHeaders
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41592b
lea eax, [ebp - 8]
call fcn.004038f4
ret
Function at 0x415a30
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x415af9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.004032fc
xor eax, eax
mov dword [ebp - 0x10], eax
test edi, edi
je 0x415ae3
mov dword [ebp - 0xc], 0xfa
lea eax, [ebp - 8]
mov edx, 0xfa
call fcn.00403a40
test esi, esi
je 0x415a81
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00403a0c
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.winhttp.dll_WinHttpQueryHeaders
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
jne 0x415ac7
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
jne 0x415ac7
mov edx, dword [ebp - 0xc]
shr edx, 1
lea eax, [ebp - 8]
call fcn.00403a40
test esi, esi
je 0x415a78
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
jmp 0x415a78
test bl, bl
je 0x415ae3
mov edx, dword [ebp - 0xc]
shr edx, 1
lea eax, [ebp - 8]
call fcn.00403a40
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.00403534
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415b00
lea eax, [ebp - 8]
call fcn.004038f4
ret

Function at 0x415e5c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
test ebx, ebx
je 0x415ebf
cmp dword [ebx + 0x3c], 0
je 0x415e8e
mov eax, ebx
call fcn.0040731c
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp 0x415ebf
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.00407324
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x415ebf
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x415ebf
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x417410
Capabilities:
Clear file content
Receive http response

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
lea edi, [ebp - 8]
xor eax, eax
push ebp
push 0x417590
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x68], 0
jne 0x41743e
xor esi, esi
jmp 0x417574
mov esi, 0x3e3
cmp byte [ebx + 0xc4], 0
je 0x417479
mov eax, dword [ebx + 0x34]
sub eax, 0xc8
je 0x417462
sub eax, 6
je 0x417462
xor esi, esi
jmp 0x417574
mov eax, dword [ebx + 0x68]
call fcn.00415e5c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
fild qword [ebp - 0x18]
fstp qword [ebp - 0x10]
wait
jmp 0x417481
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x68]
cmp dword [eax + 0x3c], 0
je 0x4174c8
cmp dword [ebx + 0x3c], 0
jne 0x41749b
cmp dword [ebx + 0x38], 0x2800
jbe 0x4174c8
jmp 0x41749d
jle 0x4174c8
cmp byte [ebx + 0xc4], 0
je 0x4174bd
mov eax, dword [ebx + 0x68]
call fcn.0040731c
mov edx, dword [ebx + 0x38]
sub edx, eax
mov eax, dword [ebx + 0x68]
call fcn.0040732c
jmp 0x4174c8
mov eax, dword [ebx + 0x68]
mov edx, dword [ebx + 0x38]
call fcn.0040732c
push 0x2800
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4173fc]
call fcn.00404288
add esp, 4
jmp 0x41756a
push edi
push 0x2800
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0x50]
push eax
call sub.winhttp.dll_WinHttpReadData
test eax, eax
jne 0x417508
call sub.kernel32.dll_GetLastError_1
mov esi, eax
jmp 0x417574
cmp byte [ebx + 8], 0
jne 0x417574
cmp dword [edi], 0
jne 0x417525
xor esi, esi
mov eax, dword [ebx + 0x68]
call fcn.00407324
push eax
call sub.kernel32.dll_SetEndOfFile_1
jmp 0x417574
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x68]
mov ecx, dword [edi]
call fcn.00407358
cmp eax, dword [edi]
jae 0x41753f
call sub.kernel32.dll_GetLastError_1
mov esi, eax
jmp 0x417574
cmp byte [ebx + 8], 0
jne 0x417574
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fadd qword [ebp - 0x10]
fstp qword [ebp - 0x10]
wait
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebx + 0x18c]
call fcn.0040cd74
cmp byte [ebx + 8], 0
je 0x4174e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417597
lea eax, [ebp - 4]
mov edx, dword [0x4173fc]
call fcn.00404294
ret
Function at 0x419c04
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
je 0x419c69
mov byte [ebx + 0x28], 0
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebx + 4], eax
pop ebx
ret

Function at 0x41a0b4
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
test dl, dl
je 0x41a0e9
push 0
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x49]
test eax, eax
je 0x41a0de
push 0
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_ShowWindow
lea eax, [ebx + 0xb8]
call fcn.0040ce44
cmp byte [ebx + 0x60], 0
jne 0x41a145
mov dword [ebx + 8], 0x58
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 1
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x18], 0x401
mov eax, dword [ebx + 4]
call fcn.0040956c
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x6c]
call fcn.0040370c
mov edx, eax
lea eax, [ebx + 0x20]
mov ecx, 0x3f
call fcn.00406c00
lea eax, [ebx + 8]
push eax
push 0
call sub.shell32.dll_Shell_NotifyIconA
mov byte [ebx + 0x60], 1
pop ebx
ret
Function at 0x41ed84
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, esi
mov edx, 0x200
call fcn.00403878
push 0x200
mov eax, esi
call fcn.00403718
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.user32.dll_GetWindowTextA
mov edx, eax
mov eax, esi
call fcn.00403878
lea eax, [ebx + 4]
mov edx, 0x200
call fcn.00403878
push 0x200
lea eax, [ebx + 4]
call fcn.00403718
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.user32.dll_GetClassNameA
mov edx, eax
lea eax, [ebx + 4]
call fcn.00403878
pop esi
pop ebx
ret
Function at 0x1000130f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
push ecx
push edx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 0x10]
push edi
call sub.KERNEL32.dll_VirtualProtect
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0x10]
push edi
call sub.KERNEL32.dll_VirtualProtect
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 0xc

Function at 0x401150
Capabilities:
Create process on windows

Disassembly:
cmp dword [edx], 2
push edi
mov edi, ecx
jge 0x401164
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
or eax, 0xffffffff
pop edi
ret
mov eax, dword [edi + 4]
push esi
test eax, eax
je 0x40117d
mov ecx, 0x7fffffff
cmp word [eax], 0
je 0x4011a1
add eax, 2
dec ecx
jne 0x401171
xor esi, esi
inc esi
push ebx
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4011ae
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
pop esi
or eax, 0xffffffff
pop edi
ret
test ecx, ecx
je 0x40117d
mov esi, 0x7fffffff
sub esi, ecx
jmp 0x40117f
mov ecx, dword [edi + 4]
push esi
mov edx, ebx
call fcn.004010e0
add esp, 4
push 1
push ebx
push 0
push dword [edi + 4]
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call esi
push edi
call esi
pop ebx
pop esi
xor eax, eax
pop edi
ret
Function at 0x43cad0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x37000]
push edi
jmp 0x43caea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43caf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43cae0
mov eax, 1
add ebx, ebx
jne 0x43cb03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43cb14
jne 0x43cb24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43cb24
dec eax
add ebx, ebx
jne 0x43cb20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x43caf8
xor ecx, ecx
sub eax, 3
jb 0x43cb3c
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43cbae
sar eax, 1
mov ebp, eax
jmp 0x43cb47
add ebx, ebx
jne 0x43cb47
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43cb54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43cb78
inc ecx
add ebx, ebx
jne 0x43cb64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43cb59
jne 0x43cb75
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43cb59
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43cb98
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43cb89
jmp 0x43cae6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43cb98
add edi, ecx
jmp 0x43cae6
pop esi
mov edi, esi
mov ecx, 0x24a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43cbb6
cmp byte [edi], 2
jne 0x43cbb6
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43cbbb
lea edi, [esi + 0x3a000]
mov eax, dword [edi]
or eax, eax
je 0x43cc33
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3f0f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3f1c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43cbe8
mov ecx, edi
jns 0x43cc17
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3f1c8]
or eax, eax
je 0x43cc2d
mov dword [ebx], eax
add ebx, 4
jmp 0x43cc05
call dword [esi + 0x3f1c4]
mov ebp, dword [esi + 0x3f1cc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x43cc67
sub esp, 0xffffff80
jmp 0x40310b
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x416c4f0f
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x49014397
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x10007e57
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
je 0x10007eba
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x30]
call fcn.10007e12
pop ecx
imul eax, eax, 3
cmp dword [ebp + 8], eax
jne 0x10007eb0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
jmp 0x10007ebc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x10007e86
xor eax, eax
leave
ret

Function at 0x10007f2e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*8 + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x18], ecx
and dword [ebp - 4], 0
jmp 0x10007f81
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x10007fc6
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x14], edx
push dword [ebp - 0x14]
push dword [ebp + 0x10]
call fcn.10007ee1
pop ecx
pop ecx
cmp eax, dword [ebp + 0xc]
jne 0x10007fc4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x10007fc8
jmp 0x10007f7a
xor eax, eax
leave
ret

Function at 0x10019482
Capabilities:
Print debug messages

Disassembly:
cmp dword [0x101d9928], 0
jne 0x10019512
push ebx
push esi
push edi
mov esi, 0x100014bc
xor ebx, ebx
push esi
push ebx
mov dword [0x101d9928], 1
call fcn.10018970
push esi
push ebx
mov edi, eax
call fcn.10018970
add esp, 0x10
mov esi, eax
test edi, edi
je 0x100194c4
test esi, esi
je 0x100194c4
cmp edi, esi
jne 0x100194c7
xor ebx, ebx
inc ebx
test edi, edi
je 0x100194d2
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
test esi, esi
je 0x100194e1
cmp esi, edi
je 0x100194e1
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
test ebx, ebx
je 0x1001950f
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10001698
call esi
push 0x10001638
call esi
push 0x100015e0
call esi
push 0x100015b0
call esi
pop edi
pop esi
pop ebx
ret
Function at 0x1006e46
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp dword [esi + 0x24], ecx
jbe 0x1006ee3
push ebx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 4
mov edi, dword [ebx + eax + 4]
mov eax, dword [esi + 4]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10220c0]
cmp eax, 0x10220c0
je 0x1006ea8
test byte [eax + 0x1c], 8
jne 0x101082d
cmp dword [ebp - 0x10], 0
jne 0x1006ecf
cmp dword [ebp - 8], 4
jne 0x1006ecf
mov eax, dword [esi + 0x20]
add eax, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1006ec9
cmp dword [ebp - 4], ecx
ja 0x101084e
mov ecx, dword [ebp - 4]
mov dword [eax + 8], ecx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add ebx, 0x10
cmp eax, dword [esi + 0x24]
jae 0x1006ee1
xor ecx, ecx
jmp 0x1006e63
pop edi
pop ebx
mov byte [esi + 0x28], 1
pop esi
leave
ret
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
push edi
push 0x10122a8
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101ab9b
jmp 0x1006ea8
mov dword [ebp - 4], ecx
jmp 0x1006ec9

Function at 0x1006f33
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call fcn.0100bb88
lea edi, [esi + 4]
xor ebx, ebx
mov dword [edi], ebx
mov dword [ebp - 0x10], 0xc
call fcn.01004c41
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push ebx
push ebx
push 0x1007008
push 0x80000002
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x101088e
mov ecx, esi
call fcn.01004bbd
cmp eax, ebx
jl 0x1007092
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10108a3
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_CreateEventW]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x10108b5
push 0x80
push 0xffffffffffffffff
push esi
push 0x1006e00
push eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov edi, eax
mov eax, dword [0x10220c0]
cmp eax, 0x10220c0
je 0x1006fec
test byte [eax + 0x1c], 8
jne 0x10108bf
cmp edi, ebx
je 0x10108d7
cmp byte [esi + 0x28], bl
jne 0x1007090
push 0x64
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1006ff4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
jle 0x1007092
and eax, 0xffff
or eax, 0x80070000
jmp 0x1007092
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x1006fa6
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, ebx
jmp 0x101088e
push edi
push 0x10122a8
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101ac1a
jmp 0x1006fec
mov eax, 0x80004005
jmp 0x1007092