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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1009f084]
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.10061b2b
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.10061b2b
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 0x1006e73c
cmp word [ecx], dx
je 0x1006e73c
mov eax, dword [0x10084584]
push edi
dec eax
push eax
push 0x10084470
call fcn.1006e664
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1006e7af
cmp word [eax], dx
je 0x1006e7af
mov eax, dword [edi]
test eax, eax
je 0x1006e760
cmp word [eax], dx
je 0x1006e760
lea eax, [ebp - 0x10]
push eax
call fcn.1006e047
jmp 0x1006e769
lea eax, [ebp - 0x10]
push eax
call fcn.1006e0e2
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1006e7d9
mov eax, dword [0x1008446c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10084160
call fcn.1006e664
add esp, 0xc
test al, al
je 0x1006e7d9
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1006e7a4
cmp word [eax], di
je 0x1006e7a4
lea eax, [ebp - 0x10]
push eax
call fcn.1006e047
pop ecx
jmp 0x1006e7db
lea eax, [ebp - 0x10]
push eax
call fcn.1006e0e2
jmp 0x1006e7a1
mov eax, dword [edi]
test eax, eax
je 0x1006e7c6
cmp word [eax], dx
je 0x1006e7c6
lea eax, [ebp - 0x10]
push eax
call fcn.1006dffc
pop ecx
jmp 0x1006e7d9
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 0x1006e8a4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1006e4e9
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1006e8a4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1006e8a4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1006e8a4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1006e831
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1006626a
test ebx, ebx
je 0x1006e89f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1006626a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1006e8a4
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 0x1006e8a4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10072811
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1006e8a6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003bc25
leave
ret
Function at 0x10072a31
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.100729ad
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10072ba0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10072ba0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10072b55
jg 0x10072a8d
test eax, eax
je 0x10072b4b
push 1
push 0x1000
call fcn.1005edf5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10072ab0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10072b42
push 0x8000
push ebx
call fcn.100728de
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10072ad9
jg 0x10072ad4
cmp ecx, 0x1000
jb 0x10072ad9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10066ee0
add esp, 0x10
cmp eax, 0xffffffff
je 0x10072b1e
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 0x10072ad4
jl 0x10072b05
test ecx, ecx
jne 0x10072ac6
push dword [ebp - 0xc]
push ebx
call fcn.100728de
push esi
call fcn.1005f40b
add esp, 0xc
xor ebx, ebx
jmp 0x10072bae
cmp byte [edi + 0x24], 0
je 0x10072b35
cmp dword [edi + 0x20], 5
jne 0x10072b35
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10072b40
mov ebx, dword [edi + 0x18]
jmp 0x10072b42
xor ebx, ebx
push esi
call fcn.1005f40b
pop ecx
jmp 0x10072bae
test ecx, ecx
jg 0x10072b17
jl 0x10072b55
test eax, eax
jae 0x10072b17
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10068393
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10072b75
cmp byte [edi + 0x1c], 0
je 0x10072b17
jmp 0x10072ba6
push ebx
call fcn.1006f9a2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10072b17
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 0x10072bae
cmp byte [edi + 0x1c], 0
je 0x10072bab
mov ebx, dword [edi + 0x18]
jmp 0x10072bae
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10068393
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10075f10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b05e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1009f084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1009fb74]
cmp eax, 0xffffffff
jne 0x10075f46
xor ebx, ebx
jmp 0x10075f4f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10075f91
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x10075fd0
test esi, esi
jne 0x10075fd4
push 0x10075a10
push 0x100a3f94
call fcn.10075580
mov eax, dword [0x1009fb74]
add esp, 8
cmp eax, 0xffffffff
je 0x10075f91
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x10075fbe
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x10075fbe
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10076016
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x10075fff
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10075fd4
cmp dword [ebx + 0x18], 0
je 0x10075f60
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1007603d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1007603d
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10075a30
cmp dword [ebx + 0x18], 0
jne 0x10076020
jmp 0x10075f60
Function at 0x404290
Capabilities:
Set file attributes

Disassembly:
push esi
push ebx
sub esp, 0x34
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
test esi, esi
js 0x4042d1
lea eax, [esp + 0x20]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.cygwin1.dll_utimes
test eax, eax
jne 0x4042e0
add esp, 0x34
pop ebx
pop esi
ret
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.Failed_to_set_filetime__lld_on__s:__s
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.0040b870
add esp, 0x34
pop ebx
pop esi
ret
Function at 0x40b6d0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov ebp, ecx
push esi
push ebx
mov ebx, eax
mov edi, edx
sub esp, 0x2c
mov dword [esp], edx
mov esi, dword [esp + 0x40]
call sub.cygwin1.dll_strlen
test bl, bl
mov dword [esp + 0x10], eax
je 0x40b700
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
mov dword [esp + 4], esi
call sub.cygcurl_4.dll_curl_mvaprintf
test eax, eax
mov ebp, eax
mov dword [esp + 0x1c], eax
je 0x40b6f1
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov ebx, eax
mov eax, 0x4f
sub eax, dword [esp + 0x10]
test ebx, ebx
mov dword [esp + 0x14], eax
je 0x40b7da
mov dword [esp + 0x18], edi
lea esi, [esi]
mov eax, dword [0x42e528]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_fputs
cmp dword [esp + 0x14], ebx
jae 0x40b800
mov ecx, 0x4e
sub ecx, dword [esp + 0x10]
movzx eax, byte [ebp + ecx]
cmp al, 9
je 0x40b7f0
cmp al, 0x20
je 0x40b7f0
test ecx, ecx
je 0x40b830
mov eax, ecx
nop
sub eax, 1
movzx edx, byte [ebp + eax]
cmp dl, 0x20
je 0x40b7f2
cmp dl, 9
je 0x40b7f2
test eax, eax
jne 0x40b780
mov edi, dword [esp + 0x14]
mov esi, ecx
not esi
mov eax, dword [0x42e528]
mov dword [esp], ebp
add ebp, edi
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
mov eax, dword [0x42e528]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_fputc
add ebx, esi
jne 0x40b740
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00419f28
mov eax, ecx
mov esi, eax
test eax, eax
lea edi, [eax + 1]
not esi
jne 0x40b79e
jmp 0x40b796
mov eax, dword [0x42e528]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.cygwin1.dll_fputs
mov eax, dword [0x42e528]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_fputc
jmp 0x40b7da
mov edi, 1
mov esi, 0xffffffff
jmp 0x40b79e

Function at 0x40b8a0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
test esi, esi
je 0x40b8f6
lea edi, [esp + 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], str.curl:
call sub.cygwin1.dll_fwrite
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.cygcurl_4.dll_curl_mvfprintf
mov dword [esp + 4], ebx
mov dword [esp], 0xa
call sub.cygwin1.dll_fputc
mov dword [esp], ebx
mov dword [esp + 4], str.curl:_try_curl___help_for_more_information_n
call sub.cygcurl_4.dll_curl_mfprintf
add esp, 0x10
pop ebx
pop esi
pop edi
ret
Function at 0x412ea0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
mov eax, 0x1020
push ebx
call fcn.00419f98
sub esp, eax
mov ebx, dword [esp + 0x1038]
test ebx, ebx
je 0x412f61
lea edi, [esp + 0x10]
mov dword [esp + 4], 0x40000000
lea esi, [esp + 0x20]
mov dword [esp], edi
call fcn.00419880
jmp 0x412ee5
and edx, 0x20
jne 0x412f33
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.cygwin1.dll_fread
movzx edx, word [ebx + 0xc]
test dl, 0x40
jne 0x412f90
test eax, eax
je 0x412ee0
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00419960
test eax, eax
jne 0x412fc1
movzx edx, word [ebx + 0xc]
and edx, 0x20
je 0x412ee5
mov dword [esp], edi
call fcn.00419a80
mov ecx, dword [esp + 0x1034]
mov dword [ecx], eax
mov dword [esp], edi
call fcn.00419a60
mov ecx, dword [esp + 0x1030]
mov dword [ecx], eax
add esp, 0x1020
xor eax, eax
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x1034]
mov dword [eax], 0
mov eax, dword [esp + 0x1030]
mov dword [eax], 0
xor eax, eax
add esp, 0x1020
pop ebx
pop esi
pop edi
ret
mov dword [esp], edi
call fcn.004198a0
mov eax, dword [esp + 0x1034]
mov dword [eax], 0
mov eax, dword [esp + 0x1030]
mov dword [eax], 0
add esp, 0x1020
mov eax, 0x15
pop ebx
pop esi
pop edi
ret
mov eax, 0xe
jmp 0x412f7d
Function at 0x4183b0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [esp + 0x60]
mov dword [esp], 0x7b
mov ebp, dword [esp + 0x64]
mov dword [esp + 4], ebx
call sub.cygwin1.dll_fputc
mov dword [esp + 0x28], 0
mov esi, esi
lea edi, [edi]
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.cygcurl_4.dll_curl_easy_nextheader
test eax, eax
mov dword [esp + 0x3c], eax
je 0x4185d0
mov edi, dword [eax + 8]
cmp edi, 1
jbe 0x418530
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x4183e0
mov ecx, dword [esp + 0x28]
mov eax, dword [eax]
test ecx, ecx
mov dword [esp + 0x2c], eax
je 0x418450
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x42822e
call sub.cygwin1.dll_fwrite
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], 1
mov esi, 1
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00418230
mov dword [esp + 4], ebx
mov dword [esp], 0x3a
call sub.cygwin1.dll_fputc
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp], 0x5b
mov dword [esp + 0x28], eax
call sub.cygwin1.dll_fputc
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], 0
mov eax, dword [eax + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00418230
mov dword [esp + 4], ebx
mov dword [esp], 0x2c
call sub.cygwin1.dll_fputc
lea eax, [esp + 0x3c]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 1
mov dword [esp + 8], esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.cygcurl_4.dll_curl_easy_header
test eax, eax
jne 0x418517
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], 0
add esi, 1
mov eax, dword [eax + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00418230
cmp edi, esi
jne 0x4184b2
mov dword [esp + 4], ebx
mov dword [esp], 0x5d
call sub.cygwin1.dll_fputc
jmp 0x4183e0
mov edx, dword [esp + 0x28]
test edx, edx
je 0x41855c
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x42822e
call sub.cygwin1.dll_fwrite
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], 1
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00418230
mov dword [esp + 4], ebx
mov dword [esp], 0x3a
call sub.cygwin1.dll_fputc
mov dword [esp + 4], ebx
mov dword [esp], 0x5b
call sub.cygwin1.dll_fputc
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], 0
mov eax, dword [eax + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00418230
mov dword [esp + 4], ebx
mov dword [esp], 0x5d
call sub.cygwin1.dll_fputc
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
jmp 0x4183e0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x428231
call sub.cygwin1.dll_fwrite
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402348
Capabilities:
Create service
Persist via windows service

Disassembly:
push 8
mov eax, 0x41acd8
call fcn.00419e23
mov edi, edx
mov ebx, ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00402bca
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00402bca
xor ecx, ecx
add eax, 0x10
push ecx
push ecx
push ecx
push ecx
push ecx
push edi
push ecx
push 2
push 0x10
push 0xf01ff
push eax
push esi
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00402aae
lea ecx, [ebp - 0x14]
call fcn.00402aae
lea ecx, [ebp + 8]
call fcn.00402aae
lea ecx, [ebp + 0xc]
call fcn.00402aae
mov eax, esi
call fcn.00419dec
ret
Function at 0x4023ca
Capabilities:
Get common file path

Disassembly:
push 0x860
mov eax, 0x41ad14
call fcn.00419e57
lea eax, [ebp - 0x85c]
mov esi, 0x400
push eax
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.Okoiflel.exe
lea eax, [ebp - 0x85c]
push esi
push eax
call fcn.0040d42d
add esp, 0xc
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x402597
push 0x50
pop ecx
push 0x68
pop eax
push 0x72
mov word [ebp - 0x5a], ax
pop eax
push 0x61
mov word [ebp - 0x58], ax
pop eax
push 0x73
pop edx
push 0x65
pop esi
push 0x20
mov word [ebp - 0x56], ax
pop eax
push 0x72
mov word [ebp - 0x50], ax
pop eax
push 0x6f
mov word [ebp - 0x4c], ax
mov word [ebp - 0x5c], cx
mov word [ebp - 0x4e], cx
pop ecx
push 0x66
pop eax
push 0x72
mov word [ebp - 0x48], ax
pop eax
push 0x32
mov word [ebp - 0x52], si
mov word [ebp - 0x46], si
pop esi
push 0x33
mov word [ebp - 0x54], dx
mov word [ebp - 0x44], dx
mov word [ebp - 0x42], dx
pop edx
push 0x31
mov word [ebp - 0x3e], ax
mov word [ebp - 0x4a], cx
mov word [ebp - 0x40], cx
pop ecx
push 0x30
pop eax
push 0x35
mov word [ebp - 0x32], ax
pop eax
push 0x34
mov word [ebp - 0x2e], ax
mov word [ebp - 0x28], ax
pop eax
push 0x20
mov word [ebp - 0x26], ax
pop eax
push 0x55
mov word [ebp - 0x24], ax
pop eax
push 0x70
mov word [ebp - 0x22], ax
pop eax
push 0x64
mov word [ebp - 0x20], ax
pop eax
push 0x61
mov word [ebp - 0x1e], ax
pop eax
push 0x74
mov word [ebp - 0x1c], ax
pop eax
mov word [ebp - 0x3c], si
mov word [ebp - 0x3a], dx
mov word [ebp - 0x38], cx
mov word [ebp - 0x36], si
mov word [ebp - 0x34], si
mov word [ebp - 0x30], cx
mov word [ebp - 0x2c], si
mov word [ebp - 0x2a], dx
mov word [ebp - 0x1a], ax
push 0x65
pop eax
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x864]
push 0x72
pop eax
mov word [ebp - 0x16], ax
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x5c]
push eax
call fcn.00402a03
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x860]
call fcn.00402a03
push ecx
mov byte [ebp - 4], 1
mov esi, esp
mov ecx, dword [ebp - 0x860]
add ecx, 0xfffffff0
mov dword [ebp - 0x86c], esp
mov dword [ebp - 0x868], esi
call fcn.00402bca
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 2
mov esi, esp
mov ecx, dword [ebp - 0x864]
mov dword [ebp - 0x868], esi
lea ecx, [ecx - 0x10]
call fcn.00402bca
add eax, 0x10
lea edx, [ebp - 0x85c]
mov dword [esi], eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00402348
pop ecx
pop ecx
test eax, eax
je 0x402581
push eax
inc edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x860]
call fcn.00402aae
lea ecx, [ebp - 0x864]
call fcn.00402aae
mov eax, edi
call fcn.00419e01
ret
Function at 0x402fee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403049
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40303a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x403036
cmp esi, ecx
jae 0x40303a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x403024
cmp esi, ecx
jb 0x40303e
xor eax, eax
jmp 0x403048
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403d3c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x403d4e
push 0xd
pop eax
jmp 0x403d7f
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x403d57
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x404ed8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x41ae6c
call fcn.00419ec5
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x404f55
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x404f55
call fcn.00403712
mov esi, eax
jmp 0x40505b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x404f78
call fcn.00403712
jmp 0x40504e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x404f6e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x404fab
mov esi, 0x8007000e
jmp 0x405050
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x404fdf
cmp eax, 0xffffffff
ja 0x404fdf
cmp eax, 0x400
jbe 0x404fd1
push eax
lea ecx, [ebp - 0x418]
call fcn.004036ed
jmp 0x404ffd
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x404ffd
push 0x80070216
call fcn.00404229
mov eax, 0x404fef
ret
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x404fa1
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x404f6e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00404d81
mov esi, eax
test edi, edi
je 0x40505b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x405074
lea ecx, [ebp - 0x418]
call fcn.004036d8
mov eax, esi
call fcn.00419e12
ret 0x10