joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cdb30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x5db08c]
test eax, eax
je 0x4cdbe8
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4cdb5c
cmp dword [eax + 4], 0
mov edi, eax
je 0x4cdb5c
add edi, 8
jmp 0x4cdbe3
mov eax, dword [0x5db08c]
test eax, eax
je 0x4cdbf7
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4cdbe1
mov esi, eax
test eax, eax
jne 0x4cdbb7
movzx eax, byte [0x5dc8e8]
mov ecx, 0xc
mov edx, 4
call fcn.00420530
test eax, eax
je 0x4cdc12
mov dword [eax], 0x5db08c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x5db08c]
test eax, eax
je 0x4cdc06
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 0x4cdbe3
test ecx, ecx
je 0x4cdbe3
lock dec dword [ecx]
jne 0x4cdbe3
call fcn.004cd6b0
jmp 0x4cdbe3
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x5db08c
call fcn.00538720
jmp 0x4cdb40
mov ecx, 0x5db08c
call fcn.00538720
jmp 0x4cdb6a
mov ecx, 0x5db08c
call fcn.00538720
jmp 0x4cdbaf
mov ecx, 4
mov edx, 0xc
call fcn.00535cf0
int3

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

Disassembly:
push esi
mov eax, dword [0x5db09c]
test eax, eax
je 0x4ce234
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4ce1cf
cmp byte [eax + 4], 0
mov esi, eax
jne 0x4ce229
mov eax, dword [0x5db09c]
test eax, eax
je 0x4ce243
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4ce22e
mov esi, eax
test eax, eax
jne 0x4ce223
movzx eax, byte [0x5dc8e8]
mov ecx, 8
mov edx, 4
call fcn.00420530
test eax, eax
je 0x4ce25b
mov dword [eax], 0x5db09c
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x5db09c]
test eax, eax
je 0x4ce24f
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
jmp 0x4ce230
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x5db09c
call fcn.00538720
jmp 0x4ce1bb
mov ecx, 0x5db09c
call fcn.00538720
jmp 0x4ce1d9
mov ecx, 0x5db09c
call fcn.00538720
jmp 0x4ce21b
mov ecx, 4
mov edx, 8
call fcn.00535cf0
int3
Function at 0x4ce900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x4ce944
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x4ce94a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x4ce986
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x4ce9ab
test eax, eax
js 0x4ce995
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x4ce9a1
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x58f31c
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.004cd160
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.004cd290
mov ecx, 7
int 0x29
ud2
Function at 0x4cf160
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x5db07c]
test eax, eax
je 0x4cf1f8
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4cf186
cmp dword [eax + 4], 0
je 0x4cf186
add eax, 8
pop esi
ret
mov eax, dword [0x5db07c]
test eax, eax
je 0x4cf207
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4cf1f4
mov esi, eax
test eax, eax
jne 0x4cf1dd
movzx eax, byte [0x5dc8e8]
mov ecx, 0x10
mov edx, 4
call fcn.00420530
test eax, eax
je 0x4cf222
mov dword [eax], 0x5db07c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x5db07c]
test eax, eax
je 0x4cf216
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, 0x5db07c
call fcn.00538720
jmp 0x4cf16f
mov ecx, 0x5db07c
call fcn.00538720
jmp 0x4cf190
mov ecx, 0x5db07c
call fcn.00538720
jmp 0x4cf1d5
mov ecx, 4
mov edx, 0x10
call fcn.00535cf0
int3

Function at 0x4cfe50
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], 0x505690
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 0x4cff63
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov dword [esi], eax
call fcn.004d01d0
mov ecx, eax
or ecx, edx
je 0x4cff4f
push edx
push eax
push ebx
push dword [esi]
mov edi, edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x1c], eax
call fcn.005269b0
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.005269b0
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.005269b0
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_zeroC:Usersdanya.cargo_registry_srcindex.crates.io_6f17d22bba15001f_block_buffer_0.10.4_srclib.rs
mov edx, 0x19
push 0x58eb30
call fcn.005360b0
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, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x58fb48
push 0x58d5c8
push eax
call fcn.00536370
add esp, 0xc
ud2
Function at 0x4d58e0
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 0x4d592d
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0xc0000011
jne 0x4d593d
mov dword [esi + 4], 0
jmp 0x4d594f
cmp eax, 0x103
je 0x4d5967
test eax, eax
js 0x4d5958
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 0x4d5952
mov eax, esp
mov dword [esp + 0x1c], 0x58f31c
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.004cd160
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.004cd290
mov ecx, 7
int 0x29
ud2
Function at 0x4d6e30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x5057d0
mov eax, edx
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x18]
mov ebx, 0x104
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 0x10]
lea ecx, [eax + 0x230]
mov dword [ebp - 0x38], edx
lea edx, [eax + 0x30]
mov edi, edx
cmp word [edi], 0
je 0x4d6f1f
cmp word [edi + 2], 0
je 0x4d6efe
cmp word [edi + 4], 0
je 0x4d6f03
cmp word [edi + 6], 0
je 0x4d6f08
cmp word [edi + 8], 0
je 0x4d6f0d
cmp word [edi + 0xa], 0
je 0x4d6f12
cmp word [edi + 0xc], 0
je 0x4d6f17
cmp word [edi + 0xe], 0
je 0x4d6f1c
add ebx, 0xfffffff8
add edi, 0x10
cmp ebx, 7
ja 0x4d6e7e
cmp word [ecx], 0
je 0x4d6f21
cmp word [eax + 0x232], 0
je 0x4d7000
cmp word [eax + 0x234], 0
je 0x4d700c
cmp word [eax + 0x236], 0
mov edi, 0x104
jne 0x4d6f3a
add eax, 0x236
mov ecx, eax
jmp 0x4d6f21
add edi, 2
jmp 0x4d6f1f
add edi, 4
jmp 0x4d6f1f
add edi, 6
jmp 0x4d6f1f
add edi, 8
jmp 0x4d6f1f
add edi, 0xa
jmp 0x4d6f1f
add edi, 0xc
jmp 0x4d6f1f
add edi, 0xe
mov ecx, edi
sub ecx, edx
mov dword [ebp - 0x10], 0xffffffff
mov edi, ecx
shr edi, 1
cmp ecx, 0x20a
jae 0x4d7018
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x48]
push edi
call fcn.004d1af0
add esp, 4
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
test esi, esi
mov dword [ebp - 0x20], eax
je 0x4d6f91
js 0x4d7029
movzx eax, byte [0x5dc8e8]
mov ecx, esi
mov edx, 1
call fcn.00420530
mov edi, eax
test eax, eax
jne 0x4d6f96
mov ecx, 1
mov edx, esi
mov dword [ebp - 0x10], 0
call fcn.00535cf0
jmp 0x4d7035
mov edi, 1
push esi
push dword [ebp - 0x38]
push edi
call fcn.00527800
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x30]
push ebx
call fcn.004d7080
add esp, 4
cmp dword [ebp - 0x48], 0
movsd xmm0, qword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
movsd xmm1, qword [ebp - 0x28]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
je 0x4d6fef
mov ecx, dword [ebp - 0x20]
mov edx, 1
call fcn.00420590
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
add eax, 0x232
mov ecx, eax
jmp 0x4d6f21
add eax, 0x234
mov ecx, eax
jmp 0x4d6f21
mov ecx, edi
mov edx, 0x104
push 0x58fba0
call fcn.00536050
mov dword [ebp - 0x10], 0
call fcn.004206e0
ud2
Function at 0x4d7d90
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ecx, esp
push dword [esp + 0x28]
call fcn.004cf780
add esp, 4
mov ecx, dword [esp]
mov edi, dword [esp + 4]
mov eax, dword [esp + 8]
cmp ecx, 0x80000000
je 0x4d7de8
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov edx, esp
push 1
call fcn.004d5b10
add esp, 4
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
cmp ebx, 0x80000000
jne 0x4d7df4
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov dword [esi], edi
add esp, 0x18
pop esi
pop edi
pop ebx
ret
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x4d7e0a
mov byte [esi], 4
test ebx, ebx
jne 0x4d7e1a
jmp 0x4d7ded
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x4d7ded
mov ecx, edi
mov edx, 2
call fcn.00420590
jmp 0x4d7ded

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

Disassembly:
push edi
push esi
mov eax, dword [0x5db0ac]
test eax, eax
je 0x4d9b68
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4d9adc
cmp dword [eax + 4], 0
mov edi, eax
je 0x4d9adc
add edi, 8
jmp 0x4d9b63
mov eax, dword [0x5db0ac]
test eax, eax
je 0x4d9b77
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4d9b61
mov esi, eax
test eax, eax
jne 0x4d9b37
movzx eax, byte [0x5dc8e8]
mov ecx, 0xc
mov edx, 4
call fcn.00420530
test eax, eax
je 0x4d9b92
mov dword [eax], 0x5db0ac
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x5db0ac]
test eax, eax
je 0x4d9b86
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 0x4d9b63
test ecx, ecx
je 0x4d9b63
lock dec dword [ecx]
jne 0x4d9b63
call fcn.004d9bb0
jmp 0x4d9b63
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x5db0ac
call fcn.00538720
jmp 0x4d9ac0
mov ecx, 0x5db0ac
call fcn.00538720
jmp 0x4d9aea
mov ecx, 0x5db0ac
call fcn.00538720
jmp 0x4d9b2f
mov ecx, 4
mov edx, 0xc
call fcn.00535cf0
int3
Function at 0x4da4b0
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1a8
mov edi, dword [edx]
mov ebp, dword [edx + 4]
movzx ebx, word [edx + 8]
mov eax, dword [0x5dc864]
mov esi, ecx
cmp eax, 3
jne 0x4da63b
cmp ebp, 0x17f
ja 0x4da64c
lea eax, [esp + 0x28]
push ebp
push edi
mov edi, eax
push eax
call fcn.00527800
add esp, 0xc
lea eax, [ebp + 1]
cmp ebp, 6
mov byte [esp + ebp + 0x28], 0
ja 0x4da515
xor edx, edx
nop
cmp byte [esp + edx + 0x28], 0
je 0x4da5af
inc edx
cmp eax, edx
jne 0x4da500
jmp 0x4da605
lea ecx, [esp + 0x2b]
and ecx, 0xfffffffc
sub ecx, edi
je 0x4da548
je 0x4da548
xor edx, edx
nop word cs:[eax + eax]
nop
cmp byte [esp + edx + 0x28], 0
je 0x4da5af
inc edx
cmp ecx, edx
jne 0x4da530
lea edx, [ebp - 7]
mov dword [esp], ebx
cmp ecx, edx
jbe 0x4da550
jmp 0x4da58e
mov dword [esp], ebx
lea edx, [ebp - 7]
xor ecx, ecx
movdqa xmm0, xmmword [0x53a410]
movdqa xmm1, xmmword [0x53a420]
movq xmm2, qword [esp + ecx + 0x28]
movdqa xmm3, xmm2
paddd xmm3, xmm0
pandn xmm2, xmm3
pand xmm2, xmm1
movd edi, xmm2
pshufd xmm2, xmm2, 0x55
movd ebx, xmm2
or ebx, edi
jne 0x4da58e
add ecx, 8
cmp ecx, edx
jbe 0x4da560
mov ebx, dword [esp]
sub eax, ecx
je 0x4da605
lea edi, [esp + ecx + 0x28]
xor edx, edx
nop dword [eax + eax]
cmp byte [edi + edx], 0
je 0x4da5ad
inc edx
cmp eax, edx
jne 0x4da5a0
jmp 0x4da605
add edx, ecx
cmp edx, ebp
jne 0x4da605
pxor xmm0, xmm0
lea eax, [esp + 4]
mov dword [esp + 4], 0
lea ecx, [esp + 8]
movdqu xmmword [esp + 8], xmm0
movdqu xmmword [esp + 0x18], xmm0
mov dword [esp + 0x10], 1
push eax
push ecx
push 0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x4da61e
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x4da62e
mov eax, dword [0x58e8c8]
mov ecx, dword [0x58e8cc]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x4da630
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], bx
mov dword [esi], eax
add esp, 0x1a8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00538cb0
cmp ebp, 0x17f
jbe 0x4da4df
mov ecx, esi
mov edx, edi
push ebx
push ebp
call fcn.00538d00
add esp, 0x1b0
jmp 0x4da636
Function at 0x4e0f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [esp + 0xc]
push dword [esp + 0x38]
call fcn.004cf780
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp edx, 0x80000000
jne 0x4e0f7e
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], 0x80000000
jmp 0x4e0fa0
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.004e0e70
mov ebx, dword [esp]
cmp ebx, 0x80000000
jne 0x4e0fb5
mov ecx, esp
call fcn.004cf930
mov dword [esi], 0x80000000
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 4]
mov ebp, dword [esp + 8]
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e0fd3
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], ebp
jmp 0x4e0fad
test ebx, ebx
mov dword [esi], 0x80000000
je 0x4e0fad
mov ecx, edi
mov edx, 2
call fcn.00420590
jmp 0x4e0fad
Function at 0x4e2d60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x5059a0
mov esi, edx
mov edi, ecx
mov ecx, 8
mov edx, 4
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
movzx eax, byte [0x5dc8e8]
call fcn.00420530
test eax, eax
je 0x4e2e3c
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
push 0
push 0x10000
push ebx
push 0x4e2ee0
push esi
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x4e2ddd
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x4e2e2b
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x4e2e12
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x24]
call fcn.00420590
mov ecx, dword [ebp - 0x28]
mov edx, 4
call fcn.00420590
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 8
mov dword [ebp - 0x10], 0
call fcn.00535cf0
ud2
Function at 0x4e3320
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.00526980
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x5059d0
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea esi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push esi
call fcn.00527d80
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x4db1d0
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x4e3474
mov ebx, dword [sym.imp.kernel32.dll_SleepEx]
mov dword [ebp - 0x20], edi
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4e33aa
cmp dword [ebp - 0x2c], 0
jne 0x4e3485
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4e3485
cmp esi, 0x1000
ja 0x4e34c1
xor edi, edi
nop dword [eax]
mov eax, esi
sub eax, edi
jb 0x4e34a7
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + edi - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x4db1d0
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x4e347c
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4e3420
cmp dword [ebp - 0x2c], 0
jne 0x4e3482
add edi, dword [ebp - 0x28]
cmp edi, esi
jne 0x4e33e0
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x4db1d0
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x4e33aa
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x4e3485
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, edi
mov edx, esi
push 0x58f588
call fcn.00536270
add esp, 4
jmp 0x4e34dc
mov dword [ebp - 0x10], 0
mov ecx, esi
mov edx, 0x1000
push 0x58f588
call fcn.00536050
add esp, 4
ud2
Function at 0x4e35b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x5059f0
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x4e362e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
lea edx, [esi + 8]
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], 0x58f69c
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], edx
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x30]
mov edx, 0x58f6c8
mov dword [esi + 0x2c], fcn.004d4440
mov dword [esi + 0x3c], 1
call fcn.00535f60
ud2
Function at 0x4e7dc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x505b10
movaps xmm0, xmmword [0x53a700]
mov edi, ecx
lea ebx, [esi + 0x20]
lea ecx, [esi + 0xc]
mov eax, dword fs:[0]
mov dword [esi + 0x50], eax
lea eax, [esi + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov word [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x30], 7
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
movups xmmword [esi + 0x20], xmm0
push ebx
push eax
call fcn.004d5470
add esp, 8
movzx eax, byte [esi + 0xc]
cmp al, 4
jne 0x4e7e7f
mov eax, ebx
mov ebx, dword [esi + 0x10]
xorps xmm0, xmm0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
movaps xmmword [esi + 0x30], xmm0
movaps xmmword [esi + 0x20], xmm0
mov dword [esi + 8], ebx
push 0x28
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x4e7e9b
test byte [esi + 0x40], 0x10
jne 0x4e7ead
mov byte [edi], 0
mov eax, 0x10b
jmp 0x4e7ea7
movzx ecx, byte [esi + 0xf]
movzx ebx, word [esi + 0xd]
mov edx, dword [esi + 0x10]
mov byte [edi + 3], cl
mov word [edi + 1], bx
mov byte [edi], al
mov dword [edi + 4], edx
jmp 0x4e7f28
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], 0
mov dword [edi + 4], eax
push ebx
jmp 0x4e7f22
mov dword [esi + 4], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x58], 0
lea ecx, [esi + 0x14]
lea edx, [esi + 8]
push 0x4e7f90
call fcn.004e7fd0
add esp, 4
cmp byte [esi + 0x14], 4
mov ecx, dword [esi + 0x1c]
jne 0x4e7ee1
movsd xmm0, qword [esi + 0x14]
movsd qword [ecx], xmm0
jmp 0x4e7f1e
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
test al, al
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], eax
je 0x4e7ef8
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x4e7f1e
cmp edx, 1
je 0x4e7f07
cmp edx, 0x57
je 0x4e7f07
cmp edx, 0x32
jne 0x4e7ef1
mov dword [esi + 0x58], 1
lea edx, [esi + 8]
push 0x4e87f0
call fcn.004e7fd0
add esp, 4
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret