joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442e90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x476cc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046a4c0
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046fb59
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00471075
test eax, eax
je 0x442fac
mov ecx, dword [esp + 0x3c]
call fcn.0046fb86
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x442f70
push edi
mov ecx, esi
call fcn.0046d1ea
mov ecx, esi
call fcn.00443110
cmp dword [esp + 0x38], 1
jne 0x442fa5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046d325
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4459d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x445a03
push esi
call fcn.00448ac0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4459fc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x445a89
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x445a72
mov eax, dword [esi + 8]
test eax, eax
je 0x445a27
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x445a6e
cmp eax, 2
je 0x445a72
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x445a1a
cmp eax, 3
je 0x445a4d
cmp eax, 1
jne 0x445a1a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x445a1a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x445a1a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00445ab0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x445a98
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00445ab0
add esp, 4
pop esi
ret

Function at 0x452ba0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x452c43
test eax, eax
jbe 0x452c43
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x452c43
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x452bee
xor esi, esi
jmp 0x452bf4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x452c1f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00409d80
add esi, eax
push esi
mov ebx, esi
call fcn.00409d80
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x452c00
pop ebp
test edi, edi
pop edi
jne 0x452c43
test ebx, ebx
je 0x452c43
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00459cf0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x452da5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x452ebd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x452ebd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046a912
mov esi, eax
test esi, esi
je 0x452ebd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x452ebd
mov ecx, esi
call fcn.00452d30
cmp edi, eax
jge 0x452ebd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x452e43
mov dword [esp + 0x34], 1
jmp 0x452e9e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x452ebd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00451520
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46b2b6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46b2ee
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00469343
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046931b
jmp 0x46b2fa
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46c9a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46c9e6
call fcn.0047245b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46c9e6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46c9dd
xor eax, eax
jmp 0x46c9ee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046c9f4
pop edi
pop esi
pop ebx
ret 4
Function at 0x47298b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4729b9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4729d7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004728f1
jmp 0x4729d7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4729d7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004728f1
test edi, edi
mov eax, edi
jne 0x4729c1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x85f982
Capabilities:
Encode data using xor

Disassembly:
daa
popfd
stosd dword es:[edi], eax
cwde
xchg ecx, eax
das
or ch, byte [ecx + 0x2ed3b426]
cwde
fstp dword [ebx - 0x35]
scasb al, byte es:[edi]
pop ebp
jmp 0x85f99d
loopne 0x85f9f5
loopne 0x85f9fc
adc eax, esp
push esi
mov dword [0x9627d48d], ebx
stc
outsb dx, byte [esi]
cld
wait
jbe 0x85f957
jmp 0x85fc0d1d
fidivr dword [ebp - 0xe9603b4]
popal
add bl, dh
xor ebp, dword [ecx - 0xe]
pushal
pop es
inc eax
imul esi, edi, 0x49f10267
jno 0x85f99d
jle 0x85f9d0
call 0x958b9316
cld
lss ebp, [ecx]
mov dh, 0x24
inc ebx
mov esi, 0x3bab390b
pop esi
lodsd eax, dword [esi]
imul edx, dword [ecx - 0x34], 0x15d42542
stc
pop ecx
adc eax, 0xa8c959f9
leave
test al, 0x5b
pop ebx
fidivr word [eax]
mov edx, 0x5ba4f28
sbb bl, byte [edi + 0x12996a0f]
jo 0x85f9d5
add ax, si
inc esp
outsb dx, byte [esi]
in eax, dx
jge 0x85f9f1
test dword [edx + 0x78], 0x60b6cfe
insb byte es:[edi], dx
or eax, dword [esi]
les ecx, [edx - 0x2d]
inc ebx
aad 0x61
dec edx
rol dword [ebx + 0x26], cl
aad 0x61
rcl byte [edx + ecx*8 - 0x53]
pop esp
in eax, dx
inc esi
rcl dword [ecx + 0x30], 0xc3
jg 0x85f9d3
push esp
retf 0x5cad
inc edi
xlatb
mov dl, 0x41
push dword [ebx - 8]
outsb dx, byte [esi]
or eax, edi
dec eax
pop edi
aad 0x45
sub al, 0xdf
invalid
Function at 0x4011ae
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x458220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0xc35
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x401214
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00434680
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x401214
add esi, 0x10
lea eax, [ebp - 0x804]
call fcn.0040124c
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00434390
leave
ret

Function at 0x401677
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x458220]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
cmp dword [eax + 0x18], 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
jb 0x4016aa
mov eax, dword [eax + 4]
jmp 0x4016ad
add eax, 4
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x74]
push ecx
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push 0x448dac
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401739
cmp dword [ebp - 0x74], ebx
je 0x401739
mov eax, 0x208
push eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00434680
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x4016fa
mov edi, dword [edi + 4]
jmp 0x4016fd
add edi, 4
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x401722
lea eax, [ebp - 0x70]
call fcn.0040124c
cmp dword [ebp - 0x74], ebx
je 0x401730
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
sete al
jmp 0x40173b
xor al, al
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434390
add ebp, 0x19c
leave
ret 4

Function at 0x401755
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [eax + 0x18], 8
push ebx
push esi
mov esi, ecx
jb 0x401769
mov eax, dword [eax + 4]
jmp 0x40176c
add eax, 4
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push 0x448dac
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4017e1
cmp dword [ebp - 4], ebx
je 0x4017e1
mov eax, dword [esi + 0x14]
add eax, eax
cmp dword [esi + 0x18], 8
jb 0x4017a8
mov esi, dword [esi + 4]
jmp 0x4017ab
add esi, 4
cmp dword [edi + 0x18], 8
jb 0x4017b6
mov ecx, dword [edi + 4]
jmp 0x4017b9
lea ecx, [edi + 4]
push eax
push esi
push 1
push ebx
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x4017d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x4017e3
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x402d16
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push 0x44
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00434680
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.00434680
add esp, 0x18
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
jb 0x402d5c
mov esi, dword [esi + 4]
jmp 0x402d5f
add esi, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x402d6d
mov eax, dword [eax + 4]
jmp 0x402d70
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402d9c
cmp dword [ebp - 0x14], ebx
je 0x402d98
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x402d9e
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x403c02
Capabilities:
Accept command line arguments

Disassembly:
push 0x28
mov eax, 0x44463e
call fcn.004363af
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], esi
jb 0x403c24
mov eax, dword [eax + 4]
jmp 0x403c27
add eax, 4
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, esi
jne 0x403c3c
xor al, al
jmp 0x403c8f
xor edi, edi
cmp dword [ebp - 0x30], esi
jle 0x403c7b
jmp 0x403c47
xor esi, esi
mov eax, dword [ebx + edi*4]
lea ecx, [ebp - 0x2c]
call fcn.00401222
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], esi
je 0x403c66
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x34]
call fcn.00403cec
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea esi, [ebp - 0x2c]
call fcn.004012ba
inc edi
cmp edi, dword [ebp - 0x30]
jl 0x403c45
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x34]
call fcn.00403cd6
test eax, eax
setne al
call fcn.00436432
ret 4
Function at 0x40612b
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x458220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x40614c
mov eax, dword [eax + 4]
jmp 0x40614f
add eax, 4
push 0x100
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x406176
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434390
leave
ret 4

Function at 0x408bdf
Capabilities:
Get graphical window text

Disassembly:
push 0x274
mov eax, 0x44529b
call fcn.004363af
lea eax, [ebp - 0x258]
mov edi, ecx
push 0x5087
push eax
mov dword [ebp - 0x264], edi
call fcn.00402cc5
pop ecx
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
jae 0x408c22
lea eax, [ebp - 0x254]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [edi + 4]
call esi
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00434680
add esp, 0xc
push 0x3ec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x25c], eax
je 0x408c9d
push eax
call ebx
test eax, eax
je 0x408c9d
push 0x104
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x408c9d
and word [ebp - 0x18], 0
lea esi, [edi + 0x298]
lea eax, [ebp - 0x220]
call fcn.0040124c
jmp 0x408cc6
push dword [ebp - 0x25c]
call ebx
test eax, eax
je 0x408cc6
lea eax, [edi + 0x298]
cmp dword [eax + 0x18], 8
jb 0x408cba
mov eax, dword [eax + 4]
jmp 0x408cbd
add eax, 4
push eax
push dword [ebp - 0x25c]
call esi
add edi, 0x298
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x25c], edi
call fcn.0042c5d0
push 0xffffffffffffffff
push edi
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.00401318
push ebx
push 1
lea esi, [ebp - 0x280]
mov byte [ebp - 4], bl
call fcn.004012ba
push 0x44909c
mov eax, edi
call fcn.0040c1c0
mov edi, dword [ebp - 0x264]
cmp byte [edi + 0x90], bl
pop ecx
je 0x408ded
cmp dword [edi + 0x88], ebx
je 0x408ded
mov eax, dword [ebp - 0x25c]
lea esi, [edi + 0x74]
call fcn.0040bf70
test eax, eax
je 0x408ded
lea eax, [edi + 0x324]
lea esi, [ebp - 0x23c]
call fcn.00403d4c
mov ebx, esi
mov byte [ebp - 4], 2
call fcn.0040c2c0
push 0x25
push 0x3a
mov edi, esi
call fcn.0040c0f0
push 0x25
push 0x5c
call fcn.0040c0f0
mov edi, str.SoftwareHaoZip_SFX
add esp, 0x10
mov eax, edi
lea ecx, [ebp - 0x280]
call fcn.00401222
lea eax, [ebp - 0x280]
call fcn.00401624
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x280]
mov byte [ebp - 0x25d], al
call fcn.004012ba
cmp byte [ebp - 0x25d], bl
je 0x408ddd
mov eax, edi
lea ecx, [ebp - 0x280]
call fcn.00401222
mov ecx, dword [ebp - 0x25c]
lea edi, [ebp - 0x23c]
lea eax, [ebp - 0x280]
call fcn.00401755
push ebx
push 1
lea esi, [ebp - 0x280]
call fcn.004012ba
push ebx
push 1
lea esi, [ebp - 0x23c]
call fcn.004012ba
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x258]
call fcn.004012ba
call fcn.00436432
ret
Function at 0x40b820
Capabilities:
Create directory

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40b838
mov eax, dword [eax + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
ret
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
ret

Function at 0x40b850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4451a8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x458220]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov eax, dword [0x458220]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
push 0x449454
mov esi, ecx
call fcn.004342fa
add esp, 4
push eax
mov eax, esi
call fcn.0040bde0
cmp eax, 0xffffffff
jne 0x40b8bd
cmp dword [esi + 0x18], 8
jb 0x40b8a7
mov esi, dword [esi + 4]
jmp 0x40b8aa
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40b922
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
lea edx, [esp + 0xc]
push edx
push esi
mov dword [esp + 0x68], eax
call fcn.0040e650
add esp, 8
cmp dword [esp + 0x4c], 8
mov bl, al
jb 0x40b920
mov eax, dword [esp + 0x38]
push eax
call fcn.0043438b
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00434390
add esp, 0x58
ret
Function at 0x40d4f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x444bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x458220]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x458220]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
xor ebx, ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.00401318
push 0x24
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], esi
call fcn.0040cee0
mov eax, dword [esp + 0x14]
mov esi, 8
add esp, 4
cmp dword [esp + 0x24], esi
jae 0x40d56a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d58d
cmp dword [esp + 0x24], esi
jb 0x40d589
mov edx, dword [esp + 0x10]
push edx
call fcn.0043438b
add esp, 4
mov al, 1
jmp 0x40d5a2
cmp dword [esp + 0x24], esi
jb 0x40d5a0
mov eax, dword [esp + 0x10]
push eax
call fcn.0043438b
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00434390
add esp, 0x2c
ret

Function at 0x40d5c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x444bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x458220]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x458220]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
xor ebx, ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.00401318
push 0x24
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], esi
call fcn.0040cee0
mov eax, dword [esp + 0x14]
mov esi, 8
add esp, 4
cmp dword [esp + 0x24], esi
jae 0x40d63a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d661
test al, 0x10
jne 0x40d661
cmp dword [esp + 0x24], esi
jb 0x40d65d
mov edx, dword [esp + 0x10]
push edx
call fcn.0043438b
add esp, 4
mov al, 1
jmp 0x40d676
cmp dword [esp + 0x24], esi
jb 0x40d674
mov eax, dword [esp + 0x10]
push eax
call fcn.0043438b
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00434390
add esp, 0x2c
ret
Function at 0x40d6a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x444bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x458220]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x458220]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
xor ebx, ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.00401318
push 0x24
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], esi
call fcn.0040cee0
mov eax, dword [esp + 0x14]
mov esi, 8
add esp, 4
cmp dword [esp + 0x24], esi
jae 0x40d71a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d741
test al, 0x10
je 0x40d741
cmp dword [esp + 0x24], esi
jb 0x40d73d
mov edx, dword [esp + 0x10]
push edx
call fcn.0043438b
add esp, 4
mov al, 1
jmp 0x40d756
cmp dword [esp + 0x24], esi
jb 0x40d754
mov eax, dword [esp + 0x10]
push eax
call fcn.0043438b
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00434390
add esp, 0x2c
ret

Function at 0x40d780
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x40d78e
mov eax, dword [esi]
jmp 0x40d790
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
cmp dword [edi + 0x18], 8
jb 0x40d7a4
mov ecx, dword [esi]
jmp 0x40d7a6
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x18], 8
jb 0x40d7b6
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
pop esi
ret