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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [edx*8]
mov ebx, ecx
cmp eax, 0x400
mov dword [ebp - 4], ebx
mov esi, 0x80
cmovbe esi, edx
push edi
cmp esi, dword [ebx]
je 0x48e7da
mov eax, dword [0x536414]
test eax, eax
je 0x48e655
call eax
lea eax, [esi*8]
push eax
call fcn.0048b220
mov ecx, dword [0x536418]
add esp, 4
mov edi, eax
mov dword [ebp - 0xc], edi
test ecx, ecx
je 0x48e676
call ecx
test edi, edi
je 0x48e7da
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x48e6f0
cmp dword [0x533ce8], 0
je 0x48e6e6
mov eax, dword [0x536530]
test eax, eax
je 0x48e6a1
push eax
call dword [0x533d30]
add esp, 4
push esi
call dword [0x533d0c]
mov ecx, dword [0x5363b8]
neg eax
add ecx, eax
add esp, 4
mov eax, dword [0x5363dc]
cmp ecx, eax
mov dword [0x5363b8], ecx
cmovg eax, ecx
push esi
mov dword [0x5363dc], eax
call dword [0x533d04]
mov eax, dword [0x536530]
add esp, 4
test eax, eax
je 0x48e6f0
push eax
call dword [0x533d38]
jmp 0x48e6ed
push esi
call dword [0x533d04]
add esp, 4
push edi
mov dword [ebx + 0xc], edi
call dword [0x533d0c]
shr eax, 3
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebx], eax
lea ecx, [eax*8]
push ecx
push 0
push edi
call fcn.004debb0
mov ecx, dword [ebx + 8]
add esp, 0xc
mov dword [ebx + 8], 0
test ecx, ecx
je 0x48e7ce
nop word [eax + eax]
mov esi, dword [ecx + 0x10]
xor edi, edi
mov ebx, dword [ecx + 0xc]
test esi, esi
jle 0x48e75d
nop dword [eax]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
dec esi
movzx edx, byte [eax + 0x51e778]
lea eax, [edi*8]
xor edx, eax
xor edi, edx
test esi, esi
jg 0x48e740
xor edx, edx
mov ebx, dword [ecx]
mov eax, edi
div dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea esi, [eax + edx*8]
test esi, esi
je 0x48e7a8
mov eax, dword [esi]
test eax, eax
je 0x48e77b
mov edx, dword [esi + 4]
jmp 0x48e77d
xor edx, edx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
test edx, edx
je 0x48e7a8
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x48e79d
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x48e7c4
mov eax, dword [ebp - 4]
mov dword [eax + 8], ecx
mov dword [edx + 4], ecx
jmp 0x48e7c4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov eax, dword [edx + 8]
test eax, eax
je 0x48e7ba
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edx + 8], ecx
mov ecx, ebx
test ebx, ebx
jne 0x48e730
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48e8a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov dword [ebp - 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [eax + 0xc], 0
je 0x48e8f4
push ebx
push esi
xor esi, esi
mov ebx, edx
push edi
mov edi, ecx
test ecx, ecx
jle 0x48e8e4
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x51e778]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x48e8c4
mov ecx, dword [ebp + 8]
mov eax, esi
xor edx, edx
mov esi, dword [ebp - 4]
pop edi
div dword [esi]
mov eax, esi
pop esi
pop ebx
jmp 0x48e8f6
xor edx, edx
push edx
mov edx, dword [ebp - 8]
push ecx
mov ecx, eax
call fcn.0048e7f0
add esp, 8
test eax, eax
je 0x48e910
mov eax, dword [eax + 8]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x48f480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x536010]
sub esp, 0x31c
push ebx
mov ebx, edx
push esi
push edi
test eax, eax
je 0x48f4b6
push eax
push 0x5227f0
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.0048cd90
add esp, 0x10
jmp 0x48f553
mov eax, dword [0x5362ac]
test eax, eax
jne 0x48f4e8
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1a8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0x198], 2
sete al
inc eax
mov dword [0x5362ac], eax
cmp eax, 2
jne 0x48f50c
lea eax, [ebp - 0x318]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x318]
call fcn.0048ec00
jmp 0x48f529
lea eax, [ebp - 0x218]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x218]
call fcn.0048ec70
mov esi, eax
test esi, esi
je 0x48f658
push esi
push 0x5227f0
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.0048cd90
push esi
call fcn.004eae96
add esp, 0x14
cmp byte [ebp - 0x110], 0
lea eax, [ebp - 0x110]
je 0x48f568
inc eax
cmp byte [eax], 0
jne 0x48f562
lea ecx, [ebp - 0x110]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x48f58b
lea ecx, [ebp + eax - 0x111]
nop
cmp byte [ecx], 0x5c
jne 0x48f58b
dec ecx
sub eax, 1
jne 0x48f580
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push ebx
push 0xe7
call fcn.0048cd90
add esp, 0x10
mov edi, ebx
test ebx, ebx
je 0x48f5c6
cmp byte [ebx], 0
je 0x48f5be
inc edi
cmp byte [edi], 0
jne 0x48f5b8
sub edi, ebx
and edi, 0x3fffffff
lea esi, [edi + ebx]
mov ecx, 0x14
mov edx, esi
call fcn.0048ceb0
add esi, 2
mov dword [ebp - 4], 0x3e
mov ecx, 4
movzx eax, byte [esi - 2]
lea esi, [esi + 5]
xor edx, edx
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 7], al
movzx eax, byte [esi - 6]
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 6], al
movzx eax, byte [esi - 5]
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 5], al
movzx eax, byte [esi - 4]
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 4], al
movzx eax, byte [esi - 3]
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [esi - 3], al
sub ecx, 1
jne 0x48f5e4
mov byte [edi + ebx + 0x14], cl
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a9590
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov eax, edx
mov dword [esp + 4], eax
push esi
push edi
mov edi, ecx
test eax, eax
je 0x4a9725
test edi, edi
je 0x4a95fe
cmp byte [edi + 0x1e], 0
jne 0x4a9725
cmp byte [edi + 0xe2], 0
je 0x4a95fe
mov eax, 0x44
cmp ax, word [edi + 0xe0]
ja 0x4a95fe
mov ebx, dword [edi + 0xec]
test ebx, ebx
je 0x4a95fe
mov eax, dword [ebx]
mov dword [edi + 0xec], eax
mov eax, dword [edi + 0xe4]
inc eax
mov dword [edi + 0xe4], eax
cmp eax, dword [edi + 0xe8]
jle 0x4a961e
mov dword [edi + 0xe8], eax
jmp 0x4a961e
push 0x44
call fcn.0048b220
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4a961e
test edi, edi
je 0x4a9616
mov byte [edi + 0x1e], 1
test ebx, ebx
je 0x4a9725
mov edx, dword [esp + 0xc]
mov ecx, edi
mov esi, dword [ebp + 8]
push esi
mov edx, dword [edx]
call fcn.004a8fe0
mov dword [ebx], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 8]
call fcn.004a9210
mov dword [ebx + 8], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0xc]
call fcn.004a8fc0
mov dword [ebx + 0xc], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0x10]
call fcn.004a8fe0
mov dword [ebx + 0x10], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0x14]
call fcn.004a8fc0
mov dword [ebx + 0x14], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0x18]
call fcn.004a8fe0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ebx + 0x18], eax
mov al, byte [ecx + 4]
mov byte [ebx + 4], al
mov edx, dword [ecx + 0x1c]
mov ecx, edi
push esi
call fcn.004a9590
mov dword [ebx + 0x1c], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0x28]
call fcn.004a8fc0
add esp, 4
mov dword [ebx + 0x28], eax
mov ecx, edi
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x2c]
call fcn.004a8fc0
mov dword [ebx + 0x2c], eax
add esp, 4
mov dword [ebx + 0x30], 0
mov eax, 0xfff7
mov dword [ebx + 0x34], 0
mov cx, word [esi + 6]
and cx, ax
mov dword [ebx + 0x24], 0
mov word [ebx + 6], cx
mov eax, ebx
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x3c], 0xffffffff
mov dword [ebx + 0x40], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ae6b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x4ae835
test edi, edi
je 0x4ae835
movzx ecx, word [esi + 2]
push ebx
test ecx, 0x1000
jne 0x4ae82c
movzx eax, word [edi + 2]
test eax, 0x1000
jne 0x4ae82c
xor al, cl
test al, 0x10
jne 0x4ae82c
mov al, byte [esi]
cmp al, byte [edi]
jne 0x4ae82c
mov edx, dword [edi + 8]
mov ecx, dword [esi + 8]
call fcn.004ae6b0
test eax, eax
je 0x4ae82c
mov edx, dword [edi + 0xc]
mov ecx, dword [esi + 0xc]
call fcn.004ae6b0
test eax, eax
je 0x4ae82c
mov eax, dword [esi + 0x10]
mov ecx, dword [edi + 0x10]
test eax, eax
je 0x4ae77f
test ecx, ecx
je 0x4ae82c
mov edx, dword [eax]
cmp edx, dword [ecx]
jne 0x4ae82c
xor ebx, ebx
test edx, edx
jle 0x4ae787
xor edx, edx
mov dword [ebp - 4], edx
nop dword [eax + eax]
mov eax, dword [eax + 0xc]
mov ecx, dword [edx + eax]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0xc]
mov edx, dword [edx + eax]
call fcn.004ae6b0
test eax, eax
je 0x4ae82c
mov eax, dword [esi + 0x10]
inc ebx
mov edx, dword [ebp - 4]
add edx, 0x14
mov dword [ebp - 4], edx
cmp ebx, dword [eax]
jl 0x4ae750
jmp 0x4ae787
test ecx, ecx
jne 0x4ae82c
mov eax, dword [esi + 0x18]
cmp eax, dword [edi + 0x18]
jne 0x4ae82c
mov eax, dword [esi + 0x20]
cmp eax, dword [edi + 0x20]
jne 0x4ae82c
mov eax, dword [esi + 0x24]
cmp eax, dword [edi + 0x24]
jne 0x4ae82c
mov eax, 0x800
test word [esi + 2], ax
je 0x4ae7c4
test word [edi + 2], ax
je 0x4ae82c
mov eax, dword [esi + 4]
cmp eax, dword [edi + 4]
jmp 0x4ae81e
cmp byte [esi], 0x98
je 0x4ae820
mov esi, dword [esi + 4]
test esi, esi
je 0x4ae820
test word [edi + 2], ax
jne 0x4ae82c
mov edx, dword [edi + 4]
test edx, edx
je 0x4ae82c
mov bl, byte [esi]
test bl, bl
je 0x4ae808
mov al, bl
sub esi, edx
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x51e778]
cmp al, byte [ecx + 0x51e778]
jne 0x4ae808
mov al, byte [esi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x4ae7e7
movzx eax, bl
movzx ecx, byte [eax + 0x51e778]
movzx eax, byte [edx]
movzx eax, byte [eax + 0x51e778]
sub ecx, eax
jne 0x4ae82c
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp edi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b0c10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, edx
mov edx, ecx
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
push edi
mov edi, eax
test eax, eax
je 0x4b0c3d
cmp byte [eax], cl
je 0x4b0c35
inc edi
cmp byte [edi], cl
jne 0x4b0c30
sub edi, eax
and edi, 0x3fffffff
mov eax, 1
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], eax
cmp dword [edx + 4], eax
jle 0x4b0d05
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
xor esi, 1
cmp eax, 2
cmovge esi, eax
test ebx, ebx
je 0x4b0cc3
mov eax, dword [edx + 8]
mov ecx, esi
add ecx, ecx
mov edx, dword [eax + ecx*8]
mov ecx, dword [ebp + 8]
mov bl, byte [ecx]
test bl, bl
je 0x4b0ca5
sub ecx, edx
mov al, bl
mov dword [ebp - 0x14], ecx
mov edi, ecx
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x51e778]
cmp al, byte [ecx + 0x51e778]
jne 0x4b0ca2
mov al, byte [edi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x4b0c81
mov edi, dword [ebp - 4]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x51e778]
movzx eax, bl
mov ebx, dword [ebp + 8]
movzx eax, byte [eax + 0x51e778]
sub eax, ecx
jne 0x4b0ce6
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
add esi, esi
mov edx, dword [ebp - 0x18]
push edi
mov ecx, dword [eax + esi*8 + 0xc]
add ecx, 4
call fcn.0048e8a0
mov ecx, eax
add esp, 4
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x4b0cfc
jmp 0x4b0ce9
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [edx + 4]
jl 0x4b0c56
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4b0d10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, edx
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edx
push esi
mov esi, eax
push edi
test eax, eax
je 0x4b0d3d
cmp byte [eax], dl
je 0x4b0d35
nop dword [eax]
inc esi
cmp byte [esi], dl
jne 0x4b0d30
sub esi, eax
and esi, 0x3fffffff
mov eax, dword [ecx + 4]
mov edi, 1
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
cmp eax, edi
jle 0x4b0e05
push ebx
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x18], ebx
nop word [eax + eax]
mov eax, edi
xor eax, 1
cmp edi, 2
cmovge eax, edi
add eax, eax
mov ecx, dword [ebx + eax*8 + 0xc]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4b0dcc
mov edx, dword [ebx + eax*8]
mov bl, byte [ecx]
test bl, bl
je 0x4b0db4
mov edi, ecx
mov al, bl
sub edi, edx
nop word [eax + eax]
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x51e778]
cmp al, byte [ecx + 0x51e778]
jne 0x4b0db1
mov al, byte [edi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x4b0d90
mov edi, dword [ebp - 8]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x51e778]
movzx eax, bl
movzx eax, byte [eax + 0x51e778]
sub eax, ecx
jne 0x4b0de9
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add ecx, 0x14
push esi
call fcn.0048e8a0
mov edx, eax
add esp, 4
mov dword [ebp - 4], edx
test edx, edx
jne 0x4b0dfc
jmp 0x4b0dec
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
inc edi
mov dword [ebp - 8], edi
cmp edi, dword [ebp - 0x14]
jl 0x4b0d60
pop ebx
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4db32f
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.004db30b
pop esi
leave
ret 8

Function at 0x4dd4d5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4dd514
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4dd514
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4dd514
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4dd514
cmp dword [ecx + 0x74], 0xe
jbe 0x4dd514
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4e236e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004dd930
mov eax, dword [0x533048]
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.004f3642
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4e23b0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4e250c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005020d0
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 + 0x535a40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004eb7df
mov ecx, dword [esi*4 + 0x535a40]
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 0x4e2505
cmp eax, dword [ecx + edi + 0x24]
jne 0x4e2505
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 0x4e2505
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004eb7df
add esp, 0x14
test edx, edx
jl 0x4e2505
jg 0x4e247b
test eax, eax
jb 0x4e2505
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4e2505
jl 0x4e2495
cmp dword [ebp - 0x1008], eax
ja 0x4e2505
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4e24b3
test ebx, ebx
je 0x4e24ec
cmp ecx, edi
jae 0x4e24ec
mov al, byte [ecx]
cmp al, 0xd
jne 0x4e24cd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4e24d9
cmp byte [ecx + 1], 0xa
jne 0x4e24d9
inc ecx
jmp 0x4e24d9
movzx eax, al
movsx eax, byte [eax + 0x5331b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4e24b3
cmp edx, ebx
jne 0x4e24b3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4e250a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004dcf75
leave
ret
Function at 0x4f16ee
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 + 0x535a40]
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 0x4f172e
cmp byte [ebx], 0xa
jne 0x4f172e
or byte [edi + eax + 0x28], 4
jmp 0x4f1733
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 0x4f1832
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4f1815
inc eax
cmp dl, 0xd
je 0x4f175f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4f1785
cmp eax, ecx
jae 0x4f1793
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 0x4f1747
jmp 0x4f1832
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 0x4f1810
cmp dword [ebp - 0x10], 0
je 0x4f1810
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x535a40]
test byte [eax + edi + 0x28], 0x48
je 0x4f17ea
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4f17d5
mov byte [esi], dl
jmp 0x4f17e6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x535a40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4f1832
cmp byte [ebp - 1], 0xa
jne 0x4f17f9
cmp esi, ebx
jne 0x4f17f9
mov byte [esi], 0xa
jmp 0x4f1831
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004eb7fd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f1832
mov byte [esi], 0xd
jmp 0x4f1831
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x535a40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f182f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f1832
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f183b
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 + 0x535a40]
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 0x4f1881
cmp word [ebx], dx
jne 0x4f1881
or byte [eax + edi + 0x28], 4
jmp 0x4f1886
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 0x4f19e9
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 0x4f19c9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4f18c7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4f18fd
cmp eax, edx
jae 0x4f190b
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 0x4f18a2
jmp 0x4f19e9
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 0x4f19c4
cmp dword [ebp - 0x18], 0
je 0x4f19c4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x535a40]
test byte [eax + edi + 0x28], 0x48
je 0x4f199a
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 0x4f195e
mov word [esi], cx
jmp 0x4f1995
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x535a40]
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 + 0x535a40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x535a40]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4f19e9
pop eax
cmp word [ebp - 4], ax
jne 0x4f19aa
cmp esi, ebx
jne 0x4f19aa
mov word [esi], ax
jmp 0x4f19e6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004eb7fd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4f19e9
push 0xd
pop eax
jmp 0x4f19a5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x535a40]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4f19e3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4f19e9
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 0x4f4a37
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x510ac8
push 0x510ac0
push str.FlsAlloc
push 0x1f
call fcn.004f48a2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f4a6b
push dword [ebp + 8]
mov ecx, esi
call dword [0x50c38c]
call esi
jmp 0x4f4a71
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4f4ab5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x510ad8
push 0x510ad0
push str.FlsGetValue
push 0x21
call fcn.004f48a2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f4aec
push dword [ebp + 8]
mov ecx, esi
call dword [0x50c38c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4f4af4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x510ae0
push 0x510ad8
push str.FlsSetValue
push 0x22
call fcn.004f48a2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f4b2e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x50c38c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]