joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1018d29c
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 + 0x102512a8]
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 0x1018d2e2
cmp word [ebx], dx
jne 0x1018d2e2
or byte [eax + edi + 0x28], 4
jmp 0x1018d2e7
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 0x1018d44a
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 0x1018d42a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1018d328
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1018d35e
cmp eax, edx
jae 0x1018d36c
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 0x1018d303
jmp 0x1018d44a
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 0x1018d425
cmp dword [ebp - 0x18], 0
je 0x1018d425
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x102512a8]
test byte [eax + edi + 0x28], 0x48
je 0x1018d3fb
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 0x1018d3bf
mov word [esi], cx
jmp 0x1018d3f6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x102512a8]
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 + 0x102512a8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x102512a8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1018d44a
pop eax
cmp word [ebp - 4], ax
jne 0x1018d40b
cmp esi, ebx
jne 0x1018d40b
mov word [esi], ax
jmp 0x1018d447
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1018de6f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1018d44a
push 0xd
pop eax
jmp 0x1018d406
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x102512a8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1018d444
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1018d44a
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 0x101908f7
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 0x10190994
push ebx
push esi
call fcn.101908c0
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.10190854
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10190941
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10190993
push edi
push eax
call fcn.10189ea3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10190961
call fcn.10189e69
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10190992
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10190854
add esp, 0x20
test eax, eax
jne 0x10190980
push edi
call fcn.10189e69
jmp 0x10190988
push ebx
call fcn.10189e69
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 0x10190997
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x101909a8
pop esi
ret
push ebx
push edi
push esi
call fcn.101908c0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10189ea3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x101909d0
push ebx
push esi
push edi
call fcn.10177320
add esp, 0xc
push 0
call fcn.10189e69
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1019112a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10190c45

Function at 0x1019479c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1024ee80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x101947df
call fcn.1018226f
mov dword [eax], 0xf
call fcn.10182282
mov dword [eax], 0xd
call fcn.10179b1f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10175bf0
leave
ret
test eax, eax
jne 0x101947e6
inc eax
jmp 0x101947d3
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x101947d1
xor eax, eax
cmp ecx, 1
setne al
jmp 0x101947d3
Function at 0x1019615f
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.101960db
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x101962ce
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x101962ce
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10196283
jg 0x101961bb
test eax, eax
je 0x10196279
push 1
push 0x1000
call fcn.1018b55d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x101961de
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10196270
push 0x8000
push ebx
call fcn.101823e2
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10196207
jg 0x10196202
cmp ecx, 0x1000
jb 0x10196207
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1018c80b
add esp, 0x10
cmp eax, 0xffffffff
je 0x1019624c
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 0x10196202
jl 0x10196233
test ecx, ecx
jne 0x101961f4
push dword [ebp - 0xc]
push ebx
call fcn.101823e2
push esi
call fcn.10189e69
add esp, 0xc
xor ebx, ebx
jmp 0x101962dc
cmp byte [edi + 0x24], 0
je 0x10196263
cmp dword [edi + 0x20], 5
jne 0x10196263
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1019626e
mov ebx, dword [edi + 0x18]
jmp 0x10196270
xor ebx, ebx
push esi
call fcn.10189e69
pop ecx
jmp 0x101962dc
test ecx, ecx
jg 0x10196245
jl 0x10196283
test eax, eax
jae 0x10196245
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1018de6f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101962a3
cmp byte [edi + 0x1c], 0
je 0x10196245
jmp 0x101962d4
push ebx
call fcn.1018e297
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10196245
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 0x101962dc
cmp byte [edi + 0x1c], 0
je 0x101962d9
mov ebx, dword [edi + 0x18]
jmp 0x101962dc
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1018de6f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10197880
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x2580f46f
pop dword [ebp - 0x2c]
mov eax, 0x9d314def
add eax, 0x884fa680
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x3b64b222
add dword [ebp - 0x3c], 0x12ed9329
mov dword [ebp - 0x38], 0xf70649fe
add dword [ebp - 0x38], 0x3b2d0247
mov dword [ebp - 0x34], 0x9872fcd9
sub dword [ebp - 0x34], 0x4c26b8ab
mov dword [ebp - 0x30], 0x4fe2436d
add dword [ebp - 0x30], 0xb01dbc93
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x333069db
sub eax, 0xdae9997
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x26f0d775
add dword [ebp - 0x3c], 0x4d8191e1
mov dword [ebp - 0x38], 0x34c31865
add dword [ebp - 0x38], 0xca94910
mov dword [ebp - 0x34], 0x4101d71b
add dword [ebp - 0x34], 0x226d9551
mov dword [ebp - 0x30], 0xbb4c91ff
add dword [ebp - 0x30], 0x44b36e01
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xb02de0ff
add eax, 0x7553ef81
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a398
push 0
call eax
mov ecx, 0x8367e184
add ecx, 0x7c985bf9
mov esi, eax
mov edx, 0x8ddb62e9
add edx, 0x97a73317
add edx, dword [ebp - 0x2c]
mov ebx, 0x8560bddd
mov edi, dword [edx]
xor dword [ebp - 0x24], edi
sub edi, ebx
sub dword [ebp - 0x1c], esi
mov dword [esi], edi
xor dword [ebp - 0xc], eax
add esi, 0x1b91b895
add esi, 0xe46e476f
add edx, 0x9020044c
sub edx, 0x90200448
loop 0x2580f58b
add eax, 0xe681c2a1
add eax, 0x197f2626
mov ebx, eax
add eax, 0xb673d71f
sub eax, 0xb673d71a
mov ecx, 0xdf652654
sub ecx, 0xb9e52654
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x4fec00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcb000]
push edi
or ebp, 0xffffffff
jmp 0x4fec22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fec29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fec18
mov eax, 1
add ebx, ebx
jne 0x4fec3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fec4c
jne 0x4fec6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fec6b
dec eax
add ebx, ebx
jne 0x4fec58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fec30
add ebx, ebx
jne 0x4fec67
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fecbd
xor ecx, ecx
sub eax, 3
jb 0x4fec83
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fecf2
sar eax, 1
mov ebp, eax
jmp 0x4fec8e
add ebx, ebx
jne 0x4fec8e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fec5c
inc ecx
add ebx, ebx
jne 0x4fec9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fec5c
add ebx, ebx
jne 0x4feca9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fec9e
jne 0x4fecba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fec9e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fecdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fecce
jmp 0x4fec1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fecdc
add edi, ecx
jmp 0x4fec1e
pop esi
mov edi, esi
mov ecx, 0x15ff
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fecfa
cmp byte [edi], 0x13
jne 0x4fecfa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4fecff
lea edi, [esi + 0xf9000]
mov eax, dword [edi]
or eax, eax
je 0x4fed77
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xff3b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xff4d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fed2c
mov ecx, edi
jns 0x4fed5b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xff4e0]
or eax, eax
je 0x4fed71
mov dword [ebx], eax
add ebx, 4
jmp 0x4fed49
call dword [esi + 0xff4dc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4feda8
cmp al, 0xef
ja 0x4fed9b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4fed7d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4fed8a
mov ebp, dword [esi + 0xff4e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4feddc
sub esp, 0xffffff80
jmp 0x438544
Function at 0x10003be0
Capabilities:
List tcp connections and listeners

Disassembly:
push ecx
push ebp
push esi
push edi
push dword [esp + 0x14]
xor edi, edi
call dword [sym.imp.WS2_32.dll_htons]
push 0x1c
movzx ebp, ax
pop eax
push eax
mov dword [esp + 0x10], eax
call fcn.1008584a
mov esi, eax
pop ecx
test esi, esi
je 0x10003c74
push ebx
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
lea eax, [esp + 0x10]
push edi
push 5
push 2
push 1
push eax
push esi
call ebx
cmp eax, 0x7a
jne 0x10003c48
push esi
call fcn.1008582f
push dword [esp + 0x14]
call fcn.1008584a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10003c73
push edi
push 5
push 2
push 1
lea eax, [esp + 0x20]
push eax
push esi
call ebx
test eax, eax
jne 0x10003c6c
mov ecx, edi
cmp dword [esi], ecx
jbe 0x10003c6c
mov ebx, ebp
mov eax, esi
lea edx, [eax + 0x18]
movzx eax, word [eax + 0xc]
cmp eax, ebx
je 0x10003c6a
inc ecx
mov eax, edx
cmp ecx, dword [esi]
jb 0x10003c56
jmp 0x10003c6c
mov edi, dword [edx]
push esi
call fcn.1008582f
pop ecx
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x10006211
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4
Function at 0x1000eb50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a09d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100ce814]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
lea edi, [ebx + 4]
mov dword [ebx], 0x10000
mov dword [ebp - 0x14], edi
call fcn.100115c0
mov dword [edi], eax
call fcn.100115c0
lea esi, [edi + 8]
add eax, 0x14
mov dword [edi + 4], eax
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.1007c352
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
lea esi, [edi + 0x1c]
mov dword [ebp - 4], 0
push 0x14
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1007c352
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, dword [edi]
mov dword [edi + 0x24], 0x1000
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0x1000
mov eax, dword [eax + 0x10]
mov dword [edi + 0x30], eax
mov dword [ebp - 4], 1
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0xf
mov byte [ebx + 0x38], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0xf
mov byte [ebx + 0x5c], 0
mov byte [ebp - 4], 4
mov ecx, dword [0x100d3c28]
mov byte [ebx + 0x74], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100d4884]
cmp eax, dword [ecx + 4]
jg 0x1000ecf5
mov eax, dword [0x100d4880]
mov dword [ebx + 0x78], eax
mov eax, ebx
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x90], 0xf
mov byte [ebx + 0x7c], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 0xf
mov byte [ebx + 0x94], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100d4884
call fcn.1007c7dd
add esp, 4
cmp dword [0x100d4884], 0xffffffff
jne 0x1000ec95
mov byte [ebp - 4], 5
call fcn.100113f0
push 0x100a55a0
call fcn.1007c695
push 0x100d4884
call fcn.1007c793
add esp, 8
jmp 0x1000ec95

Function at 0x10013660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp dword [ebp + 0x10], 0
xorps xmm0, xmm0
push ebx
push esi
push edi
movlpd qword [esp + 0x10], xmm0
jb 0x100136ba
mov edi, dword [ebp + 0xc]
ja 0x10013684
test edi, edi
je 0x100136ba
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
nop dword [eax]
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov edx, dword [ebp + 0x18]
and ecx, 7
shl ecx, 3
call fcn.1007c910
mov ecx, dword [ebp + 8]
xor byte [esi + ecx], al
add esi, 1
adc ebx, 0
cmp ebx, dword [ebp + 0x10]
jb 0x10013690
ja 0x100136ba
cmp esi, edi
jb 0x10013690
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10018f10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0xbc]
cmp eax, dword [esi + 0xdc]
jb 0x10018fad
cmp byte [0x100d2da8], 0
je 0x10018f93
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100d3c28]
movaps xmm0, xmmword [0x100bc040]
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x30], 0x60b78c5f
mov ecx, dword [eax + ecx*4]
movaps xmm0, xmmword [0x100bb9a0]
mov eax, dword [0x100d4e1c]
movups xmmword [esp + 0x20], xmm0
mov byte [esp + 0x34], 0xbb
cmp eax, dword [ecx + 4]
jg 0x10018fb2
mov ecx, 0x100cfa00
call fcn.10016100
push 0x100cfa00
push 5
call fcn.100546cc
add esp, 8
mov ecx, esi
call fcn.10018830
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
mov dword [esi + 0xbc], eax
call fcn.100197c0
pop esi
mov esp, ebp
pop ebp
ret
push 0x100d4e1c
call fcn.1007c7dd
add esp, 4
cmp dword [0x100d4e1c], 0xffffffff
jne 0x10018f7a
xorps xmm0, xmm0
mov byte [0x100cfa25], 1
movlpd qword [esp + 8], xmm0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
jmp 0x10018fe2
mov al, byte [esp + ecx + 0x10]
mov byte [ecx + 0x100cfa00], al
add ecx, 1
adc edx, 0
jne 0x10018ffb
cmp ecx, 0x25
jb 0x10018fe2
jmp 0x10018ffb
push 0x100a58e0
call fcn.1007c695
add esp, 4
push 0x100d4e1c
call fcn.1007c793
add esp, 4
jmp 0x10018f7a
Function at 0x10022990
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0df0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1007c352
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1007b313
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x20], ecx
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
mov dword [eax + 0x34], esi
lea esi, [eax + 8]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov esi, dword [ebp - 0x10]
not ecx
and ecx, 1
mov dword [edi], 0
shl ecx, 2
mov eax, ebx
mov dword [edx], 0
mov edx, ecx
or edx, 2
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
and al, 2
mov dword [esi + 0x38], 0
mov eax, ebx
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
pop edi
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10023fa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a18ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push 8
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0xc], 0
call fcn.1007c352
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1007b313
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.1000a4c8
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
mov edx, dword [esi]
mov bl, al
call dword [edx + 8]
test eax, eax
je 0x10024081
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], bl
jne 0x1002409d
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
and eax, 0x13
or eax, 4
mov dword [edi + 0xc], eax
and ecx, eax
jne 0x100240bf
cmp byte [ebp + 0xc], 0
je 0x100240ac
push edi
call fcn.1007b79d
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x100240cb
mov esi, str.ios_base::badbit_set
jmp 0x100240db
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10001d03
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.10001f6a
push 0x100c8c78
lea eax, [ebp - 0x28]
push eax
call fcn.1007dfce
int3
Function at 0x10024390
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
cmp dword [ecx + 0x14], 0x10
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], 0
jb 0x100243ae
mov ecx, dword [ecx]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1002447d
mov esi, dword [esp + 0xc]
test esi, esi
je 0x1002448c
cmp dword [esi + 4], 0x17
jne 0x10024427
mov eax, dword [esi + 0x18]
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov byte [esp + 0x24], 1
movups xmm0, xmmword [eax + 8]
mov eax, dword [edi + 4]
movups xmmword [esp + 0x14], xmm0
cmp eax, dword [edi + 8]
je 0x1002441a
movups xmm0, xmmword [esp + 0x10]
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [eax + 0x10], xmm0
add dword [edi + 4], 0x18
jmp 0x10024427
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.10024640
cmp dword [esi + 4], 2
jne 0x10024472
mov eax, dword [esi + 0x18]
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
mov byte [esp + 0x24], 0
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x10024465
movups xmm0, xmmword [esp + 0x10]
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [eax + 0x10], xmm0
add dword [edi + 4], 0x18
jmp 0x10024472
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.10024640
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100243d2
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1002448c
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop edi
pop esi
mov esp, ebp
pop ebp
ret