joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414e80
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], edx
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 0x100], 8
mov byte [eax + esi + 0x104], al
inc eax
cmp eax, 0x100
jb 0x414ea0
mov dword [ebp + 8], 0
xor edi, edi
push ebx
nop dword [eax]
mov eax, edi
mov bl, byte [edi + esi + 0x104]
xor edx, edx
movzx ecx, bl
div dword [esi + 0x100]
movzx eax, byte [edx + esi]
add eax, dword [ebp + 8]
add ecx, eax
movzx ecx, cl
mov dword [ebp + 8], ecx
mov al, byte [ecx + esi + 0x104]
mov byte [edi + esi + 0x104], al
inc edi
mov byte [ecx + esi + 0x104], bl
cmp edi, 0x100
jb 0x414ec0
mov edi, dword [esi + 0x100]
xor ecx, ecx
mov word [esi + 0x204], 0
mov byte [esi + 0x206], 0xff
pop ebx
test edi, edi
jle 0x414f33
or dl, 0xff
mov al, byte [ecx + esi]
inc ecx
xor al, dl
mov byte [esi + 0x206], al
mov dl, al
cmp ecx, edi
jl 0x414f21
pop edi
pop esi
pop ebp
ret 8

Function at 0x414f40
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0x12
push edi
mov edi, dword [ebp + 0xc]
sub dword [ebp + 8], edi
movzx eax, byte [esi + 0x205]
lea edx, [esi + 0x104]
movzx ecx, byte [esi + 0x204]
mov bl, byte [esi + 0x206]
mov dword [ebp - 0x14], esi
mov esi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
nop dword [eax]
mov edi, dword [ebp - 4]
lea eax, [ecx + 1]
movzx eax, al
mov dword [ebp - 0xc], eax
mov cl, byte [edx + eax]
movzx edx, cl
lea eax, [edx + esi]
mov esi, dword [ebp - 4]
movzx eax, al
mov dword [ebp - 8], eax
movzx eax, byte [esi + eax]
mov esi, dword [ebp - 0xc]
mov byte [edi + esi], al
mov eax, edi
mov esi, dword [ebp - 8]
mov byte [eax + esi], cl
mov ecx, dword [ebp - 0xc]
movzx eax, byte [eax + ecx]
mov ecx, dword [ebp + 8]
add eax, edx
mov edx, edi
movzx eax, al
mov edi, dword [ebp + 0xc]
movzx eax, byte [eax + edx]
xor al, byte [ecx + edi]
mov ecx, dword [ebp - 0xc]
xor bl, al
mov byte [edi], bl
inc edi
sub dword [ebp - 0x10], 1
mov dword [ebp + 0xc], edi
jne 0x414f80
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
pop edi
mov byte [esi + 0x206], bl
mov byte [esi + 0x204], cl
mov byte [esi + 0x205], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x10], 0
movzx eax, byte [ecx + 0x204]
movzx edx, byte [ecx + 0x205]
push ebx
mov bl, byte [ecx + 0x206]
push esi
lea esi, [ecx + 0x104]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
mov byte [ebp - 1], bl
mov dword [ebp - 0xc], esi
jbe 0x4150a2
push edi
mov edi, dword [ebp + 0xc]
mov ecx, eax
sub dword [ebp + 8], edi
mov ebx, dword [ebp - 0xc]
lea eax, [ecx + 1]
movzx ecx, al
lea edi, [edi + 1]
mov eax, dword [ebp - 8]
mov dl, byte [esi + ecx]
movzx esi, dl
add eax, esi
movzx eax, al
mov dword [ebp - 8], eax
movzx eax, byte [ebx + eax]
mov byte [ebx + ecx], al
mov eax, dword [ebp - 8]
mov byte [ebx + eax], dl
mov eax, ebx
movzx eax, byte [eax + ecx]
add eax, esi
mov esi, ebx
mov ebx, dword [ebp + 8]
movzx eax, al
mov dl, byte [ebx + edi - 1]
mov al, byte [eax + esi]
xor al, byte [ebp - 1]
xor al, dl
mov byte [ebp - 1], dl
sub dword [ebp + 0x10], 1
mov byte [edi - 1], al
jne 0x415040
mov edx, dword [ebp - 8]
mov bl, byte [ebp - 1]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov byte [ecx + 0x206], bl
mov byte [ecx + 0x204], al
mov byte [ecx + 0x205], dl
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4168a0
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4594c0], 0
push edi
mov edi, edx
jne 0x41695c
push ebx
push esi
mov dword [0x4594c0], 1
xor ebx, ebx
mov edx, ebx
shl edx, 0x18
lea eax, [edx + edx]
mov esi, eax
xor esi, 0x4c11db7
test edx, edx
cmovns esi, eax
lea eax, [esi + esi]
mov edx, eax
xor edx, 0x4c11db7
test esi, esi
cmovns edx, eax
lea eax, [edx + edx]
mov esi, eax
xor esi, 0x4c11db7
test edx, edx
cmovns esi, eax
lea eax, [esi + esi]
mov edx, eax
xor edx, 0x4c11db7
test esi, esi
cmovns edx, eax
lea eax, [edx + edx]
mov esi, eax
xor esi, 0x4c11db7
test edx, edx
cmovns esi, eax
lea eax, [esi + esi]
mov edx, eax
xor edx, 0x4c11db7
test esi, esi
cmovns edx, eax
lea eax, [edx + edx]
mov esi, eax
xor esi, 0x4c11db7
test edx, edx
cmovns esi, eax
lea eax, [esi + esi]
mov edx, eax
xor edx, 0x4c11db7
test esi, esi
cmovns edx, eax
mov dword [ebx*4 + 0x4594c8], edx
inc ebx
cmp ebx, 0x100
jb 0x4168c1
pop esi
pop ebx
mov edx, dword [ebp + 8]
test edx, edx
je 0x416980
mov eax, ecx
lea edi, [edi + 1]
shr eax, 0x18
xor al, byte [edi - 1]
movzx eax, al
shl ecx, 8
xor ecx, dword [eax*4 + 0x4594c8]
sub edx, 1
jne 0x416963
mov eax, ecx
pop edi
pop ebp
ret
Function at 0x416990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x4594c4], 0
push edi
mov edi, edx
mov dword [ebp - 8], edi
jne 0x416aac
push ebx
push esi
mov dword [0x4594c4], 1
xor ebx, ebx
mov edi, 0x4598c8
nop dword [eax]
mov eax, ebx
lea edi, [edi + 2]
shl eax, 8
movzx esi, ax
lea ecx, [esi + esi]
mov eax, ecx
xor eax, 0x1021
test si, si
movzx edx, ax
movzx eax, cx
cmovns edx, eax
movzx esi, dx
lea ecx, [esi + esi]
mov eax, ecx
xor eax, 0x1021
test si, si
movzx edx, ax
movzx eax, cx
cmovns edx, eax
movzx esi, dx
lea ecx, [esi + esi]
mov eax, ecx
xor eax, 0x1021
test si, si
movzx edx, ax
movzx eax, cx
cmovns edx, eax
movzx esi, dx
lea ecx, [esi + esi]
mov eax, ecx
xor eax, 0x1021
test si, si
movzx edx, ax
movzx eax, cx
cmovns edx, eax
movzx esi, dx
lea ecx, [esi + esi]
mov eax, ecx
xor eax, 0x1021
test si, si
movzx edx, ax
movzx eax, cx
cmovns edx, eax
movzx esi, dx
lea ecx, [esi + esi]
mov eax, ecx
xor eax, 0x1021
test si, si
movzx edx, ax
movzx eax, cx
cmovns edx, eax
movzx esi, dx
lea eax, [esi + esi]
movzx ecx, ax
mov eax, ecx
xor eax, 0x1021
test si, si
movzx edx, ax
mov eax, ecx
cmovns edx, eax
movzx esi, dx
lea eax, [esi + esi]
movzx ecx, ax
mov eax, ecx
xor eax, 0x1021
test si, si
movzx edx, ax
mov eax, ecx
cmovns edx, eax
inc ebx
mov eax, 0x100
mov word [edi - 2], dx
cmp bx, ax
jb 0x4169c0
mov edi, dword [ebp - 8]
pop esi
pop ebx
mov al, byte [edi]
mov ecx, 0xff00
not al
movzx eax, al
xor cx, word [eax*2 + 0x4598c8]
movzx eax, byte [edi + 1]
movzx edx, cx
mov ecx, edx
shl edx, 8
shr ecx, 8
xor ecx, eax
movzx eax, byte [edi + 2]
xor dx, word [ecx*2 + 0x4598c8]
movzx edx, dx
mov ecx, edx
shl edx, 8
shr ecx, 8
xor ecx, eax
movzx eax, byte [edi + 3]
xor dx, word [ecx*2 + 0x4598c8]
movzx edx, dx
mov ecx, edx
shl edx, 8
shr ecx, 8
xor ecx, eax
movzx eax, byte [edi + 4]
xor dx, word [ecx*2 + 0x4598c8]
movzx edx, dx
mov ecx, edx
shl edx, 8
shr ecx, 8
xor ecx, eax
movzx eax, byte [edi + 5]
xor dx, word [ecx*2 + 0x4598c8]
movzx edx, dx
mov ecx, edx
shl edx, 8
shr ecx, 8
xor ecx, eax
movzx eax, byte [edi + 6]
xor dx, word [ecx*2 + 0x4598c8]
movzx edx, dx
mov ecx, edx
shl edx, 8
shr ecx, 8
xor ecx, eax
movzx eax, byte [edi + 7]
pop edi
xor dx, word [ecx*2 + 0x4598c8]
movzx edx, dx
mov ecx, edx
shl edx, 8
shr ecx, 8
xor ecx, eax
xor dx, word [ecx*2 + 0x4598c8]
movzx eax, dx
mov esp, ebp
pop ebp
ret
Function at 0x41afb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
test edi, edi
je 0x41b1b5
mov ecx, dword [edi + 0x20]
mov dword [edi + 0x18], 0
test ecx, ecx
jne 0x41afdc
mov dword [edi + 0x28], ecx
mov ecx, 0x419cd0
mov dword [edi + 0x20], 0x419cd0
cmp dword [edi + 0x24], 0
jne 0x41afe9
mov dword [edi + 0x24], 0x419cf0
cmp edx, 0xffffffff
mov ebx, 6
cmovne ebx, edx
cmp ebx, 9
ja 0x41b1b5
cmp dword [ebp + 0x14], 4
ja 0x41b1b5
mov eax, dword [edi + 0x28]
push esi
push 0x16c4
cmp ecx, 0x419cd0
jne 0x41b022
call fcn.00429ee5
add esp, 4
jmp 0x41b02a
push 1
push eax
call ecx
add esp, 0xc
mov esi, eax
test esi, esi
je 0x41b1ab
mov dword [edi + 0x1c], esi
mov dword [esi], edi
mov dword [esi + 4], 0x2a
mov dword [esi + 0x18], 2
mov dword [esi + 0x1c], 0
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], 0x8000
mov dword [esi + 0x34], 0x7fff
mov dword [esi + 0x50], 0xf
mov dword [esi + 0x4c], 0x8000
mov dword [esi + 0x54], 0x7fff
mov dword [esi + 0x58], 5
mov eax, dword [edi + 0x20]
cmp eax, 0x419cd0
jne 0x41b098
push 0x10000
call fcn.00429ee5
add esp, 4
jmp 0x41b0a7
push 2
push 0x8000
push dword [edi + 0x28]
call eax
add esp, 0xc
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x20]
mov eax, dword [esi + 0x2c]
cmp ecx, 0x419cd0
jne 0x41b0c5
add eax, eax
push eax
call fcn.00429ee5
add esp, 4
jmp 0x41b0d0
push 2
push eax
push dword [edi + 0x28]
call ecx
add esp, 0xc
mov dword [esi + 0x40], eax
mov ecx, dword [edi + 0x20]
mov eax, dword [esi + 0x4c]
cmp ecx, 0x419cd0
jne 0x41b0ee
add eax, eax
push eax
call fcn.00429ee5
add esp, 4
jmp 0x41b0f9
push 2
push eax
push dword [edi + 0x28]
call ecx
add esp, 0xc
mov dword [esi + 0x44], eax
mov dword [esi + 0x16c0], 0
mov dword [esi + 0x169c], 0x4000
mov eax, dword [edi + 0x20]
cmp eax, 0x419cd0
jne 0x41b129
push 0x10000
call fcn.00429ee5
add esp, 4
jmp 0x41b138
push 4
push 0x4000
push dword [edi + 0x28]
call eax
add esp, 0xc
cmp dword [esi + 0x38], 0
mov ecx, eax
mov edx, dword [esi + 0x169c]
mov dword [esi + 8], ecx
lea eax, [edx*4]
mov dword [esi + 0xc], eax
je 0x41b196
cmp dword [esi + 0x40], 0
je 0x41b196
cmp dword [esi + 0x44], 0
je 0x41b196
test ecx, ecx
je 0x41b196
lea eax, [edx + ecx]
mov dword [esi + 0x84], ebx
mov dword [esi + 0x1698], eax
mov ecx, edi
lea eax, [edx - 1]
mov byte [esi + 0x24], 8
lea eax, [eax + eax*2]
mov dword [esi + 0x16a4], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x88], eax
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0041b1c0
mov dword [esi + 4], 0x29a
mov ecx, edi
mov dword [edi + 0x18], str.insufficient_memory
call fcn.0041c000
pop esi
pop edi
mov eax, 0xfffffffc
pop ebx
pop ebp
ret
pop edi
mov eax, 0xfffffffe
pop ebx
pop ebp
ret
Function at 0x41b1c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x41b399
cmp dword [esi + 0x20], 0
je 0x41b399
cmp dword [esi + 0x24], 0
je 0x41b399
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x41b399
cmp dword [eax], esi
jne 0x41b399
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x41b223
cmp eax, 0x39
je 0x41b223
cmp eax, 0x45
je 0x41b223
cmp eax, 0x49
je 0x41b223
cmp eax, 0x5b
je 0x41b223
cmp eax, 0x67
je 0x41b223
cmp eax, 0x71
je 0x41b223
cmp eax, 0x29a
jne 0x41b399
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x41b25c
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
mov edx, 0x39
cmove eax, edx
mov dword [edi + 4], eax
push 0
jne 0x41b27e
xor edx, edx
xor ecx, ecx
call fcn.0041a930
jmp 0x41b287
xor edx, edx
xor ecx, ecx
call fcn.00419d00
mov dword [esi + 0x30], eax
add esp, 4
lea eax, [edi + 0x94]
mov dword [edi + 0x28], 0xfffffffe
mov dword [edi + 0xb18], eax
mov ecx, edi
lea eax, [edi + 0x988]
mov dword [edi + 0xb20], 0x44d03c
mov dword [edi + 0xb24], eax
lea eax, [edi + 0xa7c]
mov dword [edi + 0xb30], eax
xor eax, eax
mov dword [edi + 0xb2c], 0x44d560
mov dword [edi + 0xb38], 0x44d050
mov word [edi + 0x16b8], ax
mov dword [edi + 0x16bc], eax
call fcn.0041d790
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.00420da0
mov eax, dword [esi + 0x84]
add esp, 0xc
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x44ca9a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x44ca98]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x44ca9c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x44ca9e]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x41fac9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41fb08
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41fb08
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41fb08
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41fb08
cmp dword [ecx + 0x74], 0xe
jbe 0x41fb08
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x426a92
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4430f8
push esi
call fcn.0043718a
pop ecx
pop ecx
test eax, eax
jne 0x426ac0
xor al, al
jmp 0x426b3d
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004267d3
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x426afa
push dword [ebp - 0x210]
call fcn.00427f49
xor al, al
jmp 0x426b3b
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x426b00
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x426b20
push edx
call fcn.004269c9
pop ecx
test al, al
je 0x426aeb
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x426b2e
mov bl, 1
push dword [ebp - 0x210]
call fcn.00427f49
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041f127
leave
ret

Function at 0x427520
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x427563
call fcn.004279f5
mov dword [eax], 0xf
call fcn.00427a08
mov dword [eax], 0xd
call fcn.00429c3f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
leave
ret
test eax, eax
jne 0x42756a
inc eax
jmp 0x427557
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x427555
xor eax, eax
cmp ecx, 1
setne al
jmp 0x427557
Function at 0x4290a0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00440990
mov eax, dword [0x452040]
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.004340c9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4290e2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42923e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004408e0
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 + 0x457b40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004300ca
mov ecx, dword [esi*4 + 0x457b40]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x429237
cmp eax, dword [ecx + edi + 0x24]
jne 0x429237
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x429237
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004300ca
add esp, 0x14
test edx, edx
jl 0x429237
jg 0x4291ad
test eax, eax
jb 0x429237
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x429237
jl 0x4291c7
cmp dword [ebp - 0x1008], eax
ja 0x429237
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4291e5
test ebx, ebx
je 0x42921e
cmp ecx, edi
jae 0x42921e
mov al, byte [ecx]
cmp al, 0xd
jne 0x4291ff
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42920b
cmp byte [ecx + 1], 0xa
jne 0x42920b
inc ecx
jmp 0x42920b
movzx eax, al
movsx eax, byte [eax + 0x4520d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4291e5
cmp edx, ebx
jne 0x4291e5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42923c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041f127
leave
ret
Function at 0x432274
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x457b40]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4322b4
cmp byte [ebx], 0xa
jne 0x4322b4
or byte [edi + eax + 0x28], 4
jmp 0x4322b9
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4323b8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43239b
inc eax
cmp dl, 0xd
je 0x4322e5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43230b
cmp eax, ecx
jae 0x432319
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4322cd
jmp 0x4323b8
push 0
lea eax, [ebp - 0x10]
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 0x432396
cmp dword [ebp - 0x10], 0
je 0x432396
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x457b40]
test byte [eax + edi + 0x28], 0x48
je 0x432370
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43235b
mov byte [esi], dl
jmp 0x43236c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x457b40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4323b8
cmp byte [ebp - 1], 0xa
jne 0x43237f
cmp esi, ebx
jne 0x43237f
mov byte [esi], 0xa
jmp 0x4323b7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004300e8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4323b8
mov byte [esi], 0xd
jmp 0x4323b7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x457b40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4323b5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4323b8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4323c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x457b40]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x432407
cmp word [ebx], dx
jne 0x432407
or byte [eax + edi + 0x28], 4
jmp 0x43240c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x43256f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x43254f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43244d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x432483
cmp eax, edx
jae 0x432491
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x432428
jmp 0x43256f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43254a
cmp dword [ebp - 0x18], 0
je 0x43254a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x457b40]
test byte [eax + edi + 0x28], 0x48
je 0x432520
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4324e4
mov word [esi], cx
jmp 0x43251b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x457b40]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x457b40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x457b40]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43256f
pop eax
cmp word [ebp - 4], ax
jne 0x432530
cmp esi, ebx
jne 0x432530
mov word [esi], ax
jmp 0x43256c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004300e8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43256f
push 0xd
pop eax
jmp 0x43252b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x457b40]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x432569
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43256f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x434dcd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x444aac
push 0x444aa4
push str.FlsAlloc
push 0x1f
call fcn.00434c4c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434e01
push dword [ebp + 8]
mov ecx, esi
call dword [0x4423bc]
call esi
jmp 0x434e07
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x434e4b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x444abc
push 0x444ab4
push str.FlsGetValue
push 0x21
call fcn.00434c4c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434e82
push dword [ebp + 8]
mov ecx, esi
call dword [0x4423bc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x434e8a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x444ac4
push 0x444abc
push str.FlsSetValue
push 0x22
call fcn.00434c4c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434ec4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4423bc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]