joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x48dbb0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4b81f4]
xor eax, ebp
mov dword [ebp + 0x404], 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 + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x401fbf
call fcn.004015b0
mov esi, eax
jmp 0x4020a1
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x401fdb
call fcn.004015b0
jmp 0x402098
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x401ff4
call fcn.004015b0
jmp 0x402098
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x402028
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x402016
lea eax, [ebp]
call fcn.00404af0
lea esi, [ebp - 0x1c]
call fcn.00404520
mov eax, 0x8007000e
jmp 0x4020b3
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00404580
mov dword [ebp - 4], 1
jmp 0x402051
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40205f
mov esi, 0x8007000e
jmp 0x40209a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40207d
call fcn.004015b0
jmp 0x402098
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00402db0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x4020b1
lea eax, [ebp]
call fcn.00404af0
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 + 0x404]
xor ecx, ebp
call fcn.0046b4eb
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4055d5
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 0x18], 0
push esi
mov esi, ecx
jne 0x405688
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x405611
cmp word [esi + 0x24], 0
je 0x4055fe
push esi
push 0
push 0x488810
call fcn.0046bbce
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [eax], 0
mov eax, 1
pop esi
ret 0x18
cmp ecx, 0x14
jne 0x405629
mov ecx, dword [esp + 0x18]
mov dword [ecx], 1
mov eax, 1
pop esi
ret 0x18
cmp ecx, 0x508
jne 0x405673
mov eax, dword [esi + 0x824]
push edi
mov edi, dword [esp + 0x18]
test eax, eax
je 0x40564b
cmp eax, edi
je 0x40564b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
mov dword [esi + 0x824], edi
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], 0
mov eax, 1
pop esi
ret 0x18
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esi + 0x24]
call fcn.004062f0
test eax, eax
jne 0x405608
xor eax, eax
pop esi
ret 0x18

Function at 0x4058e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x48bb48
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b81f4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
fld dword [0x4aff28]
lea ecx, [esi + 4]
mov dword [esi], vtable.SimpleSogouPluginableModuleConfig.0
xor edi, edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], 0x11
mov dword [ecx + 0x18], 0xffffffff
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x2c], edi
mov dword [ecx + 0x30], fcn.0046b942
mov dword [ecx + 0x34], fcn.0046bdd0
mov dword [ecx + 0x38], fcn.0046b865
fstp dword [ecx + 0xc]
fld dword [0x4aff24]
fstp dword [ecx + 0x10]
fld dword [0x4aff20]
fstp dword [ecx + 0x14]
call fcn.004130b0
mov eax, dword [esp + 0x20]
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
push eax
mov dword [esi + 0x4c], fcn.0046b942
mov dword [esi + 0x50], fcn.0046bdd0
mov dword [esi + 0x54], fcn.0046b865
lea ecx, [esi + 0x60]
push 0x104
push ecx
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], 0x1fff8
mov dword [esi + 0x48], vtable.t_heapT_class_TAllocDefault_.0
call fcn.0046c680
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x408cd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp dword [esp + 0x74], edi
jne 0x408ce9
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ebx, dword [eax + 4]
movzx ebp, word [eax + 0xe]
mov esi, dword [eax + 8]
xor eax, eax
push edi
mov dword [esp + 0x50], eax
push edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
lea edx, [esp + 0x20]
push edx
mov eax, 1
mov word [esp + 0x58], ax
push edi
lea eax, [esp + 0x50]
push eax
mov ecx, 0x20
shr ebp, 3
push edi
mov byte [esp + 0x2f], 0
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x58], 0x28
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], esi
mov word [esp + 0x66], cx
mov dword [esp + 0x68], edi
mov dword [esp + 0x78], edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [esp + 0x70]
mov dword [ecx], eax
cmp eax, edi
je 0x408ea9
mov eax, ebx
imul eax, ebp
mov dword [esp + 0x38], eax
lea eax, [ebx*4 + 3]
sar eax, 2
add eax, eax
add eax, eax
cmp esi, edi
jbe 0x408e9f
mov edi, dword [esp + 0x74]
mov ecx, eax
neg ecx
lea edx, [esi - 1]
imul edx, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
jmp 0x408dc0
mov eax, dword [esp + 0x18]
lea ecx, [edx + eax]
test ebx, ebx
jbe 0x408e80
mov dword [esp + 0x74], ebx
movzx dx, byte [edi]
movzx eax, byte [edi + 1]
inc edi
inc edi
movzx ebx, ax
movzx eax, byte [edi]
movzx edx, dx
inc edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ebx
cmp ebp, 4
jne 0x408e60
movzx dx, byte [edi]
movzx esi, ax
movzx ebx, dx
movzx ebp, bx
imul esi, ebp
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, word [esp + 0x28]
sar edx, 7
imul esi, ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx], al
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, word [esp + 0x2c]
sar edx, 7
imul esi, ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 1], al
mov ebp, dword [esp + 0x30]
inc ecx
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
mov byte [ecx], al
inc edi
inc ecx
mov byte [ecx], bl
jmp 0x408e6c
mov byte [ecx], al
inc ecx
mov byte [ecx], bl
inc ecx
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0xff
inc ecx
sub dword [esp + 0x74], 1
jne 0x408dd3
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
add edi, dword [esp + 0x38]
add edx, dword [esp + 0x3c]
sub dword [esp + 0x24], 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
jne 0x408dc0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov al, byte [esp + 0x17]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
Function at 0x408f50
Capabilities:
Check for peb beingdebugged flag
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48df80
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4b81f4]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push esi
mov eax, dword [0x4b81f4]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x18]
xor ecx, ecx
mov dword [esp + 0x260], ecx
mov edx, dword [eax + 0x20]
mov ebx, dword [eax + 0x1c]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x28]
push 1
push esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x24], 1
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x30], 0
mov byte [esp + 0x1d], 0
mov byte [esp + 0x260], 1
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x34]
push esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov byte [edi + 0x52], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push esi
lea ecx, [edi + 0x24]
call fcn.0042b9c0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [edi + 0x34]
push 1
push esi
lea ebx, [ebx + eax + 4]
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [edi + 0x54]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [edi + 4]
push 0
push 0
push 0x31
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x10], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x4e]
push ecx
mov word [esp + 0x50], ax
call fcn.0046f9f0
mov eax, dword [edi + 4]
add esp, 0xc
push 0x104
lea edx, [esp + 0x48]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x44]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x409095
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x4090b4
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x48]
push edx
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_TextOutW]
mov ecx, dword [esp + 0x10]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea esi, [esp + 0x1c]
call fcn.0042cf40
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0046b4eb
mov esp, ebp
pop ebp
ret 4
Function at 0x4096e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x4b81f4]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x38]
mov ebx, edx
xor eax, dword [ebx + 0x10]
and eax, 1
xor dword [edi + 0x38], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi + 0x38]
xor ecx, dword [ebx + 0x10]
and ecx, 4
xor dword [edi + 0x38], ecx
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
mov esi, dword [ebx + 0x1c]
mov dword [esp + 0x28], edx
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x34], edx
mov edx, dword [ebx + 0x24]
mov ebx, dword [ebx + 0x28]
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, eax
mov eax, dword [edi + 0x38]
push esi
push ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
push ecx
test al, 4
je 0x409783
mov dword [edi + 0xe4], 0xfa00fa
lea ecx, [edi + 0xcc]
jmp 0x4097b6
test al, 1
je 0x409799
mov dword [edi + 0xb4], 0xfa00fa
lea ecx, [edi + 0x9c]
jmp 0x4097b6
test al, 2
je 0x4097ac
mov dword [edi + 0x84], 0xfa00fa
lea ecx, [edi + 0x6c]
jmp 0x4097b6
mov dword [edi + 0x54], 0xfa00fa
lea ecx, [edi + 0x3c]
mov eax, dword [esp + 0x2c]
mov edx, ebx
sub edx, dword [esp + 0x28]
sub eax, esi
mov esi, dword [esp + 0x28]
push ecx
mov ebx, 0xff
call fcn.0042ba70
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0x1fe
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.0046f9f0
mov edx, dword [edi + 4]
add esp, 0xc
push ebx
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [esp + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push esi
call ebx
mov dword [esp + 0x10], eax
mov al, byte [edi + 0x38]
and al, 4
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xb2b2b2
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [edi + 4]
push 0
push 0
push 0x31
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x409851
push 0x25
sub eax, ecx
lea edx, [esp + 0x2c]
push edx
sar eax, 1
push eax
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [esp + 0x14]
push ecx
push esi
call edi
mov edx, dword [esp + 0x10]
push edx
push esi
call ebx
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046b4eb
mov esp, ebp
pop ebp
ret
Function at 0x40a730
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48c55b
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x4b81f4]
xor eax, esp
mov dword [esp + 0x32c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b81f4]
xor eax, esp
push eax
lea eax, [esp + 0x344]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x354]
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x142]
push ecx
mov word [esp + 0x144], ax
call fcn.0046f9f0
add esp, 0xc
lea edx, [esp + 0x138]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40a7e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, esi
call fcn.0040e680
mov esi, eax
push 0x4ad1f0
push 0x4ad42c
mov edx, esi
call fcn.0040fd10
push edi
push 0x4adf24
mov edx, esi
call fcn.0040fd10
add esp, 0x10
xor al, al
jmp 0x40a8dd
lea eax, [esp + 0x138]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a7f0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x136], 0x5c
jne 0x40a82d
lea eax, [esp + 0x138]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a814
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x136], cx
lea ecx, [esp + 0x14]
call fcn.0040f730
lea ebx, [esp + 0x138]
mov edx, ebx
test edx, edx
jne 0x40a848
mov ebx, 0x4ac1f8
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a850
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
mov ecx, edi
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.00410400
cmp byte [esp + 0x130], 0
lea eax, [esp + 0x20]
jne 0x40a883
mov eax, dword [esp + 0x1c]
lea ecx, [edi + edi]
push ecx
add eax, 4
push ebx
push eax
call fcn.0046fa70
add esp, 0xc
cmp byte [esp + 0x130], 0
lea eax, [esp + 0x20]
jne 0x40a8a6
mov eax, dword [esp + 0x1c]
add eax, 4
lea edx, [ebp + 0x130]
call fcn.0040f920
cmp byte [esp + 0x130], 0
mov dword [esp + 0x14], vtable.t_str.0
jne 0x40a8db
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x40a8db
push eax
call fcn.0046b865
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x344]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.0046b4eb
add esp, 0x33c
ret 4
Function at 0x40b090
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call edi
call edi
lea edx, [esi + 0x4d4]
call fcn.0040f920
cmp byte [esi + 0x5f0], 0
lea eax, [esi + 0x4e0]
jne 0x40b0be
mov eax, dword [esi + 0x4dc]
add esi, 0x5f8
add eax, 4
mov edx, esi
call fcn.0040f920
mov eax, esi
call fcn.004102c0
pop edi
mov al, 1
pop esi
ret

Function at 0x40bd50
Capabilities:
Get file version info

Disassembly:
sub esp, 0x424
mov eax, dword [0x4b81f4]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
mov ebp, dword [esp + 0x430]
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x1e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x24], ax
call fcn.0046f9f0
add esp, 0xc
push 0x104
lea edx, [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40bdb7
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0046b4eb
add esp, 0x424
ret
push esi
push 0x206
lea ecx, [esp + 0x22a]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov word [esp + 0x230], ax
call fcn.0046f9f0
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x40be17
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0046b4eb
add esp, 0x424
ret
push edi
push esi
call fcn.0046b942
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x40be2e
xor al, al
jmp 0x40bed8
mov ecx, dword [esp + 0x1c]
push edi
push esi
push ecx
lea edx, [esp + 0x2c]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40becd
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40becd
cmp dword [esp + 0x10], 4
jb 0x40becd
mov eax, dword [esp + 0x14]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
push str.StringFileInfo_04x_04xCompanyName
lea edx, [esp + 0x234]
call fcn.0040cb20
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x230]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40becd
mov ecx, dword [esp + 0x10]
cmp ecx, 2
jbe 0x40becd
mov eax, dword [esp + 0x18]
cmp word [eax + ecx*2 - 2], bx
jne 0x40bec1
mov edx, ebp
call fcn.0040f920
jmp 0x40becb
push eax
mov eax, ecx
mov ebx, ebp
call fcn.0040f980
mov bl, 1
push edi
call fcn.0046b865
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046b4eb
add esp, 0x424
ret
Function at 0x40d960
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x48cd16
mov eax, dword fs:[0]
push eax
sub esp, 0x124
push esi
push edi
mov eax, dword [0x4b81f4]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x40d99c
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x40d9ba
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40da7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, esi
call fcn.0040d700
test al, al
je 0x40da7a
cmp byte [esi + 0x11c], 0
je 0x40d9f1
add esi, 0xc
jmp 0x40d9f4
mov esi, dword [esi + 8]
lea ecx, [esp + 0xc]
call fcn.0040f730
lea eax, [esi + 4]
lea edx, [esp + 0xc]
call fcn.0040f920
mov eax, ebx
mov dword [esp + 0x138], 1
call fcn.0040e680
mov esi, eax
call fcn.0040f390
mov eax, ebx
call fcn.0040e680
mov esi, eax
push 0x4ad650
lea eax, [esp + 0x10]
call fcn.0040f540
cmp byte [esp + 0x128], 0
mov dword [esp + 0xc], vtable.t_str.0
jne 0x40da60
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
cmp eax, ecx
je 0x40da60
push eax
call fcn.0046b865
add esp, 4
xor al, al
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x130
ret
mov al, 1
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x130
ret
Function at 0x40daf0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x48ccd1
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4b81f4]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push esi
push edi
mov eax, dword [0x4b81f4]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov edi, dword [esp + 0x270]
mov esi, ecx
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x40db42
mov eax, dword [esi + 8]
push 2
add eax, 4
push 0x4ad660
push eax
call fcn.0046c53b
add esp, 0xc
test eax, eax
je 0x40dc38
mov ecx, esi
call fcn.0040d740
test al, al
jne 0x40dc38
lea ecx, [esp + 0x134]
call fcn.0040d0f0
push esi
lea ebx, [esp + 0x138]
mov dword [esp + 0x26c], 2
call fcn.0040dfb0
test al, al
je 0x40dba2
push 0
push edi
mov ecx, ebx
call fcn.0040daf0
test al, al
je 0x40dc0e
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x40dbb1
mov eax, dword [esi + 8]
push 0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40dc1e
cmp byte [esi + 0x11c], al
je 0x40dbce
add esi, 0xc
jmp 0x40dbd1
mov esi, dword [esi + 8]
lea ecx, [esp + 0x10]
call fcn.0040f730
lea eax, [esi + 4]
lea edx, [esp + 0x10]
call fcn.0040f920
push 0x4ad668
mov ebx, edi
mov byte [esp + 0x26c], 4
call fcn.0040f360
mov esi, eax
lea eax, [esp + 0x14]
call fcn.0040f540
lea ecx, [esp + 0x10]
call fcn.0040d4b0
lea ecx, [esp + 0x134]
call fcn.0040d4b0
xor al, al
jmp 0x40dc3a
mov eax, esi
call fcn.0040e4d0
mov eax, esi
call fcn.0040e470
lea ecx, [esp + 0x134]
call fcn.0040d4b0
mov al, 1
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.0046b4eb
add esp, 0x25c
ret 8
Function at 0x40e500
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48d5f0
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b81f4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
mov ebx, ecx
mov edi, edx
mov ecx, 0x105
lea esi, [edi + 8]
mov dword [edi + 0x120], ecx
call fcn.00410400
cmp byte [esi + 0x114], 0
je 0x40e54d
add esi, 4
jmp 0x40e54f
mov esi, dword [esi]
cmp byte [ebp + 0x11c], 0
lea eax, [ebp + 0xc]
jne 0x40e55e
mov eax, dword [ebp + 8]
add esi, 4
push esi
push 0
push str..zip
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40e5b9
call fcn.0040fb80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, ebx
call fcn.0040e680
mov esi, eax
call fcn.0040f390
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
call fcn.0040e680
push 0x4adca8
push 0x4ad42c
mov edx, eax
call fcn.0040fd10
add esp, 8
xor al, al
jmp 0x40e5dd
call fcn.0040fb80
test al, al
jne 0x40e5d0
mov eax, ebx
call fcn.0040e680
push 0x4adcbc
jmp 0x40e5a6
mov ecx, edi
call fcn.0040d960
test al, al
je 0x40e59a
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4