joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0710
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4a071b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4a081e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4bdc34]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4bdc34]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4bdc34]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4bdc34]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4bdc34]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4bdc34]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4bdc34]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4bdc34]
xor eax, edx
inc ecx
dec edi
jne 0x4a0736
pop edi
test esi, esi
je 0x4a0840
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4bdc34]
xor eax, edx
inc ecx
dec esi
jne 0x4a0822
pop esi
pop ebx
not eax
ret
Function at 0x4a6810
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
pop ebp
ret

Function at 0x4a731a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a733a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00480da7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4a735d
test byte [esp + 8], 2
je 0x4a735d
call fcn.00480d95
mov dword [eax], 0xd
call fcn.00480d9e
mov dword [eax], 5
jmp 0x4a7336
xor eax, eax
ret
Function at 0x401230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
xorps xmm0, xmm0
push esi
mov esi, edx
mov dword [ebp - 4], ebx
push edi
movq qword [ebx], xmm0
mov eax, 0
mov dword [ebx + 8], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 4], ebx
sub ecx, dword [esi]
je 0x401293
push ecx
mov ecx, ebx
call fcn.004013a0
mov eax, dword [esi]
mov esi, dword [esi + 4]
mov edi, dword [ebx]
sub esi, eax
push esi
push eax
push edi
call fcn.0041e1a0
lea eax, [esi + edi]
add esp, 0xc
mov dword [ebx + 4], eax
mov edi, dword [ebx]
xor esi, esi
mov ecx, dword [0x46b060]
mov dword [ebp - 4], ecx
sub eax, edi
je 0x4012dc
nop dword [eax]
nop dword [eax + eax]
cmp dword [0x46b064], 0x10
mov ecx, 0x46b050
mov eax, esi
cmovae ecx, dword [0x46b050]
xor edx, edx
div dword [ebp - 4]
mov al, byte [edx + ecx]
xor byte [edi + esi], al
inc esi
mov ecx, dword [ebx + 4]
mov edi, dword [ebx]
sub ecx, edi
cmp esi, ecx
jb 0x4012b0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418620
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b4f1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x469058]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x14], ebx
mov edi, ecx
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x46b080]
cmp eax, dword [esi + 4]
jle 0x418687
push 0x46b080
call fcn.0041cb48
add esp, 4
cmp dword [0x46b080], 0xffffffff
jne 0x418687
push 0x46b080
call fcn.0041cafe
add esp, 4
mov eax, dword [0x46b07c]
cmp eax, dword [esi + 4]
jle 0x418706
push 0x46b07c
call fcn.0041cb48
add esp, 4
cmp dword [0x46b07c], 0xffffffff
jne 0x418706
mov dword [ebp - 4], 0
call fcn.0041c6a6
mov dword [0x46c414], 0xffffffff
mov edx, 1
mov dword [0x46b094], eax
nop word [eax + eax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x46b094], eax
inc edx
cmp edx, 0x270
jb 0x4186d0
push 0x46b07c
mov dword [0x46b090], 0x270
call fcn.0041cafe
add esp, 4
sub edi, ebx
cmp edi, 0xffffffff
jne 0x41872b
mov ecx, 0x46b090
call fcn.0041b6e0
add eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 1]
mov dword [ebp - 0x10], eax
lea ecx, [edi + 1]
xor ebx, ebx
xor esi, esi
test edi, edi
je 0x41874e
mov ecx, 0x46b090
call fcn.0041b6e0
mov ebx, eax
lea ecx, [edi + 1]
or esi, 0xffffffff
xor edx, edx
mov eax, esi
div ecx
xor edx, edx
mov ecx, eax
mov eax, ebx
div dword [ebp - 0x10]
cmp eax, ecx
jb 0x418770
xor edx, edx
lea ecx, [edi + 1]
mov eax, esi
div ecx
cmp edx, edi
jne 0x418734
jmp 0x418773
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, ebx
div ecx
mov eax, dword [ebp - 0x14]
add eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x418c32
jl 0x418c25
test ecx, ecx
jne 0x418c32
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x418cf2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00417590
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x418c9e
jg 0x418c5d
test esi, esi
je 0x418c9e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x418c75
mov eax, dword [esp + 0x10]
jl 0x418c6f
cmp eax, esi
jae 0x418c75
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0041e1a0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x418cbf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x418cdb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x418c44
jl 0x418cdb
test ecx, ecx
jne 0x418c44
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x418d30
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x418d30
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0041e1a0
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x418d99
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x418d56
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x418d84
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00424837
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x418d99
cmp edi, eax
ja 0x418d62
test edi, edi
je 0x418d99
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00424837
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x419570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x4195a2
jl 0x419595
test ecx, ecx
jne 0x4195a2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x419660
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00417590
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41960e
jg 0x4195cd
test esi, esi
je 0x41960e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4195e5
mov eax, dword [esp + 0x10]
jl 0x4195df
cmp eax, esi
jae 0x4195e5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0041e1a0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x41962d
mov eax, dword [ebx]
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x419649
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x4195b4
jl 0x419649
test ecx, ecx
jne 0x4195b4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x41969e
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x41969e
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0041e1a0
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x419707
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4196c4
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x4196f2
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00424837
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x419707
cmp edi, eax
ja 0x4196d0
test edi, edi
je 0x419707
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00424837
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ac10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43aeb0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x469058]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041c9af
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041be5f
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b6e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x41b73e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x41b700
mov eax, dword [edi]
jmp 0x41b829
cmp eax, 0x4e0
jb 0x41b829
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x41b760
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x41b7b0
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41d715
Capabilities:
Parse pe header

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

Function at 0x42a4dd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ff6c
push 0x43ff64
push str.FlsAlloc
push 0x1f
call fcn.0042a348
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42a511
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c158]
call esi
jmp 0x42a517
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x42a55b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ff7c
push 0x43ff74
push str.FlsGetValue
push 0x21
call fcn.0042a348
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42a592
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42a59a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ff84
push 0x43ff7c
push str.FlsSetValue
push 0x22
call fcn.0042a348
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42a5d4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43c158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42d273
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041d990
mov eax, dword [0x469058]
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.0042b994
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42d2b5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42d411
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043a4f0
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 + 0x46ad00]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042e074
mov ecx, dword [esi*4 + 0x46ad00]
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 0x42d40a
cmp eax, dword [ecx + edi + 0x24]
jne 0x42d40a
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 0x42d40a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042e074
add esp, 0x14
test edx, edx
jl 0x42d40a
jg 0x42d380
test eax, eax
jb 0x42d40a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42d40a
jl 0x42d39a
cmp dword [ebp - 0x1008], eax
ja 0x42d40a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42d3b8
test ebx, ebx
je 0x42d3f1
cmp ecx, edi
jae 0x42d3f1
mov al, byte [ecx]
cmp al, 0xd
jne 0x42d3d2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42d3de
cmp byte [ecx + 1], 0xa
jne 0x42d3de
inc ecx
jmp 0x42d3de
movzx eax, al
movsx eax, byte [eax + 0x4692c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42d3b8
cmp edx, ebx
jne 0x42d3b8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42d40f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041c9a1
leave
ret
Function at 0x42d50c
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 + 0x46ad00]
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 0x42d54c
cmp byte [ebx], 0xa
jne 0x42d54c
or byte [edi + eax + 0x28], 4
jmp 0x42d551
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 0x42d650
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42d633
inc eax
cmp dl, 0xd
je 0x42d57d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42d5a3
cmp eax, ecx
jae 0x42d5b1
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 0x42d565
jmp 0x42d650
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 0x42d62e
cmp dword [ebp - 0x10], 0
je 0x42d62e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x46ad00]
test byte [eax + edi + 0x28], 0x48
je 0x42d608
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42d5f3
mov byte [esi], dl
jmp 0x42d604
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46ad00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42d650
cmp byte [ebp - 1], 0xa
jne 0x42d617
cmp esi, ebx
jne 0x42d617
mov byte [esi], 0xa
jmp 0x42d64f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042e092
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42d650
mov byte [esi], 0xd
jmp 0x42d64f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x46ad00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42d64d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42d650
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42d659
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 + 0x46ad00]
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 0x42d69f
cmp word [ebx], dx
jne 0x42d69f
or byte [eax + edi + 0x28], 4
jmp 0x42d6a4
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 0x42d807
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 0x42d7e7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42d6e5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42d71b
cmp eax, edx
jae 0x42d729
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 0x42d6c0
jmp 0x42d807
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 0x42d7e2
cmp dword [ebp - 0x18], 0
je 0x42d7e2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x46ad00]
test byte [eax + edi + 0x28], 0x48
je 0x42d7b8
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 0x42d77c
mov word [esi], cx
jmp 0x42d7b3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x46ad00]
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 + 0x46ad00]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x46ad00]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42d807
pop eax
cmp word [ebp - 4], ax
jne 0x42d7c8
cmp esi, ebx
jne 0x42d7c8
mov word [esi], ax
jmp 0x42d804
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042e092
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42d807
push 0xd
pop eax
jmp 0x42d7c3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x46ad00]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42d801
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42d807
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret