joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030a7
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
sub esp, 0x40
mov eax, dword [0x42e440]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
push edi
push eax
mov edi, ecx
mov dword [esp + 0x18], eax
call fcn.00412b13
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.0040c9a3
add esp, 0xc
test eax, eax
je 0x403100
call fcn.0040dd78
push dword [eax]
push dword [edi + 0x10]
push 0x429a70
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x10
push 6
pop eax
jmp 0x4031dc
mov esi, dword [edi + 0x20]
push esi
cmp dword [esp + 0x30], esi
je 0x403125
push dword [esp + 0x30]
push 0x429ab0
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x10
push 2
jmp 0x4030fa
call fcn.0040be77
mov ebx, eax
mov dword [edi + 0x38], ebx
pop ecx
test ebx, ebx
jne 0x403138
push 0xd
jmp 0x4030fa
test esi, esi
je 0x403165
mov ebp, esi
cmp esi, 0x7fffffff
jb 0x40314b
mov ebp, 0x7fffffff
push dword [esp + 0x14]
push ebp
push 1
push ebx
call fcn.0040cede
add esp, 0x10
cmp eax, ebp
jne 0x4031bf
add ebx, eax
sub esi, eax
jne 0x40313c
mov esi, dword [edi + 0x38]
or edx, 0xffffffff
mov ecx, dword [edi + 0x20]
xor ebp, ebp
add ecx, esi
mov eax, ecx
sub eax, esi
cmp ecx, esi
sbb ebx, ebx
not ebx
and ebx, eax
je 0x40319a
movzx eax, byte [esi]
mov ecx, edx
shr ecx, 0x18
xor ecx, eax
shl edx, 8
xor edx, dword [ecx*4 + 0x428390]
inc esi
inc ebp
cmp ebp, ebx
jne 0x403180
not edx
cmp edx, dword [edi + 0x24]
je 0x4031da
push dword [edi + 0x24]
push edx
push 0x429b30
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x10
push 4
jmp 0x4030fa
push dword [edi + 0x10]
push 0x429afc
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0xc
jmp 0x4030f8
xor eax, eax
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bd82
add esp, 0x40
ret 4

Function at 0x403dbf
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x42e440]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
push edi
xor eax, eax
mov ebp, 0x206
push ebp
push eax
mov word [esp + 0x10], ax
mov edi, ecx
lea eax, [esp + 0x12]
push eax
call fcn.00414050
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0
push 0x429de4
push dword [0x43074c]
call dword [0x423108]
lea ecx, [esp + 8]
call fcn.00402610
test eax, eax
je 0x403e1b
xor al, al
jmp 0x403e5d
push esi
lea eax, [esp + 0xc]
push 0x427d94
push eax
call fcn.0040c03b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x403e5a
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403e38
push esi
sub ecx, edx
push 1
push ecx
push edi
call fcn.0040c7c6
add esp, 0x10
push esi
cmp eax, 1
je 0x403e74
call fcn.0040c92c
pop ecx
xor al, al
pop esi
mov ecx, dword [esp + 0x418]
pop edi
pop ebp
xor ecx, esp
call fcn.0040bd82
add esp, 0x414
ret
call fcn.0040c92c
xor eax, eax
push ebp
push eax
mov word [esp + 0x220], ax
lea eax, [esp + 0x222]
push eax
call fcn.00414050
push dword [0x43074c]
lea eax, [esp + 0x228]
push 0x429dec
push 0x104
push eax
call fcn.00401fe5
add esp, 0x20
lea eax, [esp + 0x214]
push 1
push eax
lea eax, [esp + 0x14]
push eax
call dword [str.t7hdx_]
test eax, eax
setne al
jmp 0x403e5c
Function at 0x403f22
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x42e440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push dword [0x43074c]
lea eax, [ebp - 0x24c]
push 0x429e34
push 0x104
push eax
call fcn.00401fe5
lea eax, [ebp - 0x24c]
push 0x429bd4
push eax
call fcn.0040c03b
mov edx, eax
add esp, 0x18
mov dword [ebp - 0x250], edx
test edx, edx
jne 0x403f76
xor bl, bl
jmp 0x403fec
push esi
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x23]
xor ebx, ebx
mov byte [ebp - 0x24], bl
rep stosd dword es:[edi], eax
push edx
push 1
push 0x20
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push eax
call fcn.0040cede
mov esi, 0x429e58
lea edi, [ebp - 0x44]
push 0xf
lea eax, [ebp - 0x44]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x429e68
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040d340
add esp, 0x1c
pop edi
pop esi
test eax, eax
je 0x403fde
push 0xf
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040d340
add esp, 0xc
test eax, eax
jne 0x403fe0
mov bl, 1
push dword [ebp - 0x250]
call fcn.0040c92c
pop ecx
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040bd82
mov esp, ebp
pop ebp
ret

Function at 0x403ffd
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x23c
mov eax, dword [0x42e440]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push dword [0x43074c]
mov ebp, ecx
lea eax, [esp + 0x3c]
push 0x429e34
push 0x104
xor ebx, ebx
push eax
mov byte [ebp], bl
call fcn.00401fe5
lea eax, [esp + 0x48]
push 0x429bd4
push eax
call fcn.0040c03b
mov edx, eax
add esp, 0x18
mov dword [esp + 8], edx
test edx, edx
je 0x4040aa
push esi
push edi
push 7
pop ecx
xor eax, eax
mov byte [esp + 0x20], bl
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
push edx
push 1
push 0x20
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
push eax
call fcn.0040cede
mov esi, 0x429e78
lea edi, [esp + 0x24]
push 9
lea eax, [esp + 0x28]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x38]
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.0040d340
push dword [esp + 0x2c]
neg eax
mov bl, 1
sbb al, al
inc al
mov byte [ebp], al
call fcn.0040c92c
add esp, 0x20
pop edi
pop esi
mov ecx, dword [esp + 0x240]
mov al, bl
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bd82
add esp, 0x23c
ret
Function at 0x404134
Capabilities:
Create directory

Disassembly:
sub esp, 0x830
mov eax, dword [0x42e440]
xor eax, esp
mov dword [esp + 0x828], eax
push ebp
push esi
push edi
mov ebp, 0x104
lea eax, [esp + 0x10]
push ebp
push eax
mov esi, 0x431230
push esi
call dword [0x4230c8]
test eax, eax
jne 0x40416e
push 0x22
pop eax
jmp 0x40437f
lea eax, [esp + 0x10]
push eax
push 0x429ee8
lea eax, [esp + 0x220]
push ebp
push eax
call fcn.00401fe5
push esi
push 0x429ef8
lea eax, [esp + 0x640]
push ebp
push eax
call fcn.00401fe5
add esp, 0x20
lea ecx, [esp + 0x218]
xor dl, dl
call fcn.004023a7
lea eax, [esp + 0x218]
push eax
lea eax, [esp + 0x14]
push eax
push 0x429f18
call fcn.0040200f
push eax
call fcn.00408506
push 1
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x24]
call fcn.00402687
add esp, 0x14
xor edi, edi
jmp 0x404225
mov eax, edi
inc edi
cmp eax, 0xa
jge 0x40422c
push esi
call dword [0x4230d0]
push eax
lea eax, [esp + 0x18]
push eax
push edi
push 0x429f48
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x18
push 0x64
call dword [0x423118]
push 1
lea edx, [esp + 0x21c]
lea ecx, [esp + 0x14]
call fcn.00402687
pop ecx
mov esi, eax
cmp esi, 7
je 0x4041e1
test esi, esi
je 0x40424b
push esi
push 0x429fa4
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0xc
mov eax, esi
jmp 0x40437f
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x62c]
push eax
push 0x429fd0
call fcn.0040200f
push eax
call fcn.00408506
push 1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x63c]
call fcn.00402687
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4042da
push esi
push 0x429ffc
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0xc
push 0x42a028
call fcn.0040200f
push eax
call fcn.00408506
xor dl, dl
lea ecx, [esp + 0x18]
call fcn.004023a7
push 1
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x224]
call fcn.00402687
add esp, 0xc
test eax, eax
je 0x404244
push eax
push 0x42a050
jmp 0x404236
push 0x42a080
call fcn.0040200f
push eax
call fcn.00408506
pop ecx
pop ecx
mov dl, 1
lea ecx, [esp + 0x218]
call fcn.004023a7
test eax, eax
je 0x404376
push eax
push 0x42a098
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0xc
lea eax, [esp + 0x10]
push 0x429718
push eax
push 0x42a0b8
lea eax, [esp + 0x42c]
push ebp
push eax
call fcn.00401fe5
add esp, 0x14
lea eax, [esp + 0x420]
push eax
call fcn.0040d793
pop ecx
lea eax, [esp + 0x420]
push 0
push eax
call fcn.0040d284
pop ecx
pop ecx
test eax, eax
je 0x404363
lea eax, [esp + 0x420]
push eax
call fcn.0040d762
pop ecx
lea edx, [esp + 0x420]
lea ecx, [esp + 0x218]
call fcn.004027a8
mov byte [0x430533], 1
xor eax, eax
mov ecx, dword [esp + 0x834]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040bd82
add esp, 0x830
ret
Function at 0x405acb
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x42e440]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x429bd4
push ebp
call fcn.0040c03b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x405afd
push ebp
push 0x42ab50
jmp 0x405c07
push esi
call fcn.00412b13
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.0040c9a3
add esp, 0xc
test eax, eax
je 0x405b20
push ebp
push 0x42ab88
jmp 0x405c07
mov edi, dword [esp + 0x2c]
lea eax, [edi + 1]
push eax
call fcn.0040be77
mov ebx, eax
pop ecx
test ebx, ebx
je 0x405bdf
mov ecx, ebx
mov dword [esp + 0x10], ecx
test edi, edi
je 0x405b84
cmp edi, 0x7fffffff
jae 0x405b52
mov eax, edi
mov dword [esp + 0x14], edi
jmp 0x405b5b
mov eax, 0x7fffffff
mov dword [esp + 0x14], eax
push esi
push eax
push 1
push ecx
call fcn.0040cede
add esp, 0x10
cmp eax, dword [esp + 0x14]
jne 0x405c01
mov ecx, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 0x10], ecx
sub edi, eax
jne 0x405b42
mov edi, dword [esp + 0x2c]
mov byte [edi + ebx], 0
mov ebp, dword [esp + 0x2c]
lea eax, [ebp*2 + 2]
push eax
call fcn.0040be77
mov edi, eax
pop ecx
test edi, edi
je 0x405bdf
lea eax, [ebp + 1]
push eax
push edi
push 0xffffffffffffffff
push ebx
push 8
push 0xfde9
call dword [0x423110]
test eax, eax
jne 0x405c17
call dword [0x4230d0]
push eax
push 0x42abf8
call fcn.0040200f
push eax
call fcn.00408506
push ebx
call fcn.0040be3f
push edi
call fcn.0040be3f
add esp, 0x14
xor edi, edi
test esi, esi
je 0x405bec
push esi
call fcn.0040c92c
pop ecx
mov ecx, dword [esp + 0x4c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bd82
add esp, 0x44
ret
push ebp
push 0x42abc0
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0xc
jmp 0x405bdf
push ebx
call fcn.0040be3f
pop ecx
jmp 0x405be1
Function at 0x4063b1
Capabilities:
Create directory

Disassembly:
sub esp, 0x460
mov eax, dword [0x42e440]
xor eax, esp
mov dword [esp + 0x45c], eax
mov eax, dword [esp + 0x464]
push ebx
push ebp
push esi
mov dword [esp + 0x14], eax
mov esi, ecx
push edi
lea eax, [esp + 0x28]
mov ebx, edx
push eax
push esi
mov dword [esp + 0x2c], ebx
call fcn.0040d8ca
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x406413
call fcn.0040dd78
push dword [eax]
push edi
push esi
push 0x42aec0
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x14
push 6
pop eax
jmp 0x4065e8
mov eax, dword [esp + 0x2e]
mov ecx, 0x4000
and eax, 0xf000
cmp ax, cx
je 0x40645b
xor edi, edi
push edi
push ebx
push esi
call dword [0x4230e0]
test eax, eax
jne 0x406454
call dword [0x4230d0]
push eax
push ebx
push esi
push 0x4293f0
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x14
push 0x3d
pop edi
mov eax, edi
jmp 0x4065e8
push ebx
call fcn.0040d762
mov ebx, eax
pop ecx
test ebx, ebx
jns 0x406495
call fcn.0040dd78
cmp dword [eax], 0x11
je 0x406495
call fcn.0040dd78
push dword [eax]
push ebx
push esi
push 0x42af00
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x14
push 7
jmp 0x40640d
mov ecx, esi
call fcn.0040665e
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4064b7
call fcn.0040dd78
push dword [eax]
push ebx
push esi
push 0x42af58
jmp 0x4063fd
mov ecx, eax
call fcn.0040669d
mov ebp, eax
test ebp, ebp
je 0x4065dd
xor edi, edi
mov ecx, 0x429350
mov eax, ebp
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4064f7
test dx, dx
je 0x4064f3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4064f7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4064d1
mov eax, edi
jmp 0x4064fc
sbb eax, eax
or eax, 1
test eax, eax
je 0x4065ca
mov ecx, 0x429290
mov eax, ebp
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406531
test dx, dx
je 0x40652d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406531
add eax, 4
add ecx, 4
test dx, dx
jne 0x40650b
mov eax, edi
jmp 0x406536
sbb eax, eax
or eax, 1
test eax, eax
je 0x4065ca
push ebp
push esi
push 0x429354
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.00401fe5
mov ecx, dword [esp + 0x2c]
add esp, 0x14
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x58]
push eax
push ecx
call fcn.0041d556
pop ecx
pop ecx
test eax, eax
je 0x4065ca
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc eax
add ecx, 0x208
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
cmp eax, 3
jl 0x406563
push ebp
push dword [esp + 0x28]
lea eax, [esp + 0x268]
push 0x429354
push 0x104
push eax
call fcn.00401fe5
add esp, 0x14
lea edx, [esp + 0x260]
lea ecx, [esp + 0x58]
push dword [esp + 0x18]
call fcn.004063b1
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4065dd
mov ecx, dword [esp + 0x14]
call fcn.0040669d
mov ebp, eax
test ebp, ebp
jne 0x4064ca
mov ecx, dword [esp + 0x14]
call fcn.0040667e
mov eax, ebx
mov ecx, dword [esp + 0x46c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bd82
add esp, 0x460
ret
Function at 0x4068c5
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, edx
mov dword [esp], eax
push ebx
push ebp
push esi
test ecx, ecx
je 0x40696f
test eax, eax
je 0x40696f
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40696f
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x40696f
cmp dword [esp + 0x20], 0
je 0x40696f
push ecx
push 1
push dword [esp + 0x1c]
push eax
call fcn.0040cede
add esp, 0x10
cmp eax, 1
je 0x40692a
push dword [esp + 0x20]
push 0x42b09c
call fcn.0040d686
add eax, 0x40
push eax
call fcn.0040e5c8
add esp, 0xc
jmp 0x406984
xor ebp, ebp
test ebx, ebx
je 0x40694c
push dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.004068a2
pop ecx
test eax, eax
jne 0x406950
inc ebp
add esi, 4
cmp ebp, ebx
jb 0x406930
xor eax, eax
jmp 0x406987
push dword [esp + 0x20]
push 0x42b0b8
call fcn.0040d686
add eax, 0x40
push eax
call fcn.0040e5c8
add esp, 0xc
push 0xfffffffffffffffe
pop eax
jmp 0x406987
push 0x42b074
call fcn.0040d686
add eax, 0x40
push eax
call fcn.0040e5c8
pop ecx
pop ecx
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4076af
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push 0x429bd4
push ecx
mov dword [esp + 0x18], edx
call fcn.0040c03b
mov esi, eax
mov dword [esp + 0x20], esi
pop ecx
pop ecx
test esi, esi
je 0x407899
push 2
push 0
push esi
call fcn.0040e98e
add esp, 0xc
test eax, eax
jne 0x407899
push esi
call fcn.0040f9ea
mov ebx, eax
pop ecx
test ebx, ebx
jle 0x407899
lea ecx, [ebx + 1]
push edi
push ecx
call fcn.0040ed98
mov edi, eax
mov dword [esp + 0x24], edi
pop ecx
test edi, edi
jne 0x407713
push 0xa
jmp 0x407737
push 0
push 0
push esi
call fcn.0040e98e
add esp, 0xc
test eax, eax
jne 0x407735
push esi
push ebx
push 1
push edi
call fcn.0040cede
add esp, 0x10
cmp eax, ebx
je 0x40773d
push 6
pop ebp
jmp 0x40788f
lea edx, [esp + 0x18]
mov byte [edi + ebx], 0
mov ecx, 0x428350
mov dword [esp + 0x18], edi
mov byte [esp + 0x13], 0
xor ebp, ebp
call fcn.004075f2
test eax, eax
je 0x407884
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov cl, byte [eax]
cmp cl, 0x23
je 0x407866
cmp cl, 0x3b
je 0x407866
mov edx, eax
mov ecx, 0x428354
call fcn.004075ca
mov ebx, eax
mov dword [esp + 0x14], ebx
mov al, byte [ebx]
test al, al
je 0x407866
cmp al, 0x5b
jne 0x407818
inc ebx
lea edx, [esp + 0x14]
mov ecx, 0x42834c
mov dword [esp + 0x14], ebx
call fcn.004075f2
test eax, eax
je 0x407811
lea edx, [esp + 0x14]
mov ecx, 0x428354
call fcn.004075f2
test eax, eax
jne 0x407811
cmp dword [esp + 0x30], eax
je 0x4077ff
mov eax, dword [esp + 0x30]
mov cl, byte [ebx]
cmp cl, byte [eax]
jne 0x4077f1
test cl, cl
je 0x4077ed
mov cl, byte [ebx + 1]
cmp cl, byte [eax + 1]
jne 0x4077f1
add ebx, 2
add eax, 2
test cl, cl
jne 0x4077d1
xor eax, eax
jmp 0x4077f6
sbb eax, eax
or eax, 1
test eax, eax
sete byte [esp + 0x13]
jmp 0x407866
push 8
push 0x42b7cc
push ebx
call fcn.0041acad
add esp, 0xc
jmp 0x4077f6
mov byte [esp + 0x13], 0
jmp 0x407866
cmp byte [esp + 0x13], 0
je 0x407866
lea edx, [esp + 0x14]
mov ecx, 0x428348
call fcn.004075f2
test eax, eax
je 0x407866
mov edx, ebx
mov ecx, edi
call fcn.0040764c
test eax, eax
js 0x407866
cmp eax, dword [esp + 0x28]
jae 0x407866
imul ebx, eax, 0x258
push 0x257
push dword [esp + 0x18]
add ebx, esi
push ebx
call fcn.0040c440
add esp, 0xc
mov byte [ebx + 0x257], 0
inc ebp
lea edx, [esp + 0x18]
mov ecx, 0x428350
call fcn.004075f2
test eax, eax
jne 0x40776a
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
sub ebp, dword [esp + 0x28]
neg ebp
sbb ebp, ebp
and ebp, 5
push edi
call fcn.0040e8c7
pop ecx
pop edi
jmp 0x40789c
push 6
pop ebp
test esi, esi
je 0x4078a7
push esi
call fcn.0040c92c
pop ecx
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x408675
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
lea eax, [esp + 0xc]
push ebx
push ebp
mov ebx, ecx
xor ebp, ebp
inc ebp
push dword [ebx]
push ebp
push 4
push eax
call fcn.0040cede
add esp, 0x10
cmp eax, ebp
je 0x40869d
or eax, 0xffffffff
jmp 0x40876d
lea eax, [esp + 0x14]
cmp dword [eax], 0x3152414d
jne 0x408695
push dword [ebx]
lea eax, [esp + 0x14]
push ebp
push 4
push eax
call fcn.0040cede
add esp, 0x10
cmp eax, ebp
jne 0x408695
push esi
push dword [esp + 0x14]
mov esi, dword [0x42f540]
call esi
push 0
push eax
push dword [ebx]
mov dword [esp + 0x20], eax
call fcn.0040e98e
add esp, 0xc
test eax, eax
jne 0x4086f7
push dword [ebx]
lea eax, [esp + 0x10]
push ebp
push 4
push eax
call fcn.0040cede
add esp, 0x10
cmp eax, ebp
je 0x4086fc
or eax, 0xffffffff
jmp 0x40876c
push edi
push dword [esp + 0x10]
call esi
mov esi, eax
push esi
mov dword [esp + 0x14], esi
call fcn.0040be77
mov edi, eax
pop ecx
test edi, edi
jne 0x40871b
or eax, 0xffffffff
jmp 0x40876b
push dword [ebx]
push ebp
push esi
push edi
call fcn.0040cede
add esp, 0x10
cmp eax, ebp
je 0x408737
push edi
call fcn.0040be3f
or eax, 0xffffffff
jmp 0x40876a
mov ebp, dword [esp + 0x10]
mov esi, edi
mov dword [esp + 0x14], esi
add ebp, edi
cmp esi, ebp
jae 0x40875c
push ebp
lea edx, [esp + 0x18]
mov ecx, ebx
call fcn.004085e6
mov esi, dword [esp + 0x18]
pop ecx
test eax, eax
je 0x408743
push edi
call fcn.0040be3f
xor eax, eax
cmp esi, ebp
sete al
dec eax
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x408844
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, ecx
test ebp, ebp
jne 0x40885b
or eax, 0xffffffff
jmp 0x4089e5
push 0
push 4
push esi
call fcn.0040e98e
add esp, 0xc
test eax, eax
jne 0x408853
push edi
push esi
xor edi, edi
lea eax, [esp + 0x18]
inc edi
push edi
push 4
push eax
call fcn.0040cede
add esp, 0x10
cmp eax, edi
je 0x40888d
or eax, 0xffffffff
jmp 0x4089e4
push ebx
push dword [esp + 0x18]
mov ebx, dword [0x42f540]
call ebx
push 0
push eax
push esi
mov dword [esp + 0x24], eax
call fcn.0040e98e
add esp, 0xc
test eax, eax
jne 0x4089b2
push edi
push 4
push esi
call fcn.0040e98e
add esp, 0xc
test eax, eax
jne 0x4089b2
push esi
push edi
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.0040cede
add esp, 0x10
cmp eax, edi
jne 0x4089b2
push dword [esp + 0x14]
call ebx
push 0
push 0
push 0x10
push esi
mov dword [esp + 0x24], eax
call fcn.0040f2ed
add esp, 0x10
test eax, eax
jne 0x4089b2
push esi
push edi
lea eax, [esp + 0x18]
push 4
push eax
call fcn.0040cede
add esp, 0x10
cmp eax, edi
jne 0x4089b2
push dword [esp + 0x10]
call ebx
mov dword [esp + 0x10], eax
cmp eax, 8
ja 0x4089b2
xor edi, edi
test eax, eax
je 0x40897b
push 1
push 4
push esi
call fcn.0040e98e
add esp, 0xc
test eax, eax
jne 0x4089b2
push esi
push 1
lea eax, [esp + 0x24]
push 4
push eax
call fcn.0040cede
add esp, 0x10
cmp eax, 1
jne 0x4089b2
push dword [esp + 0x1c]
call ebx
push 1
push eax
push esi
mov dword [esp + 0x28], eax
call fcn.0040e98e
add esp, 0xc
test eax, eax
jne 0x4089b2
inc edi
cmp edi, dword [esp + 0x10]
jb 0x408932
push esi
call fcn.0040f9ea
cdq
pop ecx
cmp eax, dword [esp + 0x14]
jne 0x408992
test edx, edx
jne 0x408992
and dword [ebp], edx
jmp 0x4089e1
mov edi, dword [esp + 0x30]
test edi, edi
je 0x4089cd
xor eax, eax
inc eax
push esi
push eax
push 4
push edi
mov dword [ebp], eax
call fcn.0040cede
add esp, 0x10
cmp eax, 1
je 0x4089b7
or eax, 0xffffffff
jmp 0x4089e3
push dword [edi]
call ebx
mov dword [edi], eax
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x4089e1
push esi
call fcn.0040f9ea
jmp 0x4089de
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x4089e1
push esi
call fcn.0040f9ea
add eax, 4
mov dword [edi], eax
pop ecx
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x4089eb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x42e440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x60
lea eax, [ebp - 0x67]
mov byte [ebp - 0x68], 0
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.00414050
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push ecx
mov ecx, dword [edi]
call fcn.00408844
xor ebx, ebx
add esp, 0x10
cmp dword [ebp - 0x70], ebx
jbe 0x408a9b
push dword [edi]
lea eax, [ebp - 0x6c]
push 1
push 4
push eax
call fcn.0040cede
add esp, 0x10
cmp eax, 1
jne 0x408a9b
push dword [ebp - 0x6c]
call dword [0x42f540]
push dword [edi]
sub eax, 8
push 1
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x74]
push 4
push eax
call fcn.0040cede
add esp, 0x10
cmp eax, 1
jne 0x408a9b
push dword [ebp - 0x74]
call dword [0x42f540]
mov dword [ebp - 0x74], eax
cmp eax, 1
je 0x408aaf
push 1
push dword [ebp - 0x6c]
push dword [edi]
call fcn.0040e98e
add esp, 0xc
test eax, eax
jne 0x408a9b
inc ebx
cmp ebx, dword [ebp - 0x70]
jb 0x408a34
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bd82
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x6c], 0x60
ja 0x408a9b
push dword [edi]
lea eax, [ebp - 0x68]
push 1
push dword [ebp - 0x6c]
push eax
call fcn.0040cede
add esp, 0x10
cmp eax, 1
jne 0x408a9b
lea ecx, [ebp - 0x68]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408ad3
sub ecx, edx
lea eax, [ebp - 0x68]
lea edx, [ebp - 0x67]
mov dword [esi], eax
add edx, ecx
cmp ecx, 0x40
jl 0x408af0
and dword [esi], 0
jmp 0x408a9b
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408af5
sub ecx, edi
mov dword [esi + 4], edx
cmp ecx, 0x20
jl 0x408b0f
and dword [esi], 0
and dword [esi + 4], 0
jmp 0x408a9b
lea eax, [ebp - 0x68]
push eax
call fcn.0041ee60
push dword [esi + 4]
mov dword [esi], eax
call fcn.0041ee60
pop ecx
mov dword [esi + 4], eax
xor eax, eax
pop ecx
jmp 0x408a9e

Function at 0x408b8f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [edx + 8]
mov ebx, ecx
cmp dword [ebp + 8], esi
jne 0x408ba2
xor eax, eax
jmp 0x408bdb
jle 0x408ba9
or eax, 0xffffffff
jmp 0x408bdb
sub esi, dword [ebp + 8]
cmp esi, dword [ebp + 0x10]
jle 0x408bb4
mov esi, dword [ebp + 0x10]
mov eax, dword [edx + 4]
add eax, dword [ebp + 8]
push 0
push eax
push dword [ebx]
call fcn.0040e98e
add esp, 0xc
test eax, eax
jne 0x408ba4
push dword [ebx]
push esi
push 1
push dword [ebp + 0xc]
call fcn.0040cede
add esp, 0x10
pop esi
pop ebx
pop ebp
ret

Function at 0x408bdf
Capabilities:
Terminate process

Disassembly:
push 0x42c24c
push ecx
push 0x42c040
call fcn.0040d686
add eax, 0x40
push eax
call fcn.0040e5c8
add esp, 0x10
push 3
call fcn.004103ac
int3

Function at 0x426f40
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x426f46
ret