joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53cb9c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
push esi
and edx, 0xfffffffe
push edi
mov edi, ecx
add edx, 0xfffffffc
mov esi, edi
add edx, edi
mov ebx, esi
cmp esi, edx
ja 0x53cc11
movzx ecx, byte [esi + 1]
movzx eax, byte [esi + 3]
xor ecx, 8
add esi, 2
and eax, ecx
mov ebp, esi
cmp eax, 0xf8
jb 0x53cbac
movzx eax, byte [ebx]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 1]
and eax, 7
lea ecx, [eax + ecx*8]
movzx eax, byte [esi]
shl ecx, 8
add esi, 2
add ecx, eax
mov eax, esi
sub eax, edi
shr eax, 1
sub ecx, eax
mov eax, ecx
mov byte [ebp], cl
shr eax, 0xb
mov byte [ebx], al
mov eax, ecx
shr eax, 0x13
and al, 7
shr ecx, 8
or al, 0xf0
or cl, 0xf8
mov byte [esi - 3], al
mov byte [esi - 1], cl
jmp 0x53cbac
sub esi, edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x53ccc5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
mov eax, ecx
xor ebx, ebx
mov ecx, dword [esp + 0x10]
push ebp
push esi
mov ebp, edx
mov dword [esp + 0xc], eax
mov esi, dword [ecx]
and esi, 7
cmp ebp, 5
jae 0x53cce8
xor eax, eax
jmp 0x53ce0e
sub ebp, 4
push edi
cmp dword [esp + 0x24], 0
je 0x53cd0d
mov ecx, dword [esp + 0x24]
call dword [0x6636e0]
call dword [esp + 0x24]
test eax, eax
jne 0x53cdf3
mov eax, dword [esp + 0x10]
lea edi, [ebx + eax]
lea edx, [eax + ebp]
cmp edi, edx
jae 0x53cd28
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x53cd24
inc edi
cmp edi, edx
jb 0x53cd17
mov eax, dword [esp + 0x10]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x53cdf8
cmp ecx, 2
jbe 0x53cdb3
xor esi, esi
movzx edx, byte [edi + 4]
lea eax, [edx + 1]
test al, 0xfe
jne 0x53cde4
movzx eax, byte [edi + 3]
add ebx, 5
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
sub edx, ebx
test esi, esi
je 0x53cd93
and esi, 6
mov eax, edx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x53cd91
mov eax, 0x100
shl eax, cl
dec eax
xor edx, eax
sub edx, ebx
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
mov byte [edi + 4], dl
jmp 0x53cdea
shr esi, cl
test esi, esi
je 0x53cd41
cmp esi, 4
ja 0x53cdd9
cmp esi, 3
je 0x53cdd9
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x53cd41
mov eax, dword [esp + 0x10]
or esi, 8
shr esi, 1
inc ebx
jmp 0x53ccec
or esi, 8
shr esi, 1
inc ebx
mov eax, dword [esp + 0x10]
jmp 0x53ccec
push 0x12
pop eax
jmp 0x53ce0d
xor eax, eax
shr esi, cl
cmp ecx, 2
lfence
cmova esi, eax
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x53cf16
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x1c
mov eax, 0x65e925
call fcn.00637d93
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
push 0x18
cmp eax, dword [esi + 4]
jne 0x53cf55
call fcn.005f028c
pop ecx
mov ecx, eax
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x53cfa8
call fcn.005f028c
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
shr ecx, 1
push ecx
push dword [esi]
mov ecx, eax
call fcn.00495d3c
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 1
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x53cf8b
mov eax, dword [edi]
push ebx
push ecx
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectMemory]
test eax, eax
je 0x53cfb0
push ebx
push dword [esi + 0xc]
mov ecx, edi
call fcn.004620e0
mov eax, dword [ebp + 8]
mov dword [eax], edi
call fcn.00637d61
ret 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.004c3e2c
push 0x726790
lea eax, [ebp - 0x28]
push eax
call fcn.00606b04
int3
Function at 0x53f850
Capabilities:
Read file on windows

Disassembly:
push 0x18
mov eax, 0x65f09e
call fcn.00637d93
mov ebx, edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
push 0x1c
call fcn.005f028c
mov esi, eax
xor eax, eax
mov dword [ebp - 0x1c], esi
mov edi, esi
pop ecx
mov dword [ebp - 0x24], esi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0x5402d4
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x14]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.DLL_StartThreadpoolIo]
push esi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x18], ebx
jne 0x53f8d4
cmp edi, 0x3e5
jne 0x53f8d4
mov esi, ebx
jmp 0x53f972
mov eax, dword [ebp - 0x14]
push dword [eax + 0x40]
call dword [sym.imp.KERNEL32.DLL_CancelThreadpoolIo]
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
jne 0x53f90d
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
mov eax, dword [ebp - 0x14]
push esi
push dword [eax + 0x3c]
call dword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
or ebx, 0xffffffff
test eax, eax
cmovne ebx, dword [ebp - 0x18]
cmp ebx, 0xffffffff
jne 0x53f972
jmp 0x53f936
or eax, 0xffffffff
test ecx, ecx
jne 0x53f934
or eax, 0xffffffff
cmp edi, 0x26
jne 0x53f934
mov eax, dword [ebp - 0x10]
push ebx
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x6636e0]
mov ecx, dword [ebp - 0x10]
call edi
jmp 0x53f972
mov ebx, eax
mov eax, dword [ebp - 0x10]
sub esp, 0x14
mov edx, dword [ebp - 0x1c]
mov ecx, esp
mov eax, dword [eax]
mov edi, dword [eax + 8]
call fcn.004c3e2c
lea ecx, [ebp - 0x20]
call fcn.005401a8
add esp, 0x14
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call dword [0x6636e0]
mov ecx, dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x20]
push eax
call fcn.005f2956
pop ecx
test esi, esi
je 0x53f980
push 0x1c
push esi
call fcn.005f0059
pop ecx
pop ecx
mov eax, ebx
call fcn.00637d61
ret
Function at 0x542642
Capabilities:
Receive http response

Disassembly:
push 0x58
mov eax, 0x65f783
call fcn.00637dc6
mov edi, ecx
mov eax, dword [edi + 8]
mov esi, dword [eax + 0x218]
test esi, esi
jne 0x5426b9
push esi
push dword [edi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x542778
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push str.WinHttpQueryDataAvaliable
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00450700
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.00541065
pop ecx
push eax
push esi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0053dc44
lea ecx, [ebp - 0x40]
call fcn.00450c1e
lea ecx, [ebp - 0x28]
call fcn.00450c1e
jmp 0x542778
cmp edx, esi
jae 0x5426d3
cmp byte [ebp + 8], 0
jne 0x5426d3
push dword [edi + 0x2c]
push dword [edi + 0x28]
call fcn.0053dbd3
jmp 0x542778
lea eax, [ebp - 0x64]
push eax
call fcn.0053dfd7
push esi
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 2
call fcn.004b7032
test eax, eax
jne 0x54270a
lea ecx, [edi + 0x90]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp esi, eax
jbe 0x542708
push esi
lfence
call fcn.0047e286
xor eax, eax
mov dword [edi + 0x8c], eax
test eax, eax
jne 0x54271a
mov eax, dword [edi + 0x90]
push 0
push esi
push eax
push dword [edi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x542770
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0x6e937c
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00450700
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
mov edx, esi
lea ecx, [ebp - 0x58]
call fcn.00541065
pop ecx
push eax
push esi
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0053dc44
lea ecx, [ebp - 0x58]
call fcn.00450c1e
lea ecx, [ebp - 0x28]
call fcn.00450c1e
lea ecx, [ebp - 0x64]
call fcn.004b7374
call fcn.00637d75
ret

Function at 0x546754
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebx, ecx
lea ecx, [eax - 1]
push esi
mov ebp, ecx
mov dword [esp + 0x10], ecx
push edi
mov edi, edx
sar ebp, 1
mov dword [esp + 0x10], edi
mov esi, edi
cmp edi, ebp
jge 0x5467ac
add esi, esi
lea eax, [esi + 2]
imul ecx, eax, 0x18
add ecx, ebx
lea edx, [ecx - 0x18]
call fcn.0046f472
movzx eax, al
xor eax, 1
imul ecx, edi, 0x18
inc eax
add esi, eax
imul eax, esi, 0x18
add ecx, ebx
add eax, ebx
push eax
call fcn.0045af97
mov edi, esi
cmp esi, ebp
jl 0x546777
mov eax, dword [esp + 0x1c]
cmp esi, ebp
jne 0x5467cb
test al, 1
jne 0x5467cb
imul eax, eax, 0x18
imul ecx, edi, 0x18
add eax, 0xffffffe8
add eax, ebx
add ecx, ebx
push eax
call fcn.0045af97
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x10], edi
jge 0x5467fd
mov edx, dword [esp + 0x20]
lea esi, [edi - 1]
sar esi, 1
imul ebp, esi, 0x18
add ebp, ebx
mov ecx, ebp
call fcn.0046f472
test al, al
je 0x5467fd
imul ecx, edi, 0x18
push ebp
add ecx, ebx
call fcn.0045af97
mov edi, esi
cmp dword [esp + 0x10], esi
jl 0x5467d1
push dword [esp + 0x20]
imul ecx, edi, 0x18
add ecx, ebx
call fcn.0045af97
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x55b750
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005f06b0
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x55b7d0
mov cl, byte [edi]
test cl, cl
je 0x55b7d0
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [esp + 0xc]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [esp + 0xc], eax
test cl, cl
jne 0x55b780
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x55b870
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005f06b0
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
mov dword [esp + 8], esi
test ebx, ebx
je 0x55b8f3
mov al, byte [ebx]
test al, al
je 0x55b8f3
push ebp
push edi
mov ebp, 0x100
movsx eax, al
push eax
call fcn.0055b930
movd xmm1, dword [esp + 0x14]
lea ebx, [ebx + 1]
mov edi, eax
mov edx, 0x20
or edi, ebp
add esp, 4
mov ecx, edi
add ebp, 0x100
shr ecx, 2
xor ecx, edi
imul edi, edi
and ecx, 0xf
sub edx, ecx
shl esi, cl
movd xmm0, edx
psrlq xmm1, xmm0
movd eax, xmm1
or esi, eax
mov al, byte [ebx]
xor esi, edi
mov dword [esp + 0x10], esi
test al, al
jne 0x55b897
mov eax, esi
pop edi
shr eax, 0x10
pop ebp
xor eax, esi
pop esi
pop ebx
pop ecx
ret
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x5ef0d8
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
add edi, 0xdeadbeef
push 0xc
add edi, ecx
pop eax
mov esi, edi
mov ebp, edi
cmp ecx, eax
jbe switch.0x005ef1d1
lea eax, [ecx - 0xd]
xor edx, edx
push 0xc
pop ecx
div ecx
inc eax
mov dword [esp + 0x10], eax
movzx edx, byte [ebx + 7]
movzx ecx, byte [ebx + 6]
movzx eax, byte [ebx + 5]
shl edx, 8
add edx, ecx
movzx ecx, byte [ebx + 0xb]
shl ecx, 8
shl edx, 8
add edx, eax
movzx eax, byte [ebx + 4]
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 0xa]
add esi, edx
add ecx, eax
movzx edx, byte [ebx + 8]
movzx eax, byte [ebx + 9]
add edx, edi
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx + 2]
shl ecx, 8
add edx, ecx
movzx ecx, byte [ebx + 3]
shl ecx, 8
mov edi, edx
add ecx, eax
rol edi, 4
movzx eax, byte [ebx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx]
shl ecx, 8
add ecx, eax
sub ecx, edx
add edx, esi
add ecx, ebp
xor edi, ecx
sub esi, edi
mov eax, edi
rol eax, 6
add edi, edx
xor eax, esi
mov ecx, eax
sub edx, eax
rol ecx, 8
add eax, edi
xor ecx, edx
sub edi, ecx
mov ebp, ecx
rol ebp, 0x10
add ecx, eax
xor ebp, edi
mov esi, ebp
sub eax, ebp
ror esi, 0xd
add ebp, ecx
xor esi, eax
sub ecx, esi
mov edi, esi
rol edi, 4
add esi, ebp
xor edi, ecx
mov ecx, dword [esp + 0x1c]
push 0xc
pop eax
sub ecx, eax
add ebx, eax
sub dword [esp + 0x10], 1
mov dword [esp + 0x1c], ecx
jne 0x5ef10f
cmp ecx, eax
ja 0x5ef23a
jmp dword [ecx*4 + 0x5ef28c]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 8]
add edi, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add esi, eax
movzx eax, byte [ebx + 4]
add esi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add ebp, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add ebp, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add ebp, eax
movzx eax, byte [ebx]
add ebp, eax
xor edi, esi
mov eax, esi
rol eax, 0xe
sub edi, eax
mov eax, edi
mov edx, edi
rol eax, 0xb
xor edx, ebp
sub edx, eax
xor esi, edx
mov eax, edx
ror eax, 7
sub esi, eax
mov eax, esi
xor edi, esi
rol eax, 0x10
sub edi, eax
mov eax, edi
mov ecx, edi
rol eax, 4
xor ecx, edx
sub ecx, eax
mov eax, ecx
xor esi, ecx
rol eax, 0xe
sub esi, eax
mov eax, esi
xor edi, esi
ror eax, 8
sub edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lfence
jmp 0x5ef27d

Function at 0x5f0cb0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x5f0cef
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5f0cef
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5f0cef
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5f0cef
cmp dword [ecx + 0x74], 0xe
jbe 0x5f0cef
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x5f3cc7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.DLL_FormatMessageA]
push eax
push dword [esi]
call fcn.005f3ca3
pop esi
leave
ret 8

Function at 0x5f5244
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.006261d0
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x5f5283
sub eax, 1
je 0x5f527e
sub eax, 1
je 0x5f527a
xor eax, eax
leave
ret
push 3
jmp 0x5f5285
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x617761
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x72af34]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x6b7388
push esi
call fcn.0062c5e0
pop ecx
pop ecx
test eax, eax
jne 0x61778f
xor al, al
jmp 0x61780c
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.00617465
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x6177c9
push dword [ebp - 0x210]
call fcn.0060e553
xor al, al
jmp 0x61780a
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x6177cf
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x6177ef
push edx
call fcn.00617697
pop ecx
test al, al
je 0x6177ba
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jbe 0x6177fd
mov bl, 1
push dword [ebp - 0x210]
call fcn.0060e553
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005efadc
leave
ret
Function at 0x6223a0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005f06b0
mov eax, dword [0x72af34]
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.00621ed8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x6223e2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x62253e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00637fc0
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 + 0x761ce8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0062b457
mov ecx, dword [esi*4 + 0x761ce8]
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 0x622537
cmp eax, dword [edi + ecx + 0x24]
jne 0x622537
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 0x622537
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0062b457
add esp, 0x14
test edx, edx
jl 0x622537
jg 0x6224ad
test eax, eax
jb 0x622537
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x622537
jl 0x6224c7
cmp dword [ebp - 0x1008], eax
ja 0x622537
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x6224e5
test ebx, ebx
je 0x62251e
cmp ecx, edi
jae 0x62251e
mov al, byte [ecx]
cmp al, 0xd
jne 0x6224ff
lea eax, [edi - 1]
cmp ecx, eax
jae 0x62250b
cmp byte [ecx + 1], 0xa
jne 0x62250b
inc ecx
jmp 0x62250b
movzx eax, al
movsx eax, byte [eax + 0x72b2f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x6224e5
cmp edx, ebx
jne 0x6224e5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x62253c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005efadc
leave
ret
Function at 0x629ed4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00629d45

Function at 0x62a353
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6b9878
push 0x6b9870
push str.FlsAlloc
push 0x1e
call fcn.0062a180
mov esi, eax
add esp, 0x10
test esi, esi
je 0x62a387
push dword [ebp + 8]
mov ecx, esi
call dword [0x6636e0]
call esi
jmp 0x62a38d
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x62a3d1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6b9888
push 0x6b9880
push str.FlsGetValue
push 0x20
call fcn.0062a180
mov esi, eax
add esp, 0x10
test esi, esi
je 0x62a408
push dword [ebp + 8]
mov ecx, esi
call dword [0x6636e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]

Function at 0x62a8f5
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 + 0x761ce8]
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 0x62a935
cmp byte [ebx], 0xa
jne 0x62a935
or byte [eax + edi + 0x28], 4
jmp 0x62a93a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x62aa38
mov al, byte [edx]
cmp al, 0x1a
je 0x62aa1a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x62a969
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x62a98e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x62a998
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 0x62a94b
jmp 0x62aa38
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 0x62aa15
cmp dword [ebp - 0xc], 0
je 0x62aa15
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x761ce8]
test byte [eax + edi + 0x28], 0x48
je 0x62a9ef
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x62a9da
mov byte [esi], dl
jmp 0x62a9eb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x761ce8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x62aa38
cmp byte [ebp - 1], 0xa
jne 0x62a9fe
cmp esi, ebx
jne 0x62a9fe
mov byte [esi], 0xa
jmp 0x62aa37
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0062b475
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x62aa38
mov byte [esi], 0xd
jmp 0x62aa37
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x761ce8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x62aa34
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x62aa38
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x62aa41
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 + 0x761ce8]
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 0x62aa84
cmp word [esi], dx
jne 0x62aa84
or byte [edi + eax + 0x28], 4
jmp 0x62aa89
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 0x62abdc
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 0x62abbc
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x62aacb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x62ab01
cmp eax, edx
jae 0x62ab0d
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 0x62aaa3
jmp 0x62abdc
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 0x62abb8
cmp dword [ebp - 0x14], 0
je 0x62abb8
mov eax, dword [ebx*4 + 0x761ce8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x62ab90
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x62ab59
mov word [esi], cx
jmp 0x62ab8c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x761ce8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x761ce8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x761ce8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x62abdc
pop ebx
cmp word [ebp - 4], bx
jne 0x62aba1
cmp esi, dword [ebp + 0xc]
jne 0x62aba1
mov word [esi], bx
jmp 0x62abd9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0062b475
add esp, 0x10
cmp word [ebp - 4], bx
je 0x62abdc
push 0xd
jmp 0x62abd5
mov ecx, dword [ebx*4 + 0x761ce8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x62abd3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x62abdc
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