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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x62b328]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b4c7c
cmp byte [ebx], 0xa
jne 0x4b4c7c
or byte [eax + edi + 0x28], 4
jmp 0x4b4c81
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4b4d7f
mov al, byte [edx]
cmp al, 0x1a
je 0x4b4d61
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4b4cb0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4b4cd5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4b4cdf
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4b4c92
jmp 0x4b4d7f
push 0
lea eax, [ebp - 0xc]
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 0x4b4d5c
cmp dword [ebp - 0xc], 0
je 0x4b4d5c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x62b328]
test byte [eax + edi + 0x28], 0x48
je 0x4b4d36
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4b4d21
mov byte [esi], dl
jmp 0x4b4d32
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x62b328]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4b4d7f
cmp byte [ebp - 1], 0xa
jne 0x4b4d45
cmp esi, ebx
jne 0x4b4d45
mov byte [esi], 0xa
jmp 0x4b4d7e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040199c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b4d7f
mov byte [esi], 0xd
jmp 0x4b4d7e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x62b328]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b4d7b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b4d7f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b4ddb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x62b328]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b4e1e
cmp word [esi], dx
jne 0x4b4e1e
or byte [edi + eax + 0x28], 4
jmp 0x4b4e23
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4b4f76
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4b4f56
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4b4e65
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b4e9b
cmp eax, edx
jae 0x4b4ea7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4b4e3d
jmp 0x4b4f76
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b4f52
cmp dword [ebp - 0x14], 0
je 0x4b4f52
mov eax, dword [ebx*4 + 0x62b328]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4b4f2a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4b4ef3
mov word [esi], cx
jmp 0x4b4f26
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x62b328]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x62b328]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x62b328]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4b4f76
pop ebx
cmp word [ebp - 4], bx
jne 0x4b4f3b
cmp esi, dword [ebp + 0xc]
jne 0x4b4f3b
mov word [esi], bx
jmp 0x4b4f73
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040199c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4b4f76
push 0xd
jmp 0x4b4f6f
mov ecx, dword [ebx*4 + 0x62b328]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b4f6d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b4f76
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x404a40
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a5d6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x554760]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x404a7c
xor eax, eax
jmp 0x404ae5
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004e1ca0
add esp, 0xc
call fcn.004055d0
push 0x515914
test al, al
lea eax, [ebp - 0x218]
push esi
push eax
je 0x404b01
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x21c]
call fcn.004066f0
push edi
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
push str.ADBlockMasterTray
lea ecx, [ebp - 0x21c]
call fcn.00407c10
lea ecx, [ebp - 0x21c]
mov ebx, eax
call fcn.00407130
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a02a0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x220]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404ae3
mov dword [ebp - 4], 1
call fcn.004051b0
mov ecx, eax
test ecx, ecx
je 0x404c1e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x218]
test edi, edi
je 0x404b76
push edi
push eax
lea eax, [ebp - 0x21c]
push 0x5159c4
push eax
call fcn.004050c0
add esp, 0x10
jmp 0x404b8b
push eax
lea eax, [ebp - 0x21c]
push str.__s_
push eax
call fcn.004050c0
add esp, 0xc
mov esi, dword [ebp - 0x21c]
mov edi, dword [esi - 0xc]
add edi, edi
cmp dword [esi - 4], 1
jle 0x404bb0
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.00405030
mov esi, dword [ebp - 0x21c]
push edi
push esi
push 1
push 0
push str.ADBlockMasterTray
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esi - 8]
mov ebx, eax
push esi
call fcn.004e5238
add esp, 8
test eax, eax
js 0x404c14
cmp eax, dword [esi - 8]
jg 0x404c14
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x404ae3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x404ae3
push 0x80070057
call fcn.00404d60
push 0x80004005
call fcn.00404d60
int3
Function at 0x404ec0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a608
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x554760]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x404f75
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push eax
call fcn.004052a0
add esp, 8
test eax, eax
jne 0x404f13
mov eax, 1
jmp 0x404f75
xor esi, esi
call fcn.004055d0
test al, al
je 0x404f44
lea ecx, [ebp - 0x14]
call fcn.004066f0
push 1
push str.ADBlockMasterTray
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.004085e0
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00407130
jmp 0x404f73
lea eax, [ebp - 0x1c]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404f73
push str.ADBlockMasterTray
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a02a0
mov esp, ebp
pop ebp
ret
Function at 0x40d150
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b0b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x554760]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi]
push 1
push str.protect_days
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov dword [ebp - 4], 0
call fcn.004051b0
mov ecx, eax
test ecx, ecx
je 0x40d205
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [edi + 1]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push 0x5163f8
push eax
call fcn.004050c0
add esp, 0xc
push dword [esi]
mov esi, dword [ebp - 0x10]
push esi
push str.protect_days
push str.general
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d1f4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404d60
int3
Function at 0x40e310
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004a0320
mov eax, dword [0x554760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.004e1ca0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x40e406
test edi, edi
je 0x40e406
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40e406
cmp eax, 0x3fff
ja 0x40e406
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40e406
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x4010]
push eax
push 0x5159e0
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e406
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.004e1ca0
mov ecx, dword [ebp - 0x4010]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [esi - 1]
push eax
push edi
call fcn.0040e0a0
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a02a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004a02a0
mov esp, ebp
pop ebp
ret

Function at 0x40e590
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x554760]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40e617
test ebx, ebx
je 0x40e617
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40e617
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40e617
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e611
push esi
push ebx
push edi
call fcn.004e11a0
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e611
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a02a0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a02a0
mov esp, ebp
pop ebp
ret
Function at 0x40f130
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x554760]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0x1c], 0
je 0x40f162
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a02a0
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e1ca0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x40f1b5
lea eax, [ebp - 0x20c]
push eax
call ebx
sub esi, 1
jne 0x40f1a7
push 0x5169ac
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f272
mov dword [edi + 0x1c], 1
cmp dword [edi], 0
jne 0x40f248
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x40f272
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CurlInit
push eax
call esi
push str.CurlUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x40f248
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x40f272
cmp dword [edi + 4], 0
je 0x40f272
cmp dword [edi + 0xc], 0
je 0x40f272
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a02a0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.004a02a0
mov esp, ebp
pop ebp
ret 4
Function at 0x4109d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b5ab
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x554760]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x20], 8
lea edi, [esi + 0xc]
lea ebx, [esi + 0x24]
jb 0x410a0e
mov edi, dword [edi]
push 0x180
push 0x40
push 0x8101
push edi
push ebx
call fcn.004e955d
add esp, 0x14
mov dword [ebp - 0xac], eax
test eax, eax
je 0x410ae3
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004e1ca0
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 1
push 2
call fcn.004062f0
push str._error.__
push edi
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
push str.open
push eax
call fcn.00405940
add esp, 8
push eax
call fcn.00405940
add esp, 8
push eax
call fcn.00405940
add esp, 8
mov ecx, eax
push 0x516a34
push dword [ebp - 0xac]
call fcn.0040fd20
push eax
call fcn.00405940
add esp, 8
lea eax, [ebp - 0xc4]
lea ecx, [ebp - 0xa8]
push eax
call fcn.00410bd0
cmp dword [eax + 0x14], 8
jb 0x410abf
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0xc4]
call fcn.00406f50
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], 0xffffffff
call fcn.00407790
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x410af9
push 2
push 0
push eax
call fcn.004e9c00
add esp, 0xc
jmp 0x410afc
or eax, 0xffffffff
mov dword [esi + 4], eax
test eax, eax
jne 0x410ba4
push 3
push 0x516a64
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], 0xf
mov byte [ebp - 0xc4], al
call fcn.0040aae0
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xc4]
mov ecx, dword [ebp - 0xc4]
cmp eax, 0x10
mov edi, dword [ebx]
cmovae edx, ecx
cmp edi, 0xffffffff
je 0x410b6e
push dword [ebp - 0xb4]
push edx
push edi
call fcn.004ea1c7
mov ecx, dword [ebp - 0xc4]
mov edi, eax
mov eax, dword [ebp - 0xb0]
add esp, 0xc
jmp 0x410b71
or edi, 0xffffffff
cmp eax, 0x10
jb 0x410b9d
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x410b93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410bc0
push edx
push ecx
call fcn.0049ffea
add esp, 8
test edi, edi
jle 0x410ba4
add dword [esi + 4], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a02a0
mov esp, ebp
pop ebp
ret
call fcn.004e5039
int3
Function at 0x410c90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b639
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x554760]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], 0
cmp byte [esi + 8], 0
je 0x410cd3
call fcn.004109d0
mov byte [esi + 8], 0
cmp dword [esi + 4], 0x40000000
jle 0x410d0f
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x410cf4
push eax
call fcn.004e9894
add esp, 4
mov dword [esi + 0x24], 0xffffffff
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x410cff
mov eax, dword [eax]
push eax
call fcn.004e8c68
add esp, 4
mov ecx, esi
call fcn.004109d0
mov eax, dword [edi + 0x10]
lea ecx, [ebp - 0x24]
push 0
add eax, eax
mov dword [ebp - 4], 0
push eax
call fcn.0040fbd0
mov edx, dword [ebp - 0x14]
mov ebx, eax
mov dword [ebp - 0x28], 1
test edx, edx
je 0x410d8a
cmp dword [ebp - 0x10], 0x10
lea ecx, [ebp - 0x24]
mov eax, edi
cmovae ecx, dword [ebp - 0x24]
cmp dword [edi + 0x14], 8
jb 0x410d4b
mov eax, dword [edi]
push 0
push 0
push edx
push ecx
push dword [edi + 0x10]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
ja 0x410d7d
cmp dword [ebp - 0x10], 0x10
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
cmovae ecx, dword [ebp - 0x24]
mov byte [ecx + eax], 0
jmp 0x410d8a
sub eax, ecx
lea ecx, [ebp - 0x24]
push 0
push eax
call fcn.0040a620
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x410d95
mov ebx, dword [ebx]
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x410dac
push ecx
push ebx
push eax
call fcn.004ea1c7
add esp, 0xc
mov ebx, eax
jmp 0x410daf
or ebx, 0xffffffff
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x410ddf
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410dd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410e1d
push edx
push ecx
call fcn.0049ffea
add esp, 8
test ebx, ebx
jle 0x410dfa
add dword [esi + 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x14], 8
jb 0x410e02
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004e5039
int3
Function at 0x412fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b8a6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x554760]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], 0
push 0x404
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.004e1ca0
add esp, 0xc
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x41309c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x41309c
call fcn.00411db0
mov esi, eax
jmp 0x413189
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4130bf
call fcn.00411db0
jmp 0x41317c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x428], ebx
test ebx, ebx
jne 0x4130dd
call fcn.00411db0
jmp 0x41317c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4130fe
mov esi, 0x8007000e
jmp 0x41317e
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.00411c80
jmp 0x413128
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x41313f
mov esi, 0x8007000e
jmp 0x41317e
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41315f
call fcn.00411db0
jmp 0x41317c
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.00412e40
mov esi, eax
test edi, edi
je 0x413189
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x4131a2
lea ecx, [ebp - 0x420]
call fcn.004121c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a02a0
mov esp, ebp
pop ebp
ret 0x10