joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp]
push esi
xor esi, esi
push eax
push 1
push esi
push ecx
push edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401eb2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 4]
push eax
push eax
lea eax, [esp + 0x10]
push eax
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401ead
cmp eax, 0xea
jne 0x401eb2
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x401ec1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret

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

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0xc]
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x402011
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x4026c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x402764
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x402764
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4026f3
and eax, 0x10
cmp al, 0x10
je 0x402754
push ebx
call dword [sym.imp.MSVCRT.dll__strdup]
mov esi, eax
add esp, 4
test esi, esi
je 0x402741
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x402746
push esi
mov byte [eax], 0
call fcn.004026c0
mov edi, eax
add esp, 4
test edi, edi
jne 0x402746
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40275a
mov eax, edi
pop edi
pop esi
pop ebx
ret
mov edi, 8
test esi, esi
je 0x402754
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 0x57
pop ebx
ret

Function at 0x4027d0
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4027fc
xor al, al
pop esi
add esp, 0x28
ret
lea ecx, [esp + 0x1c]
push ebx
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x402871
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x402871
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x402871
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
add esp, 0x28
ret
Function at 0x403cc0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x403ccf
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x408064]
test eax, eax
je 0x403cdd
call fcn.00403b70
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x403dd1
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x4097f0]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4097f0]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4097f0]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4097f0]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4097f0]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4097f0]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4097f0]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4097f0]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x403cf7
pop edi
pop ebx
test edx, edx
je 0x403df1
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4097f0]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x403dd5
not eax
pop esi
ret 0xc
Function at 0x1008885
Capabilities:
Clear file content

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
cmp edi, dword [0x100bb88]
jae 0x10089e1
mov eax, edi
sar eax, 5
mov eax, dword [eax*4 + 0x100bba0]
mov ecx, edi
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x10089e1
push 1
push esi
push edi
call fcn.01007e9b
or ebp, 0xffffffff
add esp, 0xc
cmp eax, ebp
mov dword [esp + 0xc], eax
je 0x10089dd
push 2
push esi
push edi
call fcn.01007e9b
add esp, 0xc
cmp eax, ebp
je 0x10089dd
push ebx
mov ebx, dword [esp + 0x1c]
sub ebx, eax
test ebx, ebx
jle 0x1008989
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
jne 0x1008921
mov dword [0x100b760], 0xc
or esi, 0xffffffff
jmp 0x10089c9
push 0x8000
push edi
call fcn.010089fc
pop ecx
pop ecx
mov dword [esp + 0x18], eax
mov eax, 0x1000
cmp ebx, eax
jge 0x100893d
mov eax, ebx
push eax
push ebp
push edi
call fcn.01007c62
add esp, 0xc
cmp eax, 0xffffffff
je 0x1008955
sub ebx, eax
test ebx, ebx
jg 0x1008932
jmp 0x100896b
cmp dword [0x100b764], 5
jne 0x1008968
mov dword [0x100b760], 0xd
or esi, 0xffffffff
push dword [esp + 0x18]
push edi
call fcn.010089fc
pop ecx
pop ecx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10089c9
jge 0x10089c9
push 0
push dword [esp + 0x20]
push edi
call fcn.01007e9b
push edi
call fcn.01007c26
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebp
jne 0x10089c9
mov dword [0x100b760], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x100b764], eax
push 0
push dword [esp + 0x14]
push edi
call fcn.01007e9b
add esp, 0xc
mov eax, esi
pop ebx
jmp 0x10089ee
mov eax, ebp
jmp 0x10089ee
mov dword [0x100b760], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x4010c8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x452210]
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 0x40113b
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00431dc0
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40113b
lea eax, [ebp - 0x804]
push eax
call fcn.00431e7f
pop ecx
add esi, 0x10
lea ecx, [ebp - 0x804]
call fcn.004011a6
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00431f15
leave
ret

Function at 0x401583
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x452210]
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 0x4015b6
mov eax, dword [eax + 4]
jmp 0x4015b9
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 0x442d8c
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40164f
cmp dword [ebp - 0x74], ebx
je 0x40164f
mov eax, 0x208
push eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00431dc0
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x401606
mov edi, dword [edi + 4]
jmp 0x401609
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 0x401638
lea eax, [ebp - 0x70]
push eax
call fcn.00431e7f
pop ecx
lea ecx, [ebp - 0x70]
call fcn.004011a6
cmp dword [ebp - 0x74], ebx
je 0x401646
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
sete al
jmp 0x401651
xor al, al
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431f15
add ebp, 0x19c
leave
ret 4

Function at 0x40166b
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 0x40167f
mov eax, dword [eax + 4]
jmp 0x401682
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 0x442d8c
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4016f7
cmp dword [ebp - 4], ebx
je 0x4016f7
mov eax, dword [esi + 0x14]
add eax, eax
cmp dword [esi + 0x18], 8
jb 0x4016be
mov esi, dword [esi + 4]
jmp 0x4016c1
add esi, 4
cmp dword [edi + 0x18], 8
jb 0x4016cc
mov ecx, dword [edi + 4]
jmp 0x4016cf
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 0x4016ee
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x4016f9
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x402c7f
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.00431dc0
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.00431dc0
add esp, 0x18
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
jb 0x402cc5
mov esi, dword [esi + 4]
jmp 0x402cc8
add esi, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x402cd6
mov eax, dword [eax + 4]
jmp 0x402cd9
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 0x402cfe
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
pop ebx
leave
ret 4
Function at 0x402d6d
Capabilities:
Create process on windows

Disassembly:
push 0x60
mov eax, 0x43f6c6
call fcn.00433e5d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
push 1
sub esp, 0x14
mov dword [ebp - 4], eax
mov esi, esp
mov dword [ebp - 0x50], esp
call fcn.00403e1d
push dword [ebp + 8]
lea ebx, [ebp - 0x64]
call fcn.00403ea0
add esp, 0x1c
mov eax, ebx
call fcn.00403884
test eax, eax
je 0x402ef6
mov esi, dword [ebp - 0x60]
cmp esi, dword [ebp - 0x5c]
jbe 0x402dcc
call fcn.004322f5
lea eax, [ebp - 0x64]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], esi
mov edi, 0x442e24
mov esi, dword [ebp - 0x5c]
cmp dword [ebp - 0x60], esi
jbe 0x402de7
call fcn.004322f5
cmp dword [ebp - 0x50], esi
je 0x402ef6
lea esi, [ebp - 0x54]
call fcn.0040383d
xor ebx, ebx
cmp dword [eax + 0x14], ebx
je 0x402ee0
call fcn.0040383d
mov esi, dword [ebp - 0x6c]
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040af34
pop ecx
pop ecx
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0040b1fb
test al, al
je 0x402e70
lea ecx, [ebp - 0x4c]
call fcn.00402d04
test al, al
je 0x402e43
lea eax, [ebp - 0x4c]
push eax
mov eax, esi
call fcn.00402c7f
jmp 0x402ed2
cmp dword [esi + 0x18], 8
jb 0x402e4e
mov eax, dword [esi + 4]
jmp 0x402e51
lea eax, [esi + 4]
cmp dword [ebp - 0x34], 8
mov ecx, dword [ebp - 0x48]
jae 0x402e5d
lea ecx, [ebp - 0x48]
push 1
push eax
push ebx
push ecx
push 0x442e18
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x402ed2
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], bx
push edi
mov byte [ebp - 4], 2
call fcn.00431e7f
pop ecx
mov ecx, edi
lea esi, [ebp - 0x30]
call fcn.004011a6
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x4c]
call fcn.00403c61
push 0x442e34
mov eax, esi
push eax
call fcn.004037ac
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x402eb7
lea eax, [ebp - 0x2c]
push ebx
push 0x442e40
push eax
push dword [ebp - 0x68]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea esi, [ebp - 0x30]
call fcn.0040115f
push ebx
push 1
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0040115f
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x5c]
jb 0x402eed
call fcn.004322f5
add dword [ebp - 0x50], 0x1c
jmp 0x402dda
lea esi, [ebp - 0x64]
call fcn.0040393c
call fcn.00433ee0
ret 0xc
Function at 0x402f06
Capabilities:
Query environment variable

Disassembly:
push 0x10
mov eax, 0x43dad3
call fcn.00433df4
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov word [ebx + 4], cx
mov dword [ebp - 4], ecx
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], eax
jb 0x402f40
mov eax, dword [eax]
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jbe 0x402fa6
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00431bb9
lea ecx, [esi + esi + 2]
push ecx
push 0
push eax
mov dword [ebp - 0x10], eax
call fcn.00431dc0
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp dword [edi + 0x18], 8
jb 0x402f84
mov eax, dword [eax]
push esi
push dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x402f9d
push dword [ebp - 0x10]
mov esi, ebx
call fcn.00401149
push dword [ebp - 0x10]
call fcn.00432675
pop ecx
mov eax, ebx
call fcn.00433ecc
ret

Function at 0x407a65
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x452210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x407a86
mov eax, dword [eax + 4]
jmp 0x407a89
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 0x407ab0
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431f15
leave
ret 4
Function at 0x4082e2
Capabilities:
Get graphical window text

Disassembly:
push 0x25c
mov eax, 0x4401f9
call fcn.00433e5d
push str.ck_WS_
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x208
xor edi, edi
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.00431dc0
add esp, 0xc
push 0x3ec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, edi
je 0x40835d
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40835d
lea eax, [ebp - 0x21c]
push eax
call fcn.00431e7f
pop ecx
lea esi, [ebx + 0x194]
lea ecx, [ebp - 0x21c]
call fcn.004011a6
cmp dword [ebx + 0x20], 2
jne 0x408431
cmp byte [ebx + 0x40], 0
je 0x408431
cmp dword [ebx + 0x38], edi
je 0x408431
lea esi, [ebx + 0x24]
lea eax, [ebx + 0x194]
mov ecx, esi
call fcn.0040a735
test eax, eax
je 0x408431
mov eax, esi
lea esi, [ebp - 0x238]
call fcn.0040378d
push 0x3a
mov dword [ebp - 4], edi
call fcn.0040a85d
pop ecx
push 0x5c
call fcn.0040a85d
pop ecx
mov edi, str.SoftwareHaoZip_SFX
push edi
lea eax, [ebp - 0x258]
call fcn.00403761
lea eax, [ebp - 0x258]
call fcn.00401530
push 0
push 1
lea esi, [ebp - 0x258]
mov byte [ebp - 0x239], al
call fcn.0040115f
cmp byte [ebp - 0x239], 0
je 0x40841e
push edi
lea eax, [ebp - 0x258]
call fcn.00403761
lea ecx, [ebx + 0x194]
lea edi, [ebp - 0x238]
lea eax, [ebp - 0x258]
call fcn.0040166b
push 0
push 1
lea esi, [ebp - 0x258]
call fcn.0040115f
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea esi, [ebp - 0x238]
call fcn.0040115f
lea eax, [ebp - 0x268]
call fcn.00402c6e
mov dword [ebp - 4], 1
push dword [ebx + 4]
lea eax, [ebx + 0x194]
push eax
lea ecx, [ebp - 0x268]
lea eax, [ebx + 0x14]
push ecx
call fcn.004035b9
lea esi, [ebp - 0x268]
call fcn.00402c7a
call fcn.00433ee0
ret
Function at 0x4087b7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov ecx, dword [esi + 0x10]
sub ecx, 0
push ebx
mov ebx, 0x3ec
lea eax, [ebx - 3]
push edi
mov dword [ebp - 0x30], 0x3f0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x3ed
mov dword [ebp - 0x24], 0x3f1
mov dword [ebp - 0x20], 0x3ee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x3ea
je 0x40890c
dec ecx
je 0x408852
dec ecx
jne 0x408989
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x40881f
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push dword [esi + 4]
call edi
test eax, eax
je 0x408832
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x3ed
push dword [esi + 4]
call edi
test eax, eax
je 0x408989
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x408989
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
lea ebx, [ebp - 0x14]
mov dword [ebp - 4], 0x458e3c
mov dword [ebp - 8], 2
push dword [ebx]
push dword [esi + 4]
call edi
test eax, eax
je 0x408887
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x14], 8
jb 0x40887f
mov ecx, dword [ecx]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
add dword [ebp - 4], 0x1c
add ebx, 4
dec dword [ebp - 8]
jne 0x408869
push 0x3eb
push dword [esi + 4]
call edi
mov ebx, eax
test ebx, ebx
je 0x4088ec
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x10]
sub eax, 0x52
push 0x44
mov dword [ebp - 0x10], eax
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0xfffffffffffffffe
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
xor ebx, ebx
push dword [ebp + ebx*4 - 0x30]
push dword [esi + 4]
call edi
test eax, eax
je 0x408904
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc ebx
cmp ebx, 5
jb 0x4088ee
jmp 0x408989
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
xor ebx, ebx
push dword [ebp + ebx*4 - 0x30]
push dword [esi + 4]
call edi
test eax, eax
je 0x40892a
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc ebx
cmp ebx, 5
jb 0x408914
push 0x3eb
push dword [esi + 4]
call edi
mov edi, eax
test edi, edi
je 0x408989
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x10]
add eax, 0x52
push 0x44
mov dword [ebp - 0x10], eax
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0xfffffffffffffffe
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop ebx
leave
ret
Function at 0x40b1e2
Capabilities:
Move file

Disassembly:
jmp 0x40cb8d
cmp dword [eax + 0x18], 8
jb 0x40cb98
mov eax, dword [eax + 4]
jmp 0x40cb9b
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40cba6
mov ecx, dword [ecx + 4]
jmp 0x40cba9
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x40b1e7
Capabilities:
Delete directory

Disassembly:
jmp 0x40cbb7
cmp dword [eax + 0x18], 8
jb 0x40cbc2
mov eax, dword [eax + 4]
jmp 0x40cbc5
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
ret

Function at 0x40b1ec
Capabilities:
Create directory

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

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

Disassembly:
push 0x20
mov eax, 0x43e219
call fcn.00433e5d
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.0040378d
and dword [ebp - 4], 0
mov eax, esi
push 0x442e58
push eax
call fcn.0040a956
push 0x443738
mov eax, esi
call fcn.0040a8e7
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
jae 0x40b389
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b3af
test al, 0x10
je 0x40b3af
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.0040115f
mov al, bl
call fcn.00433ee0
ret
xor bl, bl
jmp 0x40b39b

Function at 0x40c388
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword [edi]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x40c395
xor al, al
pop ebx
ret
cmp dword [eax + 4], ebx
je 0x40c391
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x40c2d2
push ebx
push ebx
call fcn.0043326d
mov ecx, dword [edi]
mov dword [ecx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], ebx
jne 0x40c3cc
or dword [eax + 0x10], 0xffffffff
mov esi, dword [edi]
call fcn.0040c315
xor al, al
jmp 0x40c3ee
mov byte [eax + 8], 1
mov eax, dword [edi]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40c3ec
mov esi, dword [edi]
call fcn.0040c315
mov eax, dword [edi]
mov byte [eax + 8], bl
mov al, 1
pop esi
pop ebx
ret

Function at 0x40cb6e
Capabilities:
Set file attributes

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40cb79
mov eax, dword [eax + 4]
jmp 0x40cb7c
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret