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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x72f610]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5a1dc7
cmp byte [ebx], 0xa
jne 0x5a1dc7
or byte [edi + eax + 0x28], 4
jmp 0x5a1dcc
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x5a1ecb
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5a1eae
inc eax
cmp dl, 0xd
je 0x5a1df8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5a1e1e
cmp eax, ecx
jae 0x5a1e2c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x5a1de0
jmp 0x5a1ecb
push 0
lea eax, [ebp - 0x10]
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 0x5a1ea9
cmp dword [ebp - 0x10], 0
je 0x5a1ea9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x72f610]
test byte [eax + edi + 0x28], 0x48
je 0x5a1e83
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5a1e6e
mov byte [esi], dl
jmp 0x5a1e7f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x72f610]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5a1ecb
cmp byte [ebp - 1], 0xa
jne 0x5a1e92
cmp esi, ebx
jne 0x5a1e92
mov byte [esi], 0xa
jmp 0x5a1eca
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0059e111
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5a1ecb
mov byte [esi], 0xd
jmp 0x5a1eca
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x72f610]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5a1ec8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5a1ecb
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5a1ed4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x72f610]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5a1f1a
cmp word [ebx], dx
jne 0x5a1f1a
or byte [eax + edi + 0x28], 4
jmp 0x5a1f1f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x5a2082
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x5a2062
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5a1f60
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5a1f96
cmp eax, edx
jae 0x5a1fa4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x5a1f3b
jmp 0x5a2082
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a205d
cmp dword [ebp - 0x18], 0
je 0x5a205d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x72f610]
test byte [eax + edi + 0x28], 0x48
je 0x5a2033
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x5a1ff7
mov word [esi], cx
jmp 0x5a202e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x72f610]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x72f610]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x72f610]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5a2082
pop eax
cmp word [ebp - 4], ax
jne 0x5a2043
cmp esi, ebx
jne 0x5a2043
mov word [esi], ax
jmp 0x5a207f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0059e111
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5a2082
push 0xd
pop eax
jmp 0x5a203e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x72f610]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5a207c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5a2082
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5a5ad6
Capabilities:
Parse pe header

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

Function at 0x5a964a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6ba6b0
push 0x6ba6a8
push str.FlsAlloc
push 0x1f
call fcn.005a9475
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5a967e
push dword [ebp + 8]
mov ecx, esi
call dword [0x5cb3f0]
call esi
jmp 0x5a9684
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5a96c8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6ba6c0
push 0x6ba6b8
push str.FlsGetValue
push 0x21
call fcn.005a9475
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5a96ff
push dword [ebp + 8]
mov ecx, esi
call dword [0x5cb3f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5a9707
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6ba6c8
push 0x6ba6c0
push str.FlsSetValue
push 0x22
call fcn.005a9475
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5a9741
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5cb3f0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x5acf43
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005aca5e
Function at 0x5b18df
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 0x5b197c
push ebx
push esi
call fcn.005b18a8
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.005ac792
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5b1929
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5b197b
push edi
push eax
call fcn.005a9d3c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5b1949
call fcn.005a9196
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5b197a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005ac792
add esp, 0x20
test eax, eax
jne 0x5b1968
push edi
call fcn.005a9196
jmp 0x5b1970
push ebx
call fcn.005a9196
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 0x5b197f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5b1990
pop esi
ret
push ebx
push edi
push esi
call fcn.005b18a8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005a9d3c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5b19b8
push ebx
push esi
push edi
call fcn.00597bd0
add esp, 0xc
push 0
call fcn.005a9196
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5b3b1f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005aa0c9
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5b3b8e
cmp esi, dword [ebp - 4]
je 0x5b3b89
cmp dword [ebp + 0xc], 0
je 0x5b3b89
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5b3b66
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005b365c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5b3b90
xor eax, eax
inc eax
jmp 0x5b3b90
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5b3bf5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x72b01c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005aa0c9
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005aa0c9
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5b3c6c
cmp word [ecx], dx
je 0x5b3c6c
mov eax, dword [0x6c17dc]
push edi
dec eax
push eax
push 0x6c16c8
call fcn.005b3b94
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5b3cdf
cmp word [eax], dx
je 0x5b3cdf
mov eax, dword [edi]
test eax, eax
je 0x5b3c90
cmp word [eax], dx
je 0x5b3c90
lea eax, [ebp - 0x10]
push eax
call fcn.005b3562
jmp 0x5b3c99
lea eax, [ebp - 0x10]
push eax
call fcn.005b35fd
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5b3d09
mov eax, dword [0x6c16c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x6c13b8
call fcn.005b3b94
add esp, 0xc
test al, al
je 0x5b3d09
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5b3cd4
cmp word [eax], di
je 0x5b3cd4
lea eax, [ebp - 0x10]
push eax
call fcn.005b3562
pop ecx
jmp 0x5b3d0b
lea eax, [ebp - 0x10]
push eax
call fcn.005b35fd
jmp 0x5b3cd1
mov eax, dword [edi]
test eax, eax
je 0x5b3cf6
cmp word [eax], dx
je 0x5b3cf6
lea eax, [ebp - 0x10]
push eax
call fcn.005b3517
pop ecx
jmp 0x5b3d09
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5b3dd4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005b3a19
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5b3dd4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5b3dd4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5b3dd4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5b3d61
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005a9847
test ebx, ebx
je 0x5b3dcf
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005a9847
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5b3dd4
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5b3dd4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005b8bed
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5b3dd6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00594d69
leave
ret
Function at 0x5b8d05
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005b8c81
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5b8e74
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5b8e74
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5b8e29
jg 0x5b8d61
test eax, eax
je 0x5b8e1f
push 1
push 0x1000
call fcn.005a9139
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5b8d84
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5b8e16
push 0x8000
push ebx
call fcn.005a6a2e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5b8dad
jg 0x5b8da8
cmp ecx, 0x1000
jb 0x5b8dad
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005a2ff1
add esp, 0x10
cmp eax, 0xffffffff
je 0x5b8df2
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 0x5b8da8
jl 0x5b8dd9
test ecx, ecx
jne 0x5b8d9a
push dword [ebp - 0xc]
push ebx
call fcn.005a6a2e
push esi
call fcn.005a9196
add esp, 0xc
xor ebx, ebx
jmp 0x5b8e82
cmp byte [edi + 0x24], 0
je 0x5b8e09
cmp dword [edi + 0x20], 5
jne 0x5b8e09
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5b8e14
mov ebx, dword [edi + 0x18]
jmp 0x5b8e16
xor ebx, ebx
push esi
call fcn.005a9196
pop ecx
jmp 0x5b8e82
test ecx, ecx
jg 0x5b8deb
jl 0x5b8e29
test eax, eax
jae 0x5b8deb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0059e111
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5b8e49
cmp byte [edi + 0x1c], 0
je 0x5b8deb
jmp 0x5b8e7a
push ebx
call fcn.005a3732
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5b8deb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5b8e82
cmp byte [edi + 0x1c], 0
je 0x5b8e7f
mov ebx, dword [edi + 0x18]
jmp 0x5b8e82
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0059e111
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10019c3
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
test eax, eax
jne 0x10019f1
push esi
push 0x10
push esi
push esi
push 0x4f5
jmp 0x1001a46
lea eax, [ebp - 0x10]
push eax
push 0x1001274
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
push esi
jne 0x1001a30
push 0x10
push esi
push esi
push 0x4f6
jmp 0x1001a46
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001a50
push esi
push 0x10
push esi
push esi
push 0x4f7
push esi
call fcn.01003ebe
xor eax, eax
jmp 0x1001a53
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x1001a5b
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [0x100b2e0], 0
je 0x1001aa0
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001aa0
push 0x100b2e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x100342e
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100b2d0]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], ebx
push ebx
lea eax, [ebp - 0x108]
push 0x1001368
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp - 0x110]
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
push esi
call fcn.010066cf
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
je 0x10034af
cmp ebx, 0x190
jl 0x1003458
jmp 0x10034cf
push 0
push esi
call edi
test eax, eax
je 0x10034c8
xor eax, eax
inc eax
mov dword [0x100c880], eax
mov dword [ebp - 0x10c], eax
jmp 0x10034fd
and dword [ebp - 0x10c], 0
push esi
push 0
push 0x1001364
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x10034fd
push esi
mov dword [ebp - 0x10c], 1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop edi
pop esi
pop ebx
call fcn.010064de
leave
ret 0xc

Function at 0x1003ac7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100b2d0]
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edi, edi
push edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
push 0x1001350
push eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], edi
call ebx
add esp, 0xc
push 0xa
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1003ba0
push esi
jmp 0x1003b1a
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x1003b86
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 4]
lea edi, [esi + 8]
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi + 1]
push eax
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
call dword [ebp - 0x28]
test eax, eax
push esi
je 0x1003b95
call dword [sym.imp.KERNEL32.dll_FreeResource]
inc dword [ebp - 0x20]
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push 0x1001350
push eax
call ebx
add esp, 0xc
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x1003b18
jmp 0x1003b9f
mov dword [0x100ba5c], 0x80070714
mov dword [ebp - 0x1c], edi
jmp 0x1003b9f
and dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
pop edi
pop ebx
call fcn.010064de
leave
ret 4
Function at 0x1003ccc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100b2d0]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x100bc44
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.010066cf
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1003d30
test al, 0x10
jne 0x1003d30
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x1003d37
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.010064de
leave
ret 4

Function at 0x10044bd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 0x14
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x1004507
push ebx
push 0x10
push ebx
push ebx
push 0x4b5
push ebx
call fcn.01003ebe
call fcn.01003aa1
mov dword [0x100ba5c], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10013e4
push esi
push edi
call fcn.010066cf
push ebx
push 0x4000080
push 1
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 0xffffffff
je 0x10044f4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10044f4
test al, 0x10
je 0x10044f4
xor eax, eax
mov dword [0x100ba5c], ebx
inc eax
jmp 0x1004500
Function at 0x10052d4
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x100b2d0]
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
je 0x100537f
mov edi, 0x104
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.0100342e
test eax, eax
je 0x10053e4
lea eax, [ebp - 0x108]
push eax
mov esi, 0x100bc44
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100c494], 0x20
je 0x1005371
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x12c]
sub eax, ebx
je 0x1005365
dec eax
je 0x100535e
dec eax
je 0x1005357
dec eax
jne 0x1005371
push 0x1001420
jmp 0x100536a
push 0x1001418
jmp 0x100536a
push 0x1001410
jmp 0x100536a
push 0x1001408
push edi
push esi
call fcn.010066cf
push 0x1001271
push edi
push esi
call fcn.010066cf
jmp 0x100538c
push eax
mov esi, 0x100bc44
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.010044bd
xor edi, edi
inc edi
test eax, eax
jne 0x10053ab
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10053c3
mov dword [0x100c880], edi
push ebx
push dword [ebp + 0x10]
push esi
call fcn.0100456a
test eax, eax
je 0x10053cf
mov dword [0x100ba5c], ebx
mov eax, edi
jmp 0x10053e6
call fcn.01003aa1
mov dword [0x100ba5c], eax
jmp 0x10053e4
cmp dword [0x100c880], ebx
je 0x10053e4
push esi
mov dword [0x100c880], ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010064de
leave
ret 0xc