joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420650
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [ebp - 0xcc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xcc]
or ebx, 0xffffffff
push eax
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], 0
mov dword [ebp - 0xcc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dx, word [ebp - 0xc0]
mov esi, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc4]
mov word [ebp - 0x10], dx
xor edx, edx
cmp esi, 2
mov di, ax
sete dl
mov esi, edx
mov word [ebp - 0x14], di
test esi, esi
mov word [ebp - 0x12], cx
je 0x4206cf
mov ebx, 8
jmp 0x4206f0
cmp ax, 4
jae 0x4206dc
mov ebx, 2
jmp 0x4206f0
jne 0x4206f3
cmp cx, 0xa
sbb ebx, ebx
and ebx, 0xfffffc04
add ebx, 0x400
mov dword [ebp - 0xe], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4207de
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x38]
and eax, 0xffff
cmp eax, 3
ja case.default.0x420719
jmp dword [eax*4 + 0x4207e8]
test esi, esi
je 0x420775
cmp di, 3
ja 0x420733
jne 0x420775
cmp word [ebp - 0x12], 0x32
jb 0x420775
mov eax, dword [ebp - 0x18]
and eax, 0xffff
sub eax, 4
jns 0x420749
mov dword [ebp - 0xa], 0xfffffffe
jmp 0x4207b4
test eax, eax
jne 0x420756
mov dword [ebp - 0xa], 1
jmp 0x4207b4
cmp eax, 1
jne 0x420764
mov dword [ebp - 0xa], 2
jmp 0x4207b4
sub eax, 2
neg eax
sbb eax, eax
and al, 0xfb
add eax, 4
mov dword [ebp - 0xa], eax
jmp 0x4207b4
mov eax, dword [ebp - 0x20]
sub eax, 0x182
je 0x420740
sub eax, 0x64
je 0x42074d
sub eax, 0x64
jne case.default.0x420719
mov dword [ebp - 0xa], 2
jmp 0x4207b4
mov dword [ebp - 0xa], 0x40
jmp 0x4207b4
mov dword [ebp - 0xa], 0x20
jmp 0x4207b4
mov dword [ebp - 0xa], 8
jmp 0x4207b4
mov dword [ebp - 0xa], 0xffffffff
call fcn.00420800
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 6], eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 8], ecx
mov cx, word [ebp - 4]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420800
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x7fffffff
jne 0x420819
xor eax, eax
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x28], 0
jne 0x420859
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemFloatingPointProcessor
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42084f
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4239b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 4]
test eax, eax
jg 0x423ae7
mov eax, dword [esi + 8]
test eax, eax
je 0x4239e0
mov ecx, dword [esi + 0x14]
mov dword [esi + 4], eax
inc ecx
mov dword [esi + 8], 0
mov dword [esi + 0x14], ecx
jmp 0x423ae7
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jge 0x4239f6
add eax, eax
cmp eax, ecx
mov dword [esi + 0xc], eax
jle 0x4239f6
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
mov eax, dword [esi + 0x1c]
xor edi, edi
push ebx
mov di, word [eax + ecx*2]
dec ecx
test ecx, ecx
mov edx, edi
je 0x423a2b
mov ebx, dword [esi + 0x20]
xor eax, eax
mov ax, word [ebx + ecx*2]
mov ebx, dword [esi + 0x1c]
sub edx, eax
or al, 2
mov word [ebx + ecx*2], dx
mov ebx, dword [esi + 0x20]
sar eax, 1
sub edi, eax
mov word [ebx + ecx*2], ax
dec ecx
jne 0x423a09
mov ecx, dword [esi + 0x20]
mov ax, word [ecx]
mov ebx, eax
and ebx, 0xffff
cmp edx, ebx
pop ebx
je 0x423a7e
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push edx
add ecx, 0x40
push str.BUG:_rescaling_left__d_total_frequency_n
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
mov edx, dword [esi + 0x1c]
mov edi, dword [sym.imp.MSVCRT.dll_free]
push edx
call edi
mov eax, dword [esi + 0x20]
push eax
call edi
mov esi, dword [esi + 0x24]
add esp, 0x14
test esi, esi
je 0x423a76
push esi
call edi
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
or al, 2
xor edx, edx
shr ax, 1
mov word [ecx], ax
mov ecx, dword [esi + 0x20]
mov dx, word [ecx]
mov ecx, dword [esi + 0xc]
sub edi, edx
mov eax, edi
cdq
idiv ecx
mov dword [esi + 0x14], eax
mov eax, edi
cdq
idiv ecx
mov eax, dword [esi + 0x24]
sub ecx, edx
mov dword [esi + 8], edx
test eax, eax
mov dword [esi + 4], ecx
je 0x423ae7
mov edi, dword [esi]
test edi, edi
je 0x423ae7
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
xor edx, edx
mov dx, word [eax + edi*2]
dec edx
sar edx, cl
dec edi
xor ecx, ecx
mov cx, word [eax + edi*2]
mov eax, ecx
mov cl, byte [esi + 0x18]
shr eax, cl
cmp eax, edx
jg 0x423ae3
mov ecx, dword [esi + 0x24]
inc eax
cmp eax, edx
mov word [ecx + eax*2 - 2], di
jle 0x423ad6
test edi, edi
jne 0x423ab5
mov edi, dword [esi + 4]
mov edx, dword [esi + 0x20]
mov eax, dword [ebp + 0xc]
mov cx, word [esi + 0x14]
dec edi
lea eax, [edx + eax*2]
mov dword [esi + 4], edi
pop edi
pop esi
add word [eax], cx
pop ebp
ret
Function at 0x424b20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0xc]
mov edi, dword [esi]
mov eax, edi
or al, 0x20
sar eax, 4
mov dword [esi + 0xc], eax
xor eax, eax
cmp ecx, eax
mov dword [esi + 8], eax
jne 0x424b81
mov edx, dword [esi + 0x1c]
xor ecx, ecx
mov cx, word [edx + edi*2]
mov eax, ecx
cdq
idiv edi
mov ebx, eax
mov eax, ecx
cdq
idiv edi
xor eax, eax
test edx, edx
jle 0x424b6c
lea ecx, [ebx + 1]
mov edi, dword [esi + 0x20]
inc eax
cmp eax, edx
mov word [edi + eax*2 - 2], cx
jl 0x424b5f
cmp eax, dword [esi]
jge 0x424b99
mov ecx, dword [esi + 0x20]
inc eax
mov word [ecx + eax*2 - 2], bx
mov ecx, dword [esi]
cmp eax, ecx
jl 0x424b70
jmp 0x424b99
cmp edi, eax
jle 0x424b99
mov edx, dword [esi + 0x20]
mov di, word [ecx]
add ecx, 4
mov word [edx + eax*2], di
mov edx, dword [esi]
inc eax
cmp eax, edx
jl 0x424b85
mov eax, dword [esi + 8]
test eax, eax
je 0x424bb6
mov ecx, dword [esi + 0x14]
mov dword [esi + 4], eax
inc ecx
mov dword [esi + 8], 0
mov dword [esi + 0x14], ecx
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jge 0x424bcc
add eax, eax
cmp eax, ecx
mov dword [esi + 0xc], eax
jle 0x424bcc
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
mov eax, dword [esi + 0x1c]
xor edi, edi
mov di, word [eax + ecx*2]
dec ecx
test ecx, ecx
mov edx, edi
je 0x424c00
mov ebx, dword [esi + 0x20]
xor eax, eax
mov ax, word [ebx + ecx*2]
mov ebx, dword [esi + 0x1c]
sub edx, eax
or al, 2
mov word [ebx + ecx*2], dx
mov ebx, dword [esi + 0x20]
sar eax, 1
sub edi, eax
mov word [ebx + ecx*2], ax
dec ecx
jne 0x424bde
mov ecx, dword [esi + 0x20]
mov ax, word [ecx]
mov ebx, eax
and ebx, 0xffff
cmp edx, ebx
je 0x424c52
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push edx
add ecx, 0x40
push str.BUG:_rescaling_left__d_total_frequency_n
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
mov edx, dword [esi + 0x1c]
mov edi, dword [sym.imp.MSVCRT.dll_free]
push edx
call edi
mov eax, dword [esi + 0x20]
push eax
call edi
mov esi, dword [esi + 0x24]
add esp, 0x14
test esi, esi
je 0x424c4a
push esi
call edi
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
or al, 2
xor edx, edx
shr ax, 1
mov word [ecx], ax
mov ecx, dword [esi + 0x20]
mov dx, word [ecx]
mov ecx, dword [esi + 0xc]
sub edi, edx
mov eax, edi
cdq
idiv ecx
mov dword [esi + 0x14], eax
mov eax, edi
cdq
idiv ecx
mov eax, dword [esi + 0x24]
sub ecx, edx
mov dword [esi + 8], edx
test eax, eax
mov dword [esi + 4], ecx
je 0x424cbb
mov edi, dword [esi]
test edi, edi
je 0x424cbb
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
xor edx, edx
mov dx, word [eax + edi*2]
dec edx
sar edx, cl
dec edi
xor ecx, ecx
mov cx, word [eax + edi*2]
mov eax, ecx
mov cl, byte [esi + 0x18]
shr eax, cl
cmp eax, edx
jg 0x424cb7
mov ecx, dword [esi + 0x24]
inc eax
cmp eax, edx
mov word [ecx + eax*2 - 2], di
jle 0x424caa
test edi, edi
jne 0x424c89
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x426510
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x426534
mov ecx, dword [esi + 0x14]
mov dword [esi + 4], eax
inc ecx
mov dword [esi + 8], 0
mov dword [esi + 0x14], ecx
pop edi
pop esi
pop ebp
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jge 0x42654a
add eax, eax
cmp eax, ecx
mov dword [esi + 0xc], eax
jle 0x42654a
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
mov eax, dword [esi + 0x1c]
xor edi, edi
push ebx
mov di, word [eax + ecx*2]
dec ecx
test ecx, ecx
mov edx, edi
je 0x42657f
mov ebx, dword [esi + 0x20]
xor eax, eax
mov ax, word [ebx + ecx*2]
mov ebx, dword [esi + 0x1c]
sub edx, eax
or al, 2
mov word [ebx + ecx*2], dx
mov ebx, dword [esi + 0x20]
sar eax, 1
sub edi, eax
mov word [ebx + ecx*2], ax
dec ecx
jne 0x42655d
mov ecx, dword [esi + 0x20]
mov ax, word [ecx]
mov ebx, eax
and ebx, 0xffff
cmp edx, ebx
pop ebx
je 0x4265d2
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push edx
add ecx, 0x40
push str.BUG:_rescaling_left__d_total_frequency_n
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
mov edx, dword [esi + 0x1c]
mov edi, dword [sym.imp.MSVCRT.dll_free]
push edx
call edi
mov eax, dword [esi + 0x20]
push eax
call edi
mov esi, dword [esi + 0x24]
add esp, 0x14
test esi, esi
je 0x4265ca
push esi
call edi
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
or al, 2
xor edx, edx
shr ax, 1
mov word [ecx], ax
mov ecx, dword [esi + 0x20]
mov dx, word [ecx]
mov ecx, dword [esi + 0xc]
sub edi, edx
mov eax, edi
cdq
idiv ecx
mov dword [esi + 0x14], eax
mov eax, edi
cdq
idiv ecx
mov eax, dword [esi + 0x24]
sub ecx, edx
mov dword [esi + 8], edx
test eax, eax
mov dword [esi + 4], ecx
je 0x42663b
mov edi, dword [esi]
test edi, edi
je 0x42663b
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
xor edx, edx
mov dx, word [eax + edi*2]
dec edx
sar edx, cl
dec edi
xor ecx, ecx
mov cx, word [eax + edi*2]
mov eax, ecx
mov cl, byte [esi + 0x18]
shr eax, cl
cmp eax, edx
jg 0x426637
mov ecx, dword [esi + 0x24]
inc eax
cmp eax, edx
mov word [ecx + eax*2 - 2], di
jle 0x42662a
test edi, edi
jne 0x426609
pop edi
pop esi
pop ebp
ret
Function at 0x428220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
push 2
lea eax, [edi + 2]
shr eax, 1
push eax
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
jne 0x428248
pop edi
mov eax, 1
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
push ecx
push edi
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
xor edx, edx
cmp eax, edi
setne dl
push esi
mov edi, edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x428530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x208]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov al, byte [ebp - 0x208]
mov bl, 0x5c
test al, al
je 0x4285bf
lea edi, [ebp - 0x208]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x209], bl
je 0x4285bf
mov edi, 0x43fe58
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x208]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x104]
push str._sXZIP_d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov al, byte [ebp - 0x104]
add esp, 0x10
test al, al
je 0x428635
lea edi, [ebp - 0x104]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x105], bl
je 0x428635
mov edi, 0x43fe58
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x104]
push eax
call fcn.00428cd0
lea edi, [ebp - 0x104]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428cd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x41
xor eax, eax
mov bl, byte [esi]
lea edi, [ebp - 0x104]
test bl, bl
rep stosd dword es:[edi], eax
mov byte [ebp + 8], 1
je 0x428d3c
cmp bl, 0x5c
jne 0x428d0d
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
lea edi, [ebp - 0x104]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp + ecx - 0x104], bl
mov ecx, dword [ebp + 8]
and ecx, 0xff
mov bl, byte [ecx + esi]
mov cl, byte [ebp + 8]
inc cl
test bl, bl
mov byte [ebp + 8], cl
jne 0x428cf8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x428d50
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x210]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
test eax, eax
je 0x428eba
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
je 0x428eba
mov edx, dword [ebp + 0xc]
mov edi, dword [0x452f0e]
lea eax, [edx + edx*4]
lea ebx, [edx + eax*2]
mov eax, dword [0x453282]
shl ebx, 1
test edi, edi
mov ecx, dword [ebx + eax + 6]
mov dword [ebp - 8], ecx
mov eax, dword [ebx + eax + 6]
mov dword [ebp - 4], eax
je 0x428eba
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp - 0x210]
sub edi, ecx
mov eax, ecx
mov dword [ebp + 0x10], esi
mov esi, edi
mov edi, dword [ebp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebp - 0x210]
test al, al
je 0x428e37
lea edi, [ebp - 0x210]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x211], 0x5c
je 0x428e37
mov edi, 0x43fe58
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x210]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 1
push edx
call fcn.0042e420
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x210]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x210]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
call esi
lea ecx, [ebp - 8]
lea edx, [ebp - 0x210]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__utime]
mov eax, dword [0x453282]
add esp, 8
lea edx, [ebp - 0x210]
movsx ecx, byte [ebx + eax]
push ecx
push edx
call esi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov esp, ebp
pop ebp
ret
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429280
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x452f2c]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov eax, dword [eax]
push edi
test eax, eax
mov dword [ebp + 0xc], ecx
jne 0x42929c
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
push ecx
mov ecx, dword [ebp + 8]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov ebx, eax
add esp, 0x10
cmp ebx, 0xffffffff
je 0x4292bc
test ebx, ebx
jne 0x429416
mov al, byte [0x453278]
test al, al
je 0x429416
mov edx, dword [0x452f2c]
xor ebx, ebx
push ebx
push ebx
push edx
mov dword [0x452f36], ebx
call fcn.00428d50
mov eax, dword [0x45327e]
mov ecx, dword [0x45327a]
add esp, 0xc
cmp eax, ecx
je 0x429416
mov edx, dword [0x452f4e]
mov ecx, dword [0x4532a2]
add edx, ebx
push ecx
push edx
call fcn.00428120
mov edx, dword [0x452f2c]
mov ecx, 0x41
xor eax, eax
push 1
lea edi, [edx + 0x23]
rep stosd dword es:[edi], eax
mov eax, dword [0x45327a]
push eax
call fcn.0042e420
mov ecx, dword [0x452f2c]
mov edi, eax
xor eax, eax
push 0x43ff18
lea edx, [ecx + 0x23]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x45327a]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [0x453282]
mov ecx, dword [eax + edx*2 + 2]
mov edx, dword [0x452f2c]
add edx, 0x23
mov dword [0x452f32], ecx
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ecx, dword [0x452f2c]
add esp, 0x18
mov dword [ecx], eax
mov ecx, dword [0x452f2c]
mov eax, dword [ecx]
test eax, eax
je 0x429429
push eax
call dword [sym.imp.MSVCRT.dll__fileno]
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
mov ecx, dword [0x452f32]
add esp, 8
cmp eax, ecx
jne 0x429444
mov edx, dword [0x452f2c]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [edx]
lea edx, [ebx + ecx]
push eax
push esi
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [0x45327a]
add esp, 0x10
add ebx, eax
sub esi, eax
inc edx
mov dword [ebp + 0xc], esi
test esi, esi
mov dword [0x45327a], edx
jle 0x429416
mov eax, dword [0x452f2c]
push 0
push 0
push eax
call fcn.00428d50
mov ecx, dword [0x45327e]
mov eax, dword [0x45327a]
add esp, 0xc
cmp ecx, eax
jne 0x4292f5
mov eax, dword [0x452f36]
pop edi
add eax, ebx
pop esi
mov dword [0x452f36], eax
mov eax, ebx
pop ebx
pop ebp
ret
add ecx, 0x23
push ecx
push 0x3e8
call fcn.0042ae10
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x441880
push 0x3f2
call fcn.0042ae10
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42b990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebp - 0x100]
push edi
push eax
push ebx
mov byte [ebx + 0xd], 0xfa
call fcn.0042bad0
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x308]
lea esi, [ebp - 0x100]
rep stosd dword es:[edi], eax
mov ecx, 0x12
lea edi, [ebp - 0x308]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 8]
lea edx, [ebp - 0x308]
push ecx
push 0x49
push edx
movsb byte es:[edi], byte [esi]
call fcn.004326b0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x100]
push ecx
push ebx
mov dword [ebx + 0x49], eax
call fcn.0042bad0
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
push 0x4d
lea edx, [ebp - 0x100]
push 1
push edx
call esi
add esp, 0x2c
cmp eax, 0x4d
je 0x42ba23
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x452f3a]
add ecx, 0x4d
mov dword [0x452f3a], ecx
mov al, byte [ebx + 0x13]
test al, al
jne 0x42ba82
mov al, byte [0x453023]
test al, al
je 0x42ba7b
mov ecx, dword [0x452efa]
test ecx, ecx
jle 0x42ba7b
mov eax, dword [0x452f26]
test eax, eax
je 0x42ba7b
push edi
push ecx
push 1
push eax
call esi
mov ecx, dword [0x452efa]
add esp, 0x10
cmp eax, ecx
je 0x42ba75
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
add dword [0x452f3a], ecx
mov al, byte [ebx + 0x13]
test al, al
je 0x42babd
mov edx, dword [0x452f2c]
xor eax, eax
mov al, byte [ebx + 0x14]
xor ecx, ecx
mov cl, al
push edi
push ecx
add edx, 0x437
push 1
push edx
mov esi, eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, esi
je 0x42bab7
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
add dword [0x452f3a], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42c350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.MSVCRT.dll_rewind]
add esp, 4
call fcn.0042c230
cmp eax, 1
jne 0x42c387
push str._Zip_cloacking
push 0x3fa
call fcn.0042ae10
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
ret
mov eax, dword [0x453068]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x1e
push 1
push eax
call edi
add esp, 0x10
cmp eax, 0x1e
je 0x42c3ab
pop edi
mov eax, 1
pop esi
pop ebp
ret
mov edx, dword [0x453068]
xor ecx, ecx
push esi
lea eax, [ebp + 0xc]
mov cx, word [edx + 0x1a]
push ecx
push 1
push eax
call edi
mov edx, dword [0x453068]
xor ecx, ecx
add esp, 0x10
mov cx, word [edx + 0x1a]
cmp eax, ecx
je 0x42c3dd
pop edi
mov eax, 1
pop esi
pop ebp
ret
push esi
push 0x4d
push 1
push 0x453018
call edi
add esp, 0x10
xor ecx, ecx
cmp eax, 0x4d
setne cl
pop edi
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x42c400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
call fcn.0042c230
cmp eax, 1
jne 0x42c432
push str._Zip_cloacking
push 0x3fa
call fcn.0042ae10
add esp, 8
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x104]
push ebx
rep stosd dword es:[edi], eax
push ebx
call fcn.0042e420
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x453068]
lea edi, [ebp - 0x104]
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
mov dword [ecx], 0x4034b50
mov edx, dword [0x453068]
mov word [edx + 4], 0x14
mov eax, dword [0x453068]
mov word [eax + 6], 2
mov ecx, dword [0x453068]
mov word [ecx + 8], 0xb
mov edx, dword [0x453068]
mov word [edx + 0xa], bx
mov eax, dword [0x453068]
mov word [eax + 0xc], bx
mov ecx, dword [0x453068]
mov dword [ecx + 0xe], ebx
mov edx, dword [0x453068]
mov dword [edx + 0x12], ebx
mov eax, dword [0x453282]
mov edx, dword [0x453068]
mov ecx, dword [eax + 2]
xor eax, eax
mov dword [edx + 0x16], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x453068]
not ecx
dec ecx
mov word [eax + 0x1a], cx
mov ecx, dword [0x453068]
mov word [ecx + 0x1c], 0x4d
mov edx, dword [0x452f2c]
mov ecx, dword [0x453068]
mov eax, dword [edx + 4]
push eax
push 0x1e
push 1
push ecx
call esi
add esp, 0x18
cmp eax, 0x1e
pop ebx
jne 0x42c56f
mov edx, dword [0x452f2c]
xor ecx, ecx
mov eax, dword [edx + 4]
mov edx, dword [0x453068]
push eax
lea eax, [ebp - 0x104]
mov cx, word [edx + 0x1a]
push ecx
push 1
push eax
call esi
mov edx, dword [0x453068]
xor ecx, ecx
add esp, 0x10
mov cx, word [edx + 0x1a]
cmp eax, ecx
jne 0x42c56f
mov eax, dword [0x452f2c]
mov ecx, dword [eax + 4]
push ecx
push 0x453018
call fcn.0042b990
add esp, 8
test eax, eax
je 0x42c58c
push 0x441880
push 0x3ef
call fcn.0042ae10
add esp, 8
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [0x453068]
mov ecx, 7
xor eax, eax
lea edi, [esi + 0x1e]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret