joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d7a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x396f588
mov dword [ebp - 4], 0x10
call dword [0x39652a4]
push 0x396f588
call dword [0x39652a8]
or ecx, 0xffffffff
mov edx, 0x396f588
test eax, eax
je 0x1000d7ed
movzx esi, byte [edx]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x396f6c8]
inc edx
dec eax
jne 0x1000d7d4
mov edi, dword [0x39654d4]
not ecx
mov esi, ecx
push esi
push 0x396e504
push 0x396f5a0
call edi
lea ebx, [esi + esi]
push ebx
push 0x396e504
push 0x396f54c
call edi
lea ecx, [esi + esi*2]
push ecx
push 0x396e504
push 0x396f5dc
call edi
push esi
push 0x396e580
push 0x396f670
call edi
push ebx
push 0x396e580
push 0x396f630
call edi
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000da30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x101
lea eax, [ebp - 0x104]
push eax
push ecx
call dword [0x39654e4]
mov edx, eax
or eax, 0xffffffff
lea ecx, [ebp - 0x104]
test edx, edx
je 0x1000da7a
push esi
lea esp, [esp]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x396f6c8]
inc ecx
dec edx
jne 0x1000da60
pop esi
not eax
mov esp, ebp
pop ebp
ret

Function at 0x1000daf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x3979ed4]
sub esp, 0x104
push ebx
mov ebx, dword [0x39653a8]
push esi
push edi
push 1
push 5
push eax
call ebx
push eax
call ebx
mov edi, dword [0x396540c]
mov esi, eax
lea esp, [esp]
push esi
call dword [0x39653e4]
test eax, eax
je 0x1000dbb7
push 0xfffffffffffffff0
push esi
call dword [0x396541c]
test eax, 0x40000000
jne 0x1000db9c
push 0x101
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [0x39654e4]
or ecx, 0xffffffff
lea edx, [ebp - 0x104]
test eax, eax
je 0x1000db7f
nop
movzx ebx, byte [edx]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x396f6c8]
inc edx
dec eax
jne 0x1000db60
mov ebx, dword [0x39653a8]
not ecx
test ecx, ecx
je 0x1000db96
xor eax, eax
cmp ecx, dword [eax*8 + 0x396e528]
je 0x1000dbcd
inc eax
cmp eax, 0xb
jb 0x1000db87
xor eax, eax
test al, 0x20
je 0x1000dbb7
push 0
push 0x1b
push 0x100
push esi
call edi
push 0xc01b0000
push 0x1b
push 0x101
push esi
call edi
push 3
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x1000db20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [eax*8 + 0x396e52c]
jmp 0x1000db98
Function at 0x100282e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x100282f0
xor eax, eax
pop ebp
ret 4
push esi
not eax
cmp edx, 8
jb 0x100283bf
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x3967d50]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x3967d50]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x3967d50]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x3967d50]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x3967d50]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x3967d50]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x3967d50]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x3967d50]
add ecx, 8
sub edx, 8
dec esi
jne 0x10028302
pop edi
test edx, edx
je 0x100283dc
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x3967d50]
inc ecx
dec edx
jne 0x100283c3
not eax
pop esi
pop ebp
ret 4
Function at 0x100283f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
call dword [0x396512c]
cmp eax, 1
je 0x10028411
mov eax, 0x1000000
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x74]
push eax
push edi
call dword [0x3965128]
test eax, eax
jne 0x1002842d
mov eax, 0x200
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x30]
push ecx
call dword [0x39651f4]
lea edx, [ebp - 0x40]
push edx
call dword [0x3965134]
mov esi, dword [0x3965138]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
push ecx
call esi
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x40]
push eax
call esi
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sbb ecx, dword [ebp - 0x14]
sub dword [ebp - 0x60], eax
sbb dword [ebp - 0x5c], ecx
sub dword [ebp - 0x68], eax
sbb dword [ebp - 0x64], ecx
sub dword [ebp - 0x70], eax
sbb dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x74]
mov eax, ecx
xor esi, esi
and eax, 1
je 0x1002848f
mov dword [ebp - 8], 1
mov esi, dword [ebp - 8]
test cl, 2
je 0x10028497
or esi, 2
test cl, 4
je 0x1002849f
or esi, 4
mov edx, ecx
and edx, 0x10
je 0x100284a9
or esi, 0x10
test cl, 0x20
je 0x100284b1
or esi, 0x20
test edx, edx
je 0x100284bd
or esi, 0x40000000
jmp 0x100284c3
or esi, 0x80000000
or esi, 0x1000000
mov dword [ebp - 8], esi
test eax, eax
jne 0x100284d9
or esi, 0x800000
mov dword [ebp - 8], esi
push 0
push edi
call dword [0x396513c]
mov dword [ebp - 0x10], eax
cmp eax, 0x28
jbe 0x10028580
mov esi, dword [0x39651fc]
push 0
push 0
push 0
push edi
call esi
mov ebx, dword [0x396521c]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 2
lea edx, [ebp - 4]
push edx
push edi
call ebx
push 0
push 0
push 0x24
push edi
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea ecx, [ebp - 0x14]
push ecx
push edi
call ebx
mov edx, 0x54ad
cmp word [ebp - 4], dx
jne 0x1002857d
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x1002857d
push 0
push 0
push eax
push edi
call esi
push 0
lea edx, [ebp - 0xc]
push edx
push 4
lea eax, [ebp - 0x1c]
push eax
push edi
call ebx
mov eax, dword [ebp - 0x1c]
cmp eax, 0x5a4d
je 0x10028576
cmp eax, 0x454e
je 0x10028576
cmp eax, 0x454c
je 0x10028576
cmp eax, 0x4550
jne 0x1002857d
or dword [ebp - 8], 0x400000
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
je 0x1002858b
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x10028597
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
cmp eax, ecx
je 0x100285a6
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov esi, dword [ebp + 0x14]
cmp esi, ecx
je 0x100285ce
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x60]
push edx
call dword [0x3965140]
movzx eax, word [ebp + 8]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
mov dword [esi], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1002d330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov eax, dword [eax + 0x340]
push esi
push edi
test eax, eax
jne 0x1002d350
mov eax, 0x396acd4
push 0x396acc0
push eax
lea ecx, [ebp - 0x214]
push 0x396acdc
push ecx
call dword [0x39654d4]
lea eax, [ebp - 0x214]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d374
mov ecx, dword [ebx + 0x75c4]
sub eax, edx
lea edx, [ecx + eax + 0xd]
cmp edx, 0x7530
jbe 0x1002d3be
push ecx
lea eax, [ebx + 0x94]
push eax
mov eax, ebx
call fcn.10030cd0
test eax, eax
jns 0x1002d3b4
mov esi, ebx
call fcn.10030a00
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x75c4], 0
mov al, byte [0x396e05d]
movsx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x302fefc
xor edx, edx
add ecx, 0xfffe0003
test al, al
lea eax, [ebp - 0x214]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
lea edx, [eax + 1]
je 0x1002d411
jmp 0x1002d3f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d3f0
sub eax, edx
lea edx, [eax + 1]
shr edx, 8
inc eax
and edx, 0xff
shl eax, 8
xor edx, eax
mov word [ebp - 0xc], dx
jmp 0x1002d41f
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d411
sub eax, edx
inc eax
mov word [ebp - 0xc], ax
mov ecx, dword [ebx + 0x75c4]
xor eax, eax
lea edi, [ecx + ebx + 0x94]
mov word [ebp - 0xa], ax
lea esi, [ebp - 0x10]
mov ecx, 0xc
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x75c4], 0xc
mov edx, dword [ebx + 0x75c4]
lea eax, [ebp - 0x214]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d452
sub eax, esi
lea ecx, [eax + 1]
lea edi, [edx + ebx + 0x94]
lea esi, [ebp - 0x214]
lea eax, [ebp - 0x214]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d476
sub eax, edx
inc eax
add dword [ebx + 0x75c4], eax
mov eax, dword [ebx + 0x75c4]
push eax
lea edx, [ebx + 0x94]
push edx
mov eax, ebx
call fcn.10030cd0
test eax, eax
js 0x1002d3a2
pop edi
pop esi
mov dword [ebx + 0x75c4], 0
or al, 0xff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10036380
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push ebx
push esi
mov esi, dword [edx + 4]
mov edx, eax
shr edx, 4
xor edx, esi
and edx, 0xf0f0f0f
xor esi, edx
shl edx, 4
xor eax, edx
mov edx, eax
shr edx, 0x10
xor edx, esi
and edx, 0xffff
xor esi, edx
shl edx, 0x10
xor eax, edx
mov edx, esi
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
add edx, edx
add edx, edx
xor esi, edx
mov edx, esi
shr edx, 8
xor edx, eax
and edx, 0xff00ff
xor eax, edx
shl edx, 8
xor esi, edx
rol esi, 1
mov edx, esi
xor edx, eax
and edx, 0xaaaaaaaa
xor esi, edx
xor edx, eax
rol edx, 1
push edi
mov ecx, 0x397d708
mov dword [ebp - 4], edx
mov dword [ebp - 8], 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx]
add ecx, 0x10
mov edx, eax
shr edx, 0x18
mov edi, eax
shr edi, 0x10
and edi, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x396d6a8]
or edx, dword [edi*4 + 0x396d8a8]
mov edi, eax
shr edi, 8
and edi, 0x3f
or edx, dword [edi*4 + 0x396daa8]
and eax, 0x3f
or edx, dword [eax*4 + 0x396dca8]
mov eax, dword [ecx - 0xc]
xor eax, esi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x396d7a8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x396d9a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x396dba8]
and eax, 0x3f
or edi, dword [eax*4 + 0x396dda8]
or edi, edx
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 4]
xor edi, dword [ebp - 0xc]
mov eax, edi
ror eax, 4
xor eax, dword [ecx - 8]
mov dword [ebp - 4], edi
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x396d6a8]
or edx, dword [ebx*4 + 0x396d8a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edx, dword [ebx*4 + 0x396daa8]
and eax, 0x3f
or edx, dword [eax*4 + 0x396dca8]
mov eax, dword [ecx - 4]
xor eax, edi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x396d7a8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x396d9a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x396dba8]
and eax, 0x3f
or edi, dword [eax*4 + 0x396dda8]
or edi, edx
xor esi, edi
dec dword [ebp - 8]
jne 0x10036403
mov ecx, dword [ebp - 4]
ror esi, 1
mov eax, esi
xor eax, ecx
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, ecx
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
add ecx, ecx
add ecx, ecx
xor eax, ecx
mov edx, dword [ebp + 8]
mov ecx, esi
shr ecx, 0x10
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
xor ecx, eax
pop esi
mov dword [edx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10044900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x10044929
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + 0x396d100]
inc esi
xor eax, edx
dec ecx
jne 0x10044914
xor eax, 0xffffffff
pop esi
leave
ret 0xc
Function at 0x10006a60
Capabilities:
Read file on windows

Disassembly:
call fcn.10005710
mov ecx, eax
jmp fcn.1000b760
Function at 0x10009b30
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x9c]
test edi, edi
je 0x10009b50
nop
push 0x2710
mov ecx, edi
call fcn.100721e0
test al, al
je 0x10009b40
mov eax, dword [esi]
test eax, eax
je 0x10009b76
push str.UnInitialize
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10009b68
call eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
cmp byte [esi + 0xa4], 0
je 0x10009b95
lea ecx, [esi + 4]
call fcn.10071260
test al, al
je 0x10009b95
pop edi
lea ecx, [esi + 4]
pop esi
jmp fcn.10083040
pop edi
pop esi
ret

Function at 0x10009ba0
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 0x10009c1c
mov eax, dword [ebp - 4]
test eax, eax
je 0x10009c1c
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 0x10009c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013a738
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101a7008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1016e260
push 0xc8
push dword [0x101ac480]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10009c8a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push dword [0x101ac480]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10009c74
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x101ac480]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.100722c0
push 0x80
push 2
push 0
push 0x40000000
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.10072370
mov bl, al
test bl, bl
je 0x10009d1a
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.100724a0
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x10009d1a
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10009d1a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10009d1a
mov dword [esi], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.10072330
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000a5a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push 0x105
push ecx
push 0x101adb90
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, dword [sym.imp.USER32.dll_CharNextW]
push 0x101adb90
call edi
mov ebx, eax
push ebx
call edi
mov esi, eax
mov ax, word [0x101adb90]
test ax, ax
je 0x1000a5e7
cmp word [ebx], 0x3a
jne 0x1000a5e7
cmp word [ebx + 2], 0x5c
jne 0x1000a5e7
push esi
call edi
mov esi, eax
jmp 0x1000a638
cmp ax, 0x5c
jne 0x1000a625
cmp word [0x101adb92], ax
jne 0x1000a625
mov ebx, 2
nop dword [eax + eax]
movzx eax, word [esi]
dec ebx
test ax, ax
je 0x1000a62b
mov ecx, eax
nop dword [eax + eax]
cmp cx, 0x5c
je 0x1000a62b
push esi
call edi
mov esi, eax
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x1000a610
pop edi
pop esi
xor al, al
pop ebx
ret
cmp word [esi], 0
je 0x1000a625
add esi, 2
test ebx, ebx
jne 0x1000a600
test esi, esi
je 0x1000a625
mov ecx, esi
call fcn.1000a440
movzx eax, word [esi]
test ax, ax
je 0x1000a625
cmp eax, 0x5c
je 0x1000a625
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, 0x101adb90
push 0x101adb90
sar esi, 1
call ebx
mov edi, dword [sym.imp.USER32.dll_CharPrevW]
cmp eax, esi
jle 0x1000a6c8
nop
push 0x101ad940
push 0x101adb90
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x1000a695
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [0x101ad940], 0x10
je 0x1000a625
push 0x101adb90
call ebx
lea eax, [eax*2 + 0x101adb90]
cmp word [eax], 0x5c
je 0x1000a6b8
push eax
push 0x101adb90
call edi
cmp eax, 0x101adb90
ja 0x1000a6a3
xor ecx, ecx
push 0x101adb90
mov word [eax], cx
call ebx
cmp eax, esi
jg 0x1000a670
push 0x101adb90
call ebx
lea eax, [eax*2 + 0x101adb90]
push eax
push 0x101adb90
call edi
cmp word [eax], 0x5c
je 0x1000a6f4
push 0x1016e334
push 0x101adb90
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x101adb90
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000a625
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x1000b760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013a9f1
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x101a7008]
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.10013330
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
push 0xb
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
push str.HaoCompress
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
call fcn.10004ec0
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.10004ec0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 2
call fcn.10004e50
mov byte [ebp - 4], 0
test esi, esi
jne 0x1000b834
lea ecx, [ebp - 0x450]
call fcn.10016f80
jmp 0x1000b939
cmp esi, 1
jne 0x1000b849
lea ecx, [ebp - 0x450]
call fcn.10017160
jmp 0x1000b939
cmp esi, 2
jne 0x1000b939
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10114770
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.10004ac0
push esi
push 0x1016e45c
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 6
call fcn.10005c90
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 SysReAllocString
push eax
mov dword [ebp - 0x454], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000b915
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.100172f0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 7
call fcn.10004e50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0xffffffff
call fcn.10013380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10111f70
mov esp, ebp
pop ebp
ret
Function at 0x1000cbf0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013ad08
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x101a7008]
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 eax, dword [edi + 0xe0]
test eax, eax
je 0x1000cc3a
push eax
lea ecx, [edi + 0x20]
call fcn.1009bb70
mov dword [edi + 0xe0], 0
mov esi, dword [edi + 0x9c]
cmp esi, 0x64
ja 0x1000cc63
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
nop dword [eax + eax]
push 0
push esi
push 0x7e8
push dword [edi + 4]
call ebx
inc esi
cmp esi, 0x64
jbe 0x1000cc50
push 0x1f8
mov ecx, edi
call fcn.1000d1e0
mov ecx, edi
call fcn.1000d930
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]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ccb0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.10004ec0
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 0x1000ce02
cmp dword [ebp - 0x60], 2
jl 0x1000cdc0
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 0x1000cd22
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10004ec0
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 0x1016e4e4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10004ec0
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.1000a150
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10004e50
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.10004e50
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 0x1000ce02
mov eax, dword [edi + 0x2c]
mov dword [edi + 0xdc], 0xffffffff
cmp dword [eax + 0x14], 0x1f8
jne 0x1000cdea
mov ecx, edi
call fcn.10008140
push 0xbd0
push dword [edi + 4]
mov dword [edi + 0xd0], 2
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xb
call fcn.10004e50
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.10111f70
mov esp, ebp
pop ebp
ret 0x10