joyce8/EMBER2024-capa huggingface dataset:
Function at 0x643a0b
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x69f078
call fcn.00646f5c
mov edi, 0x94
mov eax, edi
call fcn.00642f20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x6e92cc], ecx
mov eax, dword [esi + 4]
mov dword [0x6e92d8], eax
mov edx, dword [esi + 8]
mov dword [0x6e92dc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x6e92d0], esi
cmp ecx, 2
je 0x643a6b
or esi, 0x8000
mov dword [0x6e92d0], esi
shl eax, 8
add eax, edx
mov dword [0x6e92d4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x643aa6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x643aa6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x643abe
cmp eax, 0x20b
je 0x643aab
mov dword [ebp - 0x1c], esi
jmp 0x643ad2
cmp dword [ecx + 0x84], 0xe
jbe 0x643aa6
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x643acc
cmp dword [ecx + 0x74], 0xe
jbe 0x643aa6
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00649532
pop ecx
test eax, eax
jne 0x643ae6
push 0x1c
call fcn.00643991
pop ecx
call fcn.00647d69
test eax, eax
jne 0x643af7
push 0x10
call fcn.00643991
pop ecx
mov dword [ebp - 4], esi
call fcn.0064adfd
test eax, eax
jge 0x643b0b
push 0x1b
call fcn.0064396c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x6eb060], eax
call fcn.0064acd7
mov dword [0x6e9310], eax
call fcn.0064ac35
test eax, eax
jge 0x643b31
push 8
call fcn.0064396c
pop ecx
call fcn.0064a9e9
test eax, eax
jge 0x643b42
push 9
call fcn.0064396c
pop ecx
call fcn.006427e5
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x643b55
push eax
call fcn.0064396c
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0064a980
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x643b76
movzx eax, word [ebp - 0x34]
jmp 0x643b79
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00669120
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x643b97
push edi
call fcn.00642904
call fcn.00642926
jmp 0x643bc9
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00646f95
ret
Function at 0x643e1f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x643e3c
call fcn.006463ba
mov dword [eax], 0x16
xor eax, eax
jmp 0x643ea6
push esi
push 0x88
push 1
call fcn.0064b047
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x643e91
push esi
call fcn.00647b6e
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x643e6f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x643d7b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x643ea5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.006435b1
test ebx, ebx
pop ecx
je 0x643ea3
push ebx
call fcn.006463cc
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x64a5c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x6e1c78]
je 0x64a5e4
inc eax
cmp eax, 0x12
jb 0x64a5d5
shl eax, 3
cmp edx, dword [eax + 0x6e1c78]
mov dword [ebp + 8], eax
jne 0x64a782
mov ecx, dword [0x6e9318]
cmp ecx, 1
je 0x64a757
test ecx, ecx
jne 0x64a616
cmp dword [0x6e1604], 1
je 0x64a757
cmp edx, 0xfc
je 0x64a782
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64a651
push 5
pop ecx
mov esi, 0x69f9a4
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64a660
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x64a698
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64a678
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x69f9a0
push ebx
call fcn.006436e0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64a69d
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6e1c7c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x64a6b4
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.00642f20
mov edx, esp
push 6
pop ecx
mov esi, 0x69f984
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64a6e0
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x64a6ec
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x64a705
mov eax, dword [ebp + 8]
mov esi, 0x69f980
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x6e1c7c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64a720
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x64a72c
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x69f958
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0064ff44
add esp, 0xc
jmp 0x64a782
mov ecx, dword [eax + 0x6e1c7c]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x64a762
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x64cf1a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00642f20
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x64cfaf
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x6e92cc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x64cfaf
cmp eax, 1
je 0x64cfc7
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x64cfaf
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x64cf84
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x64cfab
xor eax, eax
inc eax
jmp 0x64cfe3
cmp esi, ebx
jae 0x64cfb3
xor eax, eax
jmp 0x64cfe3
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x6e92cc]
jmp 0x64cfc9
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x64e4b6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x64e4d4
xor eax, eax
jmp 0x64e642
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x6eac60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x64e507
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00651b33
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x64e5d9
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x64e614
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x64e562
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x64e553
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x64e536
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x64e5a2
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x64e5ab
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x64e527
jmp 0x64e5ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x64e63d
cmp dword [ebp - 4], edi
je 0x64e614
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x64e606
call fcn.006463ba
mov dword [eax], 9
call fcn.006463c3
mov dword [eax], esi
jmp 0x64e60f
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x64e5fb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x64e5ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x64e5ad
push dword [ebp - 4]
call fcn.006463cc
pop ecx
or eax, 0xffffffff
jmp 0x64e640
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x64e629
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x64e629
xor eax, eax
jmp 0x64e640
call fcn.006463ba
mov dword [eax], 0x1c
call fcn.006463c3
mov dword [eax], edi
jmp 0x64e60f
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x64ff44
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x6e96fc], ebx
push esi
push edi
jne 0x64ffc4
push 0x6a0e9c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x64ffff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6a0e90
push edi
call esi
test eax, eax
mov dword [0x6e96fc], eax
je 0x64ffff
push 0x6a0e80
push edi
call esi
push 0x6a0e6c
push edi
mov dword [0x6e9700], eax
call esi
cmp dword [0x6e92cc], 2
mov dword [0x6e9704], eax
jne 0x64ffc4
push 0x6a0e50
push edi
call esi
test eax, eax
mov dword [0x6e970c], eax
je 0x64ffc4
push 0x6a0e38
push edi
call esi
mov dword [0x6e9708], eax
mov eax, dword [0x6e9708]
test eax, eax
je 0x650009
call eax
test eax, eax
je 0x64fff0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x6e970c]
test eax, eax
je 0x64fff0
test byte [ebp - 8], 1
jne 0x650009
cmp dword [0x6e92d8], 4
jb 0x650003
or byte [ebp + 0x12], 0x20
jmp 0x650028
xor eax, eax
jmp 0x650038
or byte [ebp + 0x12], 4
jmp 0x650028
mov eax, dword [0x6e9700]
test eax, eax
je 0x650028
call eax
mov ebx, eax
test ebx, ebx
je 0x650028
mov eax, dword [0x6e9704]
test eax, eax
je 0x650028
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x6e96fc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x65287d
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x6a0f90
call fcn.00646f5c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x6e972c], edi
jne 0x6528c1
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x6528ac
mov dword [0x6e972c], ebx
jmp 0x6528c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x6528c1
mov dword [0x6e972c], 2
mov eax, dword [0x6e972c]
cmp eax, ebx
jne 0x6528e1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x6529a4
cmp eax, 2
je 0x6528ea
cmp eax, edi
jne 0x652912
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x6528fd
mov eax, dword [0x6e95e0]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x652919
xor eax, eax
jmp 0x6529a4
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00642f20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x65294c
cmp esi, edi
jne 0x652962
push dword [ebp - 0x24]
call fcn.006436c9
pop ecx
mov esi, eax
cmp esi, edi
je 0x652912
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x652995
cmp dword [ebp + 0x14], edi
jne 0x65297f
push edi
push edi
jmp 0x652985
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x6529a1
push esi
call fcn.006435b1
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00646f95
ret
Function at 0x6529ad
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x6a0fa0
call fcn.00646f5c
xor esi, esi
cmp dword [0x6e9730], esi
jne 0x6529f1
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x6529dc
mov dword [0x6e9730], edi
jmp 0x6529f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x6529f1
mov dword [0x6e9730], 2
mov eax, dword [0x6e9730]
cmp eax, 2
je 0x652ad2
cmp eax, esi
je 0x652ad2
cmp eax, 1
jne 0x652a36
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x652a1f
mov eax, dword [0x6e95e0]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x652a3d
xor eax, eax
jmp 0x652ae4
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00642f20
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x652a73
cmp edi, esi
jne 0x652a8e
lea eax, [ebx + ebx]
push eax
call fcn.006436c9
pop ecx
mov edi, eax
cmp edi, esi
je 0x652a36
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x652ac1
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x652aab
push esi
push esi
jmp 0x652ab1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x652acd
push edi
call fcn.006435b1
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x652ae4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00646f95
ret
Function at 0x652f89
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 0x652ff1
push 0x3d
push esi
call fcn.006445ea
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x652ff1
cmp esi, eax
je 0x652ff1
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x6e92ec]
sete cl
cmp eax, dword [0x6e92f0]
mov dword [ebp - 4], ecx
jne 0x652fd7
mov edi, eax
call fcn.00652f28
mov dword [0x6e92ec], eax
cmp eax, ebx
jne 0x653030
cmp dword [ebp + 0xc], ebx
je 0x652ff9
cmp dword [0x6e92f4], ebx
je 0x652ff9
call fcn.00652113
test eax, eax
je 0x653030
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x65313a
push 4
call fcn.006436c9
cmp eax, ebx
pop ecx
mov dword [0x6e92ec], eax
je 0x652ff1
mov dword [eax], ebx
cmp dword [0x6e92f4], ebx
jne 0x653030
push 4
call fcn.006436c9
cmp eax, ebx
pop ecx
mov dword [0x6e92f4], eax
je 0x652ff1
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x6e92ec]
sub edi, esi
push esi
call fcn.00652edb
mov edi, eax
test edi, edi
pop ecx
jl 0x65308c
cmp dword [ebx], 0
je 0x65308c
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.006435b1
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x653071
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x6530c2
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x653068
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00646d91
test eax, eax
mov esi, dword [ebp + 8]
pop ecx
pop ecx
je 0x6530c2
jmp 0x6530bd
cmp dword [ebp - 4], 0
jne 0x653133
test edi, edi
jge 0x65309c
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00646d91
test eax, eax
pop ecx
pop ecx
je 0x652ff1
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x6e92ec], eax
cmp dword [ebp + 0xc], 0
je 0x65311e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6530cd
sub eax, edx
add eax, 2
push eax
call fcn.006436c9
mov edi, eax
test edi, edi
pop ecx
je 0x65311e
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x6530ea
mov ecx, dword [ebp - 8]
add eax, ecx
and byte [eax], dl
mov ecx, dword [ebp - 4]
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 0x653117
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.006435b1
pop ecx
cmp dword [ebp - 4], 0
je 0x65312b
push esi
call fcn.006435b1
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x652ff4
push esi
call fcn.006435b1
pop ecx
xor eax, eax
jmp 0x652ff4
Function at 0x655610
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov byte [ebp - 4], 0
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 5
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edx, dword [ebp - 8]
push edx
call fcn.006436c9
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x10], 0
jmp 0x6556ca
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx]
jae 0x6556f1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx*8 + 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x6556ef
jmp 0x6556f1
jmp 0x6556c1
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
cmp eax, dword [edx]
setne cl
mov byte [ebp - 4], cl
mov edx, dword [ebp - 0xc]
push edx
call fcn.006435b1
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x656530
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
jmp 0x656558
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1a
jge 0x6565b0
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
shr edx, cl
and edx, 1
test edx, edx
jne 0x65656f
jmp 0x65654f
mov byte [ebp - 0x10], 0
xor eax, eax
mov word [ebp - 0xf], ax
mov ecx, dword [ebp - 4]
add ecx, 0x41
movsx edx, cl
push edx
push 0x6af038
lea eax, [ebp - 0x10]
push eax
call fcn.00642944
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x6565a5
jmp 0x65654f
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x65654f
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x656cc5
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x699e6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0x120
call fcn.006618c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x6a25a8
push 0x104
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 4
push ecx
call fcn.00642ec0
add esp, 0xc
push 0
call fcn.006635d0
add esp, 4
cmp eax, 9
jle 0x656d7e
push 1
push 0x23
mov edx, dword [ebp - 0x18]
add edx, 4
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x656d7c
push 0x6e2af8
mov eax, dword [ebp - 0x18]
add eax, 4
push eax
call fcn.00642db0
add esp, 8
mov ecx, dword [ebp - 0x18]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x656d6d
cmp dword [ebp - 0x14], 0x10
je 0x656d7c
push 0
mov edx, dword [ebp - 0x18]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x656d90
push 0x104
mov eax, dword [ebp - 0x18]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [ebp - 0x18]
add ecx, 4
push ecx
call fcn.00642f60
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x10]
movsx eax, byte [edx + 3]
cmp eax, 0x5c
je 0x656dbb
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x10]
mov byte [ecx + 4], 0x5c
mov edx, dword [ebp - 0x18]
add edx, 4
push edx
call fcn.00642f60
add esp, 4
mov dword [ebp - 0x10], eax
push 0xb
push 0x6e2b00
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax + 4]
push edx
call fcn.006436e0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.00642f60
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x108
push edx
call fcn.00642a60
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x11c], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8