joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413520
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5699e8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
mov eax, dword [0x5d4050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x413613
push esi
mov edx, str.Cant_find
lea ecx, [ebp - 0x54]
call fcn.004110e0
push 0x5b0bc0
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00403ac0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.00403d00
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4135a8
mov eax, dword [eax]
push 0
push str.No_Such_File_Found
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp - 0x28], 0x10
jb 0x4135c9
push dword [ebp - 0x3c]
call fcn.00421c08
add esp, 4
cmp dword [ebp - 0x10], 0x10
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
jb 0x4135ec
push dword [ebp - 0x24]
call fcn.00421c08
add esp, 4
cmp dword [ebp - 0x40], 0x10
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
jb 0x41360f
push dword [ebp - 0x54]
call fcn.00421c08
add esp, 4
xor bl, bl
jmp 0x413615
mov bl, 1
cmp dword [ebp + 0x1c], 0x10
jb 0x413626
push dword [ebp + 8]
call fcn.00421c08
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4168b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569e5a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5d4050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.00567549
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x416956
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.0054b64a
push 0x5ce764
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0054e5c9
push edi
push esi
call fcn.0056741c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00549fe1
mov esp, ebp
pop ebp
ret 4
Function at 0x416fd0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
mov eax, dword [0x5d4050]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push esi
push edi
push 0x11c
lea eax, [esp + 0x14]
mov esi, ecx
push 0
push eax
call fcn.0054d610
add esp, 0xc
mov dword [esp + 0x10], 0x11c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x417222
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
xor edi, edi
mov dword [esp + 0xc], edi
test ebx, ebx
je 0x417053
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
cmp eax, 2
jne 0x41717a
push dword [esp + 0x18]
lea eax, [esp + 0x134]
push dword [esp + 0x18]
push str.WNT__d._d
push eax
call fcn.00418a40
add esp, 0x10
cmp byte [esp + 0x130], 0
jne 0x41708b
xor ecx, ecx
jmp 0x41709e
lea ecx, [esp + 0x130]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417095
sub ecx, edx
push ecx
lea eax, [esp + 0x134]
mov ecx, esi
push eax
call fcn.00402bf0
cmp byte [esp + 0x12a], 3
jne 0x4170eb
test edi, edi
je 0x41710b
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [esp + 0x140]
cmp ax, 6
je 0x4170e4
test ax, ax
je 0x4170e4
push 0x5b0f80
jmp 0x417104
push 0x5b0f6c
jmp 0x417104
test dword [esp + 0x128], 0x200
je 0x4170ff
push 0x5b0f7c
jmp 0x417104
push 0x5b0f88
mov ecx, esi
call fcn.004025a0
cmp dword [esp + 0x14], 6
jb 0x417147
lea ecx, [esp + 0x140]
mov edx, esi
test edi, edi
je 0x417126
push 0x5b0f84
jmp 0x41712b
push 0x5b0f94
call fcn.00403b60
add esp, 4
mov ecx, esi
push eax
call fcn.004024f0
lea ecx, [esp + 0x140]
call fcn.00402530
push 0x57
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x417222
push 4
push str._MCE
mov ecx, esi
call fcn.004029d0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.00549fe1
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x41720e
push dword [esp + 0x18]
lea eax, [esp + 0x144]
push dword [esp + 0x18]
push str.WIN__d._d
push eax
call fcn.00418a60
add esp, 0x10
cmp byte [esp + 0x140], 0
jne 0x4171d1
xor ecx, ecx
lea eax, [esp + 0x140]
push ecx
push eax
mov ecx, esi
call fcn.00402bf0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.00549fe1
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x140]
lea edx, [ecx + 1]
jmp 0x4171e0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4171e0
sub ecx, edx
lea eax, [esp + 0x140]
push ecx
push eax
mov ecx, esi
call fcn.00402bf0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.00549fe1
mov esp, ebp
pop ebp
ret
push 0
push str.GetOSVersion_fail
push str.Unknown_system_platform...
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00549fe1
mov esp, ebp
pop ebp
ret
Function at 0x417240
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5d4050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5e09e4]
test al, 1
jne 0x4172c7
or eax, 1
push 0x114
mov dword [0x5e09e4], eax
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0054d610
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4172aa
mov al, 1
mov byte [0x5e09ec], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00549fe1
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x114], 6
setae al
mov byte [0x5e09ec], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00549fe1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [0x5e09ec]
xor ecx, ebp
call fcn.00549fe1
mov esp, ebp
pop ebp
ret

Function at 0x417580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569f1d
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5d4050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
xor eax, eax
push 0x1fc
mov dword [ebp - 0x214], 0
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x248], esi
call fcn.0054d610
add esp, 0xc
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
push eax
push 0x5b045c
call fcn.00403360
push 0xff
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x214], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x417736
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
jmp 0x417640
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417640
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
cmp ecx, 3
lea ecx, [ebp - 0x244]
push eax
jne 0x4176e9
call fcn.004026c0
sub esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, eax
call fcn.00418730
mov edi, eax
cmp esi, edi
je 0x4176b3
cmp dword [esi + 0x14], 8
jb 0x417698
push dword [esi]
call fcn.00421c08
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.00402fc0
cmp dword [ebp - 0x218], 8
jb 0x4176ca
push dword [ebp - 0x22c]
call fcn.00421c08
add esp, 4
xor eax, eax
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x21c], 0
mov word [ebp - 0x22c], ax
jmp 0x41771f
call fcn.004026c0
mov edi, eax
cmp esi, edi
je 0x41771f
cmp dword [esi + 0x14], 8
jb 0x417704
push dword [esi]
call fcn.00421c08
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.00402fc0
cmp dword [ebp - 0x230], 8
jb 0x417736
push dword [ebp - 0x244]
call fcn.00421c08
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00549fe1
mov esp, ebp
pop ebp
ret
Function at 0x417e90
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5d4050]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ebx
cmovae eax, dword [ebp + 8]
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
movzx esi, cx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x417edb
xor bl, bl
jmp 0x417f20
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push edi
cmovae eax, dword [ebp + 0x20]
push eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
pop edi
cmp dword [ebp + 0x1c], 8
jb 0x417f31
push dword [ebp + 8]
call fcn.00421c08
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x417f56
push dword [ebp + 0x20]
call fcn.00421c08
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00549fe1
mov esp, ebp
pop ebp
ret

Function at 0x418270
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5d4050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x214]
push edi
mov edi, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push 0x104
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x418377
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, 0x105
jae 0x418388
mov byte [ebp + eax - 0x210], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 2
mov dword [ebp - 0x22c], eax
test edi, edi
je 0x41832d
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, 0x104
jae 0x418388
mov byte [ebp + eax - 0x108], 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x228], eax
jmp 0x418337
mov dword [ebp - 0x228], 0
mov eax, 0x14
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x418365
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00549fe1
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.00549fe1
mov esp, ebp
pop ebp
ret
call fcn.0054aa07
int3
Function at 0x419040
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a24e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5d4050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [edi], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00419300
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [edi + 0x20], 0
lea ecx, [edi + 0x24]
push eax
push 0
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00419300
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov edx, dword [ebp + 0x14]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x68], eax
mov dword [edi + 0x58], edx
mov dword [edi + 0x60], 0
mov byte [edi + 0x64], 0
movsx eax, byte [edx + 8]
and eax, 8
shr eax, 3
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [edx + 0x18]
call fcn.00419190
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x41c710
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a24e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5d4050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00419300
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00419300
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
je 0x41c824
test dl, 0x10
jne 0x41c824
mov eax, 1
jmp 0x41c826
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.00419190
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x41cb20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x41cb51
lea esp, [esp]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x41cb40
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x421460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x421475
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4214b4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4214b0
lea ebx, [ebx]
cmp esi, edx
jae 0x4214b4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4214a0
cmp esi, edx
jb 0x4214b9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x42f4d3
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.0043adc9
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42f50a
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.0042f52b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4365e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x436627
call fcn.0043adc9
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x436627
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x436643
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0049ec94
mov ebx, eax
test edi, edi
je 0x436641
test esi, esi
je 0x436641
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x49624a
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 0x496285
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x49626c
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x49627d
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x496287
inc edi
add eax, 0x28
cmp edi, esi
jb 0x496262
xor eax, eax
pop edi
pop esi
ret
Function at 0x496933
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4968e1
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4968ff
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x49695d
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
adc byte gs:[eax], al
add byte [eax], al
invalid
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x496944
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x49694d
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x496957
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x496939
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4968c3
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4969aa
dec eax
je 0x4969a1
sub eax, 3
je 0x496998
mov dword [ebp - 4], 0x40
jmp 0x4969c7
mov dword [ebp - 4], 4
jmp 0x4969ad
mov dword [ebp - 4], 0x20
jmp 0x4969ad
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4969f9
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x496979
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0049620a
mov dl, 0x2f
cld
cmp bh, bh
jne 0x496a04
push 1
push esi
call edi
mov eax, esi
jmp 0x496a05
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x497d99
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
push dword [eax]

Function at 0x497eff
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x7ab5b], al
inc dword [eax]
and byte [ebp - 0x7ab], 0
mov byte [ebp - 0x7aa], 0xed
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
invalid
invalid
pop ecx

Function at 0x4b210c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0043b105
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4b2148
call fcn.004b232b
mov dword [esi + 0xc], 1
jmp 0x4b214d
call fcn.004b232b
cmp dword [esi], 0
je 0x4b2196
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4b2170
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0043669a
jmp 0x4b2181
push 0xff
mov ecx, esi
call fcn.00405940
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00423fb2
jmp 0x4b21ba
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4b21ba
push dword [esi]
push dword [ebp - 4]
call fcn.0043bdbe
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4b2280
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004b232b
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4b22c8
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0043669a
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00423fb2
jmp 0x4b22d3
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0043bdbe
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4b9fd9
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x570695
call fcn.0054d7a9
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00410a40
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x57b550
call fcn.0042305d
cmp eax, 0xffffffff
jne 0x4ba08d
push 0
push 0x57fb30
lea ecx, [ebp - 0x4d0]
call fcn.0042305d
cmp eax, 0xffffffff
jne 0x4ba08d
push 0
push 0x57b4cc
lea ecx, [ebp - 0x4d0]
call fcn.0042305d
cmp eax, 0xffffffff
jne 0x4ba08d
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00410a40
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4ba069
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.00405410
jmp 0x4ba0bc
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.004217f0
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.00405410
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4ba0b3
mov ebx, dword [ebp - 0x4cc]
jmp 0x4ba0bc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00405410
mov eax, ebx
call fcn.0054d758
ret