joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5a379c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
call fcn.00521d43
add esp, 0xc
mov esi, eax
push 0
lea eax, [ebp - 0x408]
push eax
push esi
lea eax, [ebp - 0x404]
push eax
push dword [0x5a611c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00521d5b
mov esp, ebp
pop ebp
ret

Function at 0x41074a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0041ab9b
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x410781
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004107a0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x414a84
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x414ac9
call fcn.0041ab9b
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x414ac9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x414ae5
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041cb1e
mov ebx, eax
test edi, edi
je 0x414ae3
test esi, esi
je 0x414ae3
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4191c6
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5445f7
call fcn.0052583f
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x4191ec
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x419240
call fcn.004102f5
push eax
lea ecx, [ebp - 0x10]
call fcn.00401090
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.005257f2
push eax
call fcn.004030a0
add esp, 0x14
test edi, edi
je 0x419233
push edi
call fcn.00525920
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004018d0
mov eax, esi
call fcn.0052580d
ret 8
Function at 0x41c737
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.00419155
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x41c773
call fcn.0041c952
mov dword [esi + 0xc], 1
jmp 0x41c778
call fcn.0041c952
cmp dword [esi], 0
je 0x41c7c1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x41c79b
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0040ffac
jmp 0x41c7ac
push 0xff
mov ecx, esi
call fcn.00401850
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00407e10
jmp 0x41c7e5
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x41c7e5
push dword [esi]
push dword [ebp - 4]
call fcn.00429397
pop esi
leave
ret 0xc

Function at 0x41c8a9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0041c952
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41c8f1
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040ffac
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00407e10
jmp 0x41c8fc
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00429397
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x431252
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004428b4
call fcn.0041abef
cmp dword [eax + 0x14], 0
jne 0x43126d
mov ecx, esi
pop esi
jmp fcn.00430671
pop esi
ret

Function at 0x43ed0f
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.0043fb77
call fcn.0041abef
cmp dword [eax + 0x14], 0
jne 0x43ed2a
mov ecx, esi
pop esi
jmp fcn.0043e602
pop esi
ret
Function at 0x449dca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x449de2
call fcn.0041ab9b
mov esi, dword [eax + 0xc]
push 0x55dd64
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x449e38
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x449e37
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x449e18
xor esi, esi
jmp 0x449e2e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.00449e3e
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x508470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x50848a
mov edi, dword [esi + 0xc]
jmp 0x5084ca
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x5084a3
call fcn.00412412
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x5084b8
call fcn.00412412
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x5084ca
call fcn.00412412
call fcn.0041ab9b
cmp dword [eax + 0x3c], 0
je 0x5084df
push edi
mov ecx, ebx
call fcn.00507d0c
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.005086a2
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x508502
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x50850b
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5388b1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a379c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0052f80a
mov dword [ebp - 0x14], eax
cmp dword [0x5ac5c4], edi
jne 0x5389a2
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x53892f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x538a82
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x538a82
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x538a82
push eax
call ebx
push 0x57e5e8
push esi
mov dword [0x5ac5c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x57e5f8
push esi
mov dword [0x5ac5c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x5ac5cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5ac5d4], eax
test eax, eax
je 0x53899f
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5ac5d0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5389c7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5389ba
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x5389dc
push 4
pop eax
jmp 0x538a84
cmp dword [ebp - 0x14], edi
je 0x5389dc
push dword [0x5ac5c4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5389c1
mov eax, dword [0x5ac5d0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x538a3a
cmp dword [0x5ac5d4], esi
je 0x538a3a
push eax
call ebx
push dword [0x5ac5d4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x538a3a
test eax, eax
je 0x538a3a
call ecx
test eax, eax
je 0x538a2f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x538a2f
test byte [ebp - 8], 1
jne 0x538a3a
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x538a6a
mov eax, dword [0x5ac5c8]
cmp eax, esi
je 0x538a67
push eax
call ebx
test eax, eax
je 0x538a67
call eax
mov edi, eax
test edi, edi
je 0x538a67
mov eax, dword [0x5ac5cc]
cmp eax, esi
je 0x538a67
push eax
call ebx
test eax, eax
je 0x538a67
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5ac5c4]
call ebx
test eax, eax
je 0x538a82
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x538a84
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00521d5b
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 + 0x180f6ba4]
mov eax, dword [eax + 0x180f6ba0]
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 [0x180fa248]
push esi
mov ecx, 0x180fa248
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 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 [0x180fa248]
mov esi, 0x180fa248
mov ecx, esi
call dword [eax + 0xc]
mov edi, eax
mov eax, dword [0x180fa248]
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 0x1800267a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
mov eax, dword [0x180fa248]
push edi
mov ecx, 0x180fa248
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 0x180026b5
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 0x180026d1
mov eax, esi
call fcn.18002792
cmp byte [esi + 9], 0
je 0x18002775
call fcn.18002d16
test al, al
je 0x18002775
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 0x18002730
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 0x18002747
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 0x1800275b
push 4
push 0x180c2728
jmp 0x18002762
push 2
push 0x180c27d8
push dword [esi + 0x18]
call edi
mov esi, dword [esi + 0x10]
cmp esi, ebx
je 0x18002775
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 0x18002a79
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 0x18002aa7
xor al, al
jmp 0x18002acb
cmp byte [esi + 0xb], bl
je 0x18002ac2
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 0x18002d16
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x18002d20
xor al, al
ret
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18002d57
cmp eax, 0x80
je 0x18002d57
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 0x18002d1d
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 0x180041f2
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe fcn.1800422d
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x18004214
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x18004225
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x1800422f
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1800420a

Function at 0x1800443b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x1800440c
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x18004406
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x180043f7
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov ah, 0xca
mov ah, 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.180041b2
xchg edi, eax
xchg ebx, eax
pop esi
jae 0x180043e8
inc ebp
test al, 0x50
call fcn.180041c2
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.18004177
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
ror byte [ecx - 0x8b7b], cl
dec dword [ebx - 0xe0807bb]
test edx, edx
je 0x180044a0
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
invalid
Function at 0x1800448a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x1800440c
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x18004406
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x180043f7
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov ah, 0xca
mov ah, 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.180041b2
xchg edi, eax
xchg ebx, eax
pop esi
jae 0x180043e8
inc ebp
test al, 0x50
call fcn.180041c2
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.18004177
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
ror byte [ecx - 0x8b7b], cl
dec dword [ebx - 0xe0807bb]
test edx, edx
je 0x180044a0
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
invalid