joyce8/EMBER2024-capa huggingface dataset:
Function at 0x700eed6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x700eee5
pop dword [ebp - 0x24]
mov eax, 0x700eee5
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x62af296c
add dword [ebp - 0x34], 0xeba31bdf
mov dword [ebp - 0x30], 0x37a97b50
sub dword [ebp - 0x30], 0x5762f0b
mov dword [ebp - 0x2c], 0xa7cb5d77
sub dword [ebp - 0x2c], 0x5b7f1949
mov dword [ebp - 0x28], 0x5a35c8a7
add dword [ebp - 0x28], 0xa5ca3759
lea eax, [ebp - 0x34]
push eax
mov eax, 0xb51b1616
sub eax, 0xae19e5e6
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x8287cb9f
sub dword [ebp - 0x34], 0xe156249
mov dword [ebp - 0x30], 0x9d790a07
sub dword [ebp - 0x30], 0x5c0ca892
mov dword [ebp - 0x2c], 0x20950a09
add dword [ebp - 0x2c], 0x42da6263
mov dword [ebp - 0x28], 0xaae921aa
sub dword [ebp - 0x28], 0xaae921aa
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x12199136
add eax, 0xf4e79efe
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3a4de
push 0
call eax
mov ecx, 0x93c56e0c
sub ecx, 0x93c52708
mov edi, eax
mov ebx, 0xb12cfdd0
sub ebx, 0xaa2afbd0
add ebx, dword [ebp - 0x24]
mov esi, 0x4293c4f7
sub esi, 0xeecf45d5
xor dword [ebp - 0xc], 0xb489df5e
mov edx, dword [ebx]
add dword [ebp - 0x10], 0xdc50821a
add edx, esi
sub dword [ebp - 0x20], 0xe18f5ef7
mov dword [edi], edx
xor dword [ebp - 0x14], 0xcafab560
add edi, 0xf07be48f
add edi, 0xf841b75
add ebx, 0x80c9e071
sub ebx, 0x80c9e06d
loop 0x700f002
add eax, 0x10ee3
xor ebx, ebx
add ebx, eax
add eax, 0x206ef8f0
sub eax, 0x206ef8eb
mov ecx, 0x428bd93
sub ecx, 0xfd28bd93
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x18001501
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea edi, [ebp - 4]
mov eax, ebx
call fcn.18002274
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
je 0x180015d4
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 1
push str.EnableLogging
mov esi, str.LoggingSettings
push esi
call edi
push dword [ebp - 4]
test eax, eax
push 1
push str.ShowTime
setne al
push esi
mov byte [ebx + 0x7c], al
call edi
push dword [ebp - 4]
test eax, eax
push 1
push str.LogToFile
setne al
push esi
mov byte [ebx + 0x7e], al
call edi
push dword [ebp - 4]
test eax, eax
push 1
push str.LogToOutputDebug
setne al
push esi
mov byte [ebx + 0x7f], al
call edi
push dword [ebp - 4]
test eax, eax
push 1
push str.AppendToFile
setne al
push esi
mov byte [ebx + 0x84], al
call edi
test eax, eax
setne al
mov byte [ebx + 0x85], al
lea eax, [ebx + 0x80]
push 0x104
lea edi, [ebp - 0x20]
call fcn.18002f83
push dword [ebp - 4]
push 0x104
push dword [eax + 4]
push str.DropboxUpdate.log
push str.LogFilePath
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
call fcn.18003fe5
jmp 0x180015ff
lea eax, [ebx + 0x80]
push str.DropboxUpdate.log
push eax
mov byte [ebx + 0x7c], 1
mov byte [ebx + 0x7e], 1
mov byte [ebx + 0x7f], 1
mov byte [ebx + 0x84], 1
mov byte [ebx + 0x85], 1
call fcn.1800422d
xor eax, eax
mov word [ebp - 0x30], ax
lea edi, [ebp - 0x2e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x24]
push eax
movzx eax, word [ebp - 0x26]
push eax
movzx eax, word [ebp - 0x28]
push eax
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x30]
push eax
push str.__04d__02d__02d__02d__02d__02d__03d__u
lea eax, [ebx + 0x80]
call fcn.180033ce
add esp, 0x24
cmp byte [ebx + 0x7d], 0
je 0x1800165e
mov byte [ebx + 0x7e], 1
and dword [ebp - 8], 0
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x180f6bbc]
mov eax, dword [eax + 0x180f6bb8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x180016ca
cmp ecx, 0xb
jge 0x180016ca
push 2
pop esi
lea edi, [ebp - 0xc]
mov eax, ebx
call fcn.18002274
mov edi, dword [ebp - 0xc]
cmp dword [edi - 0xc], 0
je 0x180016b2
push edi
push esi
push dword [ebp - 0x10]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [ebp - 0x14]
lea eax, [ebx + eax*8]
test esi, esi
setne cl
mov byte [eax], cl
mov dword [eax + 4], esi
lea eax, [edi - 0x10]
call fcn.18004250
add dword [ebp - 8], 8
cmp dword [ebp - 8], 0x50
jb 0x1800166c
call fcn.1800b079
mov dword [ebx + 0x88], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
mov dword [ebx + 0x8c], edx
call fcn.18004250
pop edi
pop esi
leave
ret
Function at 0x180016f4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x180fa268]
push esi
mov ecx, 0x180fa268
call dword [eax + 0xc]
add eax, 0x10
push 0x104
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.18004129
mov esi, eax
push esi
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x18001751
push 0x180c29a4
mov eax, edi
call fcn.18003fba
or eax, 0xffffffff
lea esi, [ebp - 4]
call fcn.18003fe5
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18004250
jmp 0x18001787
push str.DropboxUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1800172d
push ebx
mov ebx, dword [ebp - 4]
add ebx, 0xfffffff0
mov eax, ebx
call fcn.18003d67
add eax, 0x10
mov dword [edi], eax
or eax, 0xffffffff
lea esi, [ebp - 4]
call fcn.18003fe5
mov eax, ebx
call fcn.18004250
pop ebx
mov eax, edi
pop esi
leave
ret

Function at 0x18001870
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push str.DBDEV
push eax
call fcn.18005f4c
mov eax, dword [ebp - 4]
pop ecx
add eax, 0xfffffff0
mov esi, esp
call fcn.18003d67
add eax, 0x10
mov dword [esi], eax
call fcn.180061de
pop ecx
test al, al
je 0x180018f3
cmp dword [edi + 0xdc], 0
jne 0x180018e2
push 0x40
call fcn.1809d904
pop ecx
test eax, eax
je 0x180018c0
mov ebx, eax
call fcn.1800b66b
jmp 0x180018c2
xor eax, eax
mov dword [edi + 0xdc], eax
test eax, eax
jne 0x180018e2
push dword [edi + 0x5c]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_ETW_log_writer
call fcn.1800ae40
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, dword [edi + 0xdc]
test esi, esi
je 0x180018f3
mov edx, edi
call fcn.18002210
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18004250
pop esi
pop ebx
leave
ret

Function at 0x18001902
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [ebx + 0x7f], 0
push esi
push edi
je 0x180019d6
cmp dword [ebx + 0xd4], 0
jne 0x180019c5
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.1800178c
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
jne 0x18001942
lea eax, [esi - 0x10]
call fcn.18004250
jmp 0x180019d6
lea eax, [ebp - 8]
lea edi, [ebp - 0xc]
call fcn.1800bcb5
mov edi, dword [ebp - 0xc]
push edi
call fcn.1800c3b2
pop ecx
test al, al
jne 0x18001970
push edi
call fcn.18004c24
pop ecx
test eax, eax
jge 0x18001970
lea eax, [edi - 0x10]
call fcn.18004250
jmp 0x18001935
mov al, byte [ebx + 0x85]
push 0x54
mov byte [ebp - 4], al
call fcn.1809d904
pop ecx
test eax, eax
je 0x18001991
push esi
push eax
mov al, byte [ebp - 4]
call fcn.18002351
jmp 0x18001993
xor eax, eax
mov dword [ebx + 0xd4], eax
test eax, eax
jne 0x180019b5
push esi
push dword [ebx + 0x5c]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.1800ae40
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
call fcn.18004250
lea eax, [esi - 0x10]
call fcn.18004250
mov esi, dword [ebx + 0xd4]
test esi, esi
je 0x180019d6
mov edx, ebx
call fcn.18002210
pop edi
pop esi
leave
ret
Function at 0x180019da
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push str.DBDEV
push eax
call fcn.18005f4c
mov eax, dword [ebp - 4]
pop ecx
add eax, 0xfffffff0
mov esi, esp
call fcn.18003d67
add eax, 0x10
mov dword [esi], eax
call fcn.180061de
pop ecx
test al, al
je 0x18001a63
cmp byte [edi + 0x84], 0
je 0x18001a63
cmp dword [edi + 0xd8], 0
jne 0x18001a52
push 4
call fcn.1809d904
pop ecx
test eax, eax
je 0x18001a30
mov dword [eax], fcn.1800234b
jmp 0x18001a32
xor eax, eax
mov dword [edi + 0xd8], eax
test eax, eax
jne 0x18001a52
push dword [edi + 0x5c]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_OutputDebugString_log_writer
call fcn.1800ae40
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, dword [edi + 0xd8]
test esi, esi
je 0x18001a63
mov edx, edi
call fcn.18002210
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18004250
pop esi
leave
ret

Function at 0x18001b90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov al, 1
push ebx
push esi
cmp byte [edi + 0x86], al
jne 0x18001bcd
lea esi, [ebp - 4]
call fcn.18001240
push dword [eax]
push str.LOG_SYSTEM:___s_:_ERROR___Calling_the_logging_system_after_it_has_been_shut_down__n
call fcn.1800ae40
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18004250
xor al, al
jmp 0x18001bee
cmp byte [edi + 0x58], al
je 0x18001bee
lea esi, [edi + 0x60]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, edi
call fcn.18001a96
mov bl, al
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov al, bl
pop esi
pop ebx
leave
ret

Function at 0x18001f24
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x18], 0
push ebx
push esi
push edi
je 0x18001ffa
cmp dword [ebp + 0xc], 0
jne 0x18001f47
cmp dword [ebp + 0x14], 2
jg 0x18001ffa
mov eax, dword [0x180fa268]
mov esi, 0x180fa268
mov ecx, esi
call dword [eax + 0xc]
mov edi, eax
mov eax, dword [0x180fa268]
add edi, 0x10
mov ecx, esi
mov dword [ebp - 8], edi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
mov ebx, eax
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], 1
add esi, 0x60
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0xc]
test al, al
jne 0x18001f9d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jle 0x18001f7d
jmp 0x18001fc7
push dword [ebp + 0x1c]
lea ecx, [ebp - 0xc]
push dword [ebp + 0x18]
lea edx, [ebp - 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.18001e56
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
cmp dword [ebp - 4], 0x14
jle 0x18001fea
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x180c26f8
call esi
lea eax, [ebx - 0x10]
call fcn.18004250
lea eax, [edi - 0x10]
call fcn.18004250
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x18002351
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, 0x180fa268
mov ebx, 0x989680
lea esi, [ebp + 0xc]
mov ecx, edi
mov dword [ebp], fcn.18002834
mov dword [ebp + 4], ebx
mov byte [ebp + 8], 0
mov byte [ebp + 9], 0
mov byte [ebp + 0xa], al
mov byte [ebp + 0xb], 1
call fcn.18003dbf
push dword [esp + 0x1c]
and dword [ebp + 0x10], 0
lea eax, [ebp + 0x14]
call fcn.18003fba
and dword [ebp + 0x18], 0
lea esi, [ebp + 0x1c]
mov ecx, edi
call fcn.18003dbf
lea esi, [ebp + 0x20]
call fcn.18003d13
movzx esi, byte [0x180fb8f9]
neg esi
sbb esi, esi
and esi, 0x180fbba0
je 0x18002433
lea edi, [esp + 0x18]
mov eax, esi
call fcn.18002274
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
je 0x18002405
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.MaxLogFileSize
mov edi, str.LoggingSettings
push edi
call ebx
push dword [esp + 0x18]
mov dword [ebp + 4], eax
push 1
push str.LogFileWide
push edi
call ebx
test eax, eax
setne al
mov byte [ebp + 0xb], al
jmp 0x1800240c
mov dword [ebp + 4], ebx
mov byte [ebp + 0xb], 1
lea eax, [esi + 0x5c]
lea edi, [ebp + 0x1c]
call fcn.18003d26
push ecx
push esp
mov ecx, ebp
call fcn.18002492
mov eax, ebp
call fcn.18002697
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.18004250
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x18002697
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
mov eax, dword [0x180fa268]
push edi
mov ecx, 0x180fa268
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov edi, str.HEADER:
push edi
lea eax, [ebp - 4]
push eax
call fcn.18002fa2
test al, al
jne 0x180026d2
push edi
lea eax, [ebp - 4]
push eax
call fcn.180031ca
mov eax, dword [ebp + 8]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.1800314d
cmp byte [esi + 8], 0
jne 0x180026ee
mov eax, esi
call fcn.180027af
cmp byte [esi + 9], 0
je 0x18002792
call fcn.18002d33
test al, al
je 0x18002792
push 2
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], ebx
cmp byte [esi + 0xb], bl
je 0x1800274d
push dword [ebp - 4]
lea eax, [ebp - 0xc]
call fcn.18002e0e
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx - 0xc]
add eax, eax
push eax
push ebx
push dword [esi + 0x18]
call edi
lea eax, [ebx - 0x10]
call fcn.18004250
xor ebx, ebx
jmp 0x18002764
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push dword [eax - 0xc]
push eax
push dword [esi + 0x18]
call edi
cmp byte [esi + 0xb], 0
push ebx
lea eax, [ebp - 8]
push eax
je 0x18002778
push 4
push 0x180c2728
jmp 0x1800277f
push 2
push 0x180c27d8
push dword [esi + 0x18]
call edi
mov esi, dword [esi + 0x10]
cmp esi, ebx
je 0x18002792
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18004250
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.18004250
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x180027af
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, eax
cmp byte [esi + 8], 0
jne 0x18002832
push esi
mov byte [esi + 8], 1
call fcn.180028a1
cmp dword [esi + 0x10], 0
je 0x18002832
test al, al
je 0x180027d0
mov byte [esi + 0xa], 1
call fcn.18002d33
test al, al
jne 0x180027f5
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1800ae40
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
call fcn.18002977
cmp dword [esi + 0x18], 0
jne 0x18002820
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.1800ae40
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x18002824
mov byte [esi + 9], 1
mov esi, dword [esi + 0x10]
test esi, esi
je 0x18002832
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x18002834
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1800288a
push ebx
push eax
call edi
mov eax, dword [0x180fa268]
mov ecx, 0x180fa268
call dword [eax + 0xc]
push dword [esi + 0x14]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str._s_finished
push eax
call fcn.180033bb
mov ebx, dword [ebp - 4]
add esp, 0xc
push ebx
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebx - 0x10]
call fcn.18004250
pop ebx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1800289d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 0x10]
call edi
pop edi
pop esi
leave
ret
Function at 0x18002977
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x180fa268]
push ebx
push edi
mov ecx, 0x180fa268
call dword [eax + 0xc]
mov ebx, eax
lea edi, [ebp - 0x68]
add ebx, 0x10
call fcn.180036ab
mov eax, edi
push eax
call fcn.1800e009
pop ecx
test eax, eax
jge 0x180029bc
mov eax, edi
push eax
call fcn.1800deb0
pop ecx
xor ecx, ecx
cmp eax, ecx
mov edi, 0x180c29c4
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
jl 0x18002a6b
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.180047ea
mov eax, dword [esi + 0x14]
pop ecx
pop ecx
push 0
push 0x80
push 1
lea ecx, [ebp - 0x7c]
push ecx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x18002a67
cmp dword [esi + 0x18], 0xffffffff
je 0x18002a67
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x18002a48
cmp byte [esi + 0xb], 0
je 0x18002a48
and dword [ebp - 0x80], 0
push 0
lea eax, [ebp - 0x80]
push eax
push 2
push 0x180c1edc
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], edi
call fcn.1800382a
lea ecx, [ebp - 0x68]
call fcn.18003659
lea eax, [ebx - 0x10]
call fcn.18004250
mov al, 1
jmp 0x18002a88
and dword [esi + 0x18], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], edi
call fcn.1800382a
lea ecx, [ebp - 0x68]
call fcn.18003659
lea eax, [ebx - 0x10]
call fcn.18004250
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1809ccb5
leave
ret

Function at 0x18002a96
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x14]
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x18002ac4
xor al, al
jmp 0x18002ae8
cmp byte [esi + 0xb], bl
je 0x18002adf
push ebx
lea eax, [ebp - 4]
push eax
push 2
push 0x180c1edc
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop ebx
leave
ret

Function at 0x18002d33
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x18002d3d
xor al, al
ret
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18002d74
cmp eax, 0x80
je 0x18002d74
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1800ae40
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x18002d3a
mov al, 1
ret
Function at 0x18003e3d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x18003e54
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x18003e89
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x18003e85
cmp edi, eax
jae 0x18003e89
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x18003e77
cmp edi, eax
jb 0x18003e8d
xor eax, eax
jmp 0x18003e96
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x18004c24
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x180fa268]
push ebx
push esi
push edi
mov ecx, 0x180fa268
call dword [eax + 0xc]
add eax, 0x10
push 0x104
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.18004129
push dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
mov ebx, eax
neg ebx
sbb bl, bl
or eax, 0xffffffff
inc bl
call fcn.18003fe5
test bl, bl
je 0x18004c81
mov edi, dword [ebp - 4]
mov esi, 0x80004005
lea eax, [edi - 0x10]
call fcn.18004250
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
call fcn.180062e4
mov edi, dword [ebp - 4]
cmp dword [edi - 0xc], 0
jg 0x18004c97
or ebx, 0xffffffff
jmp 0x18004cab
push 0x5c
pop edx
mov eax, edi
call fcn.1800721b
test eax, eax
je 0x18004c92
sub eax, edi
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x18004cb5
mov ecx, dword [edi - 0xc]
jmp 0x18004cb7
mov ecx, ebx
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.1800654a
mov esi, dword [ebp - 8]
push esi
call fcn.1800c3b2
pop ecx
test al, al
jne 0x18004cef
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18004cef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x18004cef
cmp eax, 0xb7
jne 0x18004d0e
cmp ebx, 0xffffffff
je 0x18004d2d
push 0x5c
lea eax, [ebx + 1]
pop edx
lea ecx, [ebp - 4]
call fcn.18006450
mov ebx, eax
lea eax, [esi - 0x10]
call fcn.18004250
jmp 0x18004cab
test eax, eax
jle 0x18004d1c
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
lea eax, [esi - 0x10]
call fcn.18004250
mov esi, ebx
jmp 0x18004c72
lea eax, [esi - 0x10]
call fcn.18004250
xor esi, esi
jmp 0x18004c72

Function at 0x18004d3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x18004d5a
mov eax, 0x80070057
jmp 0x18004da1
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1809d820
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x18004da1
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1800422d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1809ccb5
leave
ret