joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5cc81a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
push edi
mov esi, ecx
jne 0x5cc82b
xor eax, eax
jmp 0x5cc871
cmp dword [ebp + 8], 0
je 0x5cc877
push dword [esi + 0x14]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0065b91f
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5cc857
push dword [esi + 0x14]
call fcn.00672d32
pop ecx
test eax, eax
je 0x5cc87c
push dword [esi + 0x14]
call fcn.00672d5e
pop ecx
test eax, eax
je 0x5cc86f
push dword [esi + 0x14]
call fcn.005cc4d0
pop ecx
jmp 0x5cc87c
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
call fcn.004273da
lea ecx, [esi + 0xc]
call fcn.00427bef
mov esi, eax
call fcn.0063dcb8
push esi
push dword [eax]
push 1
call fcn.0048361b
int3

Function at 0x5cd8c3
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x6b581d
call fcn.0060ae76
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x5cd9a9
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x5cd9a9
cmp esi, 0x43
je 0x5cd905
cmp esi, 0x2d
jne 0x5cd9a9
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5cd9a9
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00401f50
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00402b50
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x5cd997
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x5cd997
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.00428a03
push ebx
mov ecx, edi
call fcn.004552e6
call fcn.0060ae44
ret 4
Function at 0x5e4bac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x5e4c23
cmp dword [ebp + 0xc], 0
je 0x5e4c23
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x5e4bd3
call fcn.00436ce4
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5e4c23
push dword [ebp + 0xc]
mov dword [edi + 8], eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x5e4c23
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x5e4c23
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5e4c23
mov ecx, dword [edi]
push eax
mov esi, dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push eax
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, edi
call esi
jmp 0x5e4c25
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x603825
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.006300b0
mov eax, dword [ebp + 8]
add esp, 0xc
and dword [ebp - 0x34], 0
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
leave
ret 0x14

Function at 0x60ba66
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x60baa5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x60baa5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x60baa5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x60baa5
cmp dword [ecx + 0x74], 0xe
jbe 0x60baa5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x62e79a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00679f5d
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x62e7d9
sub eax, 1
je 0x62e7d4
sub eax, 1
je 0x62e7d0
xor eax, eax
leave
ret
push 3
jmp 0x62e7db
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x67353a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0060a1b0
mov eax, dword [0x75f140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00672d8a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x67357c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x6736d8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0060ab00
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x777148]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0067e6fc
mov ecx, dword [esi*4 + 0x777148]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x6736d1
cmp eax, dword [edi + ecx + 0x24]
jne 0x6736d1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6736d1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0067e6fc
add esp, 0x14
test edx, edx
jl 0x6736d1
jg 0x673647
test eax, eax
jb 0x6736d1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x6736d1
jl 0x673661
cmp dword [ebp - 0x1008], eax
ja 0x6736d1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x67367f
test ebx, ebx
je 0x6736b8
cmp ecx, edi
jae 0x6736b8
mov al, byte [ecx]
cmp al, 0xd
jne 0x673699
lea eax, [edi - 1]
cmp ecx, eax
jae 0x6736a5
cmp byte [ecx + 1], 0xa
jne 0x6736a5
inc ecx
jmp 0x6736a5
movzx eax, al
movsx eax, byte [eax + 0x75f4b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x67367f
cmp edx, ebx
jne 0x67367f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x6736d6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00609c1d
leave
ret

Function at 0x680675
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x70a4ec
push 0x70a4e4
push str.FlsAlloc
push 0x1e
call fcn.00680345
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6806a9
push dword [ebp + 8]
mov ecx, esi
call dword [0x6bfdfc]
call esi
jmp 0x6806af
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x6806f3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x70a4fc
push 0x70a4f4
push str.FlsGetValue
push 0x20
call fcn.00680345
mov esi, eax
add esp, 0x10
test esi, esi
je 0x68072a
push dword [ebp + 8]
mov ecx, esi
call dword [0x6bfdfc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x6825a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00682188

Function at 0x6825ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00682317

Function at 0x6825b7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x777148]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6825f7
cmp byte [ebx], 0xa
jne 0x6825f7
or byte [eax + edi + 0x28], 4
jmp 0x6825fc
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x6826fa
mov al, byte [edx]
cmp al, 0x1a
je 0x6826dc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x68262b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x682650
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x68265a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x68260d
jmp 0x6826fa
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6826d7
cmp dword [ebp - 0xc], 0
je 0x6826d7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x777148]
test byte [eax + edi + 0x28], 0x48
je 0x6826b1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x68269c
mov byte [esi], dl
jmp 0x6826ad
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x777148]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x6826fa
cmp byte [ebp - 1], 0xa
jne 0x6826c0
cmp esi, ebx
jne 0x6826c0
mov byte [esi], 0xa
jmp 0x6826f9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0067e71a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x6826fa
mov byte [esi], 0xd
jmp 0x6826f9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x777148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x6826f6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x6826fa
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x682703
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x777148]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x682746
cmp word [esi], dx
jne 0x682746
or byte [edi + eax + 0x28], 4
jmp 0x68274b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x68289e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x68287e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x68278d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x6827c3
cmp eax, edx
jae 0x6827cf
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x682765
jmp 0x68289e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x68287a
cmp dword [ebp - 0x14], 0
je 0x68287a
mov eax, dword [ebx*4 + 0x777148]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x682852
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x68281b
mov word [esi], cx
jmp 0x68284e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x777148]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x777148]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x777148]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x68289e
pop ebx
cmp word [ebp - 4], bx
jne 0x682863
cmp esi, dword [ebp + 0xc]
jne 0x682863
mov word [esi], bx
jmp 0x68289b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0067e71a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x68289e
push 0xd
jmp 0x682897
mov ecx, dword [ebx*4 + 0x777148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x682895
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x68289e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6878d9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x75f140]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x687924
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00687c7d
test al, al
jne 0x68791e
sub edx, 2
cmp edx, edi
jne 0x687904
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x687946
lea eax, [edi + 2]
cmp edx, eax
je 0x687946
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.006875a0
add esp, 0x10
jmp 0x687a40
push esi
lea ecx, [ebp - 0x255]
call fcn.00687c7d
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x687989
push dword [ebp - 0x25c]
jmp 0x687936
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x6879c6
cmp word [ebp - 0x226], 0
je 0x6879e7
cmp word [ebp - 0x226], ax
jne 0x6879c6
cmp word [ebp - 0x224], 0
je 0x6879e7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.006875a0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x687a33
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x6879a0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x687a1b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x687a40
push 0x6870bf
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00693d70
add esp, 0x10
jmp 0x687a10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00609c1d
leave
ret
Function at 0x688a54
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x688af1
push ebx
push esi
call fcn.00688a10
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00684272
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x688a9e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x688af0
push edi
push eax
call fcn.0067e778
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x688abe
call fcn.0067c7e8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x688aef
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00684272
add esp, 0x20
test eax, eax
jne 0x688add
push edi
call fcn.0067c7e8
jmp 0x688ae5
push ebx
call fcn.0067c7e8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x688af4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x688b05
pop esi
ret
push ebx
push edi
push esi
call fcn.00688a10
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0067e778
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x688b2d
push ebx
push esi
push edi
call fcn.0062f5b0
add esp, 0xc
push 0
call fcn.0067c7e8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x689404
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00688da0

Function at 0x68a26d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0068a141
Function at 0x6946f9
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00694519
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x694871
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x694871
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x694820
jg 0x694752
test eax, eax
je 0x694816
push 1
push 0x1000
call fcn.00681364
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x694778
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x69480d
push 0x8000
push ebx
call fcn.006765ad
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x6947a4
jg 0x69479f
cmp ecx, 0x1000
jb 0x6947a4
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00681f88
add esp, 0x10
cmp eax, 0xffffffff
je 0x6947e9
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x69479f
jl 0x6947d0
test ecx, ecx
jne 0x694791
push dword [ebp - 0xc]
push ebx
call fcn.006765ad
push esi
call fcn.0067c7e8
add esp, 0xc
xor edi, edi
jmp 0x694882
cmp byte [edi + 0x24], 0
je 0x694800
cmp dword [edi + 0x20], 5
jne 0x694800
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x69480b
mov edi, dword [edi + 0x18]
jmp 0x69480d
xor edi, edi
push esi
call fcn.0067c7e8
pop ecx
jmp 0x694882
test ecx, ecx
jg 0x6947e2
jl 0x694820
test eax, eax
jae 0x6947e2
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0067e71a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x694843
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x6947e2
jmp 0x69487a
push ebx
call fcn.00673c69
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x6947e2
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x694882
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x69487f
mov edi, dword [edi + 0x18]
jmp 0x694882
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0067e71a
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x696930
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x69695d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x69695d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1019a76c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101a5d08]
jne 0x1019a776
repz ret
jmp fcn.1019c1db

Function at 0x1019d32f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1019a7ed
and dword [ebp - 4], 0
cmp dword [0x101a7258], 0
mov ebx, eax
jne 0x1019d3e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1019d491
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1019d491
push eax
call fcn.1019a77b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101a7258], eax
call esi
push eax
call fcn.1019a77b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101a725c], eax
call esi
push eax
call fcn.1019a77b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101a7260], eax
call esi
push eax
call fcn.1019a77b
pop ecx
mov dword [0x101a7268], eax
test eax, eax
je 0x1019d3e0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1019a77b
pop ecx
mov dword [0x101a7264], eax
mov eax, dword [0x101a7264]
cmp eax, ebx
je 0x1019d438
cmp dword [0x101a7268], ebx
je 0x1019d438
push eax
call fcn.1019a7f6
push dword [0x101a7268]
mov esi, eax
call fcn.1019a7f6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1019d438
test edi, edi
je 0x1019d438
call esi
test eax, eax
je 0x1019d42f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1019d42f
test byte [ebp - 0xc], 1
jne 0x1019d438
or dword [ebp + 0x10], 0x200000
jmp 0x1019d471
mov eax, dword [0x101a725c]
cmp eax, ebx
je 0x1019d471
push eax
call fcn.1019a7f6
pop ecx
test eax, eax
je 0x1019d471
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1019d471
mov eax, dword [0x101a7260]
cmp eax, ebx
je 0x1019d471
push eax
call fcn.1019a7f6
pop ecx
test eax, eax
je 0x1019d471
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101a7258]
call fcn.1019a7f6
pop ecx
test eax, eax
je 0x1019d491
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1019d493
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret