joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1059ece
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x1059f36
push 0x3d
push esi
call fcn.0104c7b2
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x1059f36
cmp esi, eax
je 0x1059f36
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x10bbc18]
sete cl
cmp eax, dword [0x10bbc1c]
mov dword [ebp - 4], ecx
jne 0x1059f1c
mov edi, eax
call fcn.01059e6f
mov dword [0x10bbc18], eax
cmp eax, ebx
jne 0x1059f75
cmp dword [ebp + 0xc], ebx
je 0x1059f3e
cmp dword [0x10bbc20], ebx
je 0x1059f3e
call fcn.010598e0
test eax, eax
je 0x1059f75
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x105a079
push 4
pop ecx
call fcn.01051338
cmp eax, ebx
mov dword [0x10bbc18], eax
je 0x1059f36
mov dword [eax], ebx
cmp dword [0x10bbc20], ebx
jne 0x1059f75
push 4
pop ecx
call fcn.01051338
cmp eax, ebx
mov dword [0x10bbc20], eax
je 0x1059f36
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x10bbc18]
sub edi, esi
push esi
call fcn.01059e22
mov edi, eax
test edi, edi
pop ecx
jl 0x1059fcf
cmp dword [ebx], 0
je 0x1059fcf
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0104ab95
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x1059fb6
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x105a003
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x1059fad
mov edx, edi
shl edx, 2
mov ecx, ebx
call fcn.010513ae
test eax, eax
mov esi, dword [ebp + 8]
je 0x105a003
jmp 0x1059ffe
cmp dword [ebp - 4], 0
jne 0x105a072
test edi, edi
jge 0x1059fdf
neg edi
lea edx, [edi*4 + 8]
mov ecx, ebx
call fcn.010513ae
test eax, eax
je 0x1059f36
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x10bbc18], eax
cmp dword [ebp + 0xc], 0
je 0x105a05d
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x105a00e
sub eax, edx
lea ecx, [eax + 2]
call fcn.01051338
mov edi, eax
test edi, edi
je 0x105a05d
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x105a029
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
mov byte [eax], dl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x105a056
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.0104ab95
pop ecx
cmp dword [ebp - 4], 0
je 0x105a06a
push esi
call fcn.0104ab95
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x1059f39
push esi
call fcn.0104ab95
pop ecx
xor eax, eax
jmp 0x1059f39
Function at 0x105d200
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.0104c300
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x105d2cb
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 0x105d2cb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x105d27e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x105d289
or bh, 8
and edi, 0x8000000
je 0x105d2a4
mov eax, dword [0x10be45c]
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 0x105d2cb
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 0x105d6a0
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 0x105d6cb
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 0x105d6ef
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 0x105d70a
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 0x105df60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x109ad30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [esp + 0x54]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
mov dword [esp + 0xc], ebx
je 0x105e042
mov al, byte [esp + 0x50]
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.0101a650
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], ebx
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], edi
call fcn.01018b10
lea edx, [esp + 0x2c]
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x50], 1
call fcn.0105e9f0
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0105f830
mov esi, dword [esp + 0x14]
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], bl
call fcn.0101a650
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0101a650
mov cl, byte [esi + 0x10]
lea eax, [esi + 0x10]
mov esi, dword [esp + 0x50]
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x100a5d0]
mov ecx, esi
push edx
push ebx
push eax
call fcn.0101a390
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 8
mov al, byte [esp + 0x50]
push ebp
mov ebp, dword [esp + 0x54]
mov edi, 0x1001f54
or ecx, 0xffffffff
push 1
mov byte [ebp], al
xor eax, eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebp
push esi
mov dword [esp + 0x5c], esi
call fcn.0101b0c0
test al, al
je 0x105e09d
mov edi, dword [ebp + 4]
mov ecx, esi
mov edx, ecx
mov esi, 0x1001f54
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], eax
mov byte [eax + ecx], bl
mov ecx, dword [esp + 0x44]
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 8
Function at 0x105e750
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x109ad70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov byte [esp + 0x14], al
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x48]
push ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x2c], al
mov edx, dword [ecx]
mov dword [esp + 0x28], edx
call fcn.0108e46c
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], eax
push eax
push ebx
push ebx
call fcn.0105e9b0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x48], 1
call fcn.0105f110
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp esi, eax
mov byte [esp + 0x40], bl
mov edi, eax
je 0x105e7f1
push ebx
mov ecx, esi
call fcn.010604d0
add esi, 0x10
cmp esi, edi
jne 0x105e7de
mov esi, dword [esp + 0x2c]
push esi
call fcn.0108e495
push ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0108e495
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
add esp, 8
mov dword fs:[0], ecx
lea eax, [edx + 0x10]
pop edi
pop esi
pop ebx
add esp, 0x38
ret 4
Function at 0x10627e0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x109b34f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
push 0x104
mov dword [esp + 0x18], 0
call fcn.0108e46c
add esp, 4
mov esi, eax
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x106285a
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x106285a
push esi
call fcn.0108e495
mov esi, dword [esp + 0x30]
add esp, 4
mov ecx, esi
push 0x1001f54
call fcn.0108e799
jmp 0x1062944
push edi
call fcn.0108e46c
add esp, 4
mov ebp, eax
push ebp
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x1062897
push ebp
call fcn.0108e495
push esi
call fcn.0108e495
mov esi, dword [esp + 0x34]
add esp, 8
mov ecx, esi
push 0x1001f54
call fcn.0108e799
jmp 0x1062944
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x1002bd8
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x10628d1
push ebp
call fcn.0108e495
push esi
call fcn.0108e495
mov esi, dword [esp + 0x34]
add esp, 8
mov ecx, esi
push 0x1001f54
call fcn.0108e799
jmp 0x1062944
mov edx, dword [0x10aa77c]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edi, 1
mov edx, dword [eax + 0x14]
mov cx, word [eax + 0x14]
shr edx, 0x10
push ecx
push edx
mov edx, dword [eax + 0x10]
xor ecx, ecx
mov cx, word [eax + 0x10]
lea eax, [esp + 0x14]
shr edx, 0x10
push ecx
push edx
push 0x1002bcc
push eax
mov dword [esp + 0x3c], edi
call fcn.01089297
push esi
call fcn.0108e495
push ebp
call fcn.0108e495
mov esi, dword [esp + 0x4c]
add esp, 0x20
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0108e4a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], edi
mov byte [esp + 0x24], 0
call fcn.0108e72b
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x1064550
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x109b590
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
mov ebx, dword [esp + 0x44]
push esi
mov esi, ecx
test ebx, ebx
jne 0x106458a
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
push edi
mov ecx, ebx
call fcn.010807bc
push eax
lea ecx, [esp + 0x10]
call fcn.0108e799
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x44], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x10022bc
mov eax, dword [0x10aa77c]
mov dword [esp + 0x4c], eax
mov ecx, ebx
mov byte [esp + 0x44], 2
call fcn.0108078d
push eax
lea ecx, [esp + 0x50]
push str.LANG__s
push ecx
call fcn.01089297
add esp, 0xc
lea ecx, [esp + 0x4c]
call fcn.0108ec54
mov edi, dword [esp + 0x4c]
call fcn.01095539
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.01090fb9
mov edi, dword [esi + 0x40]
test eax, eax
je 0x1064633
mov edi, dword [esp + 0x14]
mov edx, dword [esi + 0x48]
lea eax, [esp + 0x10]
push 0xffffff
neg eax
sbb eax, eax
and eax, edi
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov edi, eax
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x146
push eax
mov dword [esp + 0x28], 7
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [eax - 8]
push ecx
mov ecx, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.010896c4
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.01091010
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 1
call fcn.0108e72b
mov dword [esp + 0x10], 0x1001f6c
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 3
call fcn.01091010
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.0108e72b
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
Function at 0x10661a0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x109b937
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebp
push esi
push edi
mov edi, ecx
push 0x1001f54
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
call fcn.0108e799
xor esi, esi
mov dword [esp + 0x58], 1
mov si, word [0x10bc45c]
call fcn.01095539
mov eax, dword [eax + 0xc]
push str.BINHELP
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
call fcn.01095539
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
call fcn.01095539
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea esi, [edi + 0x50]
push ebp
push eax
mov ecx, esi
call fcn.0106c600
mov al, byte [esp + 0x64]
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.0101a650
mov cl, byte [esp + 0x64]
push 0
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 2
call fcn.0101a650
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 3
mov dword [esp + 0x40], edx
call fcn.01018b10
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x60], 4
call fcn.01066760
mov esi, dword [eax]
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 3
call fcn.0101a650
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 2
call fcn.0101a650
mov eax, dword [esi + 0x14]
mov esi, 0x1001f54
test eax, eax
je 0x10662b5
mov esi, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x20]
push ebp
call fcn.0101b0c0
test al, al
je 0x10662f3
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
mov byte [ecx + ebp], 0
mov esi, dword [esp + 0x60]
mov dl, byte [esp + 0x1c]
xor edi, edi
lea ecx, [esp + 0x1c]
mov byte [esi], dl
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [0x100a5d0]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0101a390
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x1066348
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x106633f
cmp al, 0xff
je 0x106633f
dec al
mov byte [ecx], al
jmp 0x1066348
push ecx
call fcn.0108e495
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov byte [esp + 0x58], 0
call fcn.0108e72b
mov ecx, dword [esp + 0x50]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x50
ret 8
Function at 0x1067970
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x109bbc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x1067a24
mov eax, dword [0x10aa77c]
push esi
mov dword [esp + 8], eax
push 0x410
push 0x410
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0108eb5b
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0108ebaa
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0108eb07
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1067a0b
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x1067a0b
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x68], eax
mov dword [edi + 0xc4], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0108e72b
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1067a40
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x418
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1067aa2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x428]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x418
ret
Function at 0x1067cb0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x824
test eax, eax
je 0x1067cd5
mov eax, dword [esp + 0x828]
push eax
call fcn.01067dd0
add esp, 4
add esp, 0x824
ret
lea ecx, [esp + 4]
push edi
push ecx
push str..htm
push SysReAllocStringLen
call fcn.01067a40
add esp, 0xc
test eax, eax
jne 0x1067d9a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push str._shellopencommand
push edx
call edi
lea eax, [esp + 8]
lea ecx, [esp + 8]
push eax
push ecx
push SysReAllocStringLen
call fcn.01067a40
add esp, 0xc
test eax, eax
jne 0x1067dc3
push esi
lea edx, [esp + 0xc]
push str.__1_
push edx
call fcn.0104cf1c
mov esi, eax
add esp, 8
test esi, esi
jne 0x1067d68
lea eax, [esp + 0xc]
push 0x10ac640
push eax
call fcn.0104cf1c
mov esi, eax
add esp, 8
test esi, esi
jne 0x1067d68
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xb]
jmp 0x1067d6b
mov byte [esi], 0
push 0x1001cf8
push esi
call edi
mov edx, dword [esp + 0x830]
push edx
push esi
call edi
mov eax, dword [esp + 0x834]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
pop edi
add esp, 0x824
ret
mov edx, dword [esp + 0x830]
mov eax, dword [esp + 0x82c]
push edx
push 0
push 0
push eax
push 0x1002268
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
add esp, 0x824
ret
mov eax, dword [esp + 4]
pop edi
add esp, 0x824
ret

Function at 0x1067dd0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x109bc18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.0108e799
push str.mailto:
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.0108e799
mov byte [esp + 0x18], 1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [esp + 8]
push 0x40
mov edi, eax
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x24]
call fcn.0108ec19
cmp eax, 0xffffffff
je 0x1067e96
push ebx
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x2c]
call fcn.01088e99
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push eax
call fcn.0104c036
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0108e72b
test bl, bl
pop ebx
je 0x1067e96
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.0108e95a
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call fcn.0108e864
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call fcn.0108e72b
mov edx, dword [esp + 0x20]
push 5
push 0x1001f54
push 0
push edx
push 0x1002268
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.0108e72b
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.0108e72b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x106e290
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x109c061
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.0108aeff
mov dword [esi], 0x10020f0
xor edi, edi
mov dword [esi + 0x54], 0x1004420
mov dword [esp + 0x20], edi
mov dword [esi + 0x58], edi
lea ebp, [esi + 0x60]
mov byte [esp + 0x20], 1
mov ecx, ebp
call fcn.01089dfe
lea ebx, [esi + 0x74]
mov byte [esp + 0x20], 2
mov ecx, ebx
call fcn.01089b8d
push 0xf
mov byte [esp + 0x24], 3
mov dword [esi], 0x100a018
call dword [sym.imp.USER32.dll_GetSysColor]
push 8
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0xffffffffffffffff
push edi
mov ecx, ebp
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x5c], edi
call fcn.01089e5e
push 0xffffffffffffffff
push edi
mov ecx, ebx
call fcn.01089c20
mov eax, dword [0x10aa77c]
mov dword [esp + 0x10], eax
push 0x104
push 0x104
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 4
call fcn.0108eb5b
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0108ebaa
push str.winhlp32.exe
lea ecx, [esp + 0x14]
call fcn.0108eb07
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, edi
je 0x106e3b3
push 0x6a
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
cmp eax, edi
je 0x106e3b3
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [esi + 0x90], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.0108e72b
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret