joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf960
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov byte [ecx + 0x9c], 0
ret

Function at 0x4d04a0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d0220

Function at 0x4d04d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d04b0
Function at 0x4d6780
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push edi
mov edi, edx
mov ecx, dword [ebx]
mov eax, ecx
xor eax, dword [ebp + 8]
mov edx, dword [ebx + 8]
movzx eax, al
shr ecx, 8
xor ecx, dword [edi + eax*4]
movzx eax, cl
add eax, dword [ebx + 4]
mov dword [ebx], ecx
imul ecx, eax, 0x8088405
mov eax, dword [ebp + 8]
inc ecx
mov dword [ebx + 4], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [edi + ecx*4]
pop edi
mov dword [ebx + 8], edx
pop ebx
pop ebp
ret

Function at 0x4d7d30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x100ac], ebx
je 0x4d7d96
cmp dword [esi + 0x7c], ebx
jbe 0x4d7d96
mov ecx, 0xffffff5c
lea eax, [esi + 0x100d0]
sub ecx, esi
lea edi, [esi + 0xa4]
mov dword [ebp - 4], ecx
nop
mov ecx, eax
call fcn.004d6760
movzx ecx, byte [edi]
mov ebx, eax
mov edx, dword [esi + 0x100dc]
push ecx
lea ecx, [esi + 0x100d0]
call fcn.004d6780
xor byte [edi], bl
add esp, 4
mov eax, dword [ebp - 4]
inc edi
add eax, edi
cmp eax, dword [esi + 0x7c]
lea eax, [esi + 0x100d0]
jb 0x4d7d60
xor ebx, ebx
mov edi, dword [esi + 0x7c]
lea eax, [esi + 0xa4]
push edi
push eax
push dword [esi + 0x2c]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
mov dword [esi + 0x7c], 0
or ecx, 0xffffffff
cmp eax, edi
cmovne ebx, ecx
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, ebx
adc dword [esi + 0x100c4], 0
add dword [esi + 0x100c8], ecx
pop edi
adc dword [esi + 0x100cc], 0
mov dword [esi + 0x48], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dc410
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov ebx, ecx
test edi, edi
jle 0x4dc43d
nop dword [eax]
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x576f98]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x4dc420
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4dd090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x592fb4]
sub esp, 0x31c
push ebx
push esi
push edi
mov edi, edx
test eax, eax
je 0x4dd0c3
push eax
push 0x579668
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.004dac90
add esp, 0x10
jmp 0x4dd132
call fcn.004dc7b0
test eax, eax
je 0x4dd0eb
lea eax, [ebp - 0x318]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x318]
call fcn.004dc870
jmp 0x4dd108
lea eax, [ebp - 0x218]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x218]
call fcn.004dc9c0
mov esi, eax
test esi, esi
je 0x4dd214
push esi
push 0x579668
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.004dac90
push esi
call fcn.005319d6
add esp, 0x14
lea ecx, [ebp - 0x110]
call fcn.004db410
test eax, eax
je 0x4dd150
cmp byte [ebp + eax - 0x111], 0x5c
jne 0x4dd150
sub eax, 1
jne 0x4dd141
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push edi
push 0xe7
call fcn.004dac90
add esp, 0x10
mov ecx, edi
call fcn.004db410
mov ebx, eax
mov ecx, 0x14
lea esi, [ebx + edi]
mov edx, esi
call fcn.004dade0
add esi, 2
mov dword [ebp - 4], 0x3e
mov ecx, 4
nop dword [eax]
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 0x4dd1a0
mov byte [ebx + edi + 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 0x4dd670
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
push edi
lea eax, [ebp - 0x110]
mov dword [ebp - 8], 0x200
push eax
push 0x104
push edx
push ecx
call fcn.004dd590
add esp, 0x10
test eax, eax
jne 0x4dd746
lea ecx, [ebp - 0x110]
call fcn.004dd070
mov esi, eax
test esi, esi
je 0x4dd73b
call fcn.004dc7b0
mov ecx, esi
test eax, eax
je 0x4dd701
movzx eax, word [esi]
test ax, ax
je 0x4dd6eb
mov edx, eax
nop word [eax + eax]
cmp dx, 0x5c
je 0x4dd6e6
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4dd6d0
jmp 0x4dd6eb
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 4]
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x4dd72c
mov al, byte [esi]
test al, al
je 0x4dd718
cmp al, 0x5c
je 0x4dd715
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4dd707
jmp 0x4dd718
mov byte [ecx], 0
lea eax, [ebp - 4]
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.005319d6
add esp, 4
test edi, edi
jne 0x4dd746
mov eax, 0x200
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f12a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, edx
mov eax, ecx
mov dword [esp + 4], eax
push esi
push edi
test ebx, ebx
je 0x4f13c3
mov edx, 0x44
call fcn.004d9860
mov edi, eax
test edi, edi
je 0x4f13c3
mov esi, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, dword [esp + 0xc]
push esi
call fcn.004f0fc0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi], eax
mov edx, dword [ebx + 8]
push esi
call fcn.004f10b0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 8], eax
mov edx, dword [ebx + 0xc]
push esi
call fcn.004f0fa0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0xc], eax
mov edx, dword [ebx + 0x10]
push esi
call fcn.004f0fc0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x10], eax
mov edx, dword [ebx + 0x14]
push esi
call fcn.004f0fa0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x14], eax
mov edx, dword [ebx + 0x18]
push esi
call fcn.004f0fc0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x18], eax
mov al, byte [ebx + 4]
mov byte [edi + 4], al
mov edx, dword [ebx + 0x1c]
push esi
call fcn.004f12a0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x1c], eax
mov edx, dword [ebx + 0x28]
push esi
call fcn.004f0fa0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x28], eax
mov edx, dword [ebx + 0x2c]
push esi
call fcn.004f0fa0
mov dword [edi + 0x2c], eax
mov ecx, 0xfff7
mov dword [edi + 0x30], 0
add esp, 4
mov dword [edi + 0x34], 0
mov ax, word [ebx + 6]
and ax, cx
mov dword [edi + 0x24], 0
mov word [edi + 6], ax
mov eax, edi
mov dword [edi + 0x38], 0xffffffff
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 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 0x50bc06
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.0050bbe2
pop esi
leave
ret 8

Function at 0x50ddb5
Capabilities:
Parse pe header

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

Function at 0x50e590
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [0x590070], eax
cmp eax, 0x10
jb 0x50e5b2
cmp eax, 4
jae 0x50e5b7
call fcn.0050e380
push 0x10
push 0x592760
call fcn.0050e3a0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x50e6d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
call fcn.0050e720
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x50e6ed
pop ebp
jmp fcn.0050e380
pop ebp
ret
Function at 0x511ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
lea ecx, [edx + 0x3f8]
lea esi, [eax + 0x3f8]
cmp eax, ecx
ja 0x511cdd
cmp esi, edx
jb 0x511cdd
sub edx, eax
mov esi, 0x80
mov ecx, dword [eax + edx]
lea eax, [eax + 8]
xor dword [eax - 8], ecx
mov ecx, dword [eax + edx - 4]
xor dword [eax - 4], ecx
sub esi, 1
jne 0x511cc5
pop esi
pop ebp
ret
lea esi, [edx + 0x30]
sub edx, eax
lea ecx, [eax + 0x10]
mov eax, 0x10
nop word [eax + eax]
lea ecx, [ecx + 0x40]
lea esi, [esi + 0x40]
movups xmm0, xmmword [ecx - 0x50]
movups xmm1, xmmword [esi - 0x70]
pxor xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [edx + ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [esi - 0x50]
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm0, xmmword [ecx - 0x20]
movups xmm1, xmmword [esi - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
sub eax, 1
jne 0x511cf0
pop esi
pop ebp
ret
Function at 0x514920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x590048]
xor eax, ebp
mov dword [ebp - 4], eax
xor edx, edx
xor eax, eax
mov cl, dl
mov dword [ebp - 0xc], edx
mov byte [ebp - 0x10], cl
mov cl, byte [ebp - 9]
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 0xa]
push ebx
mov byte [ebp - 0xe], cl
mov bl, dl
mov cl, byte [ebp - 0xb]
push esi
mov esi, dword [ebp + 8]
mov word [ebp - 8], dx
mov ch, byte [ebp - 7]
mov byte [ebp - 0xd], cl
nop dword [eax]
mov cl, byte [esi + eax]
mov bh, byte [eax + 0x55db80]
xor bh, cl
or bh, bl
mov bl, byte [eax + 0x55dba0]
xor bl, cl
mov byte [ebp - 0x11], bh
or bl, byte [ebp - 0xd]
mov byte [ebp - 0x17], bl
mov byte [ebp - 0xd], bl
mov bl, byte [eax + 0x55dbc0]
xor bl, cl
or bl, byte [ebp - 0xe]
mov byte [ebp - 0x16], bl
mov byte [ebp - 0xe], bl
mov bl, byte [eax + 0x55dbe0]
xor bl, cl
or bl, byte [ebp - 0xf]
mov byte [ebp - 0x15], bl
mov byte [ebp - 0xf], bl
mov bl, byte [eax + 0x55dc00]
xor bl, cl
or bl, byte [ebp - 0x10]
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x10], bl
mov bl, byte [eax + 0x55dc20]
xor bl, cl
or bl, ch
mov byte [ebp - 0x13], bl
mov ch, bl
mov bl, byte [eax + 0x55dc40]
inc eax
xor bl, cl
or bl, dl
mov byte [ebp - 0x12], bl
mov dl, bl
mov bl, bh
cmp eax, 0x1f
jb 0x514960
mov bl, byte [eax + esi]
movzx esi, byte [eax + 0x55dc40]
and bl, 0x7f
movzx ecx, bl
xor esi, ecx
movzx ecx, dl
movzx edx, byte [eax + 0x55dc20]
or esi, ecx
movzx ecx, bl
dec esi
xor edx, ecx
movzx ecx, byte [ebp - 0x13]
or edx, ecx
movzx ecx, bl
dec edx
or esi, edx
movzx edx, byte [eax + 0x55dc00]
xor edx, ecx
movzx ecx, byte [ebp - 0x14]
or edx, ecx
movzx ecx, bl
dec edx
or esi, edx
movzx edx, byte [eax + 0x55dbe0]
xor edx, ecx
movzx ecx, byte [ebp - 0x15]
or edx, ecx
movzx ecx, bl
dec edx
or esi, edx
movzx edx, byte [eax + 0x55dbc0]
xor edx, ecx
movzx ecx, byte [ebp - 0x16]
or edx, ecx
movzx ecx, bl
dec edx
or esi, edx
movzx edx, byte [eax + 0x55dba0]
movzx eax, byte [eax + 0x55db80]
xor edx, ecx
movzx ecx, byte [ebp - 0x17]
or edx, ecx
movzx ecx, bl
xor eax, ecx
dec edx
movzx ecx, bh
or esi, edx
or eax, ecx
mov ecx, dword [ebp - 4]
dec eax
xor ecx, ebp
or eax, esi
shr eax, 8
pop esi
and eax, 1
pop ebx
call fcn.0050d855
mov esp, ebp
pop ebp
ret

Function at 0x515280
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [edx], 0x61707865
mov dword [edx + 4], 0x3320646e
mov dword [edx + 8], 0x79622d32
mov dword [edx + 0xc], 0x6b206574
mov eax, dword [ecx]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0x18], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x20], eax
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x24], eax
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x2c], eax
pop ebp
ret
Function at 0x517cb0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 4]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0x3c], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x30], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x24], eax
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x38], eax
mov dword [edx], 0x61707865
mov dword [edx + 4], 0x3320646e
mov dword [edx + 8], 0x79622d32
mov dword [edx + 0xc], 0x6b206574
pop ebp
ret

Function at 0x522a50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
xor eax, eax
mov dword [ebp + 8], 0
push esi
nop word [eax + eax]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + eax]
mov ecx, dword [ebp - 4]
movzx esi, byte [ecx + eax]
inc eax
mov ecx, dword [ebp + 8]
xor esi, edx
or ecx, esi
mov dword [ebp + 8], ecx
cmp eax, 0x10
jl 0x522a70
mov eax, dword [ebp + 8]
dec eax
shr eax, 8
and eax, 1
dec eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x523c90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
imul eax, dword [ebp + 0xc], 0x3c0
add eax, 0x55dd80
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00523b00
Function at 0x528eae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0050e210
mov eax, dword [0x590048]
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.0053a182
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x528ef0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x52904c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00548c60
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 + 0x592ae8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0053231f
mov ecx, dword [esi*4 + 0x592ae8]
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 0x529045
cmp eax, dword [ecx + edi + 0x24]
jne 0x529045
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 0x529045
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0053231f
add esp, 0x14
test edx, edx
jl 0x529045
jg 0x528fbb
test eax, eax
jb 0x529045
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x529045
jl 0x528fd5
cmp dword [ebp - 0x1008], eax
ja 0x529045
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x528ff3
test ebx, ebx
je 0x52902c
cmp ecx, edi
jae 0x52902c
mov al, byte [ecx]
cmp al, 0xd
jne 0x52900d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x529019
cmp byte [ecx + 1], 0xa
jne 0x529019
inc ecx
jmp 0x529019
movzx eax, al
movsx eax, byte [eax + 0x590240]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x528ff3
cmp edx, ebx
jne 0x528ff3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x52904a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0050d855
leave
ret
Function at 0x538231
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 + 0x592ae8]
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 0x538271
cmp byte [ebx], 0xa
jne 0x538271
or byte [edi + eax + 0x28], 4
jmp 0x538276
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 0x538375
mov dl, byte [eax]
cmp dl, 0x1a
je 0x538358
inc eax
cmp dl, 0xd
je 0x5382a2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5382c8
cmp eax, ecx
jae 0x5382d6
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 0x53828a
jmp 0x538375
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 0x538353
cmp dword [ebp - 0x10], 0
je 0x538353
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x592ae8]
test byte [eax + edi + 0x28], 0x48
je 0x53832d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x538318
mov byte [esi], dl
jmp 0x538329
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x592ae8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x538375
cmp byte [ebp - 1], 0xa
jne 0x53833c
cmp esi, ebx
jne 0x53833c
mov byte [esi], 0xa
jmp 0x538374
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0053233d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x538375
mov byte [esi], 0xd
jmp 0x538374
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x592ae8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x538372
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x538375
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x53837e
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 + 0x592ae8]
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 0x5383c4
cmp word [ebx], dx
jne 0x5383c4
or byte [eax + edi + 0x28], 4
jmp 0x5383c9
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 0x53852c
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 0x53850c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x53840a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x538440
cmp eax, edx
jae 0x53844e
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 0x5383e5
jmp 0x53852c
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 0x538507
cmp dword [ebp - 0x18], 0
je 0x538507
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x592ae8]
test byte [eax + edi + 0x28], 0x48
je 0x5384dd
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 0x5384a1
mov word [esi], cx
jmp 0x5384d8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x592ae8]
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 + 0x592ae8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x592ae8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x53852c
pop eax
cmp word [ebp - 4], ax
jne 0x5384ed
cmp esi, ebx
jne 0x5384ed
mov word [esi], ax
jmp 0x538529
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0053233d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x53852c
push 0xd
pop eax
jmp 0x5384e8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x592ae8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x538526
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x53852c
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 0x53b577
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x568c90
push 0x568c88
push str.FlsAlloc
push 0x1f
call fcn.0053b3e2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53b5ab
push dword [ebp + 8]
mov ecx, esi
call dword [0x55c3a0]
call esi
jmp 0x53b5b1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x53b5f5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x568ca0
push 0x568c98
push str.FlsGetValue
push 0x21
call fcn.0053b3e2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53b62c
push dword [ebp + 8]
mov ecx, esi
call dword [0x55c3a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x53b634
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x568ca8
push 0x568ca0
push str.FlsSetValue
push 0x22
call fcn.0053b3e2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53b66e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x55c3a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]