joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50b260
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9e5f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x67c3c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
lea esi, [ebx + 4]
push 0x2c
mov dword [ebp + 8], esi
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0059ae0f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x14]
sub eax, dword [edi + 0x10]
push dword [esi + 4]
sar eax, 2
push eax
mov byte [ebp - 4], 1
call fcn.00477300
mov eax, dword [edi + 8]
mov ecx, esi
push eax
push dword [eax]
call fcn.00509950
mov eax, dword [edi + 0x24]
lea esi, [ebx + 0x24]
mov dword [esi], eax
push 0x2c
mov dword [ebp - 4], 2
mov dword [ebp + 8], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0059ae0f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x34]
sub eax, dword [edi + 0x30]
push dword [esi + 4]
sar eax, 2
push eax
mov byte [ebp - 4], 4
call fcn.00477300
mov eax, dword [edi + 0x28]
mov ecx, esi
push eax
push dword [eax]
call fcn.00509b50
lea ecx, [ebx + 0x44]
add edi, 0x44
mov byte [ecx + 0x14], 0
mov dword [ebp + 8], ecx
mov byte [ebp - 4], 6
cmp byte [edi + 0x14], 0
je 0x50b39f
push edi
call fcn.00509240
mov 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 4
Function at 0x53f200
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8980
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x686640], 0
jne 0x53f410
push 0xa0
call fcn.0059ae0f
mov edi, eax
add esp, 4
test edi, edi
je 0x53f406
push 0xa0
push 0
push edi
call fcn.0059c4a0
add esp, 0xc
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00442ea0
movsd xmm0, qword [0x5d24a8]
xor eax, eax
mov dword [edi], vtable.THPrac::TH185::THAdvOptWnd.0
mov ecx, edi
movsd qword [edi + 0x68], xmm0
xorps xmm0, xmm0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0x3c
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
movups xmmword [edi + 0x80], xmm0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 7
mov word [edi + 0x80], ax
push 0x27
mov byte [edi + 0x98], al
call fcn.00457a10
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0x3f4ccccd
mov dword [esp], 0x3f4ccccd
call fcn.004576a0
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0
mov dword [esp], 0
push 2
call fcn.004578c0
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0
mov dword [esp], 0
push 3
call fcn.004578c0
imul eax, dword [0x66b030], 0xe2c
mov ecx, edi
push dword [eax + 0x66bcb0]
call fcn.00457900
mov eax, dword [0x66b030]
sub eax, 0
je 0x53f358
sub eax, 1
je 0x53f358
sub eax, 1
jne 0x53f3a2
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call fcn.00457830
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00457740
push ecx
mov ecx, edi
mov dword [esp], 0xbd99999a
call fcn.004576d0
push 1
mov ecx, edi
call fcn.004574e0
cmp byte [0x4d54e1], 3
jne 0x53f3f0
lea eax, [ebp - 0x14]
mov dword [edi + 0x60], 1
push eax
push 0x40
push 4
push 0x475306
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [edi + 0x68]
mov dword [0x475306], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 4
push 0x475306
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xffffffff
mov dword [0x686640], edi
jmp 0x53f410
mov dword [edi + 0x60], 0
mov dword [ebp - 4], 0xffffffff
mov dword [0x686640], edi
jmp 0x53f410
mov dword [0x686640], 0
push 0x7b
call fcn.0045d6d0
add esp, 4
cmp eax, 1
jne 0x53f440
mov ecx, dword [0x686640]
call fcn.004570d0
mov ecx, dword [0x686640]
test al, al
je 0x53f43b
call fcn.00456d90
jmp 0x53f440
call fcn.004574d0
mov ecx, dword [0x686640]
call fcn.00457a20
mov ecx, dword [0x686640]
call fcn.004570d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret
Function at 0x53ff60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x18
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x5400d4
cmp dword [ecx + 0x1c], 0xf
lea edx, [ecx + 8]
mov eax, dword [ebp + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [edx + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 4]
push esi
mov dword [esp + 0x10], eax
mov esi, ecx
jbe 0x53ff9d
mov edx, dword [edx]
xor ecx, ecx
push edi
mov edi, 0x811c9dc5
test ebx, ebx
je 0x53ffc1
nop dword [eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, ebx
jb 0x53ffb0
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x20]
and eax, edi
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
nop
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.0050b770
push 0x2c
push edi
call fcn.0059a744
dec dword [ebp + 8]
add esp, 8
cmp ebx, dword [esp + 0x1c]
je 0x540031
mov eax, dword [esp + 0x30]
cmp esi, eax
jne 0x53ffe0
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x2c]
jne 0x5400c8
mov ecx, dword [esp + 0x18]
pop edi
mov dword [ecx], esi
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
pop ebp
add esp, 0x18
ret 8
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
jne 0x540047
mov eax, dword [esp + 0x24]
mov dword [ecx], eax
jmp 0x54004b
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x30]
cmp esi, eax
je 0x5400c8
cmp dword [esi + 0x1c], 0xf
lea edx, [esi + 8]
mov ebx, dword [edx + 0x10]
jbe 0x540064
mov edx, dword [edx]
xor ecx, ecx
mov edi, 0x811c9dc5
test ebx, ebx
je 0x540081
nop
movzx eax, byte [edx + ecx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, ebx
jb 0x540070
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x20]
and eax, edi
lea eax, [ecx + eax*8]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.0050b770
push 0x2c
push edi
call fcn.0059a744
dec dword [ebp + 8]
add esp, 8
mov eax, dword [esp + 0x30]
cmp ebx, dword [esp + 0x1c]
je 0x5400db
cmp esi, eax
jne 0x540098
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
pop ebp
add esp, 0x18
ret 8
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov dword [ecx], edi
mov dword [ecx + 4], edi
cmp esi, eax
jne 0x540056
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
pop ebp
add esp, 0x18
ret 8
Function at 0x540110
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov edx, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
cmp ecx, eax
je 0x54029f
cmp dword [ecx + 0x1c], 0xf
mov eax, dword [edx + 4]
push ebx
mov ebx, dword [ecx + 0x18]
push ebp
lea ebp, [edx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0xc]
lea edx, [ecx + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 4]
push esi
mov dword [esp + 0x10], eax
mov esi, ecx
jbe 0x540154
mov edx, dword [edx]
xor ecx, ecx
push edi
mov edi, 0x811c9dc5
test ebx, ebx
je 0x540171
movzx eax, byte [edx + ecx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, ebx
jb 0x540160
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x18]
and eax, edi
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea eax, [edi + 8]
push eax
push ebp
call fcn.00509e70
push 0x2c
push edi
call fcn.0059a744
dec dword [ebp + 4]
add esp, 0x10
cmp ebx, dword [esp + 0x1c]
je 0x5401e5
mov eax, dword [esp + 0x34]
cmp esi, eax
jne 0x540192
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x30]
jne 0x540292
mov ecx, dword [esp + 0x18]
pop edi
mov dword [ecx], esi
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
jne 0x5401fb
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
jmp 0x5401ff
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
cmp esi, eax
je 0x540292
nop
cmp dword [esi + 0x1c], 0xf
lea edi, [esi + 8]
mov ebx, dword [edi + 0x10]
jbe 0x54021e
mov edi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x540241
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x540230
mov eax, dword [esp + 0x20]
and edx, dword [eax + 0x18]
mov eax, dword [esp + 0x24]
lea eax, [eax + edx*8]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
nop word [eax + eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea eax, [edi + 8]
push eax
push ebp
call fcn.00509e70
push 0x2c
push edi
call fcn.0059a744
dec dword [ebp + 4]
add esp, 0x10
mov eax, dword [esp + 0x34]
cmp ebx, dword [esp + 0x1c]
je 0x5402a5
cmp esi, eax
jne 0x540260
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x540210
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x5420a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
call fcn.00542da0
mov esi, eax
lea ecx, [esi + 0xc]
call fcn.0045adb0
lea ecx, [esi + 0x24]
pop esi
jmp fcn.0045adb0

Function at 0x5420c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8980
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x686660], 0
jne 0x5422e7
push 0xa0
call fcn.0059ae0f
mov edi, eax
add esp, 4
test edi, edi
je 0x5422dd
push 0xa0
push 0
push edi
call fcn.0059c4a0
add esp, 0xc
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00442ea0
movsd xmm0, qword [0x5d24a8]
xor eax, eax
mov dword [edi], vtable.THPrac::TH19::THAdvOptWnd.0
mov ecx, edi
movsd qword [edi + 0x68], xmm0
xorps xmm0, xmm0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0x3c
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
movups xmmword [edi + 0x80], xmm0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 7
mov word [edi + 0x80], ax
push 0x27
mov byte [edi + 0x98], al
call fcn.00457a10
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0x3f4ccccd
mov dword [esp], 0x3f4ccccd
call fcn.004576a0
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0
mov dword [esp], 0
push 2
call fcn.004578c0
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0
mov dword [esp], 0
push 3
call fcn.004578c0
imul eax, dword [0x66b030], 0xe2c
mov ecx, edi
push dword [eax + 0x66bcb0]
call fcn.00457900
mov eax, dword [0x66b030]
sub eax, 0
je 0x542218
sub eax, 1
je 0x542218
sub eax, 1
jne 0x542262
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call fcn.00457830
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00457740
push ecx
mov ecx, edi
mov dword [esp], 0xbd99999a
call fcn.004576d0
push 1
mov ecx, edi
call fcn.004574e0
mov eax, dword [0x68225c]
cmp byte [eax + 0x208621], 3
jne 0x5422c7
lea eax, [ebp - 0x14]
mov dword [edi + 0x60], 1
push eax
mov eax, dword [0x68225c]
push 0x40
push 4
add eax, 0xa95b6
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x68225c]
lea ecx, [edi + 0x68]
mov dword [eax + 0xa95b6], ecx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
mov eax, dword [0x68225c]
push 4
add eax, 0xa95b6
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xffffffff
mov dword [0x686660], edi
jmp 0x5422e7
mov dword [edi + 0x60], 0
mov dword [ebp - 4], 0xffffffff
mov dword [0x686660], edi
jmp 0x5422e7
mov dword [0x686660], 0
push 0x7b
call fcn.0045d6d0
add esp, 4
cmp eax, 1
jne 0x542317
mov ecx, dword [0x686660]
call fcn.004570d0
mov ecx, dword [0x686660]
test al, al
je 0x542312
call fcn.00456d90
jmp 0x542317
call fcn.004574d0
mov ecx, dword [0x686660]
call fcn.00457a20
mov ecx, dword [0x686660]
call fcn.004570d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret
Function at 0x5430c0
Capabilities:
Enumerate pe sections
Get file size
Parse pe header
Read file via mapping

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x1c], 0
push ebp
push 0x80
push 3
push ebp
push 1
push 0x80000000
push dword [esp + 0x44]
xor esi, esi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, 0xffffffff
je 0x54314e
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
mov esi, eax
push esi
push ebp
push 2
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x543127
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call eax
jmp 0x54314e
push esi
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x54314e
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x80
jb 0x54328b
test ebp, ebp
je 0x54328b
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x54328b
mov ecx, dword [ebp + 0x3c]
lea eax, [ecx + 0x200]
cmp eax, esi
jae 0x54328b
add ecx, ebp
je 0x54328b
cmp dword [ecx], 0x4550
jne 0x54328b
movzx edx, word [ecx + 0x14]
add edx, 0x18
add edx, ecx
je 0x54328b
mov esi, dword [ecx + 0x78]
mov dword [esp + 0x2c], esi
test esi, esi
je 0x543279
cmp dword [ecx + 0x7c], 0
je 0x543279
movzx eax, word [ecx + 6]
mov ecx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], ecx
xor ecx, ecx
cmp cx, ax
jae 0x543279
lea ebx, [edx + 0x10]
nop
mov ecx, dword [ebx - 4]
cmp ecx, esi
ja 0x54325a
mov eax, dword [ebx]
add eax, ecx
cmp eax, esi
jbe 0x54325a
mov edi, dword [ebx + 4]
sub edi, ecx
add edi, ebp
mov ebp, dword [esp + 0x2c]
mov eax, dword [edi + esi + 0x20]
xor esi, esi
mov ebp, dword [edi + ebp + 0x18]
add eax, edi
mov dword [esp + 0x20], eax
test ebp, ebp
je 0x543252
nop
mov eax, dword [eax + esi*4]
mov ecx, dword [esp + 0x30]
add eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x543240
test dl, dl
je 0x54323c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x543240
add eax, 2
add ecx, 2
test dl, dl
jne 0x543220
xor eax, eax
jmp 0x543245
sbb eax, eax
or eax, 1
test eax, eax
je 0x543280
mov eax, dword [esp + 0x20]
inc esi
cmp esi, ebp
jb 0x543210
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add ebx, 0x28
mov eax, dword [esp + 0x24]
inc ecx
movzx eax, ax
mov dword [esp + 0x14], ecx
cmp ecx, eax
jb 0x5431e0
mov ebx, dword [esp + 0x18]
mov esi, 1
jmp 0x54328d
mov ebx, dword [esp + 0x18]
mov esi, 1
jmp 0x54328d
xor esi, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x54329c
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x5432ad
push eax
call ebp
cmp ebx, 0xffffffff
je 0x5432b5
push ebx
call ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x59a8d0
Capabilities:
Enumerate pe sections

Disassembly:
test byte [0x67c420], 0x20
jne 0x59a8ea
vmovd xmm0, ecx
vpinsrd xmm0, xmm0, edx, 1
vcvtqq2pd xmm0, xmm0
ret
movd xmm0, ecx
orps xmm0, xmmword [0x629eb0]
subsd xmm0, qword [0x629eb0]
test edx, edx
je 0x59a911
cvtsi2sd xmm1, edx
mulsd xmm1, qword [0x629ed0]
addsd xmm0, xmm1
ret

Function at 0x59b9d5
Capabilities:
Parse pe header

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

Function at 0x5a1a5f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0059afa0
mov eax, dword [0x67c3c0]
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.005b3f6a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5a1aa1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5a1bfd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0059b000
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 + 0x687160]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005b60e5
mov ecx, dword [esi*4 + 0x687160]
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 0x5a1bf6
cmp eax, dword [ecx + edi + 0x24]
jne 0x5a1bf6
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 0x5a1bf6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005b60e5
add esp, 0x14
test edx, edx
jl 0x5a1bf6
jg 0x5a1b6c
test eax, eax
jb 0x5a1bf6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5a1bf6
jl 0x5a1b86
cmp dword [ebp - 0x1008], eax
ja 0x5a1bf6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5a1ba4
test ebx, ebx
je 0x5a1bdd
cmp ecx, edi
jae 0x5a1bdd
mov al, byte [ecx]
cmp al, 0xd
jne 0x5a1bbe
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5a1bca
cmp byte [ecx + 1], 0xa
jne 0x5a1bca
inc ecx
jmp 0x5a1bca
movzx eax, al
movsx eax, byte [eax + 0x67c690]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5a1ba4
cmp edx, ebx
jne 0x5a1ba4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5a1bfb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0059a5ad
leave
ret
Function at 0x5b310c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x64af40
push 0x64af38
push str.FlsAlloc
push 0x1f
call fcn.005b2fd4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5b3140
push dword [ebp + 8]
mov ecx, esi
call dword [0x5cb3e0]
call esi
jmp 0x5b3146
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5b318a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x64af50
push 0x64af48
push str.FlsGetValue
push 0x21
call fcn.005b2fd4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5b31c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x5cb3e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5b31c9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x64af58
push 0x64af50
push str.FlsSetValue
push 0x22
call fcn.005b2fd4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5b3203
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5cb3e0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5b53e3
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 + 0x687160]
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 0x5b5423
cmp byte [ebx], 0xa
jne 0x5b5423
or byte [edi + eax + 0x28], 4
jmp 0x5b5428
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 0x5b5527
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5b550a
inc eax
cmp dl, 0xd
je 0x5b5454
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5b547a
cmp eax, ecx
jae 0x5b5488
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 0x5b543c
jmp 0x5b5527
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 0x5b5505
cmp dword [ebp - 0x10], 0
je 0x5b5505
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x687160]
test byte [eax + edi + 0x28], 0x48
je 0x5b54df
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5b54ca
mov byte [esi], dl
jmp 0x5b54db
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x687160]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5b5527
cmp byte [ebp - 1], 0xa
jne 0x5b54ee
cmp esi, ebx
jne 0x5b54ee
mov byte [esi], 0xa
jmp 0x5b5526
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005b6103
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5b5527
mov byte [esi], 0xd
jmp 0x5b5526
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x687160]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5b5524
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5b5527
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret