joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10097131
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [0x1012d8f8]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
cmp ebp, eax
push esi
mov esi, dword [esp + 0x10]
cmovg ebp, eax
shl eax, 4
add eax, dword [esp + 0x14]
push 4
push eax
push esi
call fcn.10097b33
push 4
push 0x10101cd8
push esi
call fcn.10097bd0
push 4
push 1
push esi
call fcn.10097b5e
mov ebx, dword [0x1012d8f8]
add esp, 0x24
dec ebx
cmp ebx, ebp
jle 0x100971bb
push edi
mov edi, ebx
shl edi, 4
add edi, dword [esp + 0x18]
sub ebx, ebp
push 4
push edi
push esi
call fcn.10097b33
push 4
push esi
call fcn.10097d19
push 4
push 0x10101cd8
push esi
call fcn.10097bd0
push 4
push 1
push esi
call fcn.10097b5e
add esp, 0x2c
sub edi, 0x10
sub ebx, 1
jne 0x10097187
pop edi
test ebp, ebp
jne 0x100971ce
push 4
push dword [esp + 0x18]
push esi
call fcn.10097b33
add esp, 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10097b33
Capabilities:
Encode data using xor

Disassembly:
movzx edx, byte [esp + 0xc]
test edx, edx
je 0x10097b5d
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
sub esi, ecx
push 4
pop edi
mov al, byte [esi + ecx]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x10097b4b
sub edx, 1
jne 0x10097b48
pop edi
pop esi
ret

Function at 0x10097d19
Capabilities:
Encode data using xor

Disassembly:
push edi
movzx edi, byte [esp + 0xc]
test edi, edi
je 0x10097d62
push esi
mov esi, dword [esp + 0xc]
add esi, 2
movzx eax, byte [esi + 1]
movzx ecx, byte [esi - 1]
mov edx, dword [eax*4 + 0x10104ad8]
movzx eax, byte [esi]
lea esi, [esi + 4]
xor edx, dword [ecx*4 + 0x101042d8]
xor edx, dword [eax*4 + 0x101046d8]
movzx eax, byte [esi - 6]
xor edx, dword [eax*4 + 0x10103ed8]
mov dword [esi - 6], edx
sub edi, 1
jne 0x10097d2b
pop esi
pop edi
ret

Function at 0x10097f1c
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0x100eb4f0
jmp fcn.10097f27

Function at 0x10097f27
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 0x18], 0
and dword [ecx + 0x1c], 0
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
mov dword [ecx + 0x14], 0xc3d2e1f0
ret
Function at 0x10099a5d
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x10125474]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x34]
push 0
push 2
pop eax
push eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x10099b76
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0xc]
push ebp
push 4
push eax
push 4
xor ebp, ebp
push 0xffff
inc ebp
push esi
mov dword [esp + 0x24], ebp
call ebx
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x40000
push eax
push 0x1002
push 0xffff
push esi
call ebx
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x4000
push eax
push 0x1001
push 0xffff
push esi
call ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebp
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop ebp
test eax, eax
je 0x10099b1b
push 0xe6
push str.C:UsersdimonDesktopSAMP_API_mainSAMP_API_ONE_HEADERSAMPRakNetSocketLayer.cpp
push 0x100c4060
call fcn.100a20b1
add esp, 0xc
or ecx, 0xffffffff
mov eax, ecx
jmp 0x10099b76
push 4
lea eax, [esp + 0x10]
push eax
push 0x20
push 0xffff
push esi
call ebx
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
push 2
pop eax
mov word [esp + 0x14], ax
test edi, edi
je 0x10099b59
cmp byte [edi], 0
je 0x10099b59
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x18], eax
jmp 0x10099b5e
and dword [esp + 0x18], 0
push 0x10
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
or ecx, 0xffffffff
cmp eax, ecx
cmove esi, ecx
mov eax, esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1009b3f5
add esp, 0x1c
ret 0xc

Function at 0x10099b8a
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10099bab
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x10099bab
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
jmp 0x10099bad
xor eax, eax
ret 4

Function at 0x10099bcc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x10125474]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 2
pop eax
mov dword [ebp - 0x258], 0x10
mov word [ebp - 0x254], ax
je 0x10099c65
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x254]
push eax
push 0
push 0x240
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 1
jge 0x10099c3f
cmp edi, 0xffffffff
je 0x10099c38
xor eax, eax
inc eax
jmp 0x10099c6b
and dword [esi], 0
xor eax, eax
jmp 0x10099c6b
push dword [ebp - 0x252]
call dword [sym.imp.WS2_32.dll_ntohs]
push ebx
push edi
lea ecx, [ebp - 0x244]
movzx eax, ax
push ecx
push eax
push dword [ebp - 0x250]
call fcn.1008b199
jmp 0x10099c33
or dword [esi], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009b3f5
leave
ret 0xc
Function at 0x10099c7c
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10125474]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x54]
push 0x50
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x10099cec
push edi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x10099ceb
mov ecx, dword [edi + 0xc]
cmp dword [ecx], 0
je 0x10099ceb
push esi
xor esi, esi
cmp esi, 0x28
jge 0x10099cea
mov eax, dword [esi + ecx]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10099cd1
mov ecx, dword [edi + 0xc]
add esi, 4
add ebx, 0x10
cmp dword [esi + ecx], 0
jne 0x10099cbd
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1009b3f5
leave
ret 4

Function at 0x10099d23
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10125474]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
jne 0x10099d42
or eax, 0xffffffff
jmp 0x10099d9d
push esi
mov esi, dword [ebp + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 0x14]
push 2
mov dword [ebp - 0x10], eax
pop eax
mov word [ebp - 0x14], ax
push 0
movzx eax, si
mov esi, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.1009b347
add esp, 0x10
inc esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x1012dab0
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
je 0x10099d72
pop esi
cmp eax, 0xffffffff
je 0x10099d97
xor eax, eax
jmp 0x10099d9d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1009b3f5
leave
ret 0x14

Function at 0x1009b347
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
mov dl, bl
mov ecx, ebx
push edi
mov edi, dword [esp + 0x10]
test esi, esi
jle 0x1009b368
mov al, byte [ecx + edi]
and al, 0xaa
xor dl, al
inc ecx
cmp ecx, esi
jl 0x1009b35c
push esi
push edi
push 0x1012dab1
mov byte [0x1012dab0], dl
call fcn.1009db70
add esp, 0xc
test esi, esi
jle 0x1009b3b0
mov ecx, dword [esp + 0x1c]
movzx eax, byte [ebx + 0x1012dab1]
mov al, byte [eax + 0x10125368]
mov byte [ebx + 0x1012dab1], al
test ecx, ecx
je 0x1009b3a8
xor al, byte [esp + 0x18]
xor al, 0xcc
mov byte [ebx + 0x1012dab1], al
xor ecx, 1
inc ebx
cmp ebx, esi
jl 0x1009b385
pop edi
pop esi
pop ebx
ret

Function at 0x1009b860
Capabilities:
Enumerate pe sections

Disassembly:
cmp dword [0x1014ee00], 6
jl 0x1009b87a
vmovd xmm0, ecx
vpinsrd xmm0, xmm0, edx, 1
vcvtqq2pd xmm0, xmm0
ret
movd xmm0, ecx
orps xmm0, xmmword [0x100eba70]
subsd xmm0, qword [0x100eba70]
test edx, edx
je 0x1009b8a1
cvtsi2sd xmm1, edx
mulsd xmm1, qword [0x100eba90]
addsd xmm0, xmm1
ret
Function at 0x100a340d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1009c1c0
mov eax, dword [0x10125474]
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.100b3ee3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100a344f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100a35ab
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1009c050
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 + 0x1014f110]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100b61ca
mov ecx, dword [esi*4 + 0x1014f110]
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 0x100a35a4
cmp eax, dword [ecx + edi + 0x24]
jne 0x100a35a4
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 0x100a35a4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100b61ca
add esp, 0x14
test edx, edx
jl 0x100a35a4
jg 0x100a351a
test eax, eax
jb 0x100a35a4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100a35a4
jl 0x100a3534
cmp dword [ebp - 0x1008], eax
ja 0x100a35a4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100a3552
test ebx, ebx
je 0x100a358b
cmp ecx, edi
jae 0x100a358b
mov al, byte [ecx]
cmp al, 0xd
jne 0x100a356c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100a3578
cmp byte [ecx + 1], 0xa
jne 0x100a3578
inc ecx
jmp 0x100a3578
movzx eax, al
movsx eax, byte [eax + 0x10125690]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100a3552
cmp edx, ebx
jne 0x100a3552
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100a35a9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1009b3f5
leave
ret

Function at 0x100b1556
Capabilities:
Parse pe header

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

Function at 0x100b2755
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b26d7
Function at 0x100b2fef
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100efa14
push 0x100efa0c
push str.FlsAlloc
push 0x1f
call fcn.100b2e4b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100b3023
push dword [ebp + 8]
mov ecx, esi
call dword [0x100c32ac]
call esi
jmp 0x100b3029
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100b306d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100efa24
push 0x100efa1c
push str.FlsGetValue
push 0x21
call fcn.100b2e4b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100b30a4
push dword [ebp + 8]
mov ecx, esi
call dword [0x100c32ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100b30ac
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100efa2c
push 0x100efa24
push str.FlsSetValue
push 0x22
call fcn.100b2e4b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100b30e6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100c32ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100b54c8
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 + 0x1014f110]
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 0x100b5508
cmp byte [ebx], 0xa
jne 0x100b5508
or byte [edi + eax + 0x28], 4
jmp 0x100b550d
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 0x100b560c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100b55ef
inc eax
cmp dl, 0xd
je 0x100b5539
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100b555f
cmp eax, ecx
jae 0x100b556d
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 0x100b5521
jmp 0x100b560c
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 0x100b55ea
cmp dword [ebp - 0x10], 0
je 0x100b55ea
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1014f110]
test byte [eax + edi + 0x28], 0x48
je 0x100b55c4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100b55af
mov byte [esi], dl
jmp 0x100b55c0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1014f110]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100b560c
cmp byte [ebp - 1], 0xa
jne 0x100b55d3
cmp esi, ebx
jne 0x100b55d3
mov byte [esi], 0xa
jmp 0x100b560b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100b61e8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100b560c
mov byte [esi], 0xd
jmp 0x100b560b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1014f110]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100b5609
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100b560c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100b5615
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 + 0x1014f110]
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 0x100b565b
cmp word [ebx], dx
jne 0x100b565b
or byte [eax + edi + 0x28], 4
jmp 0x100b5660
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 0x100b57c3
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 0x100b57a3
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100b56a1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100b56d7
cmp eax, edx
jae 0x100b56e5
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 0x100b567c
jmp 0x100b57c3
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 0x100b579e
cmp dword [ebp - 0x18], 0
je 0x100b579e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1014f110]
test byte [eax + edi + 0x28], 0x48
je 0x100b5774
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 0x100b5738
mov word [esi], cx
jmp 0x100b576f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1014f110]
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 + 0x1014f110]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1014f110]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100b57c3
pop eax
cmp word [ebp - 4], ax
jne 0x100b5784
cmp esi, ebx
jne 0x100b5784
mov word [esi], ax
jmp 0x100b57c0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100b61e8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100b57c3
push 0xd
pop eax
jmp 0x100b577f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1014f110]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100b57bd
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100b57c3
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 0x100b9d9b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100b9e38
push ebx
push esi
call fcn.100b9d64
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100b9cf8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100b9de5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100b9e37
push edi
push eax
call fcn.100b679e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100b9e05
call fcn.100b2cc4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100b9e36
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100b9cf8
add esp, 0x20
test eax, eax
jne 0x100b9e24
push edi
call fcn.100b2cc4
jmp 0x100b9e2c
push ebx
call fcn.100b2cc4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x100be601
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100be57d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100be770
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100be770
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100be725
jg 0x100be65d
test eax, eax
je 0x100be71b
push 1
push 0x1000
call fcn.100b2c67
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100be680
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100be712
push 0x8000
push ebx
call fcn.100be4ae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100be6a9
jg 0x100be6a4
cmp ecx, 0x1000
jb 0x100be6a9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100b52ac
add esp, 0x10
cmp eax, 0xffffffff
je 0x100be6ee
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100be6a4
jl 0x100be6d5
test ecx, ecx
jne 0x100be696
push dword [ebp - 0xc]
push ebx
call fcn.100be4ae
push esi
call fcn.100b2cc4
add esp, 0xc
xor ebx, ebx
jmp 0x100be77e
cmp byte [edi + 0x24], 0
je 0x100be705
cmp dword [edi + 0x20], 5
jne 0x100be705
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100be710
mov ebx, dword [edi + 0x18]
jmp 0x100be712
xor ebx, ebx
push esi
call fcn.100b2cc4
pop ecx
jmp 0x100be77e
test ecx, ecx
jg 0x100be6e7
jl 0x100be725
test eax, eax
jae 0x100be6e7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100b61e8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100be745
cmp byte [edi + 0x1c], 0
je 0x100be6e7
jmp 0x100be776
push ebx
call fcn.100ba905
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100be6e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100be77e
cmp byte [edi + 0x1c], 0
je 0x100be77b
mov ebx, dword [edi + 0x18]
jmp 0x100be77e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100b61e8
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100bf9b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100bf9dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100bf9dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret