joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417220
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x44e024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dl, 1
nop word [eax + eax]
movzx eax, dl
mov cl, dl
sar cl, 7
and cl, 0x1b
mov byte [ebp + ebx - 0x204], dl
mov byte [ebp + eax - 0x104], bl
mov al, dl
add al, al
inc ebx
xor cl, al
xor dl, cl
cmp ebx, 0x100
jl 0x417240
mov cl, 1
mov edx, 0x450d40
movzx eax, cl
mov dword [edx], eax
mov al, cl
sar al, 7
add cl, cl
and al, 0x1b
add edx, 4
xor cl, al
cmp edx, 0x450d68
jl 0x417271
mov byte [0x44eb40], 0x63
xor ebx, ebx
mov byte [0x44fca3], 0
nop dword [eax]
movzx eax, byte [ebp + ebx - 0x103]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov dl, byte [ecx]
mov cl, dl
rol cl, 1
xor dl, cl
rol cl, 1
xor dl, cl
rol cl, 1
mov al, cl
rol al, 1
xor al, cl
xor al, dl
xor al, 0x63
mov byte [ebx + 0x44eb41], al
inc ebx
movzx eax, al
mov byte [eax + 0x44fc40], bl
lea eax, [ebx + 1]
cmp eax, 0x100
jl 0x4172a0
xor edi, edi
mov dword [ebp - 0x20c], 0xff
nop
mov dl, byte [edi + 0x44eb40]
mov bl, dl
movzx ecx, dl
sar bl, 7
mov al, dl
add al, al
and bl, 0x1b
xor bl, al
movzx eax, dl
movzx esi, bl
xor esi, eax
movzx eax, bl
shl esi, 8
xor esi, ecx
shl esi, 8
xor esi, ecx
shl esi, 8
xor esi, eax
mov al, byte [edi + 0x44fc40]
mov dword [edi*4 + 0x44ec40], esi
rol esi, 8
mov dword [edi*4 + 0x44f040], esi
rol esi, 8
mov dword [edi*4 + 0x44f440], esi
rol esi, 8
mov dword [edi*4 + 0x44f840], esi
test al, al
je 0x4173cd
movzx eax, al
xor edx, edx
mov ebx, 0xff
movzx ecx, byte [ebp + eax - 0x104]
mov eax, dword [ebp - 0xf6]
movzx eax, al
add eax, ecx
div ebx
mov eax, dword [ebp - 0xfb]
movzx eax, al
add eax, ecx
movzx esi, byte [ebp + edx - 0x204]
xor edx, edx
div ebx
mov eax, dword [ebp - 0xf7]
movzx eax, al
add eax, ecx
movzx ebx, byte [ebp + edx - 0x204]
xor edx, edx
div dword [ebp - 0x20c]
movzx eax, byte [ebp + edx - 0x204]
xor edx, edx
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0xf9]
movzx eax, al
add eax, ecx
mov ecx, 0xff
div ecx
movzx eax, byte [ebp + edx - 0x204]
jmp 0x4173d9
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x208], ebx
xor eax, eax
shl eax, 8
xor eax, dword [ebp - 0x208]
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, esi
mov dword [edi*4 + 0x44fd40], eax
rol eax, 8
mov dword [edi*4 + 0x450140], eax
rol eax, 8
mov dword [edi*4 + 0x450540], eax
rol eax, 8
mov dword [edi*4 + 0x450940], eax
inc edi
cmp edi, 0x100
jl 0x4172f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427ca1
mov esp, ebp
pop ebp
ret
Function at 0x41b600
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x44e024]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x70], edi
je 0x41b636
pop edi
mov eax, 0xffffff8c
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427ca1
mov esp, ebp
pop ebp
ret
push esi
push 0x40
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.00429110
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x6a09e667
mov dword [ebp - 0x20], 0xbb67ae85
mov dword [ebp - 0x1c], 0x3c6ef372
mov dword [ebp - 0x18], 0xa54ff53a
mov dword [ebp - 0x14], 0x510e527f
mov dword [ebp - 0x10], 0x9b05688c
mov dword [ebp - 0xc], 0x1f83d9ab
mov dword [ebp - 8], 0x5be0cd19
test eax, eax
je 0x41b6ec
mov dword [ebp - 0x2c], eax
cmp eax, 0x40
jb 0x41b6da
nop dword [eax]
mov edi, eax
xor esi, esi
lea eax, [esi + ebx]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0041ab90
add esp, 8
test eax, eax
jne 0x41b70f
sub edi, 0x40
add esi, 0x40
cmp edi, 0x40
jae 0x41b6a4
cmp esi, 0x40
jb 0x41b70f
mov eax, dword [ebp + 0xc]
add ebx, esi
sub eax, esi
mov dword [ebp + 0xc], eax
cmp eax, 0x40
jae 0x41b6a0
mov edi, dword [ebp - 0x70]
test eax, eax
je 0x41b6ec
push eax
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00428b90
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x6c]
and ecx, 0x3f
mov byte [ebp + ecx - 0x6c], pe_nt_image_headers32
inc ecx
add edx, ecx
cmp ecx, 0x38
ja 0x41b717
mov eax, 0x38
sub eax, ecx
push eax
push 0
push edx
jmp 0x41b745
or esi, 0xffffffff
jmp 0x41b7ce
mov eax, 0x40
sub eax, ecx
push eax
push 0
push edx
call fcn.00429110
lea eax, [ebp - 0x6c]
push eax
push eax
call fcn.0041ab90
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x41b7c0
push 0x38
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00429110
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
lea edx, [eax*8]
mov eax, ecx
shr eax, 0x1d
or edx, eax
shl ecx, 3
lea eax, [ebp - 0x6c]
push eax
bswap edx
bswap ecx
push eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
call fcn.0041ab90
mov esi, eax
add esp, 8
test esi, esi
jne 0x41b7c0
mov eax, dword [ebp - 0x24]
bswap eax
mov dword [edi], eax
mov eax, dword [ebp - 0x20]
bswap eax
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x1c]
bswap eax
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x18]
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x14]
bswap eax
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
bswap eax
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0xc]
bswap eax
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
bswap eax
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x6c]
push 0x68
push eax
call fcn.004154c0
add esp, 8
lea eax, [ebp - 0x6c]
push 0x68
push eax
call fcn.004154c0
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.00427ca1
mov esp, ebp
pop ebp
ret
Function at 0x41d2b0
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41d2c1
mov eax, 0xffffff8b
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0xc1059ed8
mov dword [eax + 0x14], 0xcbbb9d5d
mov dword [eax + 0x18], 0x367cd507
mov dword [eax + 0x1c], 0x629a292a
mov dword [eax + 0x20], 0x3070dd17
mov dword [eax + 0x24], 0x9159015a
mov dword [eax + 0x28], 0xf70e5939
mov dword [eax + 0x2c], 0x152fecd8
mov dword [eax + 0x30], 0xffc00b31
mov dword [eax + 0x34], 0x67332667
mov dword [eax + 0x38], 0x68581511
mov dword [eax + 0x3c], 0x8eb44a87
mov dword [eax + 0x40], 0x64f98fa7
mov dword [eax + 0x44], 0xdb0c2e0d
mov dword [eax + 0x48], 0xbefa4fa4
mov dword [eax + 0x4c], 0x47b5481d
mov dword [eax + 0xd0], ecx
xor eax, eax
pop ebp
ret
Function at 0x41d7e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
cmp byte [eax + 0x179], 0
jne 0x41d97d
lea ecx, [eax + 0x38]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 4], ecx
movzx eax, byte [eax + 0xf]
mov dword [ebp + 8], eax
and eax, 0xf
shl eax, 4
add eax, ecx
push edi
push 0x10
mov ebx, dword [eax + 8]
mov ecx, ebx
mov edx, dword [eax + 0xc]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, esi
shl eax, 0x1c
shrd ecx, edx, 4
shrd esi, edi, 4
shr edx, 4
or edx, eax
shr edi, 4
movzx eax, bl
and eax, 0xf
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
xor ecx, ecx
xor ecx, esi
mov dword [ebp - 0x18], ecx
movzx eax, word [eax*2 + 0x443f9c]
cdq
shl eax, 0x10
xor eax, edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
and eax, 0xfffffff0
add eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push eax
call fcn.00414da0
mov edi, 0xe
add esp, 0x10
mov dword [ebp - 8], edi
mov ebx, dword [ebp - 0x10]
xor ecx, ecx
mov esi, dword [ebp - 0x18]
mov al, bl
and al, 0xf
mov edx, esi
mov byte [ebp + 0xb], al
mov eax, dword [ebp - 0xc]
shrd ebx, eax, 4
shl edx, 0x1c
shr eax, 4
or ecx, ebx
or edx, eax
mov dword [ebp - 0x10], ecx
movzx eax, byte [ebp + 0xb]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
shrd esi, ecx, 4
movzx eax, word [eax*2 + 0x443f9c]
cdq
shl eax, 0x10
xor edx, edx
shr ecx, 4
xor edx, esi
xor eax, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push 0x10
movzx edi, byte [edi + eax]
mov eax, edi
and eax, 0xf
shl eax, 4
add eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push eax
call fcn.00414da0
mov ebx, dword [ebp - 0x10]
xor ecx, ecx
mov esi, dword [ebp - 0x18]
mov al, bl
and al, 0xf
mov edx, esi
mov byte [ebp + 0xb], al
and edi, 0xfffffff0
mov eax, dword [ebp - 0xc]
add edi, dword [ebp - 4]
shrd ebx, eax, 4
shl edx, 0x1c
shr eax, 4
or ecx, ebx
or edx, eax
mov dword [ebp - 0x10], ecx
movzx eax, byte [ebp + 0xb]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
shrd esi, ecx, 4
movzx eax, word [eax*2 + 0x443f9c]
cdq
shl eax, 0x10
xor edx, edx
shr ecx, 4
xor edx, esi
xor eax, ecx
mov dword [ebp - 0x18], edx
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push edi
push eax
push eax
call fcn.00414da0
mov edi, dword [ebp - 8]
add esp, 0x20
sub edi, 1
mov dword [ebp - 8], edi
jns 0x41d878
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
bswap ecx
bswap eax
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x10]
pop edi
bswap ecx
bswap eax
pop esi
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425c50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp eax, edi
je 0x425c92
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x425c91
push ebx
mov ebx, dword [ebp + 0x14]
sub edi, eax
nop dword [eax]
mov edx, dword [0x44eb3c]
lea eax, [eax + 4]
mov ecx, dword [edi + eax - 4]
xor edx, ebx
not edx
and ecx, ebx
and edx, dword [eax - 4]
or ecx, edx
mov dword [eax - 4], ecx
sub esi, 1
jne 0x425c70
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x425ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, eax
je 0x425cfe
cmp dword [ebp + 0x10], 0
jbe 0x425cfe
push esi
push edi
mov edi, dword [ebp + 0x14]
sub ebx, eax
nop dword [eax + eax]
mov edx, dword [0x44eb3c]
lea eax, [eax + 4]
mov ecx, dword [eax - 4]
xor edx, edi
mov esi, dword [ebx + eax - 4]
not edx
and edx, dword [ebx + eax - 4]
and ecx, edi
or ecx, edx
and esi, edi
mov dword [ebx + eax - 4], ecx
mov ecx, dword [0x44eb3c]
mov edx, dword [eax - 4]
xor ecx, edi
not ecx
and edx, ecx
or edx, esi
sub dword [ebp + 0x10], 1
mov dword [eax - 4], edx
jne 0x425cc0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x425d10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x1c]
mov ecx, 0x4f
shl eax, 5
mov edx, 0x20
cmp ecx, eax
mov eax, 1
push ebx
mov ebx, dword [ebp + 0x14]
sbb ecx, ecx
and ecx, 2
inc ecx
shl eax, cl
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
imul eax, ebx
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x24]
mov esi, dword [esi]
push edi
lea edi, [esi*2 + 4]
lea eax, [ecx + eax*4]
and edi, 8
lea ecx, [ebx*4]
mov dword [ebp - 0x10], eax
add eax, ecx
add edi, esi
mov dword [ebp - 0xc], eax
nop word [eax + eax]
mov eax, esi
shr edx, 1
imul eax, edi
mov ecx, 2
sub ecx, eax
imul edi, ecx
cmp edx, 8
jae 0x425d70
push dword [ebp - 0xc]
mov esi, dword [ebp + 0x24]
neg edi
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], edi
push dword [ebp + 0x20]
push edi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004259b0
lea eax, [ebx*4]
push eax
mov eax, dword [ebp + 8]
push esi
push eax
call fcn.00428b90
xor ecx, ecx
add esp, 0x2c
mov dword [ebp - 8], ecx
xor esi, esi
mov dword [ebp - 4], ecx
push dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov edi, ecx
push dword [ebp - 0x20]
push ebx
push dword [ebp + 0x10]
push ebx
push eax
push eax
push eax
call fcn.004262b0
mov ecx, dword [ebp - 8]
add esp, 0x20
test ecx, ecx
jne 0x425ded
mov ecx, 0x1f
jmp 0x425dee
dec ecx
mov edx, dword [ebp + 0x1c]
test edi, edi
mov dword [ebp - 8], ecx
lea eax, [edx - 1]
cmovne eax, edx
inc esi
mov edi, eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x1c], edi
mov dword [ebp - 0x2c], edi
mov edx, dword [eax + edi*4]
mov eax, dword [ebp - 4]
shr edx, cl
add eax, eax
and edx, 1
or edx, eax
mov dword [ebp - 4], edx
cmp esi, dword [ebp - 0x24]
je 0x425e2b
test ecx, ecx
jne 0x425dc4
test edi, edi
jne 0x425eef
mov edx, dword [ebp + 0x24]
xor ecx, ecx
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov eax, dword [0x44eb3c]
xor eax, ecx
mov ecx, dword [0x44eb3c]
xor ecx, eax
mov eax, dword [0x44eb3c]
xor ecx, dword [ebp - 4]
xor eax, ecx
mov edi, eax
neg eax
shr edi, 1
neg edi
or edi, eax
shr edi, 0x1f
dec edi
cmp esi, edx
je 0x425eae
test ebx, ebx
je 0x425eae
mov ecx, edx
mov eax, esi
sub ecx, esi
mov dword [ebp - 0x28], ecx
nop dword [eax + eax]
mov esi, dword [0x44eb3c]
lea eax, [eax + 4]
mov edx, dword [ecx + eax - 4]
xor esi, edi
mov ecx, dword [eax - 4]
not esi
and ecx, esi
and edx, edi
or edx, ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax - 4], edx
sub ebx, 1
jne 0x425e80
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
lea eax, [ebx*4]
inc ecx
add edx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
cmp ecx, dword [ebp - 0x1c]
jb 0x425e40
push dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push dword [ebp - 0x20]
push ebx
push dword [ebp + 0x10]
push ebx
push esi
push eax
push eax
call fcn.004262b0
mov ecx, dword [ebp - 8]
add esp, 0x20
mov dword [ebp - 4], 0
xor esi, esi
test ecx, ecx
jne 0x425dc4
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 0x1c], eax
test eax, eax
jne 0x425dc4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x44eb3c]
mov eax, dword [0x44eb3c]
mov eax, dword [0x44eb3c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
test edi, edi
je 0x426150
mov eax, dword [ebp + 0xc]
lea edx, [edi - 1]
mov ecx, dword [ebp + 8]
sub ecx, eax
mov dword [ebp + 8], ecx
lea edx, [eax + edx*4]
mov dword [ebp + 0x10], edx
push esi
nop dword [eax]
mov esi, dword [0x44eb3c]
xor esi, dword [edx]
mov edx, dword [0x44eb3c]
mov eax, dword [ebp + 0x10]
xor edx, dword [ecx + eax]
mov eax, edx
xor eax, esi
sub esi, edx
shr eax, 0x1f
xor eax, dword [0x44eb3c]
mov ecx, eax
neg eax
shr ecx, 1
neg ecx
or ecx, eax
mov eax, dword [0x44eb3c]
shr ecx, 0x1f
neg ecx
xor eax, ecx
and ecx, edx
not eax
and esi, eax
mov eax, dword [0x44eb3c]
or esi, ecx
shr esi, 0x1f
xor eax, esi
mov esi, dword [0x44eb3c]
mov edx, dword [0x44eb3c]
mov ecx, eax
shr ecx, 1
neg eax
neg ecx
or ecx, eax
mov eax, dword [ebp + 8]
shr ecx, 0x1f
neg ecx
or dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
xor esi, dword [eax + ecx]
xor edx, dword [ecx]
mov eax, edx
xor eax, esi
sub esi, edx
shr eax, 0x1f
xor eax, dword [0x44eb3c]
mov ecx, eax
neg eax
shr ecx, 1
neg ecx
or ecx, eax
mov eax, dword [0x44eb3c]
shr ecx, 0x1f
neg ecx
xor eax, ecx
and ecx, edx
not eax
and esi, eax
mov eax, dword [0x44eb3c]
or esi, ecx
shr esi, 0x1f
xor eax, esi
mov edx, eax
neg eax
shr edx, 1
neg edx
or edx, eax
mov eax, dword [ebp - 4]
shr edx, 0x1f
mov ecx, eax
neg edx
not ecx
and ecx, edx
or eax, edx
mov edx, dword [ebp + 0x10]
or ebx, ecx
mov ecx, dword [ebp + 8]
sub edx, 4
mov dword [ebp - 4], eax
mov dword [ebp + 0x10], edx
sub edi, 1
jne 0x426070
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f3ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00441760
mov eax, dword [0x44e024]
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.00435b31
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42f3fc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42f558
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428270
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 + 0x451400]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004378bb
mov ecx, dword [esi*4 + 0x451400]
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 0x42f551
cmp eax, dword [edi + ecx + 0x24]
jne 0x42f551
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 0x42f551
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004378bb
add esp, 0x14
test edx, edx
jl 0x42f551
jg 0x42f4c7
test eax, eax
jb 0x42f551
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42f551
jl 0x42f4e1
cmp dword [ebp - 0x1008], eax
ja 0x42f551
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42f4ff
test ebx, ebx
je 0x42f538
cmp ecx, edi
jae 0x42f538
mov al, byte [ecx]
cmp al, 0xd
jne 0x42f519
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42f525
cmp byte [ecx + 1], 0xa
jne 0x42f525
inc ecx
jmp 0x42f525
movzx eax, al
movsx eax, byte [eax + 0x44e128]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42f4ff
cmp edx, ebx
jne 0x42f4ff
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42f556
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00427ca1
leave
ret
Function at 0x4324c5
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 + 0x451400]
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 0x432505
cmp byte [ebx], 0xa
jne 0x432505
or byte [eax + edi + 0x28], 4
jmp 0x43250a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x432608
mov al, byte [edx]
cmp al, 0x1a
je 0x4325ea
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x432539
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x43255e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x432568
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 0x43251b
jmp 0x432608
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 0x4325e5
cmp dword [ebp - 0xc], 0
je 0x4325e5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x451400]
test byte [eax + edi + 0x28], 0x48
je 0x4325bf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4325aa
mov byte [esi], dl
jmp 0x4325bb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x451400]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x432608
cmp byte [ebp - 1], 0xa
jne 0x4325ce
cmp esi, ebx
jne 0x4325ce
mov byte [esi], 0xa
jmp 0x432607
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004378d9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x432608
mov byte [esi], 0xd
jmp 0x432607
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x451400]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x432604
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x432608
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x432611
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 + 0x451400]
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 0x432654
cmp word [esi], dx
jne 0x432654
or byte [edi + eax + 0x28], 4
jmp 0x432659
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 0x4327ac
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 0x43278c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x43269b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4326d1
cmp eax, edx
jae 0x4326dd
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 0x432673
jmp 0x4327ac
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 0x432788
cmp dword [ebp - 0x14], 0
je 0x432788
mov eax, dword [ebx*4 + 0x451400]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x432760
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x432729
mov word [esi], cx
jmp 0x43275c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x451400]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x451400]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x451400]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4327ac
pop ebx
cmp word [ebp - 4], bx
jne 0x432771
cmp esi, dword [ebp + 0xc]
jne 0x432771
mov word [esi], bx
jmp 0x4327a9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004378d9
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4327ac
push 0xd
jmp 0x4327a5
mov ecx, dword [ebx*4 + 0x451400]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4327a3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4327ac
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 0x434430
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44756c
push 0x447564
push str.FlsAlloc
push 0x1e
call fcn.004342f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434464
push dword [ebp + 8]
mov ecx, esi
call dword [0x4421e8]
call esi
jmp 0x43446a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4344ae
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44757c
push 0x447574
push str.FlsGetValue
push 0x20
call fcn.004342f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4344e5
push dword [ebp + 8]
mov ecx, esi
call dword [0x4421e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]