joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406dd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor edi, edi
nop
mov esi, dword [edx + 0x28]
jmp 0x406c44
movzx ecx, word [edx + 0x26]
jmp 0x406c55
xor eax, eax
nop
jmp 0x406c66
lodsb al, byte [esi]
jmp 0x406c72
cmp al, 0x61
jl 0x406c9a
nop
jmp 0x406c85
nop
sub al, 0x20
nop
jmp 0x406c9a
jmp 0x406ca6
ror edi, 0xd
nop
add edi, eax
dec ecx
nop
jmp 0x406cba
jne 0x406c55
jmp 0x406ccf
jmp 0x406cdc
push edx
nop
push edi
mov edx, dword [edx + 0x10]
jmp 0x406cef
mov eax, dword [edx + 0x3c]
jmp 0x406cff
add eax, edx
mov eax, dword [eax + 0x78]
nop
jmp 0x406d16
test eax, eax
je 0x406ec3
jmp 0x406d2f
add eax, edx
jmp 0x406d40
mov ecx, dword [eax + 0x18]
nop
jmp 0x406d51
push eax
jmp 0x406d5f
mov ebx, dword [eax + 0x20]
add ebx, edx
jmp 0x406d74
test ecx, ecx
jmp 0x406d81
je 0x406ec1
jmp 0x406d95
nop
jmp 0x406da2
dec ecx
mov esi, dword [ebx + ecx*4]
nop
add esi, edx
jmp 0x406dba
xor edi, edi
nop
jmp 0x406dce
xor eax, eax
jmp 0x406dde
lodsb al, byte [esi]
jmp 0x406deb
ror edi, 0xd
jmp 0x406dfb
add edi, eax
nop
cmp al, ah
nop
jmp 0x406e10
jne 0x406dce
jmp 0x406e29
add edi, dword [ebp - 8]
cmp edi, dword [ebp + 0x24]
nop
jne 0x406d64
jmp 0x406e46
nop
pop eax
nop
jmp 0x406e56
mov ebx, dword [eax + 0x24]
add ebx, edx
nop
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
nop
add ebx, edx
mov eax, dword [ebx + ecx*4]
jmp 0x406e7b
add eax, edx
jmp 0x406e90
mov dword [esp + 0x24], eax
pop ebx
nop
pop ebx
popal
pop ecx
pop edx
nop
push ecx
jmp 0x406eb0
jmp eax
pop eax
nop
jmp 0x406ed1
pop edi
jmp 0x406ee5
pop edx
nop
jmp 0x406ef8
mov edx, dword [edx]
jmp 0x406f0d
jmp 0x406c2e

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

Disassembly:
ret
sub eax, 0x43e424fe
outsb dx, byte [esi]
jg 0x406dca
cmpsb byte [esi], byte es:[edi]

Function at 0x40b590
Capabilities:
Encode data using xor

Disassembly:
sub dl, byte [esi + 0x53]
lodsb al, byte [esi]
mov al, 0x44
and al, 0x14
or eax, eax
jge 0x40b5b1
inc edi
mov edx, dword [esp + 0x10]
neg eax
jb 0x40b5fd
sbb eax, 0
mov dword [esp + 0xe], eax
jle 0x40b603
and al, 0x8d
mov eax, dword [esp + 0x1c]
add al, al
jge 0x40b5cd
inc edi
mov al, 0x54
and al, 0x18
test dword [edx + 0x7883daf7], 0x24448900
sbb al, 0x89
push esp
cld
sbb byte [ebx], cl
xor ah, byte [ecx + 0x18]
mov ecx, dword [esp - 0x33]
mov eax, dword [esp + 0x14]
or esi, dword [edx]
popal
sbb byte [ebx - 0x7432dbb4], cl
inc esp
and al, 0x14
xor edx, edx
div ecx
mov ebx, eax
mov eax, dword [esp - 0x54]
div ecx
mov edx, dword [edx - 0x65]
and al, 0x8b
fdivr dword [edx - 0x74e7dbbb]
xor al, 0x24
adc al, 0x8b
inc esp
and al, 0x10
shr ebx, 1
rcr ecx, 1
shr edx, 1
rcl edx, 1
or ebx, ebx
jne 0x40b5f7
div ecx
sahf
invalid
Function at 0x401970
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 0
push edi
push eax
call fcn.004020c0
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
add esp, 4
mov dword [ebp - 0x18], 0
push 0x104
push 8
push dword [0x434000]
call edi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x401b1e
push 0x403658
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x104
call fcn.00401250
push 0x104
push 8
push dword [0x434000]
mov dword [ebp - 0xc], 0
call edi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x401b28
push dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], 0x104
call fcn.00401250
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push esi
call fcn.004011a0
push esi
push 0
push dword [0x434000]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x401b32
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
mov dword [ebp - 4], eax
call fcn.00401300
mov ecx, dword [ebp - 0x1c]
mov ebx, eax
add esp, 4
mov dword [ebp - 0xc], ebx
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401a40
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ebx]
mov ebx, dword [ebp + 8]
lea eax, [eax*2 + 2]
push eax
push 8
mov dword [ebx], 0
mov dword [ebx + 4], 0
push dword [0x434000]
mov dword [ebp - 8], eax
call edi
mov esi, eax
mov dword [ebx], esi
test esi, esi
je 0x401b3c
mov edi, dword [ebp - 0x1c]
mov ecx, edi
mov eax, dword [ebp - 8]
mov dword [ebx + 4], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401a91
sub ecx, edx
mov edx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
mov ecx, eax
mov dword [ebp - 8], eax
test ecx, ecx
je 0x401ac5
mov al, byte [edx]
lea esi, [esi + 1]
mov byte [esi - 1], al
lea edx, [edx + 1]
sub ecx, 1
jne 0x401ab2
mov eax, dword [ebp - 8]
mov ecx, dword [ebx]
mov edx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 4]
mov esi, eax
add edx, edx
je 0x401ae8
mov al, byte [esi]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea esi, [esi + 1]
sub edx, 1
jne 0x401ad5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
push dword [0x434000]
call esi
test eax, eax
je 0x401b46
push dword [ebp - 0x24]
push 0
push dword [0x434000]
call esi
test eax, eax
je 0x401b50
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push str.Out_of_heap_memory
call fcn.00401dd0
push str.Out_of_heap_memory
call fcn.00401dd0
push str.Error_freeing_memory
call fcn.00401dd0
push str.Out_of_heap_memory
call fcn.00401dd0
push str.Error_freeing_memory
call fcn.00401dd0
push str.Error_freeing_memory
call fcn.00401dd0
int3
Function at 0x401dd0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov dword [0x434004], 0x2c
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push esi
push edi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401df0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 0x64]
cmp eax, 0x104
jb 0x401e0e
call fcn.004017e0
push 0x104
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x401e29
call fcn.004017e0
cmp eax, 0x104
jbe 0x401e35
call fcn.004017e0
xor ecx, ecx
jmp 0x401e40
movzx eax, word [ebp + ecx - 0x66c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x466], ax
test ax, ax
jne 0x401e40
lea ecx, [ebp - 0x464]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x401e61
mov eax, dword [str.mshta.exe]
mov dword [ecx], eax
mov eax, dword [0x40318c]
mov dword [ecx + 4], eax
mov eax, dword [0x403190]
mov dword [ecx + 8], eax
mov eax, dword [0x403194]
mov dword [ecx + 0xc], eax
mov eax, dword [0x403198]
mov dword [ecx + 0x10], eax
mov ax, word [0x40319c]
mov word [ecx + 0x14], ax
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x464]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x25e], ax
test ax, ax
jne 0x401ea0
lea edi, [ebp - 0x25c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401ec1
mov ecx, 0xe
mov esi, str._vbscript:Execute__MsgBox___
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, ebx
lea ecx, [ecx]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x401ee0
lea edi, [ebp - 0x25c]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401ef6
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]
lea edi, [ebp - 0x25c]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401f20
mov ecx, 0x10
lea eax, [ebp - 0x54]
mov esi, str.___0___Sophos____window.close___
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x66c]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call fcn.004017e0
int3
Function at 0x402030
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4020a8
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp - 4]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x4020b2
cmp dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
push ebx
setne bl
test ecx, ecx
je 0x4020a1
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push str.Failed_to_allocate_Administrators_group_SID
call fcn.00401dd0
push str.Failed_to_check_membership_to_Administrators_group
call fcn.00401dd0
int3
Function at 0x4015245
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4008bc0]
jne 0x401524e
ret
jmp fcn.040155ef
Function at 0x1056d13
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
push edi
push ebx
call fcn.010983a2
mov ecx, dword [0x10cedc4]
call fcn.0104eb05
mov esi, eax
cmp esi, 2
jbe 0x1056d32
push 2
pop esi
push 0x461
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x97
push 0
push 0x467
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x1056d66
push 0x1015bc0
push 0x40001
call fcn.0109679c
pop ecx
pop ecx
call fcn.01082d66
test al, al
mov eax, dword [0x10cedc4]
mov eax, dword [eax + 0x14]
push 1
push dword [eax + esi*4 + 0xc8]
je 0x1056d87
push 0x1015b20
jmp 0x1056d8c
push 0x1015a88
push 0x439
push ebx
call fcn.0109869a
call fcn.01082d66
test al, al
mov eax, dword [0x10cedc4]
mov eax, dword [eax + 0x14]
push 1
push dword [eax + esi*4 + 0xd4]
je 0x1056db8
push 0x1015a00
jmp 0x1056dbd
push 0x1015980
push 0x469
push ebx
call fcn.0109869a
call fcn.01082d66
mov edi, esi
imul edi, edi, 0x14
test al, al
mov eax, dword [0x10cedc4]
mov eax, dword [eax + 0x14]
push 1
push dword [eax + edi + 0x10]
je 0x1056deb
push 0x10158d8
jmp 0x1056df0
push 0x1015838
push 0x43a
push ebx
call fcn.0109869a
call fcn.01082d66
test al, al
mov eax, dword [0x10cedc4]
mov eax, dword [eax + 0x14]
push 1
push dword [eax + esi*4 + 0xec]
je 0x1056e1c
push 0x1015728
jmp 0x1056e21
push 0x1015620
push 0x43b
push ebx
call fcn.0109869a
call fcn.01082d66
test al, al
mov eax, dword [0x10cedc4]
mov eax, dword [eax + 0x14]
push 1
push dword [eax + esi*4 + 0xe0]
je 0x1056e4d
push 0x1015560
jmp 0x1056e52
push 0x10154a8
push 0x43c
push ebx
call fcn.0109869a
call fcn.01082d66
mov ecx, dword [0x10cedc4]
mov ecx, dword [ecx + 0x14]
test al, al
lea eax, [esi + 2]
push 1
mov esi, 0x43d
je 0x1056e8a
imul eax, eax, 0x28
push dword [eax + ecx + 4]
push dword [eax + ecx]
push 0x10153f8
jmp 0x1056e99
imul eax, eax, 0x28
push dword [eax + ecx + 4]
push dword [eax + ecx]
push 0x1015350
push esi
push ebx
call fcn.0109853a
mov eax, dword [0x10cedc4]
mov eax, dword [eax + 0x14]
cmp dword [eax + edi + 0x10], 0
jne 0x1056ed3
push 0
push 0x43a
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 0
push esi
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
pop edi
pop esi
ret

Function at 0x105887f
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov dword [0x10cf144], eax
test eax, eax
jl 0x10588ae
cmp eax, 2
jle 0x10588a8
cmp eax, 5
jle 0x10588a2
cmp eax, 8
jg 0x10588ae
pop ebp
jmp fcn.010585fa
pop ebp
jmp fcn.01058411
pop ebp
jmp fcn.010581e3
pop ebp
ret 4
Function at 0x106fc2a
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
push edi
push ebx
call fcn.010983a2
mov ecx, dword [0x10cfe3c]
call fcn.0104eb05
mov esi, eax
cmp esi, 2
jbe 0x106fc49
push 2
pop esi
call fcn.01082d66
test al, al
mov eax, dword [0x10cfe3c]
mov eax, dword [eax + 0x14]
push 1
push dword [eax + esi*4 + 0xc0]
je 0x106fc6a
push 0x102a0a0
jmp 0x106fc6f
push 0x102a000
push 0x498
push ebx
call fcn.0109869a
call fcn.01082d66
test al, al
mov eax, dword [0x10cfe3c]
mov eax, dword [eax + 0x14]
push 1
push dword [eax + esi*4 + 0xd8]
je 0x106fc9b
push 0x1029f70
jmp 0x106fca0
push 0x1029ee8
push 0x49b
push ebx
call fcn.0109869a
call fcn.01082d66
mov edi, esi
imul edi, edi, 0x14
test al, al
mov eax, dword [0x10cfe3c]
mov eax, dword [eax + 0x14]
push 1
push dword [eax + edi + 8]
je 0x106fcce
push 0x1029e38
jmp 0x106fcd3
push 0x1029d90
push 0x497
push ebx
call fcn.0109869a
call fcn.01082d66
test al, al
mov eax, dword [0x10cfe3c]
mov eax, dword [eax + 0x14]
push 1
push dword [eax + esi*4 + 0xfc]
je 0x106fcff
push 0x1029cb0
jmp 0x106fd04
push 0x1029bd8
push 0x496
push ebx
call fcn.0109869a
call fcn.01082d66
test al, al
mov eax, dword [0x10cfe3c]
mov eax, dword [eax + 0x14]
push 1
push dword [eax + esi*4 + 0xcc]
je 0x106fd30
push 0x1029b18
jmp 0x106fd35
push 0x1029a60
push 0x499
push ebx
call fcn.0109869a
call fcn.01082d66
imul esi, esi, 0x28
test al, al
mov eax, dword [0x10cfe3c]
mov eax, dword [eax + 0x14]
push 1
push dword [eax + esi + 0x4c]
push dword [eax + esi + 0x48]
mov esi, 0x49a
je 0x106fd6a
push 0x10299b0
jmp 0x106fd6f
push 0x1029908
push esi
push ebx
call fcn.0109853a
mov eax, dword [0x10cfe3c]
mov eax, dword [eax + 0x14]
cmp dword [eax + edi + 8], 0
jne 0x106fda9
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x497
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret
Function at 0x107fe1a
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 1]
push eax
mov byte [ebp - 1], 0
call fcn.0107f354
push dword [0x10d1168]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x107fe68
mov al, byte [0x10d03f9]
or al, byte [ebp - 1]
push 0
pop eax
sete al
lea eax, [eax + eax + 3]
push eax
push dword [0x10d1168]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x10d1168]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov al, 1
leave
ret
Function at 0x1082e3e
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
mov edi, 0xfffe
mov esi, 0x385
cmp byte [0x10d1158], bl
je 0x1082edb
push 0x102f288
push 0x102eb64
push 0x244
push 0x10
call fcn.0109642f
add esp, 0x10
cmp byte [0x10d03d3], bl
jne 0x1082ec2
push ebx
push ebx
push ebx
push edi
push 1
push 0x373
push esi
call fcn.0109819c
lea eax, [ebp - 0x10]
push eax
push dword [0x10d1168]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 4
push dword [0x10c6798]
push dword [0x10c6794]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
push dword [0x10d1168]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x1082eca
mov eax, dword [0x10d0388]
mov byte [eax + 0x6d], bl
push ebx
call fcn.010808a5
test al, al
je 0x1082edb
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
push 0x102f230
push 0x102eb64
push 0x25d
push 0x10
call fcn.0109642f
add esp, 0x10
push ebx
push ebx
push ebx
push edi
push 1
push 0x37d
push esi
call fcn.0109819c
movzx eax, byte [0x10d03d3]
push eax
call fcn.01096e9e
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x108399f
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
push 0x102f3a4
push 0x10
call fcn.0109679c
xor ebx, ebx
add esp, 0xc
cmp byte [0x10d03d3], bl
je 0x10839d3
mov eax, dword [0x10d03cc]
cmp eax, ebx
je 0x10839d3
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [0x10d1168]
cmp eax, ebx
je 0x10839ee
push eax
call sub.WTSAPI32.dll_WTSUnRegisterSessionNotification
push dword [0x10d1168]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor edi, edi
inc edi
push edi
call dword [sym.imp.USER32.dll_ShowCursor]
push dword [0x10d1180]
call fcn.0109c587
mov eax, dword [0x10d115c]
pop ecx
mov dword [0x10d1180], ebx
cmp eax, ebx
je 0x1083a19
push eax
call sub.gdiplus.dll_GdiplusShutdown
call fcn.01090006
mov ecx, dword [0x10d1170]
cmp ecx, ebx
je 0x1083a3c
call fcn.0109d367
mov ecx, dword [0x10d1170]
cmp ecx, ebx
je 0x1083a3c
mov eax, dword [ecx]
push edi
call dword [eax]
mov ecx, dword [0x10d0388]
mov dword [0x10d1170], ebx
cmp ecx, ebx
je 0x1083a52
push edi
call fcn.01082c76
mov ecx, dword [0x10d11fc]
mov dword [0x10d0388], ebx
cmp ecx, ebx
je 0x1083a68
push edi
call fcn.01083979
mov ecx, dword [0x10d123c]
mov dword [0x10d11fc], ebx
cmp ecx, ebx
je 0x1083a7e
push edi
call fcn.01082c9c
mov ecx, dword [0x10d11e8]
mov dword [0x10d123c], ebx
cmp ecx, ebx
je 0x1083a94
push edi
call fcn.01082cc2
mov ecx, dword [0x10d03b8]
mov dword [0x10d11e8], ebx
cmp ecx, ebx
je 0x1083aaa
push edi
call fcn.01082ce8
mov ecx, dword [0x10d1184]
mov dword [0x10d03b8], ebx
cmp ecx, ebx
je 0x1083ac0
push edi
call fcn.01082d0e
mov dword [0x10d1184], ebx
call fcn.010901eb
xor esi, esi
cmp dword [0x10c6848], ebx
jbe 0x1083afa
mov eax, dword [0x10c6854]
push dword [eax + esi*4]
call dword [sym.imp.GDI32.dll_RemoveFontResourceW]
mov eax, dword [0x10c6854]
push dword [eax + esi*4]
call fcn.0109c587
inc esi
pop ecx
cmp esi, dword [0x10c6848]
jb 0x1083ad5
push dword [0x10d1160]
mov dword [0x10c6848], ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
movzx eax, byte [0x10d03d3]
push eax
call fcn.01096e9e
mov ecx, dword [0x10d1178]
cmp ecx, ebx
je 0x1083b2f
push edi
call fcn.01082d34
push dword [ebp + 8]
mov dword [0x10d1178], ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1086a9a
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x10c671c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, ebx
push edi
lea edx, [eax + 2]
xor edi, edi
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1086abc
sub eax, edx
sar eax, 1
mov ecx, edi
je 0x1086ade
cmp word [ebx + ecx*2], 0x3a
je 0x1086b76
inc ecx
cmp ecx, eax
jb 0x1086ace
movzx eax, word [ebx]
cmp ax, 0x2e
je 0x1086bae
cmp ax, 0x2f
je 0x1086bae
cmp ax, 0x5c
je 0x1086bae
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push edi
push edi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x414]
push eax
call esi
mov eax, dword [ebp + 0xc]
and eax, 0x28
cmp al, 0x28
jne 0x1086b7e
push 0x10300d4
call esi
test eax, eax
jne 0x1086b7e
lea eax, [ebp - 0x20c]
push eax
call esi
jmp 0x1086bc1
push ebx
push 0x1030080
jmp 0x1086bb4
push 0x1030060
call esi
test eax, eax
je 0x1086b6b
push dword [0x10d1160]
call esi
test eax, eax
je 0x1086b6b
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
je 0x1086b72
call esi
xor eax, eax
inc eax
jmp 0x1086bc3
push ebx
push 0x102fff8
push 0x80
call fcn.0109679c
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0107591b
leave
ret 8
Function at 0x109616e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10c671c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 0x24]
cmp edi, 0x40
ja 0x10961ee
je 0x10961e7
mov eax, edi
dec eax
je 0x10961e0
dec eax
je 0x10961d6
dec eax
dec eax
je 0x10961cc
sub eax, 4
je 0x10961c2
sub eax, 8
je 0x10961b8
sub eax, 0x10
jne 0x1096216
mov esi, 0x1034184
jmp 0x1096264
mov esi, 0x1034174
jmp 0x1096264
mov esi, 0x1034158
jmp 0x1096264
mov esi, 0x1034140
jmp 0x1096264
mov esi, 0x1034128
jmp 0x1096264
mov esi, 0x1034118
jmp 0x1096264
mov esi, 0x1034108
jmp 0x1096264
cmp edi, 0x80
je 0x109625f
cmp edi, 0x100
je 0x1096258
cmp edi, 0x200
je 0x1096251
cmp edi, 0x400
je 0x109624a
cmp edi, 0x800
je 0x1096243
mov eax, dword [0x10d12b0]
test eax, eax
je 0x109622b
push edi
call eax
mov esi, eax
test esi, esi
jne 0x1096264
lea esi, [ebp - 0x24]
push edi
push 0x10340f4
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
push 0x10
push eax
call sub.msvcrt.dll__snwprintf_s
add esp, 0x14
jmp 0x1096264
mov esi, 0x10340e8
jmp 0x1096264
mov esi, 0x10340dc
jmp 0x1096264
mov esi, 0x10340c4
jmp 0x1096264
mov esi, 0x10340b4
jmp 0x1096264
mov esi, 0x10340a0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1096269
sub eax, edx
sar eax, 1
mov edi, eax
cmp byte [ebp + 0x10], cl
je 0x10962e8
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
push 0
cmp eax, 2
je 0x10962d9
and dword [ebp - 0x30], 0
push 0x80
push 3
lea eax, [ebp - 0x34]
push eax
push 2
push 0xc0000000
push 0x1034090
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test ebx, ebx
je 0x10962fa
push 0
lea eax, [ebp - 0x28]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10962fa
lea eax, [ebp - 0x28]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x10962fa
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + edi]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0107591b
leave
ret 0xc
Function at 0x109632a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x10c671c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x408], ecx
mov ecx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x40c], ecx
xor ecx, ecx
or ebx, 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
mov word [ebp - 0x404], cx
mov esi, 0x200
test eax, eax
je 0x1096394
push ebx
push eax
lea eax, [ebp - 0x404]
push esi
push eax
call sub.msvcrt.dll_wcsncat_s
push ebx
push 0x10341b4
lea eax, [ebp - 0x404]
push esi
push eax
call sub.msvcrt.dll_wcsncat_s
add esp, 0x20
test edi, edi
je 0x10963bd
push ebx
push edi
lea eax, [ebp - 0x404]
push esi
push eax
call sub.msvcrt.dll_wcsncat_s
push ebx
push 0x10341ac
lea eax, [ebp - 0x404]
push esi
push eax
call sub.msvcrt.dll_wcsncat_s
add esp, 0x20
lea eax, [ebp - 0x404]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10963c6
push dword [ebp - 0x40c]
sub eax, edx
push dword [ebp - 0x408]
sar eax, 1
mov ecx, 0x1ff
sub ecx, eax
push ebx
push ecx
lea eax, [ebp + eax*2 - 0x404]
push eax
call sub.msvcrt.dll__vsnwprintf_s
push ebx
push 0x10341a8
lea eax, [ebp - 0x404]
push esi
push eax
call sub.msvcrt.dll_wcsncat_s
add esp, 0x24
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0107591b
leave
ret 0x10