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

Disassembly:
push 0xffffffffffffffff
push 0x46b5f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00463e4a
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043a680
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00463d78
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00460636
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00460636
push 1
push 0
push 0
mov ecx, esi
call fcn.004605de
push 1
push 0
push 1
mov ecx, esi
call fcn.004605de
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00463ebc
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43aeb0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46b618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00463e4a
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043a680
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00463d78
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43af74
cmp dword [esp + 0x40], 1
jne 0x43af72
cmp ecx, eax
jge 0x43af74
mov eax, ecx
cmp eax, 0xc8
jge 0x43af80
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043ad30
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00463ebc
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43b780
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46b6c3
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.0045ea56
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.004640f2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046560e
test eax, eax
je 0x43b89c
mov ecx, dword [esp + 0x3c]
call fcn.0046411f
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 0x43b860
push edi
mov ecx, esi
call fcn.0046177d
mov ecx, esi
call fcn.0043ba40
cmp dword [esp + 0x38], 1
jne 0x43b895
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.004618b8
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 0x43da70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43daa3
push esi
call fcn.00440be0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43da9c
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 0x43db29
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43db12
mov eax, dword [esi + 8]
test eax, eax
je 0x43dac7
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 0x43db0e
cmp eax, 2
je 0x43db12
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43daba
cmp eax, 3
je 0x43daed
cmp eax, 1
jne 0x43daba
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 0x43daba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43daba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043db50
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43db38
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043db50
add esp, 4
pop esi
ret

Function at 0x448e70
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x448ed6
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x448ed6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x448eb7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x449260
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x449298
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x449f60
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x449fa9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x44a420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46bc10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00449fd0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044a050
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044a050
lea ecx, [esi + 0xc]
call fcn.0045d430
lea ecx, [esi + 0x10]
call fcn.0045d430
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044b5e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044b5e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044b5e0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045d4a5
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045d4a5
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45f84c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45f884
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.0045d900
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045d8d8
jmp 0x45f890
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x460f3a
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 0x460f7c
call fcn.00466caf
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x460f7c
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x460f73
xor eax, eax
jmp 0x460f84
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00460f8a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4671df
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 0x46720d
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x46722b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00467145
jmp 0x46722b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46722b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00467145
test edi, edi
mov eax, edi
jne 0x467215
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40107e
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x4a85d8]
mov edx, dword [ebp + 8]
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4a85dc]
push edi
mov edi, dword [edx]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], edi
call fcn.00401077
mov eax, dword [0x4a85e0]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4a85e4]
add ebx, 0x23f
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x2da7014], 0xc
mov dword [ebp - 4], eax
jne 0x401106
xor eax, eax
push eax
lea ecx, [ebp - 0x30]
push ecx
push eax
lea ecx, [ebp - 0x430]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2da7014]
cmp eax, 0xfa9
jne 0x401122
mov dword [0x2da7010], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40113b
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and dword [0x2da6f68], 0
mov edx, dword [ebp + 8]
lea eax, [ebx + edi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x10], 0
mov dword [0x2da700c], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
lea eax, [ebx + esi]
mov dword [ebp - 0x14], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 8]
add ebx, 0x61c88647
sub edi, eax
dec dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edi
jne 0x4010d1
mov dword [edx], edi
pop edi
mov dword [edx + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x406525
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a7764]
jne 0x40652f
repz ret
jmp fcn.0040ae96

Function at 0x409d17
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404b1e
and dword [ebp - 4], 0
cmp dword [0x4ac81c], 0
mov ebx, eax
jne 0x409dc8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409e79
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409e79
push eax
call fcn.00404aac
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4ac81c], eax
call esi
push eax
call fcn.00404aac
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ac820], eax
call esi
push eax
call fcn.00404aac
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4ac824], eax
call esi
push eax
call fcn.00404aac
pop ecx
mov dword [0x4ac82c], eax
test eax, eax
je 0x409dc8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404aac
pop ecx
mov dword [0x4ac828], eax
mov eax, dword [0x4ac828]
cmp eax, ebx
je 0x409e20
cmp dword [0x4ac82c], ebx
je 0x409e20
push eax
call fcn.00404b27
push dword [0x4ac82c]
mov esi, eax
call fcn.00404b27
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409e20
test edi, edi
je 0x409e20
call esi
test eax, eax
je 0x409e17
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409e17
test byte [ebp - 0xc], 1
jne 0x409e20
or dword [ebp + 0x10], 0x200000
jmp 0x409e59
mov eax, dword [0x4ac820]
cmp eax, ebx
je 0x409e59
push eax
call fcn.00404b27
pop ecx
test eax, eax
je 0x409e59
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409e59
mov eax, dword [0x4ac824]
cmp eax, ebx
je 0x409e59
push eax
call fcn.00404b27
pop ecx
test eax, eax
je 0x409e59
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ac81c]
call fcn.00404b27
pop ecx
test eax, eax
je 0x409e79
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409e7b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100061a0
Capabilities:
Read file on windows

Disassembly:
call fcn.10004440
mov ecx, eax
jmp fcn.1000a800

Function at 0x10007d40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10007dbc
mov eax, dword [ebp - 4]
test eax, eax
je 0x10007dbc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebx
push esi
push edi
push 0x105
push ecx
push 0x1013e920
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, dword [sym.imp.USER32.dll_CharNextW]
push 0x1013e920
call edi
mov ebx, eax
push ebx
call edi
mov esi, eax
mov ax, word [0x1013e920]
test ax, ax
je 0x10009927
cmp word [ebx], 0x3a
jne 0x10009927
cmp word [ebx + 2], 0x5c
jne 0x10009927
push esi
call edi
mov esi, eax
jmp 0x10009978
cmp ax, 0x5c
jne 0x10009965
cmp word [0x1013e922], ax
jne 0x10009965
mov ebx, 2
nop dword [eax + eax]
movzx eax, word [esi]
dec ebx
test ax, ax
je 0x1000996b
mov ecx, eax
nop dword [eax + eax]
cmp cx, 0x5c
je 0x1000996b
push esi
call edi
mov esi, eax
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x10009950
pop edi
pop esi
xor al, al
pop ebx
ret
cmp word [esi], 0
je 0x10009965
add esi, 2
test ebx, ebx
jne 0x10009940
test esi, esi
je 0x10009965
mov ecx, esi
call fcn.10009780
movzx eax, word [esi]
test ax, ax
je 0x10009965
cmp eax, 0x5c
je 0x10009965
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, 0x1013e920
push 0x1013e920
sar esi, 1
call ebx
mov edi, dword [sym.imp.USER32.dll_CharPrevW]
cmp eax, esi
jle 0x10009a08
nop
push 0x1013e6d0
push 0x1013e920
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x100099d5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [0x1013e6d0], 0x10
je 0x10009965
push 0x1013e920
call ebx
lea eax, [eax*2 + 0x1013e920]
cmp word [eax], 0x5c
je 0x100099f8
push eax
push 0x1013e920
call edi
cmp eax, 0x1013e920
ja 0x100099e3
xor ecx, ecx
push 0x1013e920
mov word [eax], cx
call ebx
cmp eax, esi
jg 0x100099b0
push 0x1013e920
call ebx
lea eax, [eax*2 + 0x1013e920]
push eax
push 0x1013e920
call edi
cmp word [eax], 0x5c
je 0x10009a34
push 0x10107758
push 0x1013e920
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1013e920
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10009965
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x1000a800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e23f1
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x10138008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x450]
call fcn.100109a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
push 6
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
push str.HaoZip
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
call fcn.100049b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
lea ecx, [ebp - 0x450]
push dword [ebp - 0x428]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.100049b0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 2
call fcn.10004940
mov byte [ebp - 4], 0
test esi, esi
jne 0x1000a8d4
lea ecx, [ebp - 0x450]
call fcn.10013220
jmp 0x1000a9d9
cmp esi, 1
jne 0x1000a8e9
lea ecx, [ebp - 0x450]
call fcn.10013400
jmp 0x1000a9d9
cmp esi, 2
jne 0x1000a9d9
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100bea00
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x207
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.10007620
push esi
push 0x10107824
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 6
call fcn.10004c50
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push 0
cmovae eax, dword [ebp - 0x438]
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
mov dword [ebp - 0x454], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000a9b5
push 0
lea eax, [ebp - 0x458]
mov dword [ebp - 0x458], 0
push eax
push 4
lea eax, [ebp - 0x454]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
push esi
sbb eax, eax
and dword [ebp - 0x454], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x454]
lea ecx, [ebp - 0x450]
call fcn.10013590
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 7
call fcn.10004940
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0xffffffff
call fcn.100109f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100bcc77
mov esp, ebp
pop ebp
ret
Function at 0x1000b860
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e2648
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10138008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x9c]
cmp esi, 0x64
ja 0x1000b8b3
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
nop
push 0
push esi
push 0x7e8
push dword [edi + 4]
call ebx
inc esi
cmp esi, 0x64
jbe 0x1000b8a0
push 0x1f8
mov ecx, edi
call fcn.1000c0e0
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov byte [ebp - 0x59], 0
call esi
mov edx, eax
mov dword [ebp - 0x48], 0
mov ecx, edx
mov dword [ebp - 0x44], 0
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b8f4
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.100049b0
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x60], 0
call esi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x1000ba33
cmp dword [ebp - 0x60], 2
jl 0x1000ba04
mov edx, dword [ebx + 4]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b966
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.100049b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 3
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x1010782c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.100049b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
mov edx, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
push eax
push 0
call fcn.100084f0
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10004940
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.10004940
cmp esi, 0xffffffff
mov byte [ebp - 4], 0
setne byte [ebp - 0x59]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [ebp - 0x59], 0
je 0x1000ba33
push 0xbd0
push dword [edi + 4]
mov dword [edi + 0xd4], 0xffffffff
mov dword [edi + 0xd0], 2
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xb
call fcn.10004940
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100bcc77
mov esp, ebp
pop ebp
ret 0x10