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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov dword [esp + 0x20], 0x3bed39d1
mov dword [esp + 0x24], 0x3f893d81
mov dword [esp + 0x28], 0x3a7018a
mov dword [esp + 0x2c], 0x7c005ad
mov dword [esp + 0x30], 0xba309b4
mov dword [esp + 0x34], 0xfab0dbc
mov dword [esp + 0x38], 0x131011e9
lea edx, [esp + 0x3c]
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x23
ja 0x433f51
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x20]
lea esi, [eax + 0x4d251b57]
mov edi, esi
mov ebx, ecx
not ebx
or ebx, esi
and esi, ecx
xor edi, ecx
lea esi, [edi + esi*2]
mov edi, 0xb2dae4a8
sub edi, eax
or edi, ecx
add eax, ecx
add eax, ebx
add eax, edi
add eax, 0x4d251b59
mov ecx, eax
xor ecx, esi
not eax
and eax, esi
add eax, eax
sub eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
add al, 0x9f
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x24
jb 0x433ef0
lea eax, [esp + 0x48]
lea ebx, [esp + 0x20]
mov esi, ebx
mov ecx, 7
mov edi, eax
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
lea edi, [esp + 0x64]
xor ecx, ecx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
lea ecx, [esp + 8]
push ecx
push 8
push ebx
push 0xd
push eax
push 0
call dword [0x447498]
not eax
shr eax, 0x1f
mov eax, dword [eax*4 + 0x445354]
mov ecx, 0xd3353f99
xor ecx, dword [0x44535c]
add eax, ecx
inc eax
jmp eax
Function at 0x436120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov edi, ecx
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0xd2d1d0d7
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x43619b
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0x3c7bc923
add eax, 0x3c7bc923
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0xb
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x436160
mov ebx, dword [esp + 0x10]
mov eax, dword [0x4484a4]
test eax, eax
je 0x4361e6
xor ecx, ecx
mov edx, dword [0x4484a8]
cmp dword [edx + ecx*8], 0xe4aa2089
je 0x4361c0
inc ecx
cmp eax, ecx
jne 0x4361b0
jmp 0x4361e6
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x4361e6
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 5
push 4
push dword [0x4484ac]
push eax
call fcn.00437d00
add esp, 0x1c
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x436343
push dword [esp + 8]
call fcn.00435f00
add esp, 4
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x10], 0xd2d1d0d7
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xb
ja 0x43626d
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
lea esi, [ecx + edx]
add esi, 0x3c7bc923
add ecx, 0x3c7bc923
and ecx, edx
add ecx, ecx
sub esi, ecx
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0xc]
add cl, 0xb
mov edx, dword [esp]
mov byte [esp + edx + 0x10], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0xc
jb 0x436230
mov ebx, dword [esp + 0x10]
mov ecx, dword [0x4484a4]
test ecx, ecx
je 0x4362c4
xor edx, edx
mov esi, dword [0x4484a8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xe4aa2089
je 0x4362a0
inc edx
cmp ecx, edx
jne 0x436290
jmp 0x4362c4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, ebx
je 0x4362c4
push 0
push eax
push dword [esp + 0xc]
push 5
push 4
push dword [0x4484ac]
push ecx
call fcn.00437d00
add esp, 0x1c
mov ebx, eax
test ebx, ebx
js 0x436337
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, dword [ecx + edx + 0x3c]
add ecx, edx
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [ebx + esi]
movzx edi, word [eax + esi]
test edx, edx
je 0x436304
add esi, 2
cmp dx, di
je 0x4362f0
movzx esi, di
mov edi, esi
xor edi, edx
not esi
and esi, edx
add esi, esi
cmp esi, edi
je 0x436322
mov edx, dword [ecx]
test edx, edx
jne 0x4362e0
mov ebx, 0xc0000225
jmp 0x436337
mov eax, dword [ecx + 0x44]
mov edx, dword [esp + 0x20]
mov dword [edx + 4], eax
mov eax, dword [ecx + 0xdc]
mov dword [edx + 8], eax
xor ebx, ebx
push dword [esp + 4]
call fcn.00435fb0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x454180
Capabilities:
Encode data using xor

Disassembly:
ja 0x4541eb
add byte [ebx], cl
push 0x50401f0
xor ecx, dword [ebx]
sbb al, 0xe8
inc esp
xchg esp, eax
mov bh, 0xa0
or ecx, dword [ebp - 4]
inc dword [ebp + ecx + 0x3850058c]
mov esi, dword [edx - 0x79bd17f8]
add dword [eax], eax
rcl eax, 1
dec eax
mov dword [ebp + 0x5004a070], 0xd2416f0
mov ecx, esp
add cl, ch
sub al, ah
add al, 0xff
mov ch, 0x64
nop
add dword [ecx + 0x36a0383], esi
invalid
or ecx, dword [ecx + edx*4 - 0x3fccaf8f]
xchg esi, eax
les edx, [eax]
pop ebp
das
add ah, byte [ebp + esi*2 + 0xc]
and dword [edx], eax
inc edi
insd dword es:[edi], dx
sub al, 2
add dword [edx], 0x6a
nop
add al, 0xb8
cmp al, dh
xor al, 0x7a
test byte [eax - 0x760e3f6b], dl
jne 0x454204
call 0x3147c299
xchg esp, eax
add dword [eax + 3], eax
lea ecx, [esi + 0xc]
mov dword [esi], 0x202cc8
adc al, ch
hlt
Function at 0x5e8064
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf05d9440
jmp 0x5e8049
jmp 0x5e8072
xchg bl, dl
cpuid
call fcn.005e80f4
add edx, 0xfb41484d
jmp 0x5e9dc2
mov dword [esp + 0x48], edi
lea esp, [esp + 0x48]
pushfd
jmp 0x5e7f26
btc ecx, esi
jl 0x5e804b
xchg bl, dl
cpuid
call fcn.005e80bd
mov cx, word [esp]
jmp 0x5e9dac
Function at 0x5ee714
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushfd
push ebp
mov dword [esp + 4], eax
push dx
jmp 0x5eec1d
mov byte [esp], dl
push word [esp]
jb 0x5eec53
mov dword [esp + 4], ecx
jmp 0x5eec57
mov dword [esp + 4], ecx
call fcn.005eec3d
mov word [esp], si
push word [esp + 2]
jmp 0x5eeca0
lea esp, [esp + 2]
mov dword [esp + 4], edx
push edx
lea esp, [esp + 2]
mov byte [esp], al
mov word [esp], bp
jmp 0x5eecac
push edx
lea esp, [esp + 2]
mov byte [esp], al
jmp 0x5eec7b
jne 0x5eec6b
lea esp, [esp + 2]
mov dword [esp + 4], edx
jmp 0x5eec8a
lea esp, [esp + 2]
mov dword [esp], ebx
call 0x5eecb9
nop
pop word [esp]
push bx
pop word [esp]
lea esp, [esp + 2]
jmp 0x5eecfb
push esp
call fcn.005eece5
push word [esp + 4]
jg 0x5ef2ca
pop dword [esp]
jmp 0x5ef170
mov dword [esp], edi
mov word [esp + 1], sp
mov dword [esp], edi
jmp 0x5ef2d8
pop dword [esp]
mov dword [esp], edi
mov word [esp + 1], sp
mov dword [esp], edi
call fcn.005ef138
lea eax, [esp + edi]
rcl eax, 0x10
jmp 0x5ef352
mov bx, cx
neg eax
mov dh, cl
bswap eax
bswap edx
jmp 0x5ef37a
not edx
stc
jne 0x5ef325
mov bx, cx
jmp 0x5ef372
sub esp, 0
mov ax, 0xee4
dec edi
jmp 0x5ef33b
bswap edx
jmp 0x5ef37a
neg eax
mov dh, cl
bswap eax
jmp 0x5ef35c
inc edi
mov bx, word [esp]
mov ebx, dword [esp]
rdtsc
jmp 0x5ef63f
jmp fcn.005ef4d1
mov edx, dword [esp]
mov dx, word [esp]
jmp 0x5ef6ea
add edi, dword [ebp]
rdtsc
inc bx
jl 0x5ef5a6
jge fcn.005ef4d1
push ebp
call fcn.005ef6d2
setne dl
jmp 0x5ef661
mov edx, 0xaa6b1086
mov dx, 0xd063
xchg dword [esp], edx
neg dx
jbe 0x5ef693
ja 0x5ef6f9
popfd
in al, dx
inc esi
jno 0x5ef68d
setl dl
neg dx
je 0x5ef652
pushfd
ret 0xf766
push ebp
jmp 0x5ef653
shr al, 1
invalid
mov dh, byte [esp + 2]
mov dword [esp], ebp
lea ebx, reloc.MSVCRT.dll_strncpy
jmp 0x5ef731
dec edi
not bx
mov ebx, dword [esp]
mov edx, dword [esp]
lea edx, [ebx - 0xec]
jmp 0x5ef67d
xor bl, 0x2a
mov dx, word [esp]
sub cl, bl
mov bh, cl
mov dh, 0xc2
jmp 0x5ef6aa
mov dh, byte [esp + 2]
mov dword [esp], ebp
lea ebx, reloc.MSVCRT.dll_strncpy
jmp 0x5ef731
jmp 0x5ef747
lea esp, [esp + 4]
inc al
lea ebx, [ecx + edx]
cmc
jp 0x5ef71b
mov bh, 0xeb
jmp 0x5ef788
mov bh, 0xeb
mov bx, 0x7848
jmp 0x5ef772
inc al
dec bx
jbe 0x5ef7a4
bswap edx
jmp 0x5ef7a6
mov bx, 0x7848
jmp 0x5ef772
bswap edx
call 0x5ef78e
mov dl, 0x10
xchg cl, ah
adc byte [edi + 0x641d8d0d], dl
xchg edi, eax
and bl, byte [ebp + 0x26eb8c1e]
xchg esp, eax
out dx, eax
jb 0x5ef621
mov edx, dword [esp]
mov dx, word [esp]
jmp 0x5ef628
Function at 0x5eecb9
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushfd
push ebp
mov dword [esp + 4], eax
push dx
jmp 0x5eec1d
mov byte [esp], dl
push word [esp]
jb 0x5eec53
mov dword [esp + 4], ecx
jmp 0x5eec57
mov dword [esp + 4], ecx
call fcn.005eec3d
mov word [esp], si
push word [esp + 2]
jmp 0x5eeca0
lea esp, [esp + 2]
mov dword [esp + 4], edx
push edx
lea esp, [esp + 2]
mov byte [esp], al
mov word [esp], bp
jmp 0x5eecac
push edx
lea esp, [esp + 2]
mov byte [esp], al
jmp 0x5eec7b
jne 0x5eec6b
lea esp, [esp + 2]
mov dword [esp + 4], edx
jmp 0x5eec8a
lea esp, [esp + 2]
mov dword [esp], ebx
call 0x5eecb9
nop
pop word [esp]
push bx
pop word [esp]
lea esp, [esp + 2]
jmp 0x5eecfb
push esp
call fcn.005eece5
push word [esp + 4]
jg 0x5ef2ca
pop dword [esp]
jmp 0x5ef170
mov dword [esp], edi
mov word [esp + 1], sp
mov dword [esp], edi
jmp 0x5ef2d8
pop dword [esp]
mov dword [esp], edi
mov word [esp + 1], sp
mov dword [esp], edi
call fcn.005ef138
lea eax, [esp + edi]
rcl eax, 0x10
jmp 0x5ef352
mov bx, cx
neg eax
mov dh, cl
bswap eax
bswap edx
jmp 0x5ef37a
not edx
stc
jne 0x5ef325
mov bx, cx
jmp 0x5ef372
sub esp, 0
mov ax, 0xee4
dec edi
jmp 0x5ef33b
bswap edx
jmp 0x5ef37a
neg eax
mov dh, cl
bswap eax
jmp 0x5ef35c
inc edi
mov bx, word [esp]
mov ebx, dword [esp]
rdtsc
jmp 0x5ef63f
jmp fcn.005ef4d1
mov edx, dword [esp]
mov dx, word [esp]
jmp 0x5ef6ea
add edi, dword [ebp]
rdtsc
inc bx
jl 0x5ef5a6
jge fcn.005ef4d1
push ebp
call fcn.005ef6d2
setne dl
jmp 0x5ef661
mov edx, 0xaa6b1086
mov dx, 0xd063
xchg dword [esp], edx
neg dx
jbe 0x5ef693
ja 0x5ef6f9
popfd
in al, dx
inc esi
jno 0x5ef68d
setl dl
neg dx
je 0x5ef652
pushfd
ret 0xf766
push ebp
jmp 0x5ef653
shr al, 1
invalid
mov dh, byte [esp + 2]
mov dword [esp], ebp
lea ebx, reloc.MSVCRT.dll_strncpy
jmp 0x5ef731
dec edi
not bx
mov ebx, dword [esp]
mov edx, dword [esp]
lea edx, [ebx - 0xec]
jmp 0x5ef67d
xor bl, 0x2a
mov dx, word [esp]
sub cl, bl
mov bh, cl
mov dh, 0xc2
jmp 0x5ef6aa
mov dh, byte [esp + 2]
mov dword [esp], ebp
lea ebx, reloc.MSVCRT.dll_strncpy
jmp 0x5ef731
jmp 0x5ef747
lea esp, [esp + 4]
inc al
lea ebx, [ecx + edx]
cmc
jp 0x5ef71b
mov bh, 0xeb
jmp 0x5ef788
mov bh, 0xeb
mov bx, 0x7848
jmp 0x5ef772
inc al
dec bx
jbe 0x5ef7a4
bswap edx
jmp 0x5ef7a6
mov bx, 0x7848
jmp 0x5ef772
bswap edx
call 0x5ef78e
mov dl, 0x10
xchg cl, ah
adc byte [edi + 0x641d8d0d], dl
xchg edi, eax
and bl, byte [ebp + 0x26eb8c1e]
xchg esp, eax
out dx, eax
jb 0x5ef621
mov edx, dword [esp]
mov dx, word [esp]
jmp 0x5ef628

Function at 0x5eece5
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp]
lea esp, [esp + 2]
push ebp
pushfd
pop word [esp]
jmp 0x5eed17
lea esp, [esp + 1]
push edi
lea esp, [esp + 1]
mov dword [esp], esi
pushfd
push cx
jmp 0x5eed01
Function at 0x60c45b
Capabilities:
Execute anti-debugging instructions

Disassembly:
inc dword [ebp - 8]
jmp 0x60c412
lea ecx, [ecx + 0xe4]
push ebp
pop word [esp]
jmp 0x60c31f
cmp dword [esi], 0
bswap ecx
sete cl
jmp 0x60c32d
lea esp, [esp + 2]
sub dword [esi], eax
mov cl, bh
mov cx, 0x78a8
jmp 0x60c309
pop ecx
mov cx, word [esp]
mov ecx, dword [esp]
jmp 0x60c374
push edi
mov dx, si
mov ecx, ebx
jmp 0x60c35e
pushal
mov bp, word [esp]
rdtsc
rdtsc
mov eax, edx
jmp 0x60c54b
lea esp, [esp + 4]
jne 0x60be5e
mov dx, bx
mov ecx, 0x1652d03e
jmp 0x60c337
lea esp, [esp + 0x20]
call fcn.005f60f3
lea ecx, [ecx + 0xc8]
neg ecx
jmp 0x60c3f6
lea edx, [ebx + edi]
lea edx, reloc.MSVCRT.dll_strncpy
pushal
mov dword [esp + 1], edx
jmp 0x60c3ab
jl 0x60be43
jge 0x60be5e
scasb al, byte es:[edi]
cmp al, 0x5b
mov dh, 3
aas
push es
mov cl, 0xb0
pop ecx
stc
test eax, eax
jmp 0x60c3e0
pushal
rdtsc
mov dword [esp + 0x18], ebx
popal
jmp 0x60c431
push edi
mov ecx, 0x7cb81681
push edi
jmp 0x60c3fc
lea edx, reloc.MSVCRT.dll_strncpy
call 0x5f6068
jmp 0x60be8a
push word [esp + 2]
lea esp, [esp + 2]
lea esp, [esp + 4]
popal
mov dx, bx
jmp 0x60c3d0
mov dword [esp + 0x18], ebx
call fcn.0060c45b

Function at 0x98afd8
Capabilities:
Encode data using xor

Disassembly:
stc
clc
add ecx, edx
cmp dx, ax
mov dword [ebp - 0x10], ecx
pushfd
clc
mov ecx, dword [ebp + 0xc]
pushal
jmp 0xa056c3
cmp dh, 0x7f
push esp
cmp ecx, 0xffff
call fcn.00d0fab4
pop edx
invalid

Function at 0x98d8d9
Capabilities:
Encode data using xor

Disassembly:
sbb ebx, dword [esi + 0x2e]
mov al, byte [0xd94fd80e]
push esi
pop ebx
pop eax
not byte [edx + edx*8]
ror byte [esi + 0x2c], 1
stosb byte es:[edi], al
add ebx, dword [bx - 0x24]
hlt
mov dword [esp + 4], esi
pushfd
pushfd
lea esp, [esp + 0x10]
call fcn.00a067fb
call fcn.0098794e
adc dl, byte [esi + ecx*4 - 0x56]
jp 0x98d89a
push 0xffffffffffffffab
invalid

Function at 0xc714cc
Capabilities:
Encode data using xor

Disassembly:
pushal
jmp 0xa067f5
push 0x5d61a582
adc dl, dl
mov byte [esp + 4], 0x23
push eax
push dword [esp + 0x32]
ret 0x36
bt bx, ax
not dl
pushfd
push 0x841ec03b
xor dl, 0xcb
call fcn.00a0862b
sbb eax, 0xcbd277be
add byte [edx], ah
cmp ebp, dword [edx - 0x52cc9276]
out 0x40, eax
pop edx
mov bl, 0xec
movsd dword es:[edi], dword [esi]
mov edi, 0x2eef3259
pop es
sub byte [edi - 0x1df27664], 0xb8
lea esi, [edx + eax*4]
xor dword [edi - 0xe], edi
cmp al, 0x71
pop ecx
sub al, 0x11
and dword [ebx + 0x424466f4], 0xffffffae
adc byte [0x4b195515], dh
sbb dl, cl
sbb byte [eax + 0x41067355], ch
mov ch, 0xaa
sti
xchg byte [ebp - 0x5d], dl
xor esp, ebx
clc
mov ebx, ebp
js 0xa04d42
iretd
inc esi
jmp 0xd0ee67
xor dl, 0xcb
cmc
cmc
cmp dl, cl
add dl, 0xf0
cmc
pushfd
ror dl, 5
test bp, 0x646
push 0xd40776c0
push word [esp + 8]
popf
jmp 0x980614
mov word [esp + 4], dx
xor dl, 0x48
add esp, 0x26
jge 0xa04d3b
test edi, 0x769bc8b3
test bl, ah
not dl
jmp 0xd0cbe0
stc
jmp 0xa08606
jmp 0x98cc8f
Function at 0x4176fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041756b

Function at 0x417af4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a3e0
mov eax, dword [0x479600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004156fd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417b36
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x417c92
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00420910
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47bc70]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418893
mov ecx, dword [esi*4 + 0x47bc70]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x417c8b
cmp eax, dword [edi + ecx + 0x24]
jne 0x417c8b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417c8b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418893
add esp, 0x14
test edx, edx
jl 0x417c8b
jg 0x417c01
test eax, eax
jb 0x417c8b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x417c8b
jl 0x417c1b
cmp dword [ebp - 0x1008], eax
ja 0x417c8b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x417c39
test ebx, ebx
je 0x417c72
cmp ecx, edi
jae 0x417c72
mov al, byte [ecx]
cmp al, 0xd
jne 0x417c53
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417c5f
cmp byte [ecx + 1], 0xa
jne 0x417c5f
inc ecx
jmp 0x417c5f
movzx eax, al
movsx eax, byte [eax + 0x4798d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x417c39
cmp edx, ebx
jne 0x417c39
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x417c90
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409a3b
leave
ret
Function at 0x417d31
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47bc70]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417d71
cmp byte [ebx], 0xa
jne 0x417d71
or byte [eax + edi + 0x28], 4
jmp 0x417d76
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417e74
mov al, byte [edx]
cmp al, 0x1a
je 0x417e56
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417da5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417dca
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417dd4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x417d87
jmp 0x417e74
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417e51
cmp dword [ebp - 0xc], 0
je 0x417e51
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47bc70]
test byte [eax + edi + 0x28], 0x48
je 0x417e2b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417e16
mov byte [esi], dl
jmp 0x417e27
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47bc70]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417e74
cmp byte [ebp - 1], 0xa
jne 0x417e3a
cmp esi, ebx
jne 0x417e3a
mov byte [esi], 0xa
jmp 0x417e73
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004188b1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417e74
mov byte [esi], 0xd
jmp 0x417e73
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47bc70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417e70
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417e74
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417e7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47bc70]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417ec0
cmp word [esi], dx
jne 0x417ec0
or byte [edi + eax + 0x28], 4
jmp 0x417ec5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x418018
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x417ff8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417f07
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417f3d
cmp eax, edx
jae 0x417f49
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x417edf
jmp 0x418018
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417ff4
cmp dword [ebp - 0x14], 0
je 0x417ff4
mov eax, dword [ebx*4 + 0x47bc70]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417fcc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417f95
mov word [esi], cx
jmp 0x417fc8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47bc70]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47bc70]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47bc70]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418018
pop ebx
cmp word [ebp - 4], bx
jne 0x417fdd
cmp esi, dword [ebp + 0xc]
jne 0x417fdd
mov word [esi], bx
jmp 0x418015
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004188b1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418018
push 0xd
jmp 0x418011
mov ecx, dword [ebx*4 + 0x47bc70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41800f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418018
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x17e9745
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x11c
cmp dword [esp + 0x128], 0
je 0x17e990a
push ebp
push esi
mov esi, dword [esp + 0x12c]
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x17e9908
push ebx
mov edx, esi
push edi
mov eax, dword [edx]
mov ebx, dword [esp + 0x130]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x10]
add eax, ebx
lea edi, [ecx + ebx]
mov dword [esp + 0x20], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x17e97b0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [esp + 0x10], eax
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.017e1f12
add esp, 0xc
test ebx, ebx
je 0x17e98b0
mov eax, dword [esp + 0x18]
and dword [esp + 0x14], 0
mov eax, dword [eax]
test eax, eax
je 0x17e9899
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, dword [esp + 0x130]
test eax, eax
jns 0x17e97f5
movzx ebx, ax
jmp 0x17e97fa
lea ebx, [ebp + 2]
add ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x20]
mov dword [edi + ecx], eax
test eax, eax
jne 0x17e9871
cmp dword [0x17f05f0], 1
jne 0x17e9871
push 0x104
push eax
lea eax, [esp + 0x30]
push eax
call fcn.017e1f12
lea eax, [esp + 0x34]
push eax
call fcn.017e99ee
lea eax, [esp + 0x38]
push 0x17e0fa4
push eax
call fcn.017e1f40
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.017e1f40
add esp, 0x20
lea eax, [esp + 0x24]
push 0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.017e1f67
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x17f0590]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
mov edi, ecx
mov dword [esp + 0x14], ecx
shl edi, 2
mov eax, dword [edi + eax]
test eax, eax
jne 0x17e97ee
mov esi, dword [esp + 0x134]
mov ebp, dword [esp + 0x1c]
inc ebp
imul edx, ebp, 0x14
mov dword [esp + 0x1c], ebp
add edx, esi
mov ecx, dword [edx + 0xc]
test ecx, ecx
jne 0x17e9777
jmp 0x17e9906
lea eax, [esp + 0x28]
push eax
call fcn.017e99ee
lea eax, [esp + 0x2c]
mov dword [esp], 0x17e0f88
push eax
call fcn.017e1f40
lea eax, [esp + 0x30]
push edi
push eax
call fcn.017e1f40
add esp, 0x10
cmp dword [0x17f05f0], 1
jne 0x17e9906
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.017e1f67
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x17f0590]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop ebx
pop esi
pop ebp
xor eax, eax
add esp, 0x11c
ret