joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009971e
Capabilities:
Encode data using xor

Disassembly:
movzx edx, byte [esp + 0xc]
test edx, edx
je 0x10099748
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 0x10099736
sub edx, 1
jne 0x10099733
pop edi
pop esi
ret

Function at 0x10099904
Capabilities:
Encode data using xor

Disassembly:
push edi
movzx edi, byte [esp + 0xc]
test edi, edi
je 0x1009994d
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 + 0x10106b10]
movzx eax, byte [esi]
lea esi, [esi + 4]
xor edx, dword [ecx*4 + 0x10106310]
xor edx, dword [eax*4 + 0x10106710]
movzx eax, byte [esi - 6]
xor edx, dword [eax*4 + 0x10105f10]
mov dword [esi - 6], edx
sub edi, 1
jne 0x10099916
pop esi
pop edi
ret

Function at 0x10099b07
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0x100ed168
jmp fcn.10099b12

Function at 0x10099b12
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 0x1009b106
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x101274a4]
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 0x1009b21f
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 0x1009b1c4
push 0xe6
push str.C:Users_viktoDesktopTANKSOFTSAMP_API_ONE_HEADERSAMPRakNetSocketLayer.cpp
push 0x100c5048
call fcn.100a3881
add esp, 0xc
or ecx, 0xffffffff
mov eax, ecx
jmp 0x1009b21f
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 0x1009b202
cmp byte [edi], 0
je 0x1009b202
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x18], eax
jmp 0x1009b207
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.1009caa0
add esp, 0x1c
ret 0xc

Function at 0x1009b233
Capabilities:
Resolve dns

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x101274a4]
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 0x1009b30e
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 0x1009b2e8
cmp edi, 0xffffffff
je 0x1009b2e1
xor eax, eax
inc eax
jmp 0x1009b314
and dword [esi], 0
xor eax, eax
jmp 0x1009b314
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.1008cd79
jmp 0x1009b2dc
or dword [esi], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009caa0
leave
ret 0xc
Function at 0x1009b325
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x101274a4]
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 0x1009b395
push edi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x1009b394
mov ecx, dword [edi + 0xc]
cmp dword [ecx], 0
je 0x1009b394
push esi
xor esi, esi
cmp esi, 0x28
jge 0x1009b393
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 0x1009b37a
mov ecx, dword [edi + 0xc]
add esi, 4
add ebx, 0x10
cmp dword [esi + ecx], 0
jne 0x1009b366
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1009caa0
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101274a4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
jne 0x1009b3eb
or eax, 0xffffffff
jmp 0x1009b446
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.1009c9f2
add esp, 0x10
inc esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x1012fb28
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
je 0x1009b41b
pop esi
cmp eax, 0xffffffff
je 0x1009b440
xor eax, eax
jmp 0x1009b446
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1009caa0
leave
ret 0x14

Function at 0x1009c9f2
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 0x1009ca13
mov al, byte [ecx + edi]
and al, 0xaa
xor dl, al
inc ecx
cmp ecx, esi
jl 0x1009ca07
push esi
push edi
push 0x1012fb29
mov byte [0x1012fb28], dl
call fcn.1009f330
add esp, 0xc
test esi, esi
jle 0x1009ca5b
mov ecx, dword [esp + 0x1c]
movzx eax, byte [ebx + 0x1012fb29]
mov al, byte [eax + 0x101273a0]
mov byte [ebx + 0x1012fb29], al
test ecx, ecx
je 0x1009ca53
xor al, byte [esp + 0x18]
xor al, 0xcc
mov byte [ebx + 0x1012fb29], al
xor ecx, 1
inc ebx
cmp ebx, esi
jl 0x1009ca30
pop edi
pop esi
pop ebx
ret

Function at 0x1009cf00
Capabilities:
Enumerate pe sections

Disassembly:
cmp dword [0x10150e98], 6
jl 0x1009cf1a
vmovd xmm0, ecx
vpinsrd xmm0, xmm0, edx, 1
vcvtqq2pd xmm0, xmm0
ret
movd xmm0, ecx
orps xmm0, xmmword [0x100ed6b0]
subsd xmm0, qword [0x100ed6b0]
test edx, edx
je 0x1009cf41
cvtsi2sd xmm1, edx
mulsd xmm1, qword [0x100ed6d0]
addsd xmm0, xmm1
ret
Function at 0x100a4bdd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1009d980
mov eax, dword [0x101274a4]
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.100b5a63
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100a4c1f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100a4d7b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1009d810
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 + 0x101511a8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100b7d4c
mov ecx, dword [esi*4 + 0x101511a8]
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 0x100a4d74
cmp eax, dword [ecx + edi + 0x24]
jne 0x100a4d74
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 0x100a4d74
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100b7d4c
add esp, 0x14
test edx, edx
jl 0x100a4d74
jg 0x100a4cea
test eax, eax
jb 0x100a4d74
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100a4d74
jl 0x100a4d04
cmp dword [ebp - 0x1008], eax
ja 0x100a4d74
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100a4d22
test ebx, ebx
je 0x100a4d5b
cmp ecx, edi
jae 0x100a4d5b
mov al, byte [ecx]
cmp al, 0xd
jne 0x100a4d3c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100a4d48
cmp byte [ecx + 1], 0xa
jne 0x100a4d48
inc ecx
jmp 0x100a4d48
movzx eax, al
movsx eax, byte [eax + 0x101276c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100a4d22
cmp edx, ebx
jne 0x100a4d22
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100a4d79
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1009caa0
leave
ret

Function at 0x100b30e3
Capabilities:
Parse pe header

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

Function at 0x100b42d5
Capabilities:
Print debug messages

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100f1f54
push 0x100f1f4c
push str.FlsAlloc
push 0x1f
call fcn.100b49cb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100b4ba3
push dword [ebp + 8]
mov ecx, esi
call dword [0x100c42ac]
call esi
jmp 0x100b4ba9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100b4bed
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100f1f64
push 0x100f1f5c
push str.FlsGetValue
push 0x21
call fcn.100b49cb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100b4c24
push dword [ebp + 8]
mov ecx, esi
call dword [0x100c42ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100b4c2c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100f1f6c
push 0x100f1f64
push str.FlsSetValue
push 0x22
call fcn.100b49cb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100b4c66
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100c42ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100b704a
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 + 0x101511a8]
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 0x100b708a
cmp byte [ebx], 0xa
jne 0x100b708a
or byte [edi + eax + 0x28], 4
jmp 0x100b708f
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 0x100b718e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100b7171
inc eax
cmp dl, 0xd
je 0x100b70bb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100b70e1
cmp eax, ecx
jae 0x100b70ef
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 0x100b70a3
jmp 0x100b718e
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 0x100b716c
cmp dword [ebp - 0x10], 0
je 0x100b716c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101511a8]
test byte [eax + edi + 0x28], 0x48
je 0x100b7146
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100b7131
mov byte [esi], dl
jmp 0x100b7142
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101511a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100b718e
cmp byte [ebp - 1], 0xa
jne 0x100b7155
cmp esi, ebx
jne 0x100b7155
mov byte [esi], 0xa
jmp 0x100b718d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100b7d6a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100b718e
mov byte [esi], 0xd
jmp 0x100b718d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101511a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100b718b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100b718e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100b7197
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 + 0x101511a8]
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 0x100b71dd
cmp word [ebx], dx
jne 0x100b71dd
or byte [eax + edi + 0x28], 4
jmp 0x100b71e2
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 0x100b7345
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 0x100b7325
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100b7223
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100b7259
cmp eax, edx
jae 0x100b7267
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 0x100b71fe
jmp 0x100b7345
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 0x100b7320
cmp dword [ebp - 0x18], 0
je 0x100b7320
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101511a8]
test byte [eax + edi + 0x28], 0x48
je 0x100b72f6
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 0x100b72ba
mov word [esi], cx
jmp 0x100b72f1
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101511a8]
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 + 0x101511a8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101511a8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100b7345
pop eax
cmp word [ebp - 4], ax
jne 0x100b7306
cmp esi, ebx
jne 0x100b7306
mov word [esi], ax
jmp 0x100b7342
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100b7d6a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100b7345
push 0xd
pop eax
jmp 0x100b7301
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101511a8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100b733f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100b7345
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 0x100bb91b
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 0x100bb9b8
push ebx
push esi
call fcn.100bb8e4
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.100bb878
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100bb965
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100bb9b7
push edi
push eax
call fcn.100b8320
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100bb985
call fcn.100b4844
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100bb9b6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100bb878
add esp, 0x20
test eax, eax
jne 0x100bb9a4
push edi
call fcn.100b4844
jmp 0x100bb9ac
push ebx
call fcn.100b4844
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 0x100c0181
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.100c00fd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100c02f0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100c02f0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100c02a5
jg 0x100c01dd
test eax, eax
je 0x100c029b
push 1
push 0x1000
call fcn.100b47e7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100c0200
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100c0292
push 0x8000
push ebx
call fcn.100c002e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100c0229
jg 0x100c0224
cmp ecx, 0x1000
jb 0x100c0229
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100b6e2e
add esp, 0x10
cmp eax, 0xffffffff
je 0x100c026e
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 0x100c0224
jl 0x100c0255
test ecx, ecx
jne 0x100c0216
push dword [ebp - 0xc]
push ebx
call fcn.100c002e
push esi
call fcn.100b4844
add esp, 0xc
xor ebx, ebx
jmp 0x100c02fe
cmp byte [edi + 0x24], 0
je 0x100c0285
cmp dword [edi + 0x20], 5
jne 0x100c0285
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100c0290
mov ebx, dword [edi + 0x18]
jmp 0x100c0292
xor ebx, ebx
push esi
call fcn.100b4844
pop ecx
jmp 0x100c02fe
test ecx, ecx
jg 0x100c0267
jl 0x100c02a5
test eax, eax
jae 0x100c0267
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100b7d6a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100c02c5
cmp byte [edi + 0x1c], 0
je 0x100c0267
jmp 0x100c02f6
push ebx
call fcn.100bc485
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100c0267
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 0x100c02fe
cmp byte [edi + 0x1c], 0
je 0x100c02fb
mov ebx, dword [edi + 0x18]
jmp 0x100c02fe
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100b7d6a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100c1530
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100c155d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100c155d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405c73
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c56c], 0
push esi
jne 0x405caa
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c84
mov dword [ecx*4 + 0x42c568], eax
inc ecx
cmp ecx, 0x100
jl 0x405c7f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cdb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c568]
xor eax, esi
inc ecx
dec edx
jne 0x405cbd
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx