joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426d76
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45190c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebx], 0x428da8
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
or dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], ecx
mov eax, dword [ecx + 4]
and dword [ebx + 0x8c], 0xffffffc0
and byte [ebx + 0x91], 0x80
or dword [ebx + 0x94], 0xffffffff
or dword [ebx + 0x98], 0xffffffff
mov dword [ebx + 0x64], eax
xor eax, eax
inc eax
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], edx
mov byte [ebx + 0x90], 0x4f
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], edx
mov dword [ebx + 0xa8], edx
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x405acb
mov eax, dword [ecx + 0x24]
mov dword [ebx + 0x78], eax
mov dword [ecx + 0x24], ebx
mov eax, dword [ebx + 0x5c]
lea edi, [ebx + 0x58]
push 1
push edx
push edi
mov dword [eax + 4], ebx
lea esi, [ebx + 0x54]
mov ecx, dword [ebx + 0x60]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
push 4
push dword [esi]
mov esi, dword [0x4280f8]
push 6
call esi
push 8
push dword [edi]
mov dword [ebx + 0x7c], eax
push 2
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x88], eax
mov eax, ebx
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x425592
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
mov esi, edx
mov ecx, dword [edx + 0x4c]
mov edx, dword [edx + 0x54]
push ebx
push edi
call fcn.00418bd2
pop ecx
pop edx
test eax, eax
je 0x4256ae
mov edx, dword [eax + 0x44]
mov ebp, eax
lea ecx, [esp + 0x20]
push dword [eax + 0x4c]
call fcn.00419646
pop eax
mov edx, dword [esi + 0x78]
mov edi, dword [esi + 0x70]
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x40]
lea esi, [esp + 4]
mov dword [esp], ebp
mov dword [esp + 0x18], edx
imul edx, edx, 0x30
mov dword [esp + 0x1c], edi
mov dword [esi], edi
add edx, edi
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
lea ecx, [esp + 4]
call fcn.00421961
test eax, eax
je 0x425682
mov esi, edx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push esi
push eax
call fcn.004209f0
pop ecx
pop edx
mov ecx, eax
mov edx, 0x58e7b0
mov esi, eax
call fcn.004197b9
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x28]
lea ecx, [esp + 0x20]
lea eax, [edx + eax*8]
push eax
call fcn.00425702
pop eax
cmp byte [esi + 0x2d], 0
jne 0x4255fb
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 8]
shl edi, 3
test edi, edi
je 0x4255fb
mov esi, dword [ebx]
mov ebp, dword [ebx + 4]
mov eax, dword [esp]
mov ecx, esi
mov edx, ebp
push dword [eax + 0x40]
push dword [eax + 0x3c]
call fcn.00418c20
pop ecx
pop edx
test al, al
jne 0x42567a
lea ecx, [esp + 0x20]
mov edx, esi
push ebp
call fcn.0041d0c4
pop eax
add ebx, 8
add edi, 0xfffffff8
jmp 0x42564c
mov eax, dword [esp]
lea esi, [esp + 0x20]
mov ecx, esi
mov edx, dword [eax + 0x50]
mov eax, dword [eax + 0x58]
lea eax, [edx + eax*8]
push eax
call fcn.00425702
pop eax
mov eax, dword [esi + 8]
movsd xmm0, qword [esi]
mov dword [esp + 0xc], eax
movsd qword [esp + 4], xmm0
jmp 0x4256e5
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x78]
push ebx
push edi
call fcn.004209f0
pop ecx
pop edx
test eax, eax
je 0x4256d3
mov edx, dword [eax + 0x20]
lea ecx, [esp + 4]
push dword [eax + 0x28]
call fcn.00419646
pop eax
jmp 0x4256e5
mov dword [esp + 4], 4
and dword [esp + 8], 0
and dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
movsd xmm0, qword [esp + 4]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x440460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, edx
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
xor esi, esi
lea edx, [eax + edx*2]
movzx ebx, byte [eax + 1]
cmp byte [eax], ch
lea eax, [eax + 2]
lea edi, [esi + ebx]
jne 0x4404b0
cmp esi, edi
ja 0x440518
cmp edi, dword [esp + 0x1c]
ja 0x44052b
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x4404b2
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x4404a0
jmp 0x44050f
ja 0x4404b8
cmp eax, edx
mov esi, edi
jne 0x440473
mov edi, dword [esp + 0x24]
movzx ecx, cx
mov al, 1
add edi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x4404f0
mov ebp, esi
sub ecx, edx
jns 0x440507
jmp 0x440511
cmp esi, edi
je 0x440540
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x440511
xor al, 1
cmp ebp, edi
jne 0x4404d0
jmp 0x440511
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x590734
call fcn.00581100
add esp, 4
ud2
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0x590734
call fcn.00580eb0
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x590724
call fcn.00580f20
add esp, 4
ud2
Function at 0x4434ac
Capabilities:
Hash data with crc32

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, edx
mov edx, dword [esp + 0x18]
mov ebx, ecx
not ebx
cmp edx, 0x40
jb 0x4435d3
push 4
pop edi
sub edi, 1
jb 0x4434bb
cmp edx, 0xf
jbe 0x4435e3
movzx ebp, byte [eax + 0xe]
movzx esi, byte [eax + 0xf]
mov ecx, ebx
mov dword [esp], edx
mov edx, 0xff
shr ecx, 0x18
mov ebp, dword [ebp*4 + 0x59834c]
xor ebp, dword [esi*4 + 0x597f4c]
movzx esi, byte [eax + 0xd]
xor ebp, dword [esi*4 + 0x59874c]
movzx esi, byte [eax + 0xc]
xor ebp, dword [esi*4 + 0x598b4c]
movzx esi, byte [eax + 0xb]
xor ebp, dword [esi*4 + 0x598f4c]
movzx esi, byte [eax + 0xa]
xor ebp, dword [esi*4 + 0x59934c]
movzx esi, byte [eax + 9]
xor ebp, dword [esi*4 + 0x59974c]
movzx esi, byte [eax + 8]
xor ebp, dword [esi*4 + 0x599b4c]
movzx esi, byte [eax + 7]
xor ebp, dword [esi*4 + 0x599f4c]
movzx esi, byte [eax + 6]
xor ebp, dword [esi*4 + 0x59a34c]
movzx esi, byte [eax + 5]
xor ebp, dword [esi*4 + 0x59a74c]
movzx esi, byte [eax + 4]
xor ebp, dword [esi*4 + 0x59ab4c]
movzx esi, byte [eax + 3]
xor ecx, esi
mov esi, ebx
xor ebp, dword [ecx*4 + 0x59af4c]
movzx ecx, byte [eax + 2]
shr esi, 0x10
and esi, edx
xor esi, ecx
movzx ecx, byte [eax + 1]
xor ebp, dword [esi*4 + 0x59b34c]
mov esi, ebx
and ebx, edx
shr esi, 8
and esi, edx
mov edx, dword [esp]
xor esi, ecx
movzx ecx, byte [eax]
xor ebp, dword [esi*4 + 0x59b74c]
xor ebx, ecx
mov ecx, eax
xor ebp, dword [ebx*4 + 0x59bb4c]
push 0x597f3c
call fcn.00443a3a
pop ecx
mov ebx, ebp
jmp 0x4434c7
mov cl, byte [eax]
inc eax
dec edx
xor cl, bl
shr ebx, 8
movzx esi, cl
xor ebx, dword [esi*4 + 0x597f4c]
test edx, edx
jne 0x4435c0
not ebx
mov eax, ebx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xf
pop ecx
push 0x597f2c
call fcn.00580e40
pop eax
ud2
Function at 0x46be57
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov dword [esp], ecx
push 0x20
pop ebp
xor ebx, ebx
mov edi, dword [esp]
test bl, 1
jne 0x46bec0
mov esi, ebp
lea eax, [edi + ebp]
mov dword [esp], eax
push 2
push ebp
push edi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor ebp, ebp
mov bl, 1
cmp eax, 0xc0000000
mov dword [esp + 4], eax
jb 0x46be66
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x46be66
mov esi, dword [esp + 4]
xor esi, 0x80000000
je 0x46bec0
mov al, byte [0x64fd9c]
push 4
pop ecx
mov edx, ecx
call fcn.00404090
test eax, eax
je 0x46beca
mov dword [eax], esi
jmp 0x46bec2
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
pop ecx
mov edx, ecx
call fcn.00580af0
ud2

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x5e8
mov dword [esp + 0x194], ecx
mov ecx, dword [edx + 0x5c]
call fcn.0046bef6
Function at 0x4dc700
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x56cf50
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x64fc40]
test al, al
je 0x4dc8d1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4dc74c
cmp eax, 3
jne 0x4dc8ca
mov ebx, dword [0x64fc44]
test ebx, ebx
je 0x4dc8ca
mov dword [ebp - 0x20], 0
jmp 0x4dc777
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4dc7a8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4dc91b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dc770
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4dc770
test byte [ebp - 0x20], 1
je 0x4dc8ca
mov ebx, dword [0x64fc44]
test ebx, ebx
je 0x4dc8ca
mov dword [ebp - 0x20], 0
jmp 0x4dc7d7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4dc808
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4dc91b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dc7d0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4dc7d0
test byte [ebp - 0x20], 1
je 0x4dc8ca
mov ebx, dword [0x64fc44]
test ebx, ebx
je 0x4dc8ca
mov dword [ebp - 0x20], 0
jmp 0x4dc837
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4dc868
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4dc91b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dc830
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4dc830
test byte [ebp - 0x20], 1
je 0x4dc8ca
mov ebx, dword [0x64fc44]
test ebx, ebx
je 0x4dc8ca
mov dword [ebp - 0x20], 0
jmp 0x4dc897
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4dc8c4
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4dc91b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dc890
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4dc890
test byte [ebp - 0x20], 1
jne 0x4dc8e4
movzx eax, byte [0x649740]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x64fc44]
jmp 0x4dc8ef
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4dc8ca
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4dc91b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dc8ec
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x4dc8ec
mov dword [ebp - 0x10], 0
mov ecx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x60b6ac
call fcn.00580f20
add esp, 4
ud2
Function at 0x4dd680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x64f070]
test eax, eax
je 0x4dd738
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4dd6ac
cmp dword [eax + 4], 0
mov edi, eax
je 0x4dd6ac
add edi, 8
jmp 0x4dd733
mov eax, dword [0x64f070]
test eax, eax
je 0x4dd747
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4dd731
mov esi, eax
test eax, eax
jne 0x4dd707
movzx eax, byte [0x64fd9c]
mov ecx, 0xc
mov edx, 4
call fcn.00404090
test eax, eax
je 0x4dd762
mov dword [eax], 0x64f070
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x64f070]
test eax, eax
je 0x4dd756
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x4dd733
test ecx, ecx
je 0x4dd733
lock dec dword [ecx]
jne 0x4dd733
call fcn.004dd200
jmp 0x4dd733
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x64f070
call fcn.00583b00
jmp 0x4dd690
mov ecx, 0x64f070
call fcn.00583b00
jmp 0x4dd6ba
mov ecx, 0x64f070
call fcn.00583b00
jmp 0x4dd6ff
mov ecx, 4
mov edx, 0xc
call fcn.00580af0
ud2

Function at 0x4ddca0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x64f080]
test eax, eax
je 0x4ddd24
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4ddcbf
cmp byte [eax + 4], 0
mov esi, eax
jne 0x4ddd19
mov eax, dword [0x64f080]
test eax, eax
je 0x4ddd33
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4ddd1e
mov esi, eax
test eax, eax
jne 0x4ddd13
movzx eax, byte [0x64fd9c]
mov ecx, 8
mov edx, 4
call fcn.00404090
test eax, eax
je 0x4ddd4b
mov dword [eax], 0x64f080
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x64f080]
test eax, eax
je 0x4ddd3f
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
jmp 0x4ddd20
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x64f080
call fcn.00583b00
jmp 0x4ddcab
mov ecx, 0x64f080
call fcn.00583b00
jmp 0x4ddcc9
mov ecx, 0x64f080
call fcn.00583b00
jmp 0x4ddd0b
mov ecx, 4
mov edx, 8
call fcn.00580af0
ud2
Function at 0x4de410
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x40]
mov esi, ecx
mov ecx, dword [esp + 0x44]
mov edi, edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x4de464
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0x103
je 0x4de487
test eax, eax
js 0x4de473
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov al, 4
jmp 0x4de47f
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
add esp, 0x34
pop esi
pop edi
ret
mov eax, esp
mov dword [esp + 0x1c], 0x60af34
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
push ecx
push edx
call fcn.004dcd10
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.004dce40
mov ecx, 7
int 0x29
ud2
Function at 0x4dea90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x64f060]
test eax, eax
je 0x4deb28
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4deab6
cmp dword [eax + 4], 0
je 0x4deab6
add eax, 8
pop esi
ret
mov eax, dword [0x64f060]
test eax, eax
je 0x4deb37
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4deb24
mov esi, eax
test eax, eax
jne 0x4deb0d
movzx eax, byte [0x64fd9c]
mov ecx, 0x10
mov edx, 4
call fcn.00404090
test eax, eax
je 0x4deb52
mov dword [eax], 0x64f060
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x64f060]
test eax, eax
je 0x4deb46
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov byte [esi + 0xc], 0
pop esi
ret
xor eax, eax
pop esi
ret
mov ecx, 0x64f060
call fcn.00583b00
jmp 0x4dea9f
mov ecx, 0x64f060
call fcn.00583b00
jmp 0x4deac0
mov ecx, 0x64f060
call fcn.00583b00
jmp 0x4deb05
mov ecx, 4
mov edx, 0x10
call fcn.00580af0
ud2

Function at 0x4dfa50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x56d0e0
lea eax, [esi + 0x30]
mov ecx, dword fs:[0]
mov dword [esi + 0x30], ecx
mov dword fs:[0], eax
lea eax, [esi + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4dfb68
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov dword [esi], eax
call fcn.004dfdf0
mov ecx, eax
or ecx, edx
je 0x4dfb4f
push edx
push eax
push ebx
push dword [esi]
mov edi, edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x1c], eax
call fcn.0056faf0
mov ecx, edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 4], edx
mov dword [esi + 0x24], eax
imul ecx, eax
mul edi
add edx, ecx
mov ecx, edi
imul ecx, dword [esi + 4]
add ecx, edx
mov edx, dword [esi]
sub edx, eax
sbb ebx, ecx
mov eax, edx
imul ecx, ebx, 0x3b9aca00
mov ebx, 0x3b9aca00
mul ebx
add edx, ecx
push dword [esi + 0x20]
push edi
push edx
push eax
call fcn.0056faf0
mov ebx, eax
mov eax, dword [esi + 0x24]
mov ecx, edx
mov edx, 0x3b9aca00
mul edx
mov edi, eax
imul eax, dword [esi + 4], 0x3b9aca00
add eax, edx
add edi, ebx
adc eax, ecx
push 0
push 0x3b9aca00
push eax
push edi
call fcn.0056faf0
imul ecx, eax, 0xc4653600
add ecx, edi
mov edi, dword [esi + 0x30]
mov dword fs:[0], edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.attempt_to_divide_by_zeroreentrant_init
mov edx, 0x19
push 0x60a81c
call fcn.00580f20
add esp, 4
ud2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x38], 0
lea eax, [esi + 0x14]
mov ecx, 0x63d47f
mov edx, 0x2b
push 0x60b7a8
push 0x60978c
push eax
call fcn.00581210
add esp, 0xc
ud2
Function at 0x4e0df0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x440
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x56d120
mov dword [ebp - 0x28], ecx
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x30], 0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
cmp esi, 0x201
jae 0x4e0e80
jmp 0x4e0e6e
jbe 0x4e0f0c
cmp esi, 0x201
jae 0x4e0e80
mov dword [ebp - 0x2c], 0x200
lea ebx, [ebp - 0x44c]
mov edi, esi
jmp 0x4e0ebb
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x4e0eac
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x3c]
mov edx, edi
push esi
call fcn.00583db0
add esp, 4
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x4e0edb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e0f44
cmp esi, edi
jne 0x4e0e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4e0f7f
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x4e0e6e
jmp 0x4e0e80
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0
cmp esi, edx
ja 0x4e0f9f
lea ecx, [ebp - 0x4c]
mov edx, ebx
push esi
call fcn.004e1640
add esp, 4
movsd xmm0, qword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
movsd xmm1, qword [ebp - 0x44]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
jmp 0x4e0f57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x28]
mov byte [ecx], 0
mov dword [ecx + 4], eax
mov byte [ecx + 0xc], 2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4e0f6b
mov ecx, dword [ebp - 0x24]
mov edx, 2
call fcn.004040f0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x440
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, str.internal_error:_entered_unreachable_code
mov edx, 0x28
push 0x60b7f0
call fcn.00580f20
add esp, 4
jmp 0x4e0fae
mov ecx, esi
push 0x60b7e0
call fcn.00580eb0
add esp, 4
ud2
Function at 0x4e69f0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x40]
mov esi, ecx
mov ecx, dword [esp + 0x44]
mov edi, edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x4e6a3d
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0xc0000011
jne 0x4e6a4d
mov dword [esi + 4], 0
jmp 0x4e6a5f
cmp eax, 0x103
je 0x4e6a77
test eax, eax
js 0x4e6a68
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x4e6a62
mov eax, esp
mov dword [esp + 0x1c], 0x60af34
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
push ecx
push edx
call fcn.004dcd10
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.004dce40
mov ecx, 7
int 0x29
ud2