joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000be30
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
cmp ebx, 1
mov eax, edi
sbb eax, 0
jl 0x1000bf2d
mov esi, ecx
mov ebp, dword [esp + 0x20]
cmp dword [ecx + 0x38], 0
mov dword [esp], ecx
jne 0x1000bed3
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x1000bf36
mov ecx, dword [esi + 0x2c]
mov edi, dword [ecx]
test edi, edi
je 0x1000bf45
cmp edi, ebx
cmovae edi, ebx
push edi
push eax
push ebp
call fcn.1002af50
add esp, 0xc
add ebp, edi
mov ecx, esi
mov esi, ebx
sub esi, edi
mov eax, dword [ecx + 0x2c]
sub dword [eax], edi
mov eax, dword [ecx + 0x1c]
add dword [eax], edi
jmp 0x1000bf49
mov dword [esp + 4], edx
push esi
push eax
push ebp
call fcn.1002af50
add esp, 0xc
add ebp, esi
sub ebx, esi
sbb edi, dword [esp + 4]
mov ecx, dword [esp]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
mov eax, ebx
neg eax
mov eax, 0
sbb eax, edi
jge 0x1000bf18
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x1000bf00
mov ecx, dword [esi + 0x2c]
mov ecx, dword [ecx]
test ecx, ecx
jle 0x1000bf00
cmp ebx, ecx
mov edx, edi
sbb edx, 0
mov edx, edi
mov esi, ebx
jb 0x1000bea0
xor edx, edx
mov esi, ecx
jmp 0x1000bea0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x1000bf18
mov byte [ebp], al
inc ebp
add ebx, 0xffffffff
adc edi, 0xffffffff
jmp 0x1000bec6
mov eax, dword [esp + 0x24]
sub eax, ebx
mov ebx, eax
mov eax, dword [esp + 0x28]
sbb eax, edi
mov edi, eax
jmp 0x1000bfdc
xor ebx, ebx
xor edi, edi
jmp 0x1000bfdc
mov ecx, esi
mov esi, ebx
cmp dword [ecx + 0x4c], 0
jne 0x1000bf57
jmp 0x1000bfd7
mov ecx, esi
mov esi, ebx
mov edi, dword [esp + 0x28]
cmp dword [ecx + 0x4c], 0
je 0x1000bfd7
mov eax, dword [ecx + 0xc]
add ecx, 0x3c
cmp dword [eax], ecx
jne 0x1000bf90
mov ecx, dword [esp]
mov edx, dword [ecx + 0x50]
mov dword [esp + 8], edx
mov edx, dword [ecx + 0x54]
mov dword [esp + 4], edx
mov edx, dword [esp + 8]
mov dword [eax], edx
mov eax, dword [ecx + 0x1c]
mov dword [eax], edx
sub dword [esp + 4], edx
mov eax, dword [ecx + 0x2c]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
nop word [eax + eax]
cmp esi, 0x1000
jb 0x1000bfbb
mov eax, dword [esp]
push dword [eax + 0x4c]
push 0xfff
push 1
push ebp
call fcn.100324d0
add esp, 0x10
add ebp, eax
sub esi, eax
cmp eax, 0xfff
je 0x1000bf90
jmp 0x1000bfd7
test esi, esi
je 0x1000bfd5
mov eax, dword [esp]
push dword [eax + 0x4c]
push esi
push 1
push ebp
call fcn.100324d0
add esp, 0x10
sub esi, eax
jmp 0x1000bfd7
xor esi, esi
sub ebx, esi
sbb edi, 0
mov eax, ebx
mov edx, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x1000fe60
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
sub esp, 8
mov esi, dword [esp + 0x14]
mov eax, dword [0x1005a900]
xor eax, esp
mov dword [esp + 4], eax
test esi, esi
je 0x1000fea6
mov dword [esp], 0x40
mov edi, esp
push edi
push 0x40
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000fea6
movzx eax, byte [esp + 0x18]
mov byte [esi], al
push edi
push dword [esp + 4]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100100a7
add esp, 8
pop esi
pop edi
ret

Function at 0x1000fec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [esp + 0x1c]
mov eax, dword [0x1005a900]
xor eax, esp
mov dword [esp + 4], eax
test esi, esi
je 0x1000ffd6
mov eax, dword [esp + 0x24]
mov dword [esp], 0
mov ebp, eax
lea edi, [eax + 5]
mov ebx, esp
push ebx
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000ffd6
test edi, edi
je 0x1000ffc9
mov byte [esi], 0xe8
cmp edi, 1
je 0x1000ffc9
mov eax, dword [esp + 0x20]
sub eax, esi
add eax, 0xfffffffb
mov byte [esi + 1], al
cmp edi, 2
je 0x1000ffc9
mov byte [esi + 2], ah
cmp edi, 3
je 0x1000ffc9
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 3], cl
cmp edi, 4
je 0x1000ffc9
shr eax, 0x18
mov byte [esi + 4], al
mov eax, ebp
test ebp, ebp
je 0x1000ffc9
mov ecx, 5
mov eax, ebp
cmp ebp, 8
jb 0x1000ffc0
xor eax, eax
mov edx, ebp
cmp ebp, 0x20
jb 0x1000ff94
mov eax, edx
and eax, 0xffffffe0
xor ecx, ecx
movaps xmm0, xmmword [0x1004d590]
movups xmmword [esi + ecx + 5], xmm0
movups xmmword [esi + ecx + 0x15], xmm0
add ecx, 0x20
cmp eax, ecx
jne 0x1000ff78
cmp eax, edx
je 0x1000ffc9
mov edx, ebp
test dl, 0x18
je 0x1000ffb5
and edx, 0xfffffff8
lea ecx, [edx + 5]
movsd xmm0, qword [0x1004d5a0]
movsd qword [esi + eax + 5], xmm0
add eax, 8
cmp edx, eax
jne 0x1000ffa2
cmp edx, ebp
jne 0x1000ffc0
jmp 0x1000ffc9
or eax, 5
mov ecx, eax
nop word [eax + eax]
mov byte [esi + ecx], 0x90
inc ecx
cmp edi, ecx
jne 0x1000ffc0
push ebx
push dword [esp + 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100100a7
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10014359
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10014380
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10014383
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10014335
pop esi
leave
ret 8
Function at 0x10014d12
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x10014d35
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x10014d23
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x100283a7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.1002df0b
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x100283e6
sub eax, 1
je 0x100283e1
sub eax, 1
je 0x100283dd
xor eax, eax
leave
ret
push 3
jmp 0x100283e8
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x10037e60
Capabilities:
Parse pe header

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

Function at 0x1003a33b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005015c
push 0x10050154
push str.FlsAlloc
push 0x1e
call fcn.1003a897
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003a36f
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1003a375
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1003a3b9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005016c
push 0x10050164
push str.FlsGetValue
push 0x20
call fcn.1003a897
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003a3f0
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1003e7b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100101e0
mov eax, dword [0x1005a900]
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.1003d5f4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1003e7fb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1003e957
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100100c0
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 + 0x1005ca60]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1003e560
mov ecx, dword [esi*4 + 0x1005ca60]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1003e950
cmp eax, dword [edi + ecx + 0x24]
jne 0x1003e950
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003e950
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003e560
add esp, 0x14
test edx, edx
jl 0x1003e950
jg 0x1003e8c6
test eax, eax
jb 0x1003e950
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1003e950
jl 0x1003e8e0
cmp dword [ebp - 0x1008], eax
ja 0x1003e950
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1003e8fe
test ebx, ebx
je 0x1003e937
cmp ecx, edi
jae 0x1003e937
mov al, byte [ecx]
cmp al, 0xd
jne 0x1003e918
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1003e924
cmp byte [ecx + 1], 0xa
jne 0x1003e924
inc ecx
jmp 0x1003e924
movzx eax, al
movsx eax, byte [eax + 0x1005b2d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1003e8fe
cmp edx, ebx
jne 0x1003e8fe
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1003e955
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100100a7
leave
ret
Function at 0x1003f285
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 0x1003f322
push ebx
push esi
call fcn.1003f373
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.1003821b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003f2cf
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003f321
push edi
push eax
call fcn.10038151
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003f2ef
call fcn.10038117
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003f320
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003821b
add esp, 0x20
test eax, eax
jne 0x1003f30e
push edi
call fcn.10038117
jmp 0x1003f316
push ebx
call fcn.10038117
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 0x1003f325
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1003f336
pop esi
ret
push ebx
push edi
push esi
call fcn.1003f373
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10038151
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1003f35e
push ebx
push esi
push edi
call fcn.1002af50
add esp, 0xc
push 0
call fcn.10038117
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1003f3aa
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003f3b5
Function at 0x10040574
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004057f
Function at 0x10040feb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x1005ca60]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1004102b
cmp byte [ebx], 0xa
jne 0x1004102b
or byte [eax + edi + 0x28], 4
jmp 0x10041030
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1004112e
mov al, byte [edx]
cmp al, 0x1a
je 0x10041110
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1004105f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10041084
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1004108e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10041041
jmp 0x1004112e
push 0
lea eax, [ebp - 0xc]
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 0x1004110b
cmp dword [ebp - 0xc], 0
je 0x1004110b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1005ca60]
test byte [eax + edi + 0x28], 0x48
je 0x100410e5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100410d0
mov byte [esi], dl
jmp 0x100410e1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1005ca60]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004112e
cmp byte [ebp - 1], 0xa
jne 0x100410f4
cmp esi, ebx
jne 0x100410f4
mov byte [esi], 0xa
jmp 0x1004112d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003e502
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004112e
mov byte [esi], 0xd
jmp 0x1004112d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1005ca60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004112a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004112e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10041137
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1005ca60]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1004117a
cmp word [esi], dx
jne 0x1004117a
or byte [edi + eax + 0x28], 4
jmp 0x1004117f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x100412b8
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10041298
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100411c1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100411f7
cmp eax, edx
jae 0x10041203
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10041199
jmp 0x100412b8
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10041294
cmp dword [ebp - 0x14], 0
je 0x10041294
mov eax, dword [ebx*4 + 0x1005ca60]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1004126c
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x100412b2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1005ca60]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x1005ca60]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1005ca60]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x100412b5
pop ebx
cmp word [ebp - 4], bx
jne 0x1004127d
cmp esi, dword [ebp + 0xc]
jne 0x1004127d
mov word [esi], bx
jmp 0x100412b5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003e502
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100412b8
push 0xd
jmp 0x100412b1
mov ecx, dword [ebx*4 + 0x1005ca60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100412af
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100412b8
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10049624
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]
push dword [ebp + 0xc]
push ebx
call fcn.100497c7
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1004979c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1004979c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1004974b
jg 0x1004967d
test eax, eax
je 0x10049741
push 1
push 0x1000
call fcn.1003b1c5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100496a3
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10049738
push 0x8000
push ebx
call fcn.1004951e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100496cf
jg 0x100496ca
cmp ecx, 0x1000
jb 0x100496cf
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1003fabe
add esp, 0x10
cmp eax, 0xffffffff
je 0x10049714
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 0x100496ca
jl 0x100496fb
test ecx, ecx
jne 0x100496bc
push dword [ebp - 0xc]
push ebx
call fcn.1004951e
push esi
call fcn.10038117
add esp, 0xc
xor edi, edi
jmp 0x100497ad
cmp byte [edi + 0x24], 0
je 0x1004972b
cmp dword [edi + 0x20], 5
jne 0x1004972b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10049736
mov edi, dword [edi + 0x18]
jmp 0x10049738
xor edi, edi
push esi
call fcn.10038117
pop ecx
jmp 0x100497ad
test ecx, ecx
jg 0x1004970d
jl 0x1004974b
test eax, eax
jae 0x1004970d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003e502
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1004976e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1004970d
jmp 0x100497a5
push ebx
call fcn.10045808
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1004970d
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100497ad
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100497aa
mov edi, dword [edi + 0x18]
jmp 0x100497ad
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1003e502
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001490
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002603d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
mov dword [ebp - 0x1a4], ecx
mov ecx, dword [ebp - 0x1a4]
add ecx, 4
call fcn.10001000
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1a4]
add ecx, 0x14
call fcn.10001000
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a4]
add ecx, 0x24
call fcn.10001000
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1a4]
add ecx, 0x34
call fcn.10001000
mov eax, dword [ebp - 0x1a4]
mov dword [eax], 0x10027500
lea ecx, [ebp - 0x19c]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp - 0x1a4]
mov dword [edx + 0x4c], eax
mov eax, dword [ebp - 0x1a4]
mov byte [eax + 0x53], 0
mov ecx, dword [ebp - 0x1a4]
mov dword [ecx + 0x48], 0xffffffff
mov byte [ebp - 0x1a0], 0x68
mov byte [ebp - 0x19f], 0x78
mov byte [ebp - 0x19e], 0x20
push 3
lea edx, [ebp - 0x1a0]
push edx
mov eax, dword [ebp - 0x1a4]
add eax, 0x50
push eax
call fcn.100118b0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10001652
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
cmp dword [0x1003e7f0], 0
je 0x1000166b
xor al, al
jmp 0x10001793
mov ecx, dword [ebp - 0x2c]
call fcn.10001c7f
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0x53], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x48], 0xffffffff
jne 0x100016a9
xor al, al
jmp 0x10001793
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x100016ca
xor al, al
jmp 0x10001793
mov word [ebp - 0x14], 2
mov cx, word [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x48]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000170b
xor al, al
jmp 0x10001793
mov dword [ebp - 4], 1
push 4
lea eax, [ebp - 4]
push eax
push 8
push 0xffff
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x48]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10001769
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], reloc.USER32.dll_SendMessageA
mov dword [ebp - 0x20], 0x1388
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea ecx, [ebp - 0x28]
push ecx
push 0x98000004
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x53], 1
push 0
push 0
push 0
mov edx, dword [ebp - 0x2c]
push edx
push 0x10001799
push 0
push 0
call fcn.10010a52
add esp, 0x1c
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x44], eax
mov al, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x10001c7f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov word [ebp - 4], 1
mov word [ebp - 2], 0
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x48]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0
mov edx, dword [ebp - 8]
add edx, 0x53
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x48]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x48], 0xffffffff
mov esp, ebp
pop ebp
ret