joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101d8410
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
mov dword [0x101e99b0], 0x1594
call fcn.10001090
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x34], ecx
je 0x101d8455
jmp 0x101d85dc
mov eax, dword [esp + 0x30]
cmp word [eax], 0x5a4d
mov dword [esp + 0x2c], eax
je 0x101d8511
jmp 0x101d8544
lea eax, [esp + 0x48]
mov dword [0x101e99b4], 0x1aa1
mov dword [0x101e99b0], 0x17ad
mov dword [esp + 0x28], eax
call fcn.101d7950
cmp eax, 0
sete cl
mov byte [esp + 0x27], cl
xor eax, eax
mov cl, byte [esp + 0x27]
test cl, 1
mov dword [esp + 0x20], eax
jne 0x101d8496
jmp 0x101d85d4
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.101d7b90
lea ecx, [0x101d6870]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x98], edx
mov dword [0x101e99b4], 0x1364
mov dword [esp + 0x5c], 0x12b200
mov edx, dword [0x101e999c]
mov dword [esp + 0x74], edx
mov edx, dword [0x101e99a0]
mov dword [esp + 0x8c], edx
mov edx, dword [0x101e99a4]
mov dword [esp + 0x58], edx
mov edx, dword [0x101e99a8]
mov dword [esp + 0x70], edx
mov edx, dword [0x101e99ac]
mov dword [esp + 0x4c], edx
mov dword [0x101e99b0], 0x423
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ecx
jmp 0x101d843d
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
sete dl
mov dword [esp + 0x18], ecx
mov byte [esp + 0x17], dl
mov al, byte [esp + 0x17]
test al, 1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
jne 0x101d8563
jmp 0x101d8544
mov eax, dword [esp + 0x2c]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x30], eax
jmp 0x101d843d
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x48]
mov dword [esp + 0x64], eax
mov dword [0x101e99b4], 0x2099
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x90], eax
mov dword [0x101e99b0], 0xa15
mov eax, dword [esp + 0x40]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.101d74e0
mov ecx, dword [0x101e99b0]
add ecx, 0xbd7
mov dword [0x101e99b0], ecx
mov ecx, esp
lea edx, [esp + 0x48]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x101e99b0], 0x1824
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov esp, ebp
pop ebp
ret
Function at 0x42c710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x42c732
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42c739
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42c728
mov eax, 1
add ebx, ebx
jne 0x42c74b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42c740
jne 0x42c75c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42c740
xor ecx, ecx
sub eax, 3
jb 0x42c770
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42c7e2
mov ebp, eax
add ebx, ebx
jne 0x42c77b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42c788
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42c7ac
inc ecx
add ebx, ebx
jne 0x42c798
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42c78d
jne 0x42c7a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42c78d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42c7cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42c7bd
jmp 0x42c72e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42c7cc
add edi, ecx
jmp 0x42c72e
pop esi
mov edi, esi
mov ecx, 0x6ad
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42c7ea
cmp byte [edi], 6
jne 0x42c7ea
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 eax, ebx
loop 0x42c7ef
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x42c867
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e954]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2ea30]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42c81c
mov ecx, edi
jns 0x42c84b
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 + 0x2ea34]
or eax, eax
je 0x42c861
mov dword [ebx], eax
add ebx, 4
jmp 0x42c839
call dword [esi + 0x2ea38]
popal
jmp 0x4194ce
Function at 0x10009250
Capabilities:
Allocate or change rwx memory
Create process on windows
Encode data using base64
Encrypt data using speck
Execute anti-debugging instructions
Execute shellcode via indirect call
Hide graphical window
Parse pe header
Resume thread

Disassembly:
jmp 0x1000d28c
push ebp
or ax, cx
mov ebp, esp
shr ah, cl
sar al, 0x93
push ebx
sub ah, 0x36
movsx eax, cx
push edi
bsf eax, edx
and ax, di
push esi
lea esp, [esp - 0x140]
adc al, bh
shl ax, 0xd
rcl ah, cl
mov eax, dword [0x1006ca00]
xor eax, ebp
stc
cmp sp, sp
mov dword [ebp - 0x10], eax
sbb eax, edi
mov dword [ebp - 0x144], 0x5892fe0b
cmovs ax, bx
shl ah, 0x13
or eax, ebx

Function at 0x1001a8a0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001a8df
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a8df
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a8df
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001a8df
cmp dword [ecx + 0x74], 0xe
jbe 0x1001a8df
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001d59d
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 0x1001d63a
push ebx
push esi
call fcn.1001d566
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.1001d4fa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001d5e7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d639
push edi
push eax
call fcn.1001b5dd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001d607
call fcn.1001c042
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d638
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d4fa
add esp, 0x20
test eax, eax
jne 0x1001d626
push edi
call fcn.1001c042
jmp 0x1001d62e
push ebx
call fcn.1001c042
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 0x1001d8a7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d10
push 0x10025d08
push str.FlsAlloc
push 0x1f
call fcn.1001d7c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d8db
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
jmp 0x1001d8e1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001d925
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d20
push 0x10025d18
push str.FlsGetValue
push 0x21
call fcn.1001d7c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d95c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001d964
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d28
push 0x10025d20
push str.FlsSetValue
push 0x22
call fcn.1001d7c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d99e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10022f40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10022f6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10022f6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41a670
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
xor ecx, ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004042c8
mov eax, dword [ebp - 8]
call fcn.004042c8
xor eax, eax
push ebp
push 0x41a759
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x50], 0x44
xor eax, eax
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x1e], 0
xor eax, eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 4]
call fcn.00407930
push dword [ebp - 0x64]
push 0x41a76c
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404198
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
call fcn.004078fc
mov eax, dword [ebp - 0x68]
call fcn.004042d8
push eax
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.004042d8
push eax
mov eax, dword [ebp - 4]
call fcn.004042d8
push eax
call sub.kernel32.dll_CreateProcessA
push 0xffffffffffffffff
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a760
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00403e3c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403e3c
ret
Function at 0x41a770
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2e
push 0
push 0
dec ecx
jne 0x41a778
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004042c8
xor eax, eax
push ebp
push 0x41a95b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
mov ecx, 0x41a970
mov edx, dword [ebp - 4]
call fcn.00404124
mov eax, dword [ebp - 0x148]
call fcn.004042d8
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
mov eax, ebx
cdq
cmp edx, 0
jne 0x41a7d1
cmp eax, 0xffffffff
je 0x41a928
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x118]
mov ecx, 0x104
call fcn.00404088
mov edx, dword [ebp - 0x14c]
mov eax, 0x41a980
call fcn.0040441c
dec eax
je 0x41a913
mov eax, dword [ebp - 0x144]
and eax, 0x10
cmp eax, 0x10
jne 0x41a8bd
push dword [ebp - 4]
push 0x41a98c
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x118]
mov ecx, 0x104
call fcn.00404088
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.00407930
push dword [ebp - 0x154]
lea eax, [ebp - 0x150]
mov edx, 3
call fcn.00404198
mov eax, dword [ebp - 0x150]
call fcn.0041a770
push dword [ebp - 4]
push 0x41a98c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x118]
mov ecx, 0x104
call fcn.00404088
mov eax, dword [ebp - 0x164]
lea edx, [ebp - 0x160]
call fcn.00407930
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00404198
mov eax, dword [ebp - 0x15c]
call fcn.004029e4
call fcn.004027b8
jmp 0x41a913
push dword [ebp - 4]
push 0x41a98c
lea eax, [ebp - 0x170]
lea edx, [ebp - 0x118]
mov ecx, 0x104
call fcn.00404088
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0x16c]
call fcn.00407930
push dword [ebp - 0x16c]
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00404198
mov eax, dword [ebp - 0x168]
call fcn.004042d8
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x144]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x41a7d7
push ebx
call sub.kernel32.dll_FindClose_1
push 0
call sub.kernel32.dll_Sleep
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a962
lea eax, [ebp - 0x170]
mov edx, 0xb
call fcn.00403e3c
lea eax, [ebp - 4]
call fcn.00403e18
ret
Function at 0x41aa58
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x41aa60
push ebx
push esi
push edi
mov eax, 0x41a9b8
call fcn.00405b8c
xor eax, eax
push ebp
push 0x41ada1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x41c88c
xor eax, eax
call fcn.00402984
push 0x104
push 0x41c894
mov eax, dword [0x41c88c]
call fcn.004042d8
push eax
call sub.kernel32.dll_GetShortPathNameA
push 0x41c998
push 0x104
call sub.kernel32.dll_GetTempPathA
mov eax, 0x41dac4
mov edx, 0x41c998
mov ecx, 0x104
call fcn.00404088
cmp dword [0x41dac4], 0
je 0x41aafa
mov eax, dword [0x41dac4]
call fcn.004040d8
mov edx, dword [0x41dac4]
cmp byte [edx + eax - 1], 0x5c
je 0x41aafa
mov eax, 0x41dac4
mov edx, 0x41adb8
call fcn.004040e0
lea eax, [ebp - 0x14]
mov edx, 0x41c894
mov ecx, 0x104
call fcn.00404088
mov eax, dword [ebp - 0x14]
mov edx, 0x40
call fcn.0040743c
mov dword [0x41c890], eax
cmp dword [0x41c890], 0xffffffff
je 0x41ad86
mov ecx, 2
mov edx, 0xffffffd8
mov eax, dword [0x41c890]
call fcn.00407518
mov eax, 0x41ca9c
mov ecx, 0x28
mov edx, 0x28
call fcn.00402b6c
mov edx, 0x41ca9c
mov ecx, 0x28
mov eax, dword [0x41c890]
call fcn.004074c0
cmp dword [0x41cac0], 0
jle 0x41ad7c
lea eax, [ebp - 0x18]
mov ecx, 0x41adc4
mov edx, dword [0x41dac4]
call fcn.00404124
mov eax, dword [ebp - 0x18]
call fcn.00407494
mov edi, eax
xor ecx, ecx
mov edx, dword [0x41cabc]
mov eax, dword [0x41c890]
call fcn.00407518
xor esi, esi
mov dword [0x41dac0], 0xffc
mov ebx, dword [0x41dac0]
lea edx, [ebx + esi]
mov eax, dword [0x41cac0]
cmp edx, eax
jle 0x41abc5
mov ebx, eax
sub ebx, esi
mov edx, 0x41cac4
mov ecx, ebx
mov eax, dword [0x41c890]
call fcn.004074c0
mov edx, 0x41cac4
mov ecx, ebx
mov eax, edi
call fcn.004074ec
add esi, ebx
cmp esi, dword [0x41cac0]
jne 0x41abaf
mov eax, edi
call fcn.0040755c
mov dl, 1
mov eax, dword [0x419db4]
call fcn.00419e48
mov dword [0x41dacc], eax
call fcn.00408c5c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x1c]
mov eax, 0x41add8
call fcn.004098a8
mov edx, dword [ebp - 0x1c]
mov eax, 0x41dac8
call fcn.00403e6c
xor eax, eax
push ebp
push 0x41acb6
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [0x41dac4]
push dword [0x41dac8]
push 0x41adb8
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404198
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
mov ecx, 0x41adc4
mov edx, dword [0x41dac4]
call fcn.00404124
mov edx, dword [ebp - 0x24]
mov eax, dword [0x41dacc]
pop ecx
call fcn.0041a46c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41acbd
mov eax, dword [0x41dacc]
call fcn.00403120
lea eax, [ebp - 0x28]
mov ecx, 0x41adc4
mov edx, dword [0x41dac4]
call fcn.00404124
mov eax, dword [ebp - 0x28]
call fcn.004042d8
push eax
call sub.kernel32.dll_DeleteFileA
ret
mov eax, dword [0x41c890]
call fcn.0040755c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ada8
lea eax, [ebp - 0x40]
mov edx, 0xc
call fcn.00403e3c
ret
Function at 0x10002a90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [eax + 0x70], 0
mov dword [eax + 0x4c], ecx
jne 0x10002aa3
mov dword [eax + 0x70], 1
mov dword [eax + 0x54], ecx
mov edx, ecx
sub edx, dword [eax + 0x54]
cmp edx, 0x2710
jge 0x10002ab8
cmp edx, 0xffffd8f0
jge 0x10002abd
mov dword [eax + 0x54], ecx
jmp 0x10002ac1
test edx, edx
js 0x10002adc
mov edx, dword [eax + 0x50]
add dword [eax + 0x54], edx
push esi
push edi
mov edi, ecx
sub edi, dword [eax + 0x54]
pop edi
pop esi
js 0x10002ad7
add edx, ecx
mov dword [eax + 0x54], edx
jmp fcn.100024a0
ret

Function at 0x10002c70
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x1001c210]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi], vtable.CTcpSocket.0
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, vtable.CBuffer.0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
mov dword [esi + 0x58], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
lea ecx, [esi + 0x18]
push ecx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x14], edi
xor ecx, ebp
mov dword [esi + 0x64], 0xffffffff
mov eax, esi
pop edi
call fcn.10008b08
mov esp, ebp
pop ebp
ret
Function at 0x10003240
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, eax
mov dword [ebp - 4], 0
cmp ebx, 0x40000
jl 0x1000329d
jmp 0x10003260
xor edi, edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
push 0
push 0x40000
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10003281
inc edi
cmp edi, 0xf
jl 0x10003262
cmp edi, 0xf
je 0x100032ce
add dword [ebp - 4], eax
sub ebx, 0x40000
add esi, 0x40000
cmp ebx, 0x40000
jge 0x10003260
test ebx, ebx
jle 0x100032c6
xor edi, edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x100032be
inc edi
cmp edi, 0xf
jl 0x100032a3
cmp edi, 0xf
je 0x100032ce
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x100032d1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100034f0
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x198]
xor ebx, ebx
cmp eax, ebx
jne 0x10003512
mov dword [esi + 0x1b8], 0x598
jmp 0x10003529
cmp eax, 0x598
jbe 0x10003523
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x1b8], eax
push edi
mov dword [esi + 0x64], ebx
call fcn.10003650
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, 1
push 0x101998d0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 5
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], eax
mov dword [ebp - 8], ebx
call edi
mov dword [esi + 0x48], eax
cmp eax, ebx
jne 0x10003568
push 0x101998d0
call edi
mov dword [esi + 0x48], eax
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
mov ebx, 0x40000
push ecx
mov dword [ebp - 4], ebx
call edi
mov eax, dword [esi + 0x40]
push 4
lea edx, [ebp - 4]
push edx
push 0x1002
push 0xffff
push eax
mov dword [ebp - 4], ebx
call edi
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100036e0
test eax, eax
je 0x100035fc
lea edx, [esi + 0x58]
push edx
push 0
push esi
push 0x10003860
push 0
push 0
call fcn.1000950b
add esp, 0x18
mov dword [esi + 0x54], eax
test eax, eax
je 0x100035ee
mov eax, dword [esi + 0x2c]
push eax
mov edi, 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x5c], 8
push 0x65f
jmp 0x1000360a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x5c], 0xb
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 5
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, esi
call fcn.10003f30
push edi
call ebx
mov edi, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100036e0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001c210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x11
push 2
xor edi, edi
push 2
mov ebx, ecx
mov dword [ebp - 0x18], edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x40], eax
cmp eax, 0xffffffff
jne 0x10003721
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008b08
mov esp, ebp
pop ebp
ret 4
push edi
push edi
lea ecx, [ebp - 0x24]
push ecx
push edi
push edi
push 4
lea edx, [ebp - 0x1c]
push edx
push 0x9800000c
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x1c]
push eax
push 0xfffffffffffffffb
push 0xffff
push ecx
call edi
mov eax, dword [esi + 0x40]
push 4
lea edx, [ebp - 0x1c]
push edx
push 4
push 0xffff
push eax
call edi
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 0
push 0
push 0
push 0
push ebx
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x20], eax
inc eax
push eax
call fcn.10008af2
mov ecx, dword [ebp - 0x20]
add esp, 4
push 0
push 0
push ecx
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x20]
push edi
mov byte [edi + edx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
push edi
mov ebx, eax
call fcn.10008afd
add esp, 4
test ebx, ebx
je 0x1000370d
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
push 0x30
push edx
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x10003846
mov edx, dword [esi + 0x40]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1000383f
cmp eax, 0xffffffff
jne 0x10003836
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1000383f
mov dword [ebp - 0x18], 0
jmp 0x10003846
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
xor ecx, ebp
pop ebx
call fcn.10008b08
mov esp, ebp
pop ebp
ret 4