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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100c9040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x10050bd5
mov eax, dword [eax + 2]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10050bd5
push ebx
lea ebx, [eax - 4]
test ebx, ebx
je 0x10050bd4
mov eax, dword [ebx + 4]
test eax, eax
je 0x10050bd4
cmp eax, 0xc8
jg 0x10050bd4
cmp dword [ebx], 0
je 0x10050bd4
push esi
mov esi, dword [ebx + 8]
test esi, esi
je 0x10050bd3
push edi
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [esi + ecx], 0
jne 0x10050ac8
xor edx, edx
test ecx, ecx
je 0x10050ae6
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x10050ad5
mov dword [ebp - 8], edi
cmp dword [ebx + 4], 0
mov dword [ebp - 0x18], 0
jle 0x10050bd2
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebx]
add ebx, eax
mov esi, dword [ebx + 4]
test esi, esi
je 0x10050bb9
mov edi, 0x811c9dc5
xor eax, eax
inc eax
cmp byte [esi + eax], 0
jne 0x10050b18
xor edx, edx
test eax, eax
je 0x10050b36
movsx ecx, byte [esi + edx]
inc edx
xor ecx, edi
imul edi, ecx, 0x1000193
cmp edx, eax
jb 0x10050b25
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edi
push eax
mov ecx, 0x1013d330
call fcn.10044590
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.10044570
cmp dword [eax + 8], 0
jne 0x10050bb3
lea eax, [ebp - 8]
mov ecx, 0x1013d330
push eax
call fcn.10044590
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.10044570
mov ecx, 0x1013d330
mov byte [eax], 1
lea eax, [ebp - 8]
mov esi, dword [ebx + 8]
push eax
call fcn.10044590
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.10044570
mov ecx, 0x1013d330
mov dword [eax + 8], esi
lea eax, [ebp - 8]
push eax
call fcn.10044590
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.10044570
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
lea ebx, [ecx - 4]
inc esi
add eax, 0x3c
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
cmp esi, dword [ebx + 4]
jl 0x10050b02
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9e5c
mov esp, ebp
pop ebp
ret 4
Function at 0x1007fce0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ade7d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100c9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
xor edx, edx
mov edi, 0xf
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], dl
mov dword [ebp - 4], edx
mov esi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], eax
cmp esi, eax
je 0x1007fdec
nop
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x1007fd63
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x1007fd51
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.1002a0e0
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
lea ecx, [edx - 3]
cmp ecx, edx
ja 0x1007fd7d
cmp edi, 0xf
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x1007fd8a
sub ecx, edx
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.10037bf0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov edi, 0x811c9dc5
cmova eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
xor eax, eax
test edx, edx
je 0x1007fdc4
mov esi, dword [ebp - 0x34]
nop dword [eax]
movzx ecx, byte [eax + esi]
inc eax
xor ecx, edi
imul edi, ecx, 0x1000193
cmp eax, edx
jb 0x1007fdb0
mov esi, dword [ebp - 0x30]
cmp edi, dword [ebp + 8]
jne 0x1007fdd4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1007fde7
dec eax
mov dword [ebp - 0x2c], eax
add esi, 0x1c
mov dword [ebp - 0x30], esi
cmp esi, dword [ebp - 0x38]
je 0x1007fdec
mov edi, dword [ebp - 0x14]
jmp 0x1007fd40
mov esi, dword [esi + 0x18]
jmp 0x1007fdee
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x1007fe26
mov edx, dword [ebp - 0x28]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007fe1c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007fe1c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100aa2d7
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a9e5c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1007fe50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ade7d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100c9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 1
xor edx, edx
mov edi, 0xf
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], dl
mov dword [ebp - 4], edx
mov esi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], eax
cmp esi, eax
je 0x1007ff5c
nop
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x1007fed3
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x1007fec1
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.1002a0e0
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
lea ecx, [edx - 3]
cmp ecx, edx
ja 0x1007feed
cmp edi, 0xf
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x1007fefa
sub ecx, edx
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.10037bf0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov edi, 0x811c9dc5
cmova eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
xor eax, eax
test edx, edx
je 0x1007ff34
mov esi, dword [ebp - 0x34]
nop dword [eax]
movzx ecx, byte [eax + esi]
inc eax
xor ecx, edi
imul edi, ecx, 0x1000193
cmp eax, edx
jb 0x1007ff20
mov esi, dword [ebp - 0x30]
cmp edi, dword [ebp + 8]
jne 0x1007ff44
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1007ff57
dec eax
mov dword [ebp - 0x2c], eax
add esi, 0x1c
mov dword [ebp - 0x30], esi
cmp esi, dword [ebp - 0x38]
je 0x1007ff5c
mov edi, dword [ebp - 0x14]
jmp 0x1007feb0
mov esi, dword [esi + 0x18]
jmp 0x1007ff5e
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x1007ff96
mov edx, dword [ebp - 0x28]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007ff8c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007ff8c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100aa2d7
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a9e5c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10081c40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10081c6b
push 0
push 0
push 0
push 0x10034ca0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10081c6b
mov eax, 1
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc
Function at 0x10092fb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x10093141
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x10093141
mov eax, dword [0x10137bcc]
cmp dword [eax + 0x174], 0xffffffff
je 0x10093141
mov eax, dword [0x10137ea0]
add eax, 0xffffff91
xor eax, 0xcdb53acb
cmp dword [eax + ebx], 0
mov eax, dword [0x10137e68]
setle cl
add eax, 0xffffff9f
xor eax, 0xcdb53abd
xor edi, edi
mov byte [eax + ebx], cl
mov eax, dword [0x10137e5c]
add eax, 0xffffffa2
xor eax, 0xcdb53aba
mov dword [eax + ebx + 0xc], 0
mov eax, dword [0x10137e60]
add eax, 0xffffffa1
xor eax, 0xcdb53abb
mov dword [eax + ebx + 0xc], 0
mov ecx, dword [0x10137e64]
lea eax, [ecx - 0x60]
xor eax, 0xcdb53abc
mov edx, dword [eax + ebx + 0xc]
mov dword [ebp - 4], edx
test edx, edx
je 0x1009309e
lea eax, [ecx - 0x60]
xor eax, 0xcdb53abc
mov eax, dword [eax + ebx]
mov esi, dword [eax + edi*4]
lea ebx, [eax + edi*4]
test esi, esi
je 0x10093096
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1009308a
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x10093087
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 4]
mov dword [ebx], 0
mov ecx, dword [0x10137e64]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, edx
jb 0x10093053
lea eax, [ecx - 0x60]
xor eax, 0xcdb53abc
lea ecx, [ebx + 8]
push 0
mov dword [eax + ebx + 0xc], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
call eax
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
push 0
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [0x10137be0]
xor ebx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
je 0x10093132
nop dword [eax]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [esi + ecx], 0
jne 0x100930f6
xor edx, edx
test ecx, ecx
je 0x1009311c
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x10093103
cmp edi, 0x79705c5e
je 0x10093127
inc ebx
cmp ebx, dword [ebp - 8]
jae 0x10093132
mov ecx, dword [ebp - 4]
jmp 0x100930e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + ebx*4]
jmp 0x10093134
xor ecx, ecx
push 0
push dword [ebp + 8]
push 0
call dword [0x10137cd8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100a76f0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor edx, eax
movzx eax, byte [esi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [esi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
lea eax, [ebp - 8]
imul ebx, ecx, 0x1000193
mov ecx, edi
push ebx
push esi
push eax
call fcn.10045060
mov edx, dword [eax + 4]
test edx, edx
je 0x100a7797
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0xc]
and ecx, ebx
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], edx
jne 0x100a776c
cmp eax, edx
jne 0x100a7764
mov eax, dword [edi + 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x100a7774
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
jmp 0x100a7774
cmp eax, edx
jne 0x100a7774
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
dec dword [edi + 8]
mov eax, dword [edx + 4]
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
call fcn.1002b280
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100a78d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x1c
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
cmp edx, edi
jne 0x100a78ee
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
push esi
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x1c], esi
xor ecx, eax
movzx eax, byte [edx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [esi + eax*8]
mov dword [ebp - 0x10], ecx
lea eax, [esi + eax*8]
mov esi, dword [edx]
mov dword [ebp - 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
call fcn.1002b280
dec dword [ebx + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0xc]
je 0x100a797e
nop dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x100a798d
mov edx, esi
mov esi, dword [esi]
call fcn.1002b280
dec dword [ebx + 8]
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x18], eax
jne 0x100a7960
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x10], eax
jne 0x100a79ad
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
jmp 0x100a79b0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jne 0x100a799a
mov ecx, dword [ebp - 8]
mov dword [ecx], esi
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov dword [esi + 4], eax
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
mov dword [ecx + 4], eax
cmp esi, edi
je 0x100a799a
nop word [eax + eax]
movzx eax, byte [esi + 8]
mov edx, esi
xor eax, 0x811c9dc5
mov edi, esi
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
mov esi, dword [esi]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
call fcn.1002b280
dec dword [ebx + 8]
cmp edi, dword [ebp + 8]
je 0x100a7a3a
nop word [eax + eax]
mov eax, dword [ebp + 0xc]
mov edi, esi
cmp esi, eax
je 0x100a7a63
mov edx, esi
mov esi, dword [esi]
call fcn.1002b280
dec dword [ebx + 8]
cmp edi, dword [ebp + 8]
jne 0x100a7a20
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], eax
cmp esi, edi
jne 0x100a79c0
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov dword [esi + 4], eax
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403afc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push eax
lea eax, [ebp - 0x20]
push 0x1c
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x403ba7
cmp dword [ebp - 4], 0x1c
jne 0x403ba7
lea eax, [ebp - 0x20]
push eax
call fcn.00403acc
test eax, eax
pop ecx
je 0x403ba7
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x1c]
sub eax, dword [ebp - 0xc]
mov dword [ecx], eax
js 0x403ba7
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp - 0xc]
push esi
push dword [ebp + 8]
call edi
test eax, eax
je 0x403ba0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jne 0x403ba0
mov eax, dword [ebp + 0x18]
lea ecx, [esi + 0x524]
push 1
push ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
push ebx
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [esi + 0x520]
imul ecx, ecx, 0x4c
add ecx, dword [eax]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403baa
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403c04
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
xor ebx, ebx
push 0x100218
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0xd
mov esi, eax
pop ecx
xor eax, eax
push ebx
push ebx
push dword [ebp + 0xc]
lea edi, [ebp - 0x48]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], esi
push dword [ebp + 8]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push eax
lea eax, [ebp - 1]
push 1
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x403c60
push 0xfffffffffffffffd
pop esi
jmp 0x403dce
cmp byte [ebp - 1], 1
jne 0x403d4a
push 0x38
lea eax, [ebp - 0x4c]
push str.1.1.3
push eax
call fcn.00402415
add esp, 0xc
lea eax, [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0x10]
push 4
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x403d34
cmp dword [ebp + 0xc], 4
jne 0x403d34
cmp dword [ebp - 0x10], ebx
je 0x403d3b
lea eax, [ebp + 0xc]
push ebx
push eax
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
call edi
test eax, eax
je 0x403d34
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 0xc], eax
jne 0x403d34
mov dword [ebp - 0x48], eax
lea eax, [esi + 0x80218]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x4c]
mov esi, 0x80000
push 2
push eax
mov dword [ebp - 0x3c], esi
call fcn.0040242c
pop ecx
cmp eax, 0xfffffffe
pop ecx
je 0x403d34
cmp eax, 0xfffffffb
je 0x403d34
cmp eax, 0xfffffffd
je 0x403d34
cmp eax, 2
je 0x403d34
sub esi, dword [ebp - 0x3c]
lea eax, [ebp + 0xc]
push ebx
push eax
mov eax, dword [ebp - 0x14]
push esi
add eax, 0x80218
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403d2b
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x403d2b
add dword [ebp - 8], eax
mov esi, dword [ebp - 0x14]
jmp 0x403c7d
mov dword [ebp - 8], 0xfffffffe
jmp 0x403d3b
mov dword [ebp - 8], 0xfffffffd
lea eax, [ebp - 0x4c]
push eax
call fcn.004022ed
pop ecx
jmp 0x403dcb
cmp byte [ebp - 1], bl
jne 0x403dc4
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp + 0xc]
push 4
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x403d6f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0xfffffffffffffffd
pop eax
jmp 0x403dd9
cmp dword [ebp + 0xc], ebx
jle 0x403dcb
mov eax, 0x10000
cmp dword [ebp + 0xc], eax
jge 0x403d81
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
push ebx
push ecx
push eax
push esi
push dword [ebp + 8]
call edi
test eax, eax
je 0x403db2
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp - 0xc]
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403dbb
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
sub dword [ebp + 0xc], eax
jmp 0x403d6f
mov dword [ebp - 8], 0xfffffffd
jmp 0x403dcb
mov dword [ebp - 8], 0xfffffffe
jmp 0x403dcb
mov dword [ebp - 8], 0xfffffffa
mov esi, dword [ebp - 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403dde
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
xor ebx, ebx
push 0x80218
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0xd
mov dword [ebp - 0xc], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
push ebx
mov dword [ebp - 0x48], ebx
push ebx
push dword [ebp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 1]
push 1
push eax
push edi
call esi
test eax, eax
jne 0x403e37
push 0xfffffffffffffffd
pop esi
jmp 0x403f2c
cmp byte [ebp - 1], 1
jne 0x403eda
push 0x38
lea eax, [ebp - 0x48]
push str.1.1.3
push eax
call fcn.00402415
mov edi, dword [ebp + 0x10]
add esp, 0xc
lea eax, [ebp + 0x10]
push ebx
push eax
lea eax, [ebp + 0xc]
push 4
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x403ec7
cmp dword [ebp + 0x10], 4
jne 0x403ec7
cmp dword [ebp + 0xc], ebx
je 0x403ece
lea eax, [ebp + 0x10]
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x403ec7
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
jne 0x403ec7
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
push 2
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], edi
call fcn.0040242c
pop ecx
test eax, eax
pop ecx
jl 0x403ec7
mov eax, dword [ebp - 0x3c]
sub eax, edi
sub dword [ebp + 0x14], eax
add edi, eax
add dword [ebp - 8], eax
mov dword [ebp + 0x10], eax
jmp 0x403e57
mov dword [ebp - 8], 0xfffffffd
lea eax, [ebp - 0x48]
push eax
call fcn.004022ed
pop ecx
jmp 0x403f29
cmp byte [ebp - 1], bl
jne 0x403f22
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp + 8]
push 4
push eax
push edi
call esi
test eax, eax
je 0x403f0c
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403efc
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
push ebx
push ecx
push eax
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x403f1a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0xfffffffffffffffd
pop eax
jmp 0x403f37
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x403f29
mov dword [ebp - 8], 0xfffffffa
mov esi, dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403ffa
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov dword [ebp - 0x2c], ebx
mov esi, str.Error_opening_self.
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x430]
push 0x400
push ecx
push eax
mov dword [0x409074], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push 3
push ebx
push 1
lea eax, [ebp - 0x430]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x1c], edi
je 0x404158
mov eax, dword [str.DONOCHK]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
mov al, byte [eax + 8]
neg al
sbb eax, eax
and eax, 4
add eax, 0xfffffffc
push eax
push edi
call esi
push ebx
push ebx
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ebx
call section..text
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [str.DONOCHK]
add esp, 0xc
mov dword [ebp - 0x18], ebx
cmp byte [eax + 8], bl
jne 0x4040c8
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x28]
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4040c8
mov esi, str.Error_reading_CRC_from_installer_file.
jmp 0x404151
push ebx
push ebx
push ebx
push edi
call esi
cmp dword [ebp - 0x14], ebx
jle 0x40413a
mov edi, 0x408e3c
mov eax, 0x200
cmp dword [ebp - 8], eax
ja 0x4040e5
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ebx
push ecx
push eax
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404162
push dword [ebp - 0xc]
push edi
push dword [ebp - 4]
call section..text
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
sub dword [ebp - 8], eax
add esp, 0xc
cmp dword [0x409184], ebx
jne 0x40412c
push edi
call fcn.00403acc
test eax, eax
pop ecx
je 0x40412c
mov eax, dword [ebp - 0x18]
mov dword [0x409184], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x18], eax
cmp dword [ebp - 8], ebx
jg 0x4040d8
mov edi, dword [ebp - 0x1c]
mov eax, dword [str.DONOCHK]
cmp byte [eax + 8], bl
jne 0x40416c
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x28]
je 0x40416c
mov esi, str.CRC_check_on_installer_failed._This_means_that_the_installer_was_not_ntransferred_correctly__or__possibly__you_have_a_virus_on_your_system._n_nPlease_try_redownloading_this_installer__or_check_your_system_for_virii.
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push str.Nullsoft_Install_System_Error
push esi
jmp 0x4041cc
mov edi, dword [ebp - 0x1c]
mov esi, str.Error_reading_data_from_installer_file.
jmp 0x404151
mov eax, dword [0xc9184]
add byte [edi], bh
fist word [esi]
invalid
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x404203
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]