joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002f4f0
Capabilities:
Write file on windows

Disassembly:
add ecx, 0x1c
jmp 0x10036db0
push 0xffffffffffffffff
push 0x1008acb8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100a8810]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
call fcn.1000f490
mov dword [esp + 0x48], edi
push edi
push edi
push 2
push edi
push 3
push 0xc0000000
push str.TR0001.dat
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x10036f16
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 4]
call fcn.10036bb0
mov dword [esp + 0x24], eax
cmp eax, edi
je 0x10036efe
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100535c2
mov esi, dword [esp + 0x38]
mov ebp, eax
mov eax, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x14], ebp
cmp esi, eax
jbe 0x10036e61
call fcn.10054b41
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
mov ebx, eax
cmp dword [esp + 0x34], eax
jbe 0x10036e72
call fcn.10054b41
test edi, edi
je 0x10036e7c
cmp edi, dword [esp + 0x28]
je 0x10036e81
call fcn.10054b41
cmp esi, ebx
je 0x10036ec8
test edi, edi
jne 0x10036ec0
call fcn.10054b41
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x10036e9a
call fcn.10054b41
mov eax, dword [esi]
mov dword [ebp], eax
add ebp, 4
test edi, edi
jne 0x10036ec4
call fcn.10054b41
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x10036eb7
call fcn.10054b41
mov eax, dword [esp + 0x38]
add esi, 4
jmp 0x10036e65
mov eax, dword [edi]
jmp 0x10036e90
mov eax, dword [edi]
jmp 0x10036ead
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x1c]
push ecx
add esi, esi
add esi, esi
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10036efa
cmp dword [esp + 0x18], esi
jne 0x10036efa
mov dword [esp + 0x20], 1
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10036f16
push edi
call fcn.10054ba8
add esp, 4
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.1000e960
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x1002f8a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x100a8810]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
mov esi, dword [esp + 0x224]
push 0x103
lea eax, [esp + 0x115]
push 0
push eax
mov byte [esp + 0x11c], 0
call fcn.10054210
push 0x103
lea ecx, [esp + 0x1d]
push 0
push ecx
mov byte [esp + 0x24], 0
call fcn.10054210
add esp, 0x18
test ebp, ebp
je 0x1002fa35
test esi, esi
je 0x1002fa35
mov ebx, dword [esp + 0x220]
test ebx, ebx
je 0x1002fa35
push ebx
push 0
push ebp
call fcn.10054210
add esp, 0xc
cmp byte [esi], 0x5c
jne 0x1002f9d5
cmp byte [esi + 1], 0x3f
jne 0x1002f960
lea edx, [esi + 4]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002f940
sub eax, esi
push eax
push edx
lea edx, [esp + 0x118]
push edx
call fcn.10055d34
add esp, 0xc
jmp 0x1002fa14
push edi
lea eax, [esi + 2]
push 0x5c
push eax
call fcn.10055c3a
push 9
push str.windows_
push esi
mov edi, eax
call fcn.10054414
add esp, 0x14
test eax, eax
jne 0x1002f98e
push 0x104
lea ecx, [esp + 0x14]
push ecx
jmp 0x1002f9ac
push 0xc
push str._systemroot_
push esi
call fcn.10054414
add esp, 0xc
test eax, eax
jne 0x1002f9b2
push 0x104
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
lea eax, [esp + 0x14]
push eax
push 0x1008f6f4
lea ecx, [esp + 0x120]
push 0x104
push ecx
call fcn.100049b0
add esp, 0x14
pop edi
jmp 0x1002fa14
push 0x5c
push esi
call fcn.10055ac0
add esp, 8
test eax, eax
jne 0x1002fa14
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea eax, [esp + 0x10]
push eax
push str._sdrivers_s
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call fcn.100049b0
add esp, 0x14
cmp byte [esp + 0x110], 0
je 0x1002fa2e
lea edx, [esp + 0x110]
push edx
dec ebx
push ebx
push ebp
call fcn.10004860
mov eax, 1
jmp 0x1002fa37
xor eax, eax
mov ecx, dword [esp + 0x214]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10053b60
add esp, 0x20c
ret 0xc
Function at 0x100312a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x124
mov eax, dword [0x100a8810]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
push 0x103
xor esi, esi
lea eax, [esp + 0x1d]
xor ebx, ebx
push esi
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebx
mov edi, 0x1000
mov byte [esp + 0x24], bl
call fcn.10054210
xor eax, eax
add esp, 0xc
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
xor ebp, ebp
test esi, esi
je 0x10031318
push 0x8000
push 0
push esi
call fcn.100dabb2
push 4
push 0x1000
push edi
push 0
call fcn.100bb62e
mov esi, eax
test esi, esi
je 0x100313d8
push 0
push edi
push esi
push 0xb
call fcn.1000b500
add esp, 0x10
cmp eax, 0xc0000004
jne 0x1003134a
add edi, edi
jmp 0x10031307
test eax, eax
jl 0x100313cb
cmp dword [esi], ebx
jbe 0x100313cb
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edi, [esi + 0xc]
nop
push 0x118
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.10054210
mov edx, dword [edi + 4]
add esp, 0xc
lea ecx, [edi + 0x14]
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x124], edx
mov eax, dword [edi]
push 0x103
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x128], eax
call fcn.1002f8a0
lea eax, [esp + 0x18]
push eax
call ebx
cmp eax, 0xffffffff
je 0x100313b8
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.100310d0
inc dword [esp + 0x10]
inc ebp
add edi, 0x11c
cmp ebp, dword [esi]
jb 0x10031360
mov ebx, dword [esp + 0x10]
push 0x8000
push 0
push esi
call fcn.100dabb2
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.10053b60
add esp, 0x124
ret
Function at 0x10031400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x11c]
sub esp, 0x11c
push 0xfffffffffffffffe
push 0x1009d720
push 0x100544b0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100a8810]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x118], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], ecx
xor esi, esi
mov dword [ebp - 0x1c], esi
mov byte [ebp], 0
push 0x103
push esi
lea eax, [ebp + 1]
push eax
call fcn.10054210
add esp, 0xc
xor eax, eax
mov dword [ebp + 0x104], eax
mov dword [ebp + 0x108], eax
mov dword [ebp + 0x10c], eax
mov dword [ebp + 0x110], eax
mov dword [ebp + 0x114], eax
mov dword [ebp - 4], esi
call fcn.1000b4f0
mov edi, eax
mov dword [ebp - 0x28], edi
mov ecx, dword [edi + 0xc]
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 0x24], ebx
mov edx, dword [edi + 0xc]
add edx, 0xc
cmp ebx, edx
je 0x10031546
push 0x118
push 0
lea eax, [ebp]
push eax
call fcn.10054210
add esp, 0xc
mov esi, dword [ebx + 0x28]
test esi, esi
jne 0x100314c4
xor eax, eax
jmp 0x100314f7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x100314d7
xor eax, eax
jmp 0x100314f7
lea edi, [eax + eax]
mov eax, edi
call fcn.10055800
mov dword [ebp - 0x18], esp
mov ecx, esp
mov eax, 3
push eax
push edi
push esi
push ecx
call fcn.1002c6e0
mov edi, dword [ebp - 0x28]
push eax
push 0x104
lea ecx, [ebp]
push ecx
call fcn.10004860
mov edx, dword [ebx + 0x18]
mov dword [ebp + 0x104], edx
mov eax, dword [ebx + 0x20]
mov dword [ebp + 0x108], eax
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10031536
inc dword [ebp - 0x1c]
lea edx, [ebp]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.100310d0
mov ebx, dword [ebx]
jmp 0x10031495
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x118]
xor ecx, ebp
call fcn.10053b60
add ebp, 0x11c
mov esp, ebp
pop ebp
ret
Function at 0x10031c20
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
push edi
push eax
call sub.WS2_32.dll_ntohl
mov ecx, dword [esi + 4]
push ecx
mov edi, eax
call sub.WS2_32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
xor ebx, ebx
mov esi, eax
sub ebp, edx
lea esp, [esp]
lea eax, [ebp + ebx*4]
mov ecx, dword [esp + eax + 0x10]
push ecx
call sub.WS2_32.dll_ntohl
mov dword [esp + ebx*4 + 0x10], eax
inc ebx
cmp ebx, 4
jl 0x10031c50
mov ecx, dword [esp + 0x1c]
mov eax, 0xe3779b90
mov dword [esp + 0x24], 0x10
lea esp, [esp]
mov ebx, edi
shl ebx, 4
add ebx, dword [esp + 0x18]
mov edx, edi
shr edx, 5
add edx, ecx
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x14]
mov ebx, esi
shl ebx, 4
add ebx, dword [esp + 0x10]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
sub edi, edx
add eax, 0x61c88647
sub dword [esp + 0x24], 1
jne 0x10031c80
push edi
call sub.WS2_32.dll_htonl
mov edi, dword [esp + 0x2c]
push esi
mov dword [edi], eax
call sub.WS2_32.dll_htonl
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x10035e30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
xor ebp, ebp
push ebp
push ebp
push 3
push ebp
push 3
push closesocket
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10035eb4
push esi
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x1000
mov edi, eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10035eab
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10035e9d
cmp dword [esp + 0x10], edi
jne 0x10035e9d
push edi
push esi
call fcn.10108c32
add esp, 8
mov ebp, eax
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x10036cd0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push closesocket
push str.TR0001.dat
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10036d9b
push ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov edi, esi
shr edi, 2
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100535c2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10036d79
push 0
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], esi
jne 0x10036d79
xor esi, esi
test edi, edi
jbe 0x10036d72
mov ecx, dword [esp + 0x14]
add ecx, 4
mov dword [esp + 0x14], ecx
mov edi, edi
mov edx, dword [ebx + esi*4]
mov ecx, dword [esp + 0x14]
push edx
call fcn.10036b70
inc esi
cmp esi, edi
jb 0x10036d60
mov esi, 1
jmp 0x10036d7d
mov esi, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10036d91
push ebx
call fcn.10054ba8
add esp, 4
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x10036db0
Capabilities:
Write file on windows

Disassembly:
add ecx, 0x1c
jmp 0x10036db0
push 0xffffffffffffffff
push 0x1008acb8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100a8810]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
call fcn.1000f490
mov dword [esp + 0x48], edi
push edi
push edi
push 2
push edi
push 3
push 0xc0000000
push str.TR0001.dat
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x10036f16
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 4]
call fcn.10036bb0
mov dword [esp + 0x24], eax
cmp eax, edi
je 0x10036efe
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100535c2
mov esi, dword [esp + 0x38]
mov ebp, eax
mov eax, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x14], ebp
cmp esi, eax
jbe 0x10036e61
call fcn.10054b41
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
mov ebx, eax
cmp dword [esp + 0x34], eax
jbe 0x10036e72
call fcn.10054b41
test edi, edi
je 0x10036e7c
cmp edi, dword [esp + 0x28]
je 0x10036e81
call fcn.10054b41
cmp esi, ebx
je 0x10036ec8
test edi, edi
jne 0x10036ec0
call fcn.10054b41
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x10036e9a
call fcn.10054b41
mov eax, dword [esi]
mov dword [ebp], eax
add ebp, 4
test edi, edi
jne 0x10036ec4
call fcn.10054b41
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x10036eb7
call fcn.10054b41
mov eax, dword [esp + 0x38]
add esi, 4
jmp 0x10036e65
mov eax, dword [edi]
jmp 0x10036e90
mov eax, dword [edi]
jmp 0x10036ead
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x1c]
push ecx
add esi, esi
add esi, esi
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10036efa
cmp dword [esp + 0x18], esi
jne 0x10036efa
mov dword [esp + 0x20], 1
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10036f16
push edi
call fcn.10054ba8
add esp, 4
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.1000e960
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x10038c90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1008af93
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x100a8810]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
push ebx
call fcn.10038550
mov dword [esp + 0x18], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x100afc54
mov byte [esp + 0x18], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push ebx
push 0x1008f774
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.100371b0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x1003a1f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1008b2f9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100a8810]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push 5
call fcn.10038550
mov dword [esp + 0x14], 0
mov eax, 0x100afc54
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [esi + 0x2c], eax
mov byte [esp + 0x14], 1
mov dword [esi + 0x30], eax
mov byte [esp + 0x14], 2
mov dword [esi + 0x34], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x100429d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [ecx + 0x20], eax
mov word [ecx + 0x24], dx
mov dword [ecx + 0x1c], 2
mov dword [esp + 8], edx
mov dword [esp + 4], eax
add ecx, 0x28
jmp 0x10044cb0
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov esi, ecx
mov edi, 1
test ebx, ebx
jne 0x10044cd4
push 0x57
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
push 0x10
call fcn.10044550
add esp, 4
test eax, eax
je 0x10044d20
movzx edx, word [esp + 0x14]
mov dword [eax], esi
mov ecx, dword [esi + 0x1c]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x14]
push ecx
push 0
push eax
push 0x10044610
push 0
push 0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [esp + 0x2c], 0
call fcn.10057eef
mov edx, dword [esp + 0x2c]
add esp, 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, edi
pop edi
pop esi
pop ebx
ret 8

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

Disassembly:
add ecx, 0x28
jmp 0x10044370
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x1004437d
xor eax, eax
ret 8
cmp dword [ecx + 8], 1
je 0x10044378
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push 0
push esi
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
xor edx, edx
cmp eax, esi
sete dl
pop esi
mov eax, edx
ret 8

Function at 0x10042d80
Capabilities:
Resolve dns

Disassembly:
push ecx
push ebx
xor eax, eax
push esi
push edi
mov word [esp + 0xd], ax
mov byte [esp + 0xf], al
mov eax, dword [esp + 0x14]
push eax
xor edi, edi
xor esi, esi
mov byte [esp + 0x10], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x10042e1c
mov eax, dword [ebx + 0xc]
cmp dword [eax], esi
je 0x10042dc0
add eax, 4
inc edi
cmp dword [eax], esi
jne 0x10042db0
mov eax, dword [esp + 0x1c]
cmp dword [eax], edi
jb 0x10042e2b
xor esi, esi
test edi, edi
jbe 0x10042e06
push ebp
mov ebp, dword [esp + 0x1c]
jmp 0x10042dd0
mov ecx, dword [ebx + 0xc]
cmp dword [ecx + esi*4], 0
lea eax, [ecx + esi*4]
je 0x10042e05
movsx edx, word [ebx + 0xa]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.10054640
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [ebp + esi*4], eax
inc esi
cmp esi, edi
jb 0x10042dd0
pop ebp
test esi, esi
je 0x10042e36
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [ecx], esi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov dword [edx], edi
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 0xc
mov dword [eax], edi
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x10043090
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x100a8810]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, ecx
push 0x100b0320
mov dword [esi], vtable.NetModule::CSocketLibLockControl.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x100b031c]
inc eax
mov dword [0x100b031c], eax
cmp eax, 1
jne 0x10043106
push edi
xor eax, eax
push 0x18e
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.10054210
mov edi, dword [sym.imp.WS2_32.dll_WSAStartup]
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x202
call edi
test eax, eax
je 0x10043105
lea eax, [esp + 8]
push eax
push 0x101
call edi
pop edi
push 0x100b0320
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x194]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10053b60
add esp, 0x194
ret

Function at 0x100442a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1008c63b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100a8810]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x30]
mov dword [esi], vtable.NetModule::CTCPSocketThread.0
call fcn.1002c550
xor eax, eax
mov dword [esp + 0x14], eax
or ecx, 0xffffffff
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esp + 0x14], ecx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x100443b0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10044368
cmp dword [esi + 0xc], 0
je 0x1004434e
test byte [esi + 0x20], 2
je 0x1004433c
cmp dword [esi + 0x2c], 0
je 0x1004434e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x10], 0
pop esi
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
pop esi
ret
mov dword [ecx + 8], 1
jmp 0x10044320

Function at 0x10044c40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1008c6cb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100a8810]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.NetModule::CTCPSocketThread.0
mov dword [esp + 0x14], 0
call fcn.100443b0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0x30]
call fcn.1002c560
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x10049290
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
lea eax, [esp + 0xc]
push eax
push 0x40
push 1
xor edi, edi
push 0x10049240
mov byte [esp + 0x1b], 0x90
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], edi
call esi
test eax, eax
je 0x100492f8
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x13]
push eax
push 0x10049240
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push edx
push 1
push 0x10049240
mov edi, eax
call esi
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret
Function at 0x10052220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1008cfcb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100a8810]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
call fcn.10051fa0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0x30]
call fcn.1002e5f0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x10052404
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x100a03b8
call fcn.10058430
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov edx, dword [ebp - 0x30]
cmp word [edx], ax
jne 0x1005246c
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x1005246c
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x1005246c
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x1005246c
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x10052475
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.10058475
ret