joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425b82
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x45ba23
call fcn.00431c64
sub esp, 0x394
push esi
mov esi, 0x104
push edi
push esi
lea eax, [ebp - 0x29c]
push 0
mov edi, ecx
push eax
call fcn.00432460
add esp, 0xc
lea eax, [ebp - 0x29c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0xd
lea ecx, [ebp - 0x198]
push dword [edi + 0x1c]
call fcn.00423d73
and dword [ebp - 4], 0
push 5
lea ecx, [ebp - 0x198]
call fcn.004021fc
mov eax, dword [0x476b9c]
mov dword [ebp - 0x10], eax
add edi, 0xa0
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00446570
lea ecx, [ebp - 0x10]
call fcn.00442209
lea ecx, [ebp - 0x10]
call fcn.004421bd
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
jne 0x425c39
call fcn.00454a78
push dword [eax + 8]
lea eax, [ebp - 0x3a0]
push esi
push eax
call fcn.00416022
add esp, 0xc
lea eax, [ebp - 0x3a0]
lea ecx, [ebp - 0x10]
push eax
call fcn.004493ec
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x198]
push eax
call fcn.00423df6
lea ecx, [ebp - 0x198]
call fcn.0040222a
test al, al
je 0x425c89
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x198]
push eax
call fcn.0040220f
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0044939c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00449263
push dword [ebp - 0x10]
mov ecx, edi
call fcn.00448d5f
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00449263
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x198]
call fcn.00423db8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x426ec0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x45bc78
call fcn.00431c64
push ecx
mov eax, dword [0x476b9c]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.00445b7b
lea ecx, [esi + 0xfc]
cmp eax, ecx
je 0x426f96
lea ecx, [esi + 0x450]
cmp eax, ecx
je 0x426f96
mov edi, 0xc8
lea ecx, [ebp - 0x10]
push edi
call fcn.00449693
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xd
push dword [esi + 0x430]
call edi
push 1
lea ecx, [ebp - 0x10]
call fcn.00449693
push eax
call fcn.00431f60
test eax, eax
pop ecx
je 0x426fde
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004496e2
push ebx
push ebx
push 0x146
push dword [esi + 0x430]
call edi
cmp eax, 5
jl 0x426f6c
push ebx
push 4
push 0x144
push dword [esi + 0x430]
call edi
push 1
lea ecx, [ebp - 0x10]
call fcn.00449693
push eax
push ebx
push 0x14a
push dword [esi + 0x430]
call edi
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1409
push dword [esi + 0x1c]
call edi
jmp 0x426fde
mov edi, 0xc8
lea ecx, [ebp - 0x10]
push edi
call fcn.00449693
push eax
push edi
push 0xd
push dword [esi + 0x46c]
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
lea ecx, [ebp - 0x10]
call fcn.00449693
push eax
call fcn.00431f60
test eax, eax
pop ecx
je 0x426fde
push edi
lea ecx, [ebp - 0x10]
call fcn.00449693
push eax
lea ecx, [esi + 0x4dc]
call fcn.00423221
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00449263
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x428d55
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
call fcn.00454a78
mov esi, dword [eax + 0xc]
push 0x40
movzx eax, word [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x428ddb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x428ddb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp + 8], eax
je 0x428ddb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea ebx, [edi + 1]
push ebx
call fcn.004497f2
mov esi, eax
pop ecx
test esi, esi
je 0x428ddb
push ebx
push 0
push esi
call fcn.00432460
push edi
push dword [ebp + 8]
push esi
call fcn.00432ab0
mov ecx, dword [ebp - 4]
add esp, 0x18
push esi
call fcn.00428b2d
push esi
mov edi, eax
call fcn.0044981b
pop ecx
mov eax, edi
jmp 0x428ddd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4297f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42984c
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x478d30
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42983f
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x42984e
xor eax, eax
pop esi
leave
ret 4

Function at 0x43a927
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x478580
cmp edx, dword [eax]
je 0x43a949
add eax, 8
inc ecx
cmp eax, 0x478610
jl 0x43a93a
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x478580]
jne 0x43aa77
mov eax, dword [0x47b690]
cmp eax, 1
je 0x43aa51
test eax, eax
jne 0x43a97a
cmp dword [0x477c04], 1
je 0x43aa51
cmp edx, 0xfc
je 0x43aa77
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43a9b1
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00431e50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00431f60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43a9f4
lea eax, [ebp - 0x1a4]
push eax
call fcn.00431f60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x46864c
push edi
call fcn.00438ae0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00431e50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00431e60
lea eax, [ebp - 0xa0]
push 0x46862c
push eax
call fcn.00431e60
push dword [esi + 0x478584]
lea eax, [ebp - 0xa0]
push eax
call fcn.00431e60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0043caab
add esp, 0x2c
pop edi
jmp 0x43aa77
lea eax, [ebp + 8]
lea esi, [esi + 0x478584]
push 0
push eax
push dword [esi]
call fcn.00431f60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x440e60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00433e10
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x440f2b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x440f2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x440ede
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x440ee9
or bh, 8
and edi, 0x8000000
je 0x440f04
mov eax, dword [0x47ce5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x440f2b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x441300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x44132b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x44134f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x44136a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x444ed3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x444ef5
cmp dword [edi + 0x3c], 0
jne 0x444ef5
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00454a78
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00444f22
pop edi
pop esi
pop ebx
ret 8

Function at 0x446570
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4465a8
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.0044970a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004496e2
jmp 0x4465b4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x447f15
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 0x447f57
call fcn.00454a78
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x447f57
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x447f4e
xor eax, eax
jmp 0x447f5f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00447f65
pop edi
pop esi
pop ebx
ret 4

Function at 0x454e84
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00454a78
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x454ec1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x454ec1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x454ec5
xor eax, eax
jmp 0x454f43
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004497f2
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x454efd
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x454ee7
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00455034
push ebx
mov edi, eax
call fcn.0044981b
test edi, edi
pop ecx
je 0x454f3f
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00454dfd
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00454f48
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x456226
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 0x456254
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x456272
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045618c
jmp 0x456272
mov eax, dword [esi + 0x14]
test eax, eax
je 0x456272
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0045618c
test edi, edi
mov eax, edi
jne 0x45625c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x45673e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x4567ee
mov ecx, 0x47b5e8
call fcn.00456313
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x4567cc
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4567aa
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4567aa
push ebx
push edi
push eax
call fcn.0044af25
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.004493ec
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x10070d5
Capabilities:
Get common file path
Link many functions at runtime
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002140
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10070e0
push esi
push esi
push esi
push esi
push 0x1002164
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x10076b9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101200c]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x210]
push eax
xor edi, edi
call fcn.010070ea
test eax, eax
je 0x10076c8
inc edi
jmp 0x10077cb
cmp dword [ebp - 0x210], edi
jbe 0x10077cb
cmp dword [ebp - 0x210], 2
ja 0x10077cb
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, edi
je 0x10077ca
cmp eax, esi
ja 0x10077ca
push esi
lea eax, [ebp - 0x108]
push eax
push 0x10025a4
push reloc.KERNEL32.dll_GetVersionExA
lea eax, [ebp - 0x20c]
push eax
call fcn.01010b84
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
je 0x10077ca
push 0x1001298
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x10077c3
call eax
lea eax, [ebp - 0x218]
push eax
call fcn.010070ea
test eax, eax
jne 0x10077c0
cmp dword [ebp - 0x210], 2
jne 0x10077c3
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1002170
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10077c3
push 0xc
push reloc.ADVAPI32.dll_RegCreateKeyA
push 1
push edi
push 0x10021a4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10077b2
xor edi, edi
inc edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10077c3
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
call fcn.0100d528
leave
ret 4

Function at 0x100785f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push ebx
call fcn.0100769c
push ebx
push dword [ebp + 8]
mov esi, reloc.KERNEL32.dll_GetVersionExA
push esi
push reloc.KERNEL32.dll_GetVersionExA
call fcn.010073c1
test bl, 0x40
je 0x1007861
call fcn.01006e83
test eax, eax
jne 0x100786b
push ebx
push dword [ebp + 8]
push esi
call fcn.010075eb
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x100787c
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push edi
push 0x10025a4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 8]
mov cl, byte [eax]
cmp cl, 0x20
je 0x10078a6
cmp cl, 9
je 0x10078a6
cmp cl, 0x3a
jne 0x10078c2
inc eax
jmp 0x1007895
cmp cl, 0x20
je 0x10078c8
cmp cl, 9
je 0x10078c8
cmp cl, 0x3a
je 0x10078c8
cmp edi, 1
jbe 0x10078c8
mov byte [esi], cl
inc esi
dec edi
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x10078a9
test edi, edi
je 0x10078cf
mov byte [esi], 0
pop edi
pop esi
mov cl, byte [eax]
cmp cl, 0x20
je 0x10078dd
cmp cl, 9
jne 0x10078e0
inc eax
jmp 0x10078d1
pop ebp
ret 0xc

Function at 0x10079b3
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x101200c]
push edi
mov edi, dword [ebp + 8]
push 1
push 0x10012a0
mov dword [ebp - 4], eax
call fcn.0100d0a2
push 0
push edi
call fcn.0100d0a2
test edi, edi
je 0x1007abf
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp byte [edi], 0
je 0x1007abe
push 0x40
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.01007878
mov edi, eax
push 0x1005638
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x1007955
mov dword [0x1016c64], 2
jmp 0x1007ab6
push 0x1005644
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x1007973
mov dword [0x1016c64], 1
jmp 0x1007ab6
push 0x1005650
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x1007991
mov dword [0x1016c68], 1
jmp 0x1007ab6
push 0x1005658
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x10079ac
or dword [0x1016c5c], 2
jmp 0x1007ab6
push 0x1005668
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
lea eax, [ebp - 0x44]
jne 0x1007a09
push 0x40
push eax
push edi
call fcn.01007878
mov edi, eax
push 0x1005694
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x10079e7
mov dword [0x1016c60], 1
jmp 0x1007ab6
push 0x100569c
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x1007ab6
mov dword [0x1016c60], 2
jmp 0x1007ab6
push 0x1005660
push eax
call esi
test eax, eax
lea eax, [ebp - 0x44]
jne 0x1007a59
push 0x40
push eax
push edi
call fcn.01007878
mov edi, eax
push 0x1005684
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x1007a3e
mov dword [0x1016c6c], 1
jmp 0x1007ab6
push 0x1005688
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x1007ab6
mov dword [0x1016c6c], 2
jmp 0x1007ab6
push 0x1005670
push eax
call esi
test eax, eax
jne 0x1007a79
push 0x104
push 0x1016abc
push edi
call fcn.01007878
mov edi, eax
jmp 0x1007ab6
push 0x1005678
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x1007ab6
push 0x40
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.01007878
mov edi, eax
push 0x1005680
lea eax, [ebp - 0x44]
push eax
mov dword [0x1016c64], 3
call esi
test eax, eax
jne 0x1007ab6
or dword [0x1016c5c], 1
test edi, edi
jne 0x1007920
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.0100d528
leave
ret 4
Function at 0x1008004
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x101200c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x328], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x320], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x31c], eax
lea eax, [ebp - 0x314]
push eax
push 0x1006aec
push 1
push 0
push 0x1006afc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov dword [ebp - 0x318], eax
jl 0x100809c
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.01010a06
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
lea edx, [ebp - 0x108]
push edx
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x100808f
xor esi, esi
cmp edi, esi
je 0x1007fec
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x100808f
cmp dword [ebp - 0x320], esi
je 0x100800e
mov eax, dword [ebp - 0x314]
push dword [ebp - 0x320]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x100808f
cmp dword [ebp - 0x31c], esi
je 0x100802f
push dword [ebp + 0x1c]
mov eax, dword [ebp - 0x314]
push dword [ebp - 0x31c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
test eax, eax
jl 0x100808f
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
lea edx, [ebp - 0x324]
push edx
push 0x1006adc
push eax
call dword [ecx]
cmp eax, esi
mov dword [ebp - 0x318], eax
jl 0x100808f
push ebx
lea eax, [ebp - 0x310]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x328]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x324]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x310]
push edx
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x324]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x318]
pop edi
pop esi
call fcn.0100d528
leave
ret 0x18