joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6cdec0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x724857
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x74c890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.006cca60
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.006cca60
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.006cca60
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.006cd510
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.006cd510
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.006cd510
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
mov word [edx + 0x30], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x32]
mov word [edx + 0x32], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x71bc7b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x71bd00
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.006f6dc0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x71bcc3
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x71bce5
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x71bd5b
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.0071b9cb
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x71bd47
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x71bd5b
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x71bc84
pop esi
pop ebx
leave
ret
Function at 0x40144c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov esi, dword [esp + 0x90]
and esi, 0xffff0000
mov eax, esi
cmp word [eax], 0x5a4d
jne 0x40146b
add eax, dword [eax + 0x3c]
sub esi, 0x10000
cmp word [eax], 0x4550
jne 0x40145f
add esi, 0x10000
push esi
mov eax, 0x40300c
pop dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004013b4
mov dword [0x403106], eax
push 0x403023
push 0x3e8
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x4014af
leave
ret 8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x4014c0
leave
ret 8
mov dword [ebp - 8], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4014d4
leave
ret 8
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x4014e2
leave
ret 8
mov dword [ebp - 0xc], eax
push 4
push 0x3000
push dword [ebp - 8]
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
jne 0x4014fe
leave
ret 8
push eax
mov esi, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 8]
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [esp + 0xc]
call fcn.004012a8
mov ebx, dword [esp]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
pop eax
push ebx
push 0x8000
push 0
push eax
call sub.kernel32.dll_VirtualFree
mov ebx, dword [ebp + 0xc]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
mov dword [ebp - 4], ebx
mov ebx, dword [esp]
add ebx, dword [ebp + 0xc]
and ebx, 0xffff0000
add ebx, 0x10000
push 0x40
push 0x3000
push dword [ebp - 4]
push ebx
call sub.kernel32.dll_VirtualAlloc
or eax, eax
je 0x401551
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
push eax
sub eax, dword [ebp + 0xc]
add dword [ebp + 8], eax
mov ebx, 0x4015cb
add ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov ebx, 0x401c67
add ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x14]
push ebx
push 0x401037
push dword [ebp + 0xc]
call fcn.00401274
pop eax
pop ebx
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, 0x401836
nop
nop
add eax, dword [ebp + 8]
nop
call eax
nop
leave
ret 8

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4084e4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x4266d4], 0
mov ebp, esp
push edi
mov ecx, dword [ebp + 0xc]
push esi
push ebx
mov ebx, dword [ebp + 0x10]
jne 0x408525
xor edx, edx
mov eax, edx
mov esi, 8
mov edi, eax
and eax, 1
neg eax
shr edi, 1
and eax, 0xedb88320
xor eax, edi
dec esi
jne 0x408502
mov dword [edx*4 + 0x4266d0], eax
inc edx
cmp edx, 0x100
jne 0x4084fb
mov eax, dword [ebp + 8]
not eax
jmp 0x40853f
mov dl, byte [ecx]
dec ebx
inc ecx
xor edx, eax
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x4266d0]
test ebx, ebx
jne 0x40852c
pop ebx
not eax
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
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 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0
Function at 0x347ea89f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x347765c8]
jne 0x347eb289
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x347ee7f0], eax
mov dword [0x347ee7ec], ecx
mov dword [0x347ee7e8], edx
mov dword [0x347ee7e4], ebx
mov dword [0x347ee7e0], esi
mov dword [0x347ee7dc], edi
mov word [0x347ee808], ss
mov word [0x347ee7fc], cs
mov word [0x347ee7d8], ds
mov word [0x347ee7d4], es
mov word [0x347ee7d0], fs
mov word [0x347ee7cc], gs
pushfd
pop dword [0x347ee800]
mov eax, dword [ebp]
mov dword [0x347ee7f4], eax
mov eax, dword [ebp + 4]
mov dword [0x347ee7f8], eax
lea eax, [ebp + 8]
mov dword [0x347ee804], eax
mov eax, dword [ebp - 0x320]
mov dword [0x347ee740], 0x10001
mov eax, dword [0x347ee7f8]
mov dword [0x347ee6f4], eax
mov dword [0x347ee6e8], 0xc0000409
mov dword [0x347ee6ec], 1
mov eax, dword [0x347765c8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x347ed254]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x347ee738], eax
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x3477694c
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x347ee738], 0
jne 0x347eb379
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x347eb788
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x347eb797
pop dword [ebp - 0x20]
mov eax, 0x347eb797
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x5861d5fa
sub dword [ebp - 0x30], 0xa0f90af
mov dword [ebp - 0x2c], 0x7c236756
sub dword [ebp - 0x2c], 0x49f01b11
mov dword [ebp - 0x28], 0x22342f9a
add dword [ebp - 0x28], 0x2a181494
mov dword [ebp - 0x24], 0xd5253b11
add dword [ebp - 0x24], 0x2adac4ef
lea eax, [ebp - 0x30]
push eax
mov eax, 0x5f5a1a07
add eax, 0xd51cf6e9
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xe5efbd89
sub dword [ebp - 0x30], 0x717d5433
mov dword [ebp - 0x2c], 0xd1b52186
add dword [ebp - 0x2c], 0x6fb73fef
mov dword [ebp - 0x28], 0xab5afff8
add dword [ebp - 0x28], 0xb8146c74
mov dword [ebp - 0x24], 0x3d8070a7
sub dword [ebp - 0x24], 0x3d8070a7
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x1b51c81d
add eax, 0x19254963
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x34640
push 0
call eax
mov ecx, 0x32ac980d
sub ecx, 0x32ac5a1e
mov ebx, eax
mov edx, 0x4bece337
sub edx, 0x176d7337
add edx, dword [ebp - 0x20]
mov edi, 0xb8f5ab88
add edi, 0x5eff1123
mov esi, dword [edx]
xor dword [ebp - 0x14], 0x23558a33
sub esi, edi
xor dword [ebp - 0x18], esi
mov dword [ebx], esi
xor dword [ebp - 0x1c], edx
add ebx, 0xf419bc29
sub ebx, 0xf419bc25
add edx, 4
loop 0x347eb8b4
add eax, 0x137257c0
add eax, 0xec8e92cf
mov ebx, eax
add eax, 0x15325098
add eax, 0xeacdaf6d
mov ecx, sym.acerep.dll_Ordinal_2003
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x100074c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1018b440
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x101f971c], 1
jge 0x1018b4af
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x1018b485
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x1018b485
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x1018b462
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x1018b49b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x1018b4a2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x1018b59f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x1018b570
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1018b565
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x1018b559
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x1018b560
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x1018b59f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x1018b59a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x1018b583
mov eax, dword [ebx + 8]
jmp 0x1018b59f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x1018b591
xor eax, eax
jmp 0x1018b59f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x1018b4cf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x10008139
Capabilities:
Print debug messages

Disassembly:
jmp 0x1008335f
push esi
mov esi, ecx
call fcn.100088b4
mov eax, 0x10000000
mov dword [esi], 0x38
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0xe00
mov dword [esi + 0x10], 0x101afe28
call fcn.10003f03
test eax, eax
jns 0x100833ae
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100833a7
push str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x101f8a58], 1
mov eax, esi
pop esi
ret
Function at 0x1002ddb0
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
cmp dword [0x101f5a18], 1
je 0x1002ddcb
cmp dword [0x101f5a18], 4
jne 0x1002ddf3
push 0
push 0
push 0
push 0x1000460b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x101f5a18], 0
jne 0x1002de06
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1006cf20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x101f2274]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov byte [eax], 0
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x1006cf8d
push str.WSAStartup_failed
push 0x101f62cc
mov eax, dword [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x1f0]
call fcn.1000330a
push 0x101e98a4
lea ecx, [ebp - 0x1f0]
push ecx
call fcn.1000991c
movzx eax, word [ebp - 0x198]
and eax, 0xff
movzx ecx, al
cmp ecx, 2
jne 0x1006cfb8
movzx eax, word [ebp - 0x198]
shr eax, 8
and eax, 0xff
movzx ecx, al
cmp ecx, 2
je 0x1006cfdf
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.Invalid_WinSock_version
lea ecx, [ebp - 0x1fc]
call fcn.10006ece
push 0x101e98d0
lea eax, [ebp - 0x1fc]
push eax
call fcn.1000991c
mov eax, dword [ebp - 8]
mov byte [eax], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004147
mov esp, ebp
pop ebp
ret

Function at 0x1006d4a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 6
push 1
movzx eax, byte [ebp + 8]
push eax
call fcn.10005bf5
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffff
jne 0x1006d4f8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.Failed_to_create_socket
push 0x101f62cc
push eax
lea ecx, [ebp - 0x5c]
call fcn.1000330a
push 0x101e98a4
lea eax, [ebp - 0x5c]
push eax
call fcn.1000991c
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
push 0x8004667e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x1006d547
mov ecx, dword [ebp - 4]
call fcn.10006186
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.Failed_to_get_socket_flags
push 0x101f62cc
push eax
lea ecx, [ebp - 0x70]
call fcn.1000330a
push 0x101e98a4
lea eax, [ebp - 0x70]
push eax
call fcn.1000991c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10071290
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x100712e2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x100712e2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 8], eax
jmp 0x100712b6
cmp dword [ebp - 8], 0xffffffff
jne 0x100713cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1007139e
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 1
mov ecx, dword [ebp - 4]
call fcn.1000439a
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x1007
push 0xffff
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x10071360
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.Failed_to_get_socket_option
push 0x101f62cc
push eax
lea ecx, [ebp - 0x68]
call fcn.1000330a
push 0x101e98a4
lea eax, [ebp - 0x68]
push eax
call fcn.1000991c
push 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.10007fea
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x1007139c
push str.Failed_to_connect
push 0x101f62cc
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1000330a
push 0x101e98a4
lea ecx, [ebp - 0x7c]
push ecx
call fcn.1000991c
jmp 0x100713cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.Failed_to_connect
push 0x101f62cc
push eax
lea ecx, [ebp - 0x90]
call fcn.1000330a
push 0x101e98a4
lea eax, [ebp - 0x90]
push eax
call fcn.1000991c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10079580
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100797c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1007965d
mov edx, dword [ebp - 4]
cmp edx, dword [0x101f21b8]
jb 0x100795ca
mov eax, dword [ebp - 4]
cmp eax, dword [0x101f21bc]
ja 0x100795ca
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1007959a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10004255
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x100795ef
jmp 0x1007965d
cmp dword [ebp - 0x14], 0x10000
jne 0x10079643
cmp dword [ebp - 0x18], 0x10000
jb 0x10079643
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10079626
mov eax, dword [ebp - 8]
jmp 0x1007965f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10079636
xor eax, eax
jmp 0x1007965f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10079658
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100797c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1007959a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100796a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100797f0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10079775
mov edx, dword [ebp - 4]
cmp edx, dword [0x101f21b8]
jb 0x100796e5
mov eax, dword [ebp - 4]
cmp eax, dword [0x101f21bc]
ja 0x100796e5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100796b5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10004255
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1007970a
jmp 0x10079775
cmp dword [ebp - 0x14], 0x10000
jne 0x1007975e
cmp dword [ebp - 0x18], 0x10000
jb 0x1007975e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10079741
mov eax, dword [ebp - 8]
jmp 0x10079777
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10079751
xor eax, eax
jmp 0x10079777
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10079770
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100797f0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100796b5
xor eax, eax
mov esp, ebp
pop ebp
ret