joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403960
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x208
mov eax, dword [0x438300]
xor eax, esp
mov dword [esp + 0x204], eax
push 4
lea eax, [esp + 4]
push str.TRL
push eax
call fcn.004142e0
push 0x1f8
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00415d50
mov edx, dword [esp + 0x224]
push 2
push 0
push esi
mov dword [esp + 0x28], edx
call fcn.00414d74
push esi
push 1
lea eax, [esp + 0x2c]
push 8
push eax
call fcn.00414a5d
push esi
push 1
lea ecx, [esp + 0x44]
push 0x1f8
push ecx
call fcn.00414a5d
mov ecx, dword [esp + 0x248]
add esp, 0x44
xor ecx, esp
xor eax, eax
call fcn.0041358c
add esp, 0x208
ret

Function at 0x403b00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x438300]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x21c]
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0x40], ebx
jne 0x403c21
mov eax, dword [ebp + 0x14]
xor edi, edi
add eax, dword [ebp + 0x24]
mov dword [esp + 0x1c], eax
je 0x403b64
add eax, 4
push ebx
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00414d74
mov ecx, dword [ebp + 8]
push ecx
push 1
lea edx, [esp + 0x30]
push 4
push edx
call fcn.004148a9
mov eax, dword [esp + 0x38]
add esp, 0x1c
inc edi
cmp eax, ebx
jne 0x403b38
mov eax, dword [ebp + 0x28]
lea esi, [ebp + 0x28]
cmp eax, ebx
je 0x403b7c
push eax
call fcn.004148f0
add esp, 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov eax, edi
imul eax, eax, 0xfc0
call fcn.004010d0
lea esi, [ebp + 0x30]
push edi
call fcn.00405640
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x24]
mov dword [esp + 0x1c], eax
je 0x403c1a
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp + 0x30]
xor esi, esi
mov dword [ebx + ecx + 4], esi
mov edx, dword [ebp + 0x30]
mov eax, dword [esp + 0x1c]
mov dword [ebx + edx], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
push esi
push ecx
push edx
call fcn.00414d74
mov eax, dword [ebp + 8]
push eax
push 1
lea ecx, [esp + 0x2c]
push 0x200
push ecx
call fcn.004148a9
mov ecx, dword [ebp + 0x28]
add esp, 0x1c
xor edi, edi
add ecx, dword [esp + 0x14]
mov al, 0x80
jmp 0x403bf0
test byte [esp + esi + 0x20], al
setne dl
mov byte [ecx + edi], dl
inc edi
shr al, 1
jne 0x403bf0
inc esi
cmp esi, 0x1f8
jb 0x403be5
add dword [esp + 0x14], 0xfc0
add ebx, 8
cmp dword [esp + 0x1c], 0
jne 0x403ba2
mov dword [ebp + 0x40], 1
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041358c
add esp, 0x210
ret 4
Function at 0x403cd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x438300]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x21c]
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0x40], ebx
je 0x403db5
mov eax, dword [ebp + 0x34]
cmp eax, ebx
jle 0x403db5
mov dword [esp + 0x10], ebx
mov ecx, dword [ebp + 0x30]
lea ecx, [ecx + ebx*8]
xor edi, edi
mov dword [esp + 0x14], ecx
cmp dword [ecx + 4], edi
je 0x403da1
lea edx, [ebx + 1]
cmp edx, eax
jge 0x403d2e
mov eax, dword [ecx + 8]
mov dword [esp + 0x1c], eax
jmp 0x403d32
mov dword [esp + 0x1c], edi
mov esi, dword [ebp + 0x28]
add esi, dword [esp + 0x10]
mov dword [esp + 0x18], 0x2a455246
xor ecx, ecx
mov al, 0x80
cmp byte [ecx + esi], 0
je 0x403d51
or byte [esp + edi + 0x20], al
jmp 0x403d59
mov dl, al
not dl
and byte [esp + edi + 0x20], dl
inc ecx
shr al, 1
jne 0x403d45
inc edi
cmp edi, 0x1f8
jb 0x403d43
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
push 0
push ecx
push edx
call fcn.00414d74
mov eax, dword [ebp + 8]
push eax
push 1
lea ecx, [esp + 0x2c]
push 0x200
push ecx
call fcn.00414a5d
add esp, 0x1c
cmp eax, 1
jl 0x403dd2
mov edx, dword [ebp + 0x30]
mov dword [edx + ebx*8 + 4], 0
mov eax, dword [ebp + 0x34]
add dword [esp + 0x10], 0xfc0
inc ebx
cmp ebx, eax
jl 0x403d09
xor eax, eax
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041358c
add esp, 0x210
ret 4
mov eax, 5
jmp 0x403db7
Function at 0x403f80
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42e328
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x438300]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push esi
push edi
mov eax, dword [0x438300]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov eax, 0x10
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414fa9
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
push 1
lea eax, [esp + 0x18]
push eax
push 6
push esi
mov dword [esp + 0x64], 0
call fcn.00403de0
mov ebx, eax
test ebx, ebx
je 0x404020
mov dword [esp + 0x54], 0xffffffff
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004148f0
add esp, 4
mov eax, ebx
jmp 0x404115
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov ecx, dword [esp + 0x5c]
mov dword [edi], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [edi]
mov edx, 0xbe0
mov dword [esp + 0x24], 0x2a444f4e
mov dword [esp + 0x2c], ecx
mov word [esp + 0x34], dx
test eax, eax
jl 0x404079
push 0
push eax
mov eax, dword [esi + 8]
push eax
call fcn.00414d74
add esp, 0xc
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x2c]
push 0x20
push edx
call fcn.00414a5d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
mov ebx, eax
je 0x4040b3
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x14]
push eax
call fcn.004148f0
add esp, 4
mov eax, ebx
jmp 0x404115
mov edi, dword [edi]
add edi, 0xbff
js 0x4040cc
mov ecx, dword [esi + 8]
push 0
push edi
push ecx
call fcn.00414d74
add esp, 0xc
mov edx, dword [esi + 8]
push edx
push 1
push 1
push 0x4337a0
call fcn.00414a5d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
mov esi, eax
mov dword [esp + 0x54], 0xffffffff
je 0x404106
mov eax, dword [esp + 0x14]
push eax
call fcn.004148f0
add esp, 4
mov eax, esi
jmp 0x404115
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004148f0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0041358c
add esp, 0x48
ret 4

Function at 0x404140
Capabilities:
Write file on windows

Disassembly:
test eax, eax
jl 0x404153
push 0
push eax
mov eax, dword [esi + 8]
push eax
call fcn.00414d74
add esp, 0xc
mov ecx, dword [esi + 8]
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push ecx
push 1
push edx
push eax
call fcn.00414a5d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
ret 8

Function at 0x404180
Capabilities:
Read file on windows

Disassembly:
test eax, eax
jl 0x404193
push 0
push eax
mov eax, dword [esi + 8]
push eax
call fcn.00414d74
add esp, 0xc
mov ecx, dword [esi + 8]
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push ecx
push 1
push edx
push eax
call fcn.004148a9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
ret 8
Function at 0x4041c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x438300]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
mov esi, ecx
mov edi, edx
test ebp, ebp
jne 0x40421b
mov eax, dword [esp + 0x60]
test eax, eax
jl 0x4041f4
push ebp
push eax
mov eax, dword [esi + 8]
push eax
call fcn.00414d74
add esp, 0xc
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x34]
push 0x20
push edx
call fcn.004148a9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x40437c
lea ebp, [esp + 0x2c]
cmp dword [edi + 0xc], 0
jne 0x40422e
push 0
call fcn.00414f3d
add esp, 4
mov dword [edi + 0xc], eax
lea eax, [esp + 0x10]
push eax
mov ebx, eax
call fcn.004043a0
movzx eax, word [ebp + 0x10]
movzx ebx, word [ebp + 0x14]
mov ecx, 0xc00
sub ecx, eax
movzx ecx, cx
test bx, bx
jne 0x40425e
mov dx, word [esi + 0x44]
add dx, cx
mov word [ebp + 0x16], dx
jmp 0x404280
cmp dword [esp + 0x58], 0
je 0x404272
mov dx, word [esi + 0x44]
add dx, cx
mov word [ebp + 0x16], dx
jmp 0x404284
cmp dword [esp + 0x5c], 0
je 0x404284
mov dx, word [esi + 0x44]
add dx, cx
mov word [ebp + 0x12], dx
movzx edx, word [esp + 0x2a]
inc ebx
mov word [ebp + 0x14], bx
cmp dword [esi + 0x10], 0
jne 0x404299
movzx edx, word [esp + 0x26]
sub ax, word [esi + 0x44]
mov ebx, dword [esp + 0x60]
sub ax, dx
mov word [ebp + 0x10], ax
movzx eax, cx
add eax, ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x10], ebx
cmp dword [esi + 0x10], 0
je 0x4042fb
test eax, eax
jl 0x4042cc
mov ecx, dword [esi + 8]
push 0
push eax
push ecx
call fcn.00414d74
add esp, 0xc
mov edx, dword [esi + 8]
push edx
push 1
lea eax, [esp + 0x18]
push 0x1c
push eax
call fcn.00414a5d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x40437c
mov eax, dword [edi + 0x1c]
mov ecx, dword [esi + 8]
add eax, 2
push ecx
jmp 0x404335
test eax, eax
jl 0x40430e
mov edx, dword [esi + 8]
push 0
push eax
push edx
call fcn.00414d74
add esp, 0xc
mov eax, dword [esi + 8]
push eax
push 1
lea ecx, [esp + 0x18]
push 0x18
push ecx
call fcn.00414a5d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x40437c
mov eax, dword [edi + 0x1c]
mov edx, dword [esi + 8]
inc eax
push edx
mov edi, dword [edi]
push 1
push eax
push edi
call fcn.00414a5d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
test eax, eax
jne 0x40437c
test ebx, ebx
jl 0x404361
push eax
mov eax, dword [esi + 8]
push ebx
push eax
call fcn.00414d74
add esp, 0xc
mov ecx, dword [esi + 8]
push ecx
push 1
push 0x20
push ebp
call fcn.00414a5d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x40437c
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041358c
add esp, 0x44
ret 0x10
Function at 0x404510
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24c
mov eax, dword [0x438300]
xor eax, esp
mov dword [esp + 0x248], eax
mov eax, dword [esp + 0x250]
push ebx
mov ebx, dword [esp + 0x258]
push esi
mov esi, ecx
mov dword [esp + 8], eax
test ebx, ebx
jne 0x404546
lea eax, [ebx + 6]
jmp 0x404665
mov eax, dword [esi + 0x14]
push edi
mov edi, dword [esi + 0x10]
neg edi
sbb edi, edi
and edi, 0x112
add edi, 0x124
test eax, eax
jl 0x404570
mov ecx, dword [esi + 8]
push 0
push eax
push ecx
call fcn.00414d74
add esp, 0xc
mov edx, dword [esi + 8]
push edx
push 1
lea eax, [esp + 0x24]
push edi
push eax
call fcn.004148a9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x404664
mov edi, dword [ebx]
test edi, edi
jne 0x4045b4
mov eax, dword [esp + 0x24e]
cmp dword [esi + 0x10], edi
jne 0x4045ab
mov eax, dword [esp + 0x13c]
mov dword [ebx], eax
xor eax, eax
jmp 0x404664
mov ecx, dword [esi + 0x10]
mov eax, dword [esp + 0x13c]
push ebp
mov ebp, dword [esp + 0x252]
mov edx, ebp
test ecx, ecx
jne 0x4045ce
mov edx, eax
cmp edi, edx
jge 0x4045dc
mov eax, 6
jmp 0x404663
test ecx, ecx
je 0x4045e2
mov eax, ebp
mov dword [ebx], eax
mov eax, dword [esp + 0x24e]
xor edi, edi
cmp dword [esi + 0x10], edi
jne 0x4045f9
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x404661
mov ecx, dword [esi + 8]
push 0
push eax
push ecx
call fcn.00414d74
mov edx, dword [esi + 8]
push edx
push 1
lea eax, [esp + 0x28]
push 0xa
push eax
call fcn.004148a9
push 4
lea ecx, [esp + 0x34]
push str.DAT
push ecx
call fcn.00413905
add esp, 0x28
test eax, eax
jne 0x40467e
mov edx, dword [esi + 8]
movzx eax, word [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push edx
push 1
push eax
add ecx, edi
push ecx
call fcn.004148a9
movzx edx, word [esp + 0x2c]
mov eax, dword [esp + 0x28]
add esp, 0x10
add edi, edx
test eax, eax
jne 0x404601
xor eax, eax
pop ebp
pop edi
mov ecx, dword [esp + 0x250]
pop esi
pop ebx
xor ecx, esp
call fcn.0041358c
add esp, 0x24c
ret 8
mov eax, 2
jmp 0x404663
Function at 0x404690
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x23c
mov eax, dword [0x438300]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
mov ebx, dword [esp + 0x244]
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
neg esi
sbb esi, esi
and esi, 0x112
add esi, 0x124
test eax, eax
jl 0x4046d9
push 0
push eax
mov eax, dword [edi + 8]
push eax
call fcn.00414d74
add esp, 0xc
mov ecx, dword [edi + 8]
push ecx
push 1
lea edx, [esp + 0x14]
push esi
push edx
call fcn.004148a9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x40477b
lea ecx, [esp + 0x23a]
cmp dword [edi + 0x10], eax
jne 0x40470e
lea ecx, [esp + 0x128]
mov esi, dword [esp + 0x250]
push 0
push esi
push ebx
call fcn.004047a0
test eax, eax
jne 0x40477b
mov eax, dword [edi + 0x10]
test eax, eax
je 0x404732
mov dword [esp + 0x23e], esi
jmp 0x404739
mov dword [esp + 0x12c], esi
mov ecx, dword [edi + 0x14]
neg eax
sbb eax, eax
and eax, 0x112
add eax, 0x124
mov esi, eax
test ecx, ecx
jl 0x40475f
mov eax, dword [edi + 8]
push 0
push ecx
push eax
call fcn.00414d74
add esp, 0xc
mov ecx, dword [edi + 8]
push ecx
push 1
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00414a5d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041358c
add esp, 0x23c
ret 8
Function at 0x404ad0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x23c
mov eax, dword [0x438300]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
mov ebx, dword [esp + 0x248]
push ebp
mov ebp, dword [esp + 0x248]
push edi
mov edi, ecx
test ebx, ebx
jne 0x404b05
mov eax, 6
jmp 0x404bb6
mov eax, dword [edi + 0x14]
push esi
mov esi, dword [edi + 0x10]
neg esi
sbb esi, esi
and esi, 0x112
add esi, 0x124
test eax, eax
jl 0x404b2f
push 0
push eax
mov eax, dword [edi + 8]
push eax
call fcn.00414d74
add esp, 0xc
mov ecx, dword [edi + 8]
push ecx
push 1
lea edx, [esp + 0x18]
push esi
push edx
call fcn.004148a9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
pop esi
jne 0x404bb6
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0x3a]
test ecx, ecx
jne 0x404b78
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404b60
sub eax, edx
mov ecx, dword [ebx]
inc eax
imul eax, dword [edi + 0x48]
test ecx, ecx
jne 0x404b91
mov dword [ebx], eax
jmp 0x404bb4
lea edx, [eax + 2]
jmp 0x404b80
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404b80
sub eax, edx
sar eax, 1
jmp 0x404b69
cmp ecx, eax
jl 0x404afb
mov dword [ebx], eax
cmp dword [edi + 0x10], 0
lea ecx, [esp + 0x3a]
jne 0x404ba9
lea ecx, [esp + 0x28]
push eax
push ecx
push ebp
call fcn.00416050
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x244]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041358c
add esp, 0x23c
ret 8
Function at 0x404bd0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x240
mov eax, dword [0x438300]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebp
push esi
mov ebp, ecx
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
neg esi
sbb esi, esi
and esi, 0x112
push edi
mov edi, dword [esp + 0x250]
add esi, 0x124
mov dword [esp + 0xc], edi
test eax, eax
jl 0x404c1d
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00414d74
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
lea edx, [esp + 0x18]
push esi
push edx
call fcn.004148a9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x404d06
mov esi, dword [ebp + 0x10]
mov eax, edi
test esi, esi
je 0x404c61
lea edx, [eax + 2]
jmp 0x404c50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c50
sub eax, edx
sar eax, 1
jmp 0x404c6d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404c64
sub eax, edx
push ebx
lea ebx, [eax + 1]
imul ebx, dword [ebp + 0x48]
mov edi, esi
neg edi
sbb edi, edi
and edi, 0x100
add edi, 0x100
cmp ebx, edi
jle 0x404c92
mov eax, 6
jmp 0x404d05
lea eax, [esp + 0x42]
test esi, esi
jne 0x404c9e
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x10]
push ebx
push ecx
push eax
call fcn.00416050
add esp, 0xc
lea eax, [esp + 0x42]
test esi, esi
jne 0x404cb9
lea eax, [esp + 0x30]
sub edi, ebx
push edi
add eax, ebx
push 0
push eax
call fcn.00415d50
mov eax, dword [ebp + 0x14]
add esp, 0xc
neg esi
sbb esi, esi
and esi, 0x112
add esi, 0x124
test eax, eax
jl 0x404cef
mov edx, dword [ebp + 8]
push 0
push eax
push edx
call fcn.00414d74
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 1
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.00414a5d
add esp, 0x10
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041358c
add esp, 0x240
ret 4
Function at 0x405480
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 8]
sub esp, 8
push 2
push 0xfffffe00
push eax
call fcn.00414d74
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x14]
push 4
push edx
call fcn.004148a9
add esp, 0x1c
cmp eax, 1
je 0x4054b3
xor eax, eax
add esp, 8
ret
push 4
lea eax, [esp + 4]
push str.TRL
push eax
call fcn.00413905
add esp, 0xc
test eax, eax
jne 0x4054ad
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0xc]
push 4
push edx
call fcn.004148a9
add esp, 0x10
cmp eax, 1
jne 0x4054ad
mov eax, dword [esp + 4]
mov ecx, dword [esi + 8]
push 0
push eax
push ecx
call fcn.00414d74
mov edx, dword [esi + 8]
push edx
push 1
lea eax, [esp + 0x14]
push 4
push eax
call fcn.004148a9
add esp, 0x1c
cmp eax, 1
jne 0x4054ad
push 4
lea ecx, [esp + 4]
push str.HDR
push ecx
call fcn.00413905
add esp, 0xc
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 4]
add esp, 8
ret

Function at 0x405540
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x438300]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
je 0x4055cd
cmp dword [esi + 0x14], 0
je 0x4055cd
call fcn.00405480
cmp dword [esi + 0x14], eax
je 0x4055cd
push 4
lea eax, [esp + 0xc]
push str.TRL
push eax
call fcn.004142e0
push 0x1f8
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00415d50
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x14]
push 2
push 0
push eax
mov dword [esp + 0x30], edx
call fcn.00414d74
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x34]
push 8
push edx
call fcn.00414a5d
mov eax, dword [esi + 8]
push eax
push 1
lea ecx, [esp + 0x4c]
push 0x1f8
push ecx
call fcn.00414a5d
add esp, 0x44
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.0041358c
add esp, 0x210
ret

Function at 0x4059f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4059f7
xor eax, eax
ret
or eax, 0xffffffff
push esi
cmp edx, 8
jb 0x405ad4
mov esi, edx
shr esi, 3
push edi
lea ebx, [ebx]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x432e38]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x432e38]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x432e38]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x432e38]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x432e38]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x432e38]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x432e38]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x432e38]
inc ecx
sub edx, 8
sub esi, 1
jne 0x405a10
pop edi
test edx, edx
je 0x405afb
jmp 0x405ae0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x432e38]
inc ecx
sub edx, 1
jne 0x405ae0
not eax
pop esi
ret
Function at 0x4080b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
sub eax, edi
mov ebx, edx
jns 0x4080c3
xor eax, eax
jmp 0x4080c9
cmp eax, ebx
jbe 0x4080c9
mov eax, ebx
add dword [esp + 0x14], eax
add edi, eax
sub ebx, eax
je 0x40812d
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
test eax, eax
ja 0x4080e5
call fcn.00415357
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
mov esi, 4
lea edx, [esp + 0x18]
or eax, 0xffffffff
push ebp
jmp 0x408100
movzx ebp, byte [edx]
xor ebp, eax
and ebp, 0xff
shr eax, 8
xor eax, dword [ebp*4 + 0x432e38]
inc edx
sub esi, 1
jne 0x408100
mov edx, dword [ecx]
mov edx, dword [edx + 4]
not eax
push eax
mov eax, dword [esp + 0x1c]
push edi
push ebx
push eax
call edx
pop ebp
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x408140
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
sub eax, edi
mov ebx, edx
jns 0x408153
xor eax, eax
jmp 0x408159
cmp eax, ebx
jbe 0x408159
mov eax, ebx
add dword [esp + 0x14], eax
add edi, eax
sub ebx, eax
je 0x4081bd
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
test eax, eax
ja 0x408175
call fcn.00415357
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
mov esi, 4
lea edx, [esp + 0x18]
or eax, 0xffffffff
push ebp
jmp 0x408190
movzx ebp, byte [edx]
xor ebp, eax
and ebp, 0xff
shr eax, 8
xor eax, dword [ebp*4 + 0x432e38]
inc edx
sub esi, 1
jne 0x408190
mov edx, dword [ecx]
mov edx, dword [edx + 8]
not eax
push eax
mov eax, dword [esp + 0x1c]
push edi
push ebx
push eax
call edx
pop ebp
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x4085e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
xor eax, eax
push edi
mov edi, ecx
test ebp, ebp
jbe 0x408609
mov cl, byte [esp + 0x18]
push esi
mov esi, dword [esp + 0x10]
mov dl, byte [eax + esi]
xor dl, cl
xor dl, byte [edi + 4]
inc eax
mov byte [eax + esi - 1], dl
cmp eax, ebp
jb 0x4085f7
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x40dac0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x42e0c1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x438300]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x14], ebx
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
call fcn.004068c0
mov eax, edi
mov dword [esp + 0x34], 1
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40db20
sub eax, edx
sar eax, 1
push eax
push edi
lea eax, [esp + 0x18]
call fcn.0040e5d0
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.004068c0
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x40db75
mov eax, dword [esp + 0x14]
push eax
call fcn.004148f0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x40ea10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42d6bb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x438300]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00427730
push 4
mov dword [esp + 0x24], 0
call fcn.00414fa9
mov edi, eax
add esp, 4
test edi, edi
je 0x40ea92
call fcn.0042756d
mov dword [edi], eax
call fcn.0042739b
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.004276f1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40ea87
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00427719
jmp 0x40ea94
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret