joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af218
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4af23c
mov eax, dword [ebp - 4]
jmp 0x4af23f
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x4af244
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4af291
xor ebx, ebx
jmp 0x4af286
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00419768
test eax, eax
jne 0x4af285
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x4af33c
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4af267
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4af29d
je 0x4af2a6
jmp 0x4af2af
call fcn.0042301c
mov esi, eax
jmp 0x4af2b1
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x4af2b1
xor esi, esi
test si, si
je 0x4af33c
xor ebx, ebx
jmp 0x4af2d7
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4af2d6
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4af33c
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4af2be
xor ebx, ebx
jmp 0x4af331
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov dx, 0x3ff
and dx, si
movzx edx, dx
cmp eax, edx
jne 0x4af330
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x4af325
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004af218
push eax
mov eax, esi
call fcn.004af218
pop edx
cmp edx, eax
jne 0x4af330
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4af33c
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4af2e6
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40c470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c488
mov eax, 1
add ebx, ebx
jne 0x40c4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c4a0
jne 0x40c4bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4a0
xor ecx, ecx
sub eax, 3
jb 0x40c4d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c542
mov ebp, eax
add ebx, ebx
jne 0x40c4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c50c
inc ecx
add ebx, ebx
jne 0x40c4f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c4ed
jne 0x40c509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c52c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c51d
jmp 0x40c48e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c52c
add edi, ecx
jmp 0x40c48e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c54a
cmp byte [edi], 1
jne 0x40c54a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40c54f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c5c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd70c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd748]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c57c
mov ecx, edi
jns 0x40c5ab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd74c]
or eax, eax
je 0x40c5c1
mov dword [ebx], eax
add ebx, 4
jmp 0x40c599
call dword [esi + 0xd750]
popal
jmp 0x401128
Function at 0x403000
Capabilities:
Get disk information

Disassembly:
sub esp, 0x430
mov eax, dword [esp + 0x434]
mov ecx, dword [eax]
push ebx
mov ebx, dword [0x430f4c]
push ebp
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [0x430f48]
xor ebp, ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x38], 0x9e3779b9
call fcn.00402fd0
mov eax, dword [0x430f50]
mov edx, dword [0x430f54]
add dword [esp + 0x14], 0x23f
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], 0x20
mov dword [esp + 0x24], 2
add dword [esp + 0x24], 3
mov eax, dword [0x2adda1c]
shl ecx, 4
add ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
cmp eax, 0xfa9
jne 0x403090
mov dword [0x2adda18], 0xedeb2e40
jmp 0x40309d
cmp eax, 0x3eb
jne 0x40309d
mov dword [0x2ada924], ebp
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
shr eax, 5
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x18]
mov dword [0x2adda14], 0xf4ea3dee
call fcn.00402fe0
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
xor dword [esp + 0x18], eax
cmp dword [0x2adda1c], 0x213
jne 0x403118
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
sub esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov eax, esi
mov dword [esp + 0x34], esi
call fcn.00402fc0
add dword [esp + 0x10], edi
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x14]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
nop
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
shr ecx, 5
add ecx, ebx
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
cmp dword [0x2adda1c], 0x121
jne 0x403178
push ebp
push ebp
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
mov ecx, dword [esp + 0x10]
xor ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
mov dword [esp + 0x10], ecx
call fcn.00402ff0
mov eax, dword [esp + 0x38]
sub dword [esp + 0x14], eax
sub dword [esp + 0x2c], 1
mov ecx, dword [esp + 0x28]
jne 0x403060
mov eax, dword [esp + 0x444]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x430
ret 4
Function at 0x40a4ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430ba0]
jne 0x40a4b7
repz ret
jmp fcn.0040d572

Function at 0x40c30e
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.00408770
and dword [ebp - 4], 0
cmp dword [0x432d38], 0
mov ebx, eax
jne 0x40c3bf
push 0x401ad8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c470
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401acc
push edi
call esi
test eax, eax
je 0x40c470
push eax
call fcn.004086fe
mov dword [esp], 0x401abc
push edi
mov dword [0x432d38], eax
call esi
push eax
call fcn.004086fe
mov dword [esp], 0x401aa8
push edi
mov dword [0x432d3c], eax
call esi
push eax
call fcn.004086fe
mov dword [esp], 0x401a8c
push edi
mov dword [0x432d40], eax
call esi
push eax
call fcn.004086fe
pop ecx
mov dword [0x432d48], eax
test eax, eax
je 0x40c3bf
push 0x401a74
push edi
call esi
push eax
call fcn.004086fe
pop ecx
mov dword [0x432d44], eax
mov eax, dword [0x432d44]
cmp eax, ebx
je 0x40c417
cmp dword [0x432d48], ebx
je 0x40c417
push eax
call fcn.00408779
push dword [0x432d48]
mov esi, eax
call fcn.00408779
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c417
test edi, edi
je 0x40c417
call esi
test eax, eax
je 0x40c40e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c40e
test byte [ebp - 0xc], 1
jne 0x40c417
or dword [ebp + 0x10], 0x200000
jmp 0x40c450
mov eax, dword [0x432d3c]
cmp eax, ebx
je 0x40c450
push eax
call fcn.00408779
pop ecx
test eax, eax
je 0x40c450
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c450
mov eax, dword [0x432d40]
cmp eax, ebx
je 0x40c450
push eax
call fcn.00408779
pop ecx
test eax, eax
je 0x40c450
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x432d38]
call fcn.00408779
pop ecx
test eax, eax
je 0x40c470
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c472
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1020f231
Capabilities:
Access peb ldr_data

Disassembly:
call fcn.10209875
jmp 0x10209870
call 0x1020f006
jmp 0x1020f61d
mov dword [esp], edi
jmp 0x1020f255
push edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
lea esp, [esp + 0xc]
jmp 0x1020f93b
pop eax
sub eax, 0x20f006
push eax
jmp 0x1020a05b
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x1020f001
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x1020f6c0
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48e008]
jne 0x40100a
repz ret
jmp fcn.00401bd8

Function at 0x4080ae
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.00402901
and dword [ebp - 4], 0
cmp dword [0x48ffe8], 0
mov ebx, eax
jne 0x40815f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408210
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408210
push eax
call fcn.0040288f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48ffe8], eax
call esi
push eax
call fcn.0040288f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48ffec], eax
call esi
push eax
call fcn.0040288f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48fff0], eax
call esi
push eax
call fcn.0040288f
pop ecx
mov dword [0x48fff8], eax
test eax, eax
je 0x40815f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040288f
pop ecx
mov dword [0x48fff4], eax
mov eax, dword [0x48fff4]
cmp eax, ebx
je 0x4081b7
cmp dword [0x48fff8], ebx
je 0x4081b7
push eax
call fcn.0040290a
push dword [0x48fff8]
mov esi, eax
call fcn.0040290a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4081b7
test edi, edi
je 0x4081b7
call esi
test eax, eax
je 0x4081ae
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4081ae
test byte [ebp - 0xc], 1
jne 0x4081b7
or dword [ebp + 0x10], 0x200000
jmp 0x4081f0
mov eax, dword [0x48ffec]
cmp eax, ebx
je 0x4081f0
push eax
call fcn.0040290a
pop ecx
test eax, eax
je 0x4081f0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4081f0
mov eax, dword [0x48fff0]
cmp eax, ebx
je 0x4081f0
push eax
call fcn.0040290a
pop ecx
test eax, eax
je 0x4081f0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48ffe8]
call fcn.0040290a
pop ecx
test eax, eax
je 0x408210
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408212
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5c6010
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.00424328
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5ca0dc
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
outsb dx, byte [esi]
and al, byte [eax]
add byte [esi + 0x53], bl
push edi
add esp, 4
sub ebx, 0x9113
pop ebx
mov eax, dword [ebp - 0xa68]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0xa64]
movzx eax, byte [edx]
invalid

Function at 0x5caa92
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
add ecx, 0x5c78
add ecx, 0xab9f
pop ecx
push ebx
add ebx, 0x1599b
add ebx, 0x13d1b
sub ebx, 0x15f86
pop ebx
mov ecx, dword [ebp - 0x4d4]
mov edx, dword [ecx]
mov dword [ebp - 0x4d4], edx
mov eax, dword [ebp - 0x4d4]
cmp eax, dword [ebp - 0xc20]
je 0x5caae2
mov ecx, dword [ebp - 0x4d4]
cmp dword [ecx + 0x30], 0
jne 0x5ca898
mov dword [ebp - 0x2e0], 0
Function at 0x5cc384
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push eax
inc edi
dec esp
inc ebp
dec ebp
cmp dword [eax], edi
add esp, 4
xor ebx, 0x17907
pop ebx
mov edx, dword [ebp - 0xc50]
mov ax, word [edx]
mov word [ebp - 0xf8e], ax
mov ecx, dword [ebp - 0xc50]
add ecx, 2
mov dword [ebp - 0xc50], ecx
mov dx, word [ebp - 0xf8e]
mov word [ebp - 0x208], dx
mov eax, dword [ebp - 0xc54]
mov cx, word [eax]
mov word [ebp - 0xf90], cx
mov edx, dword [ebp - 0xc54]
add edx, 2
mov dword [ebp - 0xc54], edx
mov ax, word [ebp - 0xf90]
mov word [ebp - 0x3c], ax
push ecx
and ecx, 0x15750
pop ecx
push edx
push edx
add esp, 4
add edx, 0x11fab
add edx, 0x8eb7
call 0x5cc384
add byte [ecx + ecx*2 + 0x32], cl
xor eax, 0x4b3f3334
cmp byte [ebx - 0x157efb3c], al
mov esi, esp
add byte [eax], al
pop edx
movzx ecx, word [ebp - 0x3c]
test ecx, ecx
jne 0x5cc3ab
invalid
mov bh, 0x95
clc
std
invalid

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

Disassembly:
dec dword [edi]
mov bh, 0x45
les ebp, [ebx]
ror byte [ecx - 0x155f6b], 1
invalid

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

Disassembly:
sub eax, 0xf0810001
mul byte [eax]
add dword [eax], eax

Function at 0x5eb0a8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x5eb125
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.005d7bdc
mov eax, dword [ebp - 4]
call fcn.005d754c
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x30]
mov ebx, dword [eax + 0xc]
dec ebx
cmp ebx, 0
jl 0x5eb10c
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 4]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 4]
cmp eax, dword [ebp - 8]
jne 0x5eb106
mov eax, dword [esi]
mov edx, dword [ebp - 4]
call fcn.0040abf0
je 0x5eb10f
dec ebx
cmp ebx, 0xffffffff
jne 0x5eb0e9
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5eb12c
lea eax, [ebp - 4]
call fcn.0040a1ec
ret
Function at 0x60f954
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
call fcn.0040a2ac
xor eax, eax
push ebp
push 0x60fa38
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x18], 0
jne 0x60f99b
lea edx, [ebp + 0x18]
mov eax, edi
call fcn.005c5390
cmp dword [ebp + 0x18], 0
jne 0x60f99b
lea eax, [ebp + 0x18]
call fcn.005c74a8
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00407760
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
test ebx, ebx
je 0x60f9c6
mov eax, ebx
call fcn.0040b278
mov dword [ebp - 0x34], eax
mov eax, edi
call fcn.0040b278
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.0040b278
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
call fcn.0040b278
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x60fa08
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x60fa22
mov dword [esi], 0x103
mov eax, dword [ebp - 8]
test eax, eax
je 0x60fa22
push esi
movzx edx, byte [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
call fcn.0060f5f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60fa3f
lea eax, [ebp + 0x18]
call fcn.0040a1c8
ret

Function at 0x60fc70
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffdc
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x60fc9e
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x10
call fcn.0040b318
jmp 0x60fca5
mov eax, ebx
call fcn.0040a1c8
add esp, 0x24
pop ebx
ret

Function at 0x60fcac
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
mov dword [esp], 0x101
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x60fcdd
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x101
call fcn.0040b318
jmp 0x60fce4
mov eax, ebx
call fcn.0040a1c8
add esp, 0x208
pop ebx
ret

Function at 0x60fd98
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x60fdf2
inc esi
xor edi, edi
cmp edi, 1
jne 0x60fdbe
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x60fdcc
cmp edi, 1
jle 0x60fdcc
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0060c494
test eax, eax
jne 0x60fdf2
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x60fdf2
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x60fdf2
inc edi
dec esi
jne 0x60fdae
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x6265e0
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x62681e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
inc dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ebx, dword [ebp - 4]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], ecx
xor eax, eax
lea ebx, [eax + 0xc]
add ebx, ecx
xor edx, edx
push ebp
push 0x6267c3
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x626655
mov eax, 0x62683c
call fcn.0060d1c0
xor edx, edx
push ebp
push 0x626758
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x14
call fcn.00407760
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push 0x14
mov eax, dword [ebp - 4]
add eax, 0x4034
push eax
push ebx
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_TransactNamedPipe
test eax, eax
jne 0x626741
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x6266bd
mov eax, 0x626860
call fcn.0060d1c0
xor edx, edx
push ebp
push 0x62672a
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp + 8], 0
je 0x6266fd
mov eax, dword [ebp - 4]
cmp word [eax + 0x1a], 0
je 0x6266fd
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x18]
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x6266db
pop dword fs:[0]
add esp, 8
push 0x626731
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetOverlappedResult
mov ebx, eax
call sub.kernel32.dll_GetLastError
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62675f
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x67e0e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, esi
test ebx, ebx
je 0x67e0f9
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.0040b278
push eax
push 1
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x67e12d
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
xor eax, eax
call fcn.0067dfac
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x6836a4
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x683765
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x68374a
test bl, 0x10
je 0x68374a
lea ecx, [ebp - 4]
mov edx, 0x683780
mov eax, esi
call fcn.005c502c
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x6837a4
mov eax, 0x6837c0
call fcn.005c68e4
mov edx, 0x6837ec
mov eax, dword [ebp - 8]
call fcn.00422380
test eax, eax
jne 0x68374a
mov eax, dword [ebp - 4]
call fcn.00423a38
lea ecx, [ebp - 0xc]
mov edx, 0x683848
mov eax, esi
call fcn.005c502c
mov eax, dword [ebp - 0xc]
call fcn.00423a38
and ebx, 0xfffffffe
push ebx
mov eax, esi
call fcn.0040b278
mov edi, eax
push edi
call sub.kernel32.dll_SetFileAttributesW
push edi
call sub.kernel32.dll_RemoveDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x68376c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a228
ret

Function at 0x6847ac
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x684886
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, edi
call fcn.0060d2d4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x6848a4
call fcn.006169d0
mov eax, dword [0x6cfab0]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
call fcn.00464ce8
mov esi, eax
mov eax, dword [esi]
mov ebx, eax
test ebx, ebx
je 0x68481f
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
push eax
mov eax, ebx
mov ecx, 0x14
cdq
idiv ecx
push eax
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp - 8]
mov edx, edi
call fcn.0062d464
test al, al
jne 0x684870
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x684855
mov eax, 0x6848f4
call fcn.0061674c
jmp 0x684870
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x684994
call fcn.006169d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x68488d
lea eax, [ebp - 0x1c]
call fcn.0040a1c8
ret