joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100154e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x100682b0]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x20]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10015527
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10019170
mov esp, ebp
pop ebp
ret 0x1c
push 2
push edi
call dword [sym.imp.USER32.dll_GetAncestor]
cmp dword [0x10076eb8], 0
mov ebx, eax
je 0x10015549
push 1
push str.disableshow
push ebx
call dword [sym.imp.USER32.dll_SetPropA]
push str.pWBHost
push edi
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x10015564
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
push 1
call eax
push 0xec
call fcn.100199d3
add esp, 4
test eax, eax
je 0x10015580
mov esi, eax
call fcn.10014770
mov esi, eax
jmp 0x10015582
xor esi, esi
push esi
push str.pWBHost
push edi
call dword [sym.imp.USER32.dll_SetPropA]
test ebx, ebx
je 0x10015655
push edi
push str.CreateWebctl:_d
call fcn.10004870
add esp, 8
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xff3fffff
push eax
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push 0x36
push ecx
push edx
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp edi, ebx
je 0x10015613
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
add eax, 2
push eax
push ecx
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
push 0x40
push eax
push ecx
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 1
push 0xff
push 0xff00ff
push ebx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push 0x36
push edx
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ebx, edi
call fcn.100174d0
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
mov ecx, dword [ebp + 0x10]
push esi
call fcn.10014940
mov eax, dword [esi + 0x58]
lea ecx, [esi + 0x24]
cmp dword [ecx + 0x28], 0xfefefefe
lea edx, [ecx + 0x28]
je 0x10015696
push 0x80004005
call fcn.100096d0
push edx
push 0x1005e5d8
push ecx
call fcn.1000ce10
test eax, eax
jns 0x100156b1
push str.SinkEvent_ERROR:
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10019170
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10015c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x1005ee08
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x10015c77
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [esi]
push esi
push edi
push str.patch_timejt
push str._s_nOldCode0x_x_pCode0x_x
call fcn.10004870
add esp, 0x10
cmp edi, 0x8b55ff8b
pop edi
jne 0x10015ccb
push esi
push 0x8b0010c2
push str.patch_timejt
push str._s2_nNewCode0x_x_pCode0x_x
mov dword [esi], 0x8b0010c2
call fcn.10004870
add esp, 0x10
push str.patch_timejt_ok__n
call fcn.10004870
add esp, 4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10015e70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x10015f13
dec eax
jne 0x10015f2a
push esi
push edi
nop
nop
nop
nop
nop
nop
nop
nop
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathGetArgsA]
mov esi, eax
push str._auto
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10015ec9
push esi
push str.__s_
call fcn.10004870
add esp, 8
mov dword [0x10076eb8], 1
push str.auto
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x10015ef1
push edi
push str.__s_
call fcn.10004870
add esp, 8
mov dword [0x10076eb8], 1
call fcn.10015e20
call fcn.10011e00
call fcn.1000cd10
mov eax, dword [ebp + 8]
pop edi
mov dword [0x1006be98], eax
pop esi
mov eax, 1
pop ebp
ret 0xc
call fcn.1000cd50
mov ecx, dword [ebp + 8]
mov dword [0x1006be98], ecx
mov eax, 1
pop ebp
ret 0xc
mov edx, dword [ebp + 8]
mov dword [0x1006be98], edx
mov eax, 1
pop ebp
ret 0xc
Function at 0x10018560
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005185b
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
push ebx
push esi
push edi
mov eax, dword [0x100682b0]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, edx
test ebx, ebx
je 0x10018731
test edi, edi
je 0x10018731
cmp dword [ebp + 8], 0
je 0x10018731
cmp dword [ebp + 0xc], 0
je 0x10018731
call fcn.10041a30
xor eax, eax
mov ecx, 1
push eax
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
push 2
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], ecx
call fcn.10041a40
add esp, 0xc
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
push ebx
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x10018731
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edx
push eax
push esi
call fcn.1003f7a0
add esp, 0xc
cmp dword [0x10058f54], eax
je 0x10018731
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10018652
xor edi, edi
push edi
sub eax, edx
push 4
lea edx, [esp + 0x20]
push edx
sar eax, 1
push esi
mov dword [esp + 0x28], eax
call fcn.1003eca0
add esp, 0x10
cmp dword [0x10058f54], eax
je 0x10018731
mov eax, dword [esp + 0x18]
push edi
push eax
call fcn.10018510
push eax
push esi
call fcn.1003eca0
add esp, 0x10
cmp dword [0x10058f54], eax
je 0x10018731
push edi
push 8
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.1003ecb0
add esp, 0x10
cmp dword [0x10058f54], eax
je 0x10018731
cmp dword [esp + 0x20], edi
jg 0x100186cc
jl 0x10018731
cmp dword [esp + 0x1c], edi
jb 0x10018731
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.10018790
mov dword [esp + 0x110], edi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0x6f1580
push ecx
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x5c]
push ecx
push esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
call fcn.1003ecc0
mov ecx, eax
mov eax, dword [0x10058f54]
mov edi, edx
cdq
add esp, 0x18
cmp eax, ecx
jne 0x1001874a
cmp edx, edi
jne 0x1001874a
lea ecx, [esp + 0x4c]
mov dword [esp + 0x110], 0xffffffff
call fcn.10004730
or eax, 0xffffffff
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.1003ec90
add esp, 4
lea ecx, [esp + 0x4c]
call fcn.10005fb0
call fcn.1003ba10
lea ecx, [esp + 0x4c]
mov dword [esp + 0x110], 0xffffffff
call fcn.10004730
xor eax, eax
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10018f2b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1006acc0], 0
push esi
push edi
jne 0x10018ea1
call fcn.10018e0d
test eax, eax
je 0x10018ee6
mov eax, dword [0x1006acc0]
cmp eax, 1
jne 0x10018ec2
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10018ee6
jmp 0x10018f28
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x10018f28
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10018eea
xor eax, eax
jmp 0x10018f28
mov eax, dword [esi]
push dword [0x1006acc0]
call edi
mov edi, eax
test edi, edi
je 0x10018f0c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10018f28
lea edi, [esi + 0xff0]
push esi
push dword [0x1006acc0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x10018f12
mov eax, esi
pop edi
pop esi
ret
jmp 0x10018e8d

Function at 0x10019170
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100682b0]
jne 0x1001917a
repz ret
jmp fcn.1001bb2d
Function at 0x10026bd8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100682b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10021978
and dword [ebp - 0x14], 0
cmp dword [0x1006ba08], 0
mov dword [ebp - 0x18], eax
jne 0x10026c8b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10026d33
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10053d9c
push ebx
call edi
test eax, eax
je 0x10026d33
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1006ba08], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1006ba0c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1006ba10], eax
call edi
push eax
call esi
mov dword [0x1006ba18], eax
test eax, eax
je 0x10026c8b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1006ba14], eax
mov eax, dword [0x1006ba14]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10026ce4
cmp dword [0x1006ba18], ecx
je 0x10026ce4
push eax
call esi
push dword [0x1006ba18]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10026ce4
test ebx, ebx
je 0x10026ce4
call edi
test eax, eax
je 0x10026cdb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10026cdb
test byte [ebp - 8], 1
jne 0x10026ce4
or dword [ebp + 0x10], 0x200000
jmp 0x10026d17
mov eax, dword [0x1006ba0c]
cmp eax, dword [ebp - 0x18]
je 0x10026d17
push eax
call esi
test eax, eax
je 0x10026d17
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10026d17
mov eax, dword [0x1006ba10]
cmp eax, dword [ebp - 0x18]
je 0x10026d17
push eax
call esi
test eax, eax
je 0x10026d17
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1006ba08]
call esi
test eax, eax
je 0x10026d33
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10026d35
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10019170
leave
ret
Function at 0x10031e70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100624b8
push 0x1004b198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x10031ed4
mov byte [ebp - 0x3d], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3d]
jmp 0x10031f6f
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x10031efb
mov byte [ebp - 0x3e], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3e]
jmp 0x10031f6f
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0xd8]
cmp dword [ebp + 0xc], eax
jb 0x10031f36
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
add edx, dword [ecx + 0xd8]
mov eax, dword [ebp - 0x3c]
add edx, dword [eax + 0xdc]
cmp dword [ebp + 0xc], edx
jae 0x10031f36
mov byte [ebp - 0x3f], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3f]
jmp 0x10031f6f
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x40]
jmp 0x10031f6f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10032000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1006bbf8]
mov dword [ebp - 4], eax
jmp 0x10032019
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10032036
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10032010
mov esp, ebp
pop ebp
ret
Function at 0x10032040
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1006bc04], eax
je 0x1003205e
mov eax, 0x10dd
jmp 0x1003213f
mov eax, dword [0x1006bc14]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100320dc
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x17]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100320ba
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100320ba
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10032190
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.10019165
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10032066
mov dword [0x1006bc14], 0
call fcn.10032150
mov ecx, dword [0x1006bc10]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x10032129
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10019165
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x100320f4
mov dword [0x1006bc10], 0
mov dword [0x1006bc04], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100325c0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1006bc08], 0
je 0x100325d9
mov eax, dword [0x1006bc08]
jmp 0x10032679
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x100325eb
xor eax, eax
jmp 0x10032679
push 8
call fcn.100199d3
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10032641
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x1003262a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10019165
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x1006bc08], eax
mov dword [0x1006bc0c], 0
mov eax, dword [ebp - 4]
jmp 0x10032679
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1003265b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1003260b
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x1006bc10]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x1006bc10], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10032d70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100624c8
push 0x1004b198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10032db1
xor eax, eax
jmp 0x10032e68
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x10032de2
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x10032e68
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x10032e0c
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44]
jmp 0x10032e68
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 0x14]
test eax, eax
jne 0x10032e2a
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x48]
jmp 0x10032e68
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
jmp 0x10032e68
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003e4d0
Capabilities:
Access peb ldr_data
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100503b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100682b0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x40]
push eax
lea ecx, [esp + 0x10]
call fcn.10044e70
mov ecx, dword [esi + 0x2c]
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1003e524
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov edi, dword [esp + 0x24]
mov ecx, dword [esi + 0x2c]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x24]
push edx
lea ecx, [esi + 0x30]
mov dword [esp + 0x28], eax
call fcn.1003e440
lea ecx, [esp + 0xc]
mov dword [eax], edi
mov dword [esp + 0x1c], 0xffffffff
call fcn.10044ea0
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
Function at 0x10041620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1004ff83
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x100682b0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor edi, edi
push 0xc
mov dword [esi + 4], edi
call fcn.100199d3
add esp, 4
cmp eax, edi
je 0x100416b3
mov dword [esi], eax
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 4], eax
lea ecx, [esi + 0xc]
mov dword [esp + 0x28], edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov eax, dword [esp + 0x30]
mov dword [esi + 0x1c], eax
lea eax, [eax + eax*2]
push eax
mov byte [esp + 0x2c], 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
call fcn.10040aa0
lea eax, [esi + 0x28]
push eax
call fcn.10044ee0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 4
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], edi
call fcn.10019258
push 0x10063fc0
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], vtable.std::bad_alloc.0
call fcn.1001b990
int3

Function at 0x100417b0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x1004ffab
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x100682b0]
xor eax, esp
mov dword [esp + 0x200], eax
push esi
mov eax, dword [0x100682b0]
xor eax, esp
push eax
lea eax, [esp + 0x20c]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x68]
push eax
lea ecx, [esp + 0xc]
call fcn.10044e70
mov eax, dword [esi + 0x6c]
lea ecx, [eax + 1]
mov dword [esp + 0x214], 0
mov dword [esi + 0x6c], ecx
test eax, eax
jg 0x100418ad
lea edx, [esp + 0x78]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1004184a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.100452c0
push 0x100624d4
lea eax, [esp + 0x18]
push eax
call fcn.1001b990
cmp byte [esi + 0x70], 0
je 0x1004186b
lea ecx, [esp + 8]
mov dword [esp + 0x214], 0xffffffff
call fcn.10044ea0
mov eax, 1
jmp 0x100418c3
push 0
push 0
push 0
mov byte [esi + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push 0
push 0
push 0
mov dword [esi + 0x60], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
push 0x10041270
push 0
push 0
mov dword [esi + 0x64], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x74], eax
mov byte [esi + 0x70], 1
lea ecx, [esp + 8]
mov dword [esp + 0x214], 0xffffffff
call fcn.10044ea0
xor eax, eax
mov ecx, dword [esp + 0x20c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.10019170
add esp, 0x210
ret

Function at 0x10041a30
Capabilities:
Create thread
Initialize winsock library

Disassembly:
mov ecx, 0x1006bc28
jmp fcn.100417b0