joyce8/EMBER2024-capa huggingface dataset:
Function at 0x69e800
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
push esi
mov dword [ebp - 0x2c], 0
mov esi, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x69e823
sub eax, edx
cmp eax, 2
jb 0x69e88c
mov al, byte [ebx]
cmp al, 0x2f
jne 0x69e873
cmp byte [ebx + 1], al
jne 0x69e873
lea eax, [ebx + 2]
push 0x72c534
push eax
call dword [sym.imp.MSVCR100.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x69e88c
call dword [sym.imp.MSVCR100.dll__errno]
pop esi
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 1], 0x3a
jne 0x69e88c
cmp al, 0x61
jl 0x69e881
cmp al, 0x7a
jle 0x69e889
cmp al, 0x41
jl 0x69e88c
cmp al, 0x5a
jg 0x69e88c
lea esi, [ebx + 2]
push edi
mov edi, dword [sym.imp.MSVCR100.dll__umask]
push 0
call edi
movzx eax, ax
mov dword [ebp - 0x30], eax
and eax, 0xff3f
push eax
call edi
add esp, 8
cmp byte [esi], 0x2f
jne 0x69e8ae
inc esi
xor edi, edi
mov al, byte [esi]
test al, al
jne 0x69e8bd
mov edi, 1
jmp 0x69e8c1
cmp al, 0x2f
jne 0x69e927
mov byte [esi], 0
test edi, edi
jne 0x69e8d3
cmp byte [esi + 1], 0
jne 0x69e8e0
mov edi, 1
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll__umask]
add esp, 4
lea edx, [ebp - 0x28]
push edx
push ebx
call sym.postgres.exe_pgwin32_safestat
add esp, 8
test eax, eax
jne 0x69e912
mov eax, dword [ebp - 0x22]
and eax, 0xf000
cmp eax, 0x4000
je 0x69e920
call dword [sym.imp.MSVCR100.dll__errno]
test edi, edi
je 0x69e92e
mov dword [eax], 0x11
jmp 0x69e934
push ebx
call dword [sym.imp.MSVCR100.dll__mkdir]
add esp, 4
test eax, eax
js 0x69e934
test edi, edi
jne 0x69e927
mov byte [esi], 0x2f
inc esi
test edi, edi
je 0x69e8b0
jmp 0x69e93b
mov dword [eax], 0x14
mov dword [ebp - 0x2c], 0xffffffff
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll__umask]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret

Function at 0x69f990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
test ebx, ebx
jle 0x69f9fc
push edi
jmp 0x69f9a0
mov edi, dword [esi + 8]
test edi, edi
je 0x69f9ab
sub edi, dword [esi]
jmp 0x69f9ad
mov edi, ebx
test edi, edi
jg 0x69f9d9
mov edx, dword [esi + 0xc]
test edx, edx
je 0x69f9fb
mov ecx, dword [esi + 4]
mov eax, dword [esi]
sub eax, ecx
je 0x69f9d2
push edx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
add dword [esi + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esi], eax
jmp 0x69f9f7
cmp edi, ebx
jl 0x69f9df
mov edi, ebx
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
push edi
push ecx
push edx
call dword [sym.imp.MSVCR100.dll_memmove]
add dword [esi], edi
add dword [ebp + 8], edi
add esp, 0xc
sub ebx, edi
test ebx, ebx
jg 0x69f9a0
pop edi
pop ebx
pop ebp
ret
Function at 0x69fa00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x69fa34
mov eax, dword [esi]
cmp eax, ecx
jb 0x69fa34
mov edx, dword [esi + 0xc]
test edx, edx
je 0x69fa3d
mov ecx, dword [esi + 4]
sub eax, ecx
je 0x69fa2f
push edx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
add dword [esi + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esi], eax
mov ecx, dword [esi]
mov dl, byte [ebp + 8]
mov byte [ecx], dl
inc dword [esi]
pop ebp
ret

Function at 0x69fa90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [edi], 0
push ebx
push esi
mov esi, eax
mov ebx, ecx
jle 0x69fb02
test ebx, ebx
je 0x69fb02
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x69fabf
push eax
call fcn.0069fa00
mov ecx, dword [ebp + 8]
add esp, 4
dec dword [edi]
mov dword [ecx], 0
cmp dword [edi], 0
jle 0x69fb02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x69faf5
mov eax, dword [esi]
cmp eax, ecx
jb 0x69faf5
mov edx, dword [esi + 0xc]
test edx, edx
je 0x69fafb
mov ecx, dword [esi + 4]
sub eax, ecx
je 0x69faf0
push edx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
add dword [esi + 0x10], eax
mov edx, dword [esi + 4]
mov dword [esi], edx
mov eax, dword [esi]
mov byte [eax], bl
inc dword [esi]
dec dword [edi]
cmp dword [edi], 0
jg 0x69fac4
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax], ecx
setne cl
cmp dword [edi], ecx
jle 0x69fb58
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x69fb41
mov eax, dword [esi]
cmp eax, ecx
jb 0x69fb41
mov edx, dword [esi + 0xc]
test edx, edx
je 0x69fb48
mov ecx, dword [esi + 4]
sub eax, ecx
je 0x69fb3c
push edx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
add dword [esi + 0x10], eax
mov edx, dword [esi + 4]
mov dword [esi], edx
mov eax, dword [esi]
mov byte [eax], 0x20
inc dword [esi]
dec dword [edi]
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax], ecx
setne cl
cmp dword [edi], ecx
jg 0x69fb10
mov ebx, dword [eax]
test ebx, ebx
je 0x69fba7
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x69fb8f
mov eax, dword [esi]
cmp eax, ecx
jb 0x69fb8f
mov edx, dword [esi + 0xc]
test edx, edx
je 0x69fb95
mov ecx, dword [esi + 4]
sub eax, ecx
je 0x69fb8a
push edx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
add dword [esi + 0x10], eax
mov edx, dword [esi + 4]
mov dword [esi], edx
mov eax, dword [esi]
mov byte [eax], bl
inc dword [esi]
mov eax, dword [edi]
test eax, eax
jle 0x69fba2
dec eax
pop esi
mov dword [edi], eax
pop ebx
pop ebp
ret
jns 0x69fba7
inc eax
mov dword [edi], eax
pop esi
pop ebx
pop ebp
ret
Function at 0x69fbb0
Capabilities:
Write file on windows

Disassembly:
cmp dword [edi], 0
jge 0x69fbfc
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
lea esp, [esp]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x69fbed
mov eax, dword [esi]
cmp eax, ecx
jb 0x69fbed
mov edx, dword [esi + 0xc]
test edx, edx
je 0x69fbf4
mov ecx, dword [esi + 4]
sub eax, ecx
je 0x69fbe8
push edx
push eax
push 1
push ecx
call ebx
add esp, 0x10
add dword [esi + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esi], eax
mov ecx, dword [esi]
mov byte [ecx], 0x20
inc dword [esi]
inc dword [edi]
cmp dword [edi], 0
jl 0x69fbc0
pop ebx
ret

Function at 0x69fc00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
push esi
push edi
mov esi, eax
mov edi, edx
je 0x69fc2d
mov edx, dword [ebp + 8]
mov eax, edx
test ecx, ecx
je 0x69fc3a
lea esp, [esp]
dec ecx
cmp byte [eax], 0
je 0x69fc3a
inc eax
test ecx, ecx
jne 0x69fc20
jmp 0x69fc3a
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x69fc33
sub eax, edx
sub edi, eax
mov dword [ebp - 4], eax
mov dword [ebp + 0x10], edi
jns 0x69fc4b
xor edi, edi
mov dword [ebp + 0x10], edi
cmp dword [ebp + 0xc], 0
je 0x69fc56
neg edi
mov dword [ebp + 0x10], edi
test edi, edi
jle 0x69fc9e
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x69fc8e
mov eax, dword [esi]
cmp eax, ecx
jb 0x69fc8e
mov edx, dword [esi + 0xc]
test edx, edx
je 0x69fc95
mov ecx, dword [esi + 4]
sub eax, ecx
je 0x69fc89
push edx
push eax
push 1
push ecx
call ebx
add esp, 0x10
add dword [esi + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esi], eax
mov ecx, dword [esi]
mov byte [ecx], 0x20
inc dword [esi]
dec edi
test edi, edi
jg 0x69fc61
mov dword [ebp + 0x10], edi
pop ebx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push edx
call fcn.0069f990
add esp, 4
lea edi, [ebp + 0x10]
call fcn.0069fbb0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x69fd10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
movsx eax, byte [ebp + 0x10]
push esi
push edi
xor edi, edi
add eax, 0xffffffa8
mov esi, ecx
mov dword [ebp - 0x48], 0x6d2a74
mov dword [ebp - 0x54], edi
cmp eax, 0x20
ja case.0x69fd47.89
movzx eax, byte [eax + 0x69fee8]
jmp dword [eax*4 + 0x69fed0]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], 0xa
cmp ecx, edi
jg 0x69fdb1
jl 0x69fd65
cmp eax, edi
jae 0x69fdb1
neg eax
adc ecx, edi
neg ecx
mov dword [ebp - 0x54], 0x2d
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, eax
or edx, ecx
push ebx
jne 0x69fdc0
cmp dword [ebp + 0x28], edi
je 0x69fdc0
cmp dword [ebp + 0x24], edi
jmp 0x69fde2
mov dword [ebp - 0x50], 8
jmp 0x69fd78
mov dword [ebp - 0x50], 0xa
jmp 0x69fd78
mov dword [ebp - 0x48], 0x6b0514
mov dword [ebp - 0x50], 0x10
jmp 0x69fd78
cmp dword [ebp + 0x14], edi
je 0x69fd78
mov dword [ebp - 0x54], 0x2b
jmp 0x69fd78
xor edx, edx
push edx
mov edx, dword [ebp - 0x50]
push edx
push ecx
push eax
call fcn.006a91b0
mov dword [ebp - 0x58], ebx
mov ebx, dword [ebp - 0x48]
mov cl, byte [ecx + ebx]
mov byte [ebp + edi - 0x44], cl
mov ecx, edx
mov edx, eax
inc edi
or edx, ecx
jne 0x69fdc0
mov eax, dword [ebp + 0x24]
sub eax, edi
mov ebx, 0
sets bl
mov dword [ebp - 0x48], edi
dec ebx
and ebx, eax
mov eax, dword [ebp + 0x1c]
sub eax, ebx
sub eax, edi
mov dword [ebp - 0x4c], eax
jns 0x69fe08
xor eax, eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp + 0x18], 0
je 0x69fe13
neg eax
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 0x20]
lea eax, [ebp - 0x54]
push eax
mov eax, esi
lea edi, [ebp - 0x4c]
call fcn.0069fa90
add esp, 4
test ebx, ebx
jle 0x69fe6d
jmp 0x69fe30
mov ecx, dword [esi + 8]
dec ebx
test ecx, ecx
je 0x69fe62
mov eax, dword [esi]
cmp eax, ecx
jb 0x69fe62
mov edx, dword [esi + 0xc]
test edx, edx
je 0x69fe69
mov ecx, dword [esi + 4]
sub eax, ecx
je 0x69fe5d
push edx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
add dword [esi + 0x10], eax
mov ecx, dword [esi + 4]
mov dword [esi], ecx
mov edx, dword [esi]
mov byte [edx], 0x30
inc dword [esi]
test ebx, ebx
jg 0x69fe30
mov edi, dword [ebp - 0x48]
test edi, edi
jle 0x69feb5
mov ecx, dword [esi + 8]
movsx ebx, byte [ebp + edi - 0x45]
dec edi
test ecx, ecx
je 0x69feab
mov eax, dword [esi]
cmp eax, ecx
jb 0x69feab
mov edx, dword [esi + 0xc]
test edx, edx
je 0x69feb1
mov ecx, dword [esi + 4]
sub eax, ecx
je 0x69fea6
push edx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
add dword [esi + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esi], eax
mov ecx, dword [esi]
mov byte [ecx], bl
inc dword [esi]
test edi, edi
jg 0x69fe74
lea edi, [ebp - 0x4c]
call fcn.0069fbb0
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
Function at 0x69ff10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
dec edi
mov esi, eax
mov dword [ebp - 4], edi
jns 0x69ff26
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], 0
je 0x69ff31
neg edi
mov dword [ebp - 4], edi
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
test edi, edi
jle 0x69ff7c
jmp 0x69ff40
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x69ff6d
mov eax, dword [esi]
cmp eax, ecx
jb 0x69ff6d
mov edx, dword [esi + 0xc]
test edx, edx
je 0x69ff74
mov ecx, dword [esi + 4]
sub eax, ecx
je 0x69ff68
push edx
push eax
push 1
push ecx
call ebx
add esp, 0x10
add dword [esi + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esi], eax
mov ecx, dword [esi]
mov byte [ecx], 0x20
inc dword [esi]
dec edi
test edi, edi
jg 0x69ff40
mov dword [ebp - 4], edi
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x69ffa9
mov eax, dword [esi]
cmp eax, ecx
jb 0x69ffa9
mov edx, dword [esi + 0xc]
test edx, edx
je 0x69ffb2
mov ecx, dword [esi + 4]
sub eax, ecx
je 0x69ffa4
push edx
push eax
push 1
push ecx
call ebx
add esp, 0x10
add dword [esi + 0x10], eax
mov edx, dword [esi + 4]
mov dword [esi], edx
mov eax, dword [esi]
mov cl, byte [ebp + 8]
mov byte [eax], cl
inc dword [esi]
lea edi, [ebp - 4]
call fcn.0069fbb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6a0c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
test eax, eax
jne 0x6a0c6d
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0x16
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
push esi
lea esi, [ebp - 0x404]
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x414], esi
push edx
lea eax, [ebp - 0x418]
lea esi, [ebp - 5]
push eax
mov dword [ebp - 0x410], esi
mov dword [ebp - 0x408], 0
call fcn.006a00e0
add esp, 8
pop esi
test eax, eax
jne 0x6a0c50
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
sub eax, ecx
je 0x6a0cd8
mov edx, dword [ebp - 0x40c]
push edx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
add dword [ebp - 0x408], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
Function at 0x6a1120
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [str.msvcrt], edi
je 0x6a11c8
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, 0x82ae20
xor esi, esi
cmp dword [esi + 0x82ae28], 0
jne 0x6a119e
cmp dword [esi + 0x82ae24], 0
jne 0x6a11ad
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esi + 0x82ae24], eax
test eax, eax
jne 0x6a1173
mov dword [esi + 0x82ae24], 0xffffffff
jmp 0x6a11ad
push 0x772dc4
push eax
call ebx
mov dword [esi + 0x82ae28], eax
test eax, eax
jne 0x6a119e
mov ecx, dword [esi + 0x82ae24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x82ae24], 0xffffffff
jmp 0x6a11ad
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x82ae28]
push edx
call eax
add esp, 4
inc edi
lea esi, [edi + edi*2]
add esi, esi
add esi, esi
cmp dword [esi + 0x82ae20], 0
lea eax, [esi + 0x82ae20]
jne 0x6a1142
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.MSVCR100.dll__strdup]
mov esi, eax
add esp, 4
test esi, esi
je 0x6a11f5
push 0x3d
push esi
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
jne 0x6a11ff
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax], 0
inc eax
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x6a1208
sub ecx, edi
je 0x6a121f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x6a11eb
push esi
call dword [sym.imp.MSVCR100.dll_free]
push ebx
call dword [sym.imp.MSVCR100.dll__putenv]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6a8ca2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x82aea4]
jne 0x6a8cac
repz ret
jmp fcn.006a98ba
Function at 0x6bd370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x6bd38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x6e6074
push ecx
mov edi, eax
call fcn.006d1198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6bd3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.006d102e
push esi
call fcn.006d0fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x6c0850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x6c08ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x6eb720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6c08ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.006d11e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x6c08ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x6eb720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6c092a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.006d2082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x6c0957
mov word [eax], si
add eax, 2
push eax
call fcn.006d2030
add esp, 4
jmp 0x6c0959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x6c08ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6c08b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x6c0ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x6c1080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6c10c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x6e6458
push ecx
call fcn.006d11e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006d11e1
add esp, 0x10
jmp 0x6c10d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.006d120b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.006d0dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.006c1050
mov eax, dword [0x6eb728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x6c113b
push esi
call fcn.006c0fb0
add esp, 4
mov dword [0x6eb728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x6c114c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.006c0ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x6c4440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6c44b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x6c448e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6c4471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6c447e
add edx, ecx
cmp ebx, edx
jb 0x6c448a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6c4467
xor ecx, ecx
jmp 0x6c44a2
test eax, eax
jne 0x6c4492
xor ecx, ecx
jmp 0x6c44a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.006c43c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x6c48f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x6c4921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x6c4946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x6c496e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x6c4993
push ecx
push esi
call fcn.006c44c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x6c5c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x6c5c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x6c5c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x6c5c38
add edx, eax
cmp ebx, edx
jb 0x6c5c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x6c5c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x6c5c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x6c5c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x6c5cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6c5c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6c5ca8
add edx, ecx
cmp ebx, edx
jb 0x6c5cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6c5c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x6c5f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.006d2145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x6c5ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x6c5fdd
lea eax, [esp + 0x18]
push eax
jmp 0x6c5fe2
push 0x6eb720
call fcn.006d1fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x6c5fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x6c5f40
push 4
push ecx
push eax
call fcn.006d243f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret