joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468d60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
sub esp, 0x58
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x44], 0x10
mov dword [esp + 0x48], 0
test ebx, ebx
je 0x468e06
lea edx, [esp + 0x44]
lea eax, [esp + 0x34]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edx
mov dword [esp], eax
call sub.WS2_32.DLL_WSARecvFrom
sub esp, 0x24
inc eax
je 0x468e10
or eax, 0xffffffff
test byte [esp + 0x49], 0x80
jne 0x468e01
test ebx, ebx
je 0x468dfd
mov eax, dword [esp + 0x38]
mov dword [ebx], eax
mov ax, word [esp + 0x36]
and eax, 0xffff
mov dword [esp], eax
call sub.WS2_32.DLL_htons
push ecx
mov word [ebx + 4], ax
mov eax, dword [esp + 0x4c]
add esp, 0x58
pop ebx
ret
xor edx, edx
xor eax, eax
jmp 0x468d88
call sub.WS2_32.DLL_WSAGetLastError
lea edx, [eax - 0x2733]
or eax, 0xffffffff
cmp edx, 0x13
ja 0x468e01
mov eax, dword [edx*4 + 0x6ef380]
jmp 0x468e01

Function at 0x468e30
Capabilities:
Get socket status

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x23c
mov edx, 0x10624dd3
mov ecx, dword [esp + 0x258]
mov esi, dword [esp + 0x254]
mov eax, ecx
mov ebx, dword [esp + 0x250]
mul edx
shr edx, 6
mov dword [esp + 0x20], 0
mov dword [esp + 0x228], edx
mov dword [esp + 0x124], 0
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
sub ecx, eax
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esp + 0x22c], eax
mov eax, dword [esi]
test al, 1
je 0x468eae
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], 1
test al, 2
je 0x468ebe
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 1
lea eax, [esp + 0x228]
lea ebp, [esp + 0x124]
mov dword [esp + 0x10], eax
lea edi, [esp + 0x20]
lea eax, [ebx + 1]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.WS2_32.DLL_select
sub esp, 0x14
cmp eax, 0
jl 0x468f4b
mov dword [esi], 0
mov eax, 0
jne 0x468f10
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebp
mov dword [esp], ebx
call sub.WS2_32.DLL___WSAFDIsSet
test eax, eax
push ebp
push ebp
jne 0x468f46
mov dword [esp], ebx
mov dword [esp + 4], edi
call sub.WS2_32.DLL___WSAFDIsSet
mov edx, eax
xor eax, eax
push ebx
test edx, edx
push ebx
je 0x468f04
or dword [esi], 2
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret
or dword [esi], 1
jmp 0x468f22
or eax, 0xffffffff
jmp 0x468f04
Function at 0x4bc290
Capabilities:
Set global application hook

Disassembly:
push edi
xor eax, eax
sub esp, 0xb8
mov ecx, 0x25
lea edx, [esp + 0x1c]
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [0x7322b4]
mov dword [esp + 0x1c], 0x94
test ecx, ecx
je 0x4bc2c0
add esp, 0xb8
pop edi
ret
mov dword [esp], edx
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
push edx
je 0x4bc2e0
cmp dword [esp + 0x2c], 2
jne 0x4bc2e0
mov dword [0x7322b8], 1
nop
mov dword [0x7322b0], 1
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esp + 8], 0
mov dword [0x7322bc], eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x4bba20
mov dword [esp], 3
call sub.USER32.DLL_SetWindowsHookExA
sub esp, 0x10
mov dword [0x7322c0], eax
mov dword [esp], 1
call sub.WINMM.DLL_timeBeginPeriod
push edi
mov dword [esp], 0x4bbd60
call fcn.00401335
mov dword [0x7322b4], 1
add esp, 0xb8
pop edi
ret

Function at 0x4bc350
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push ebx
sub esp, 0x44
lea esi, [esp + 0x24]
lea esi, [esi]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.USER32.DLL_PeekMessageA
sub esp, 0x14
test eax, eax
je 0x4bc4f0
mov eax, dword [esp + 0x28]
cmp eax, 0x100
jb 0x4bc441
cmp eax, 0x101
jbe 0x4bc3b7
sub eax, 0x104
cmp eax, 1
ja 0x4bc441
mov eax, dword [esp + 0x2c]
cmp eax, 0x10
jb 0x4bc441
cmp eax, 0x12
jbe 0x4bc3d1
sub eax, 0x5b
cmp eax, 1
ja 0x4bc441
mov dword [0x7322a8], 0
mov dword [esp], 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
push ebx
js 0x4bc4f6
mov dword [esp], 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
push ecx
js 0x4bc510
mov dword [esp], 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
push edx
js 0x4bc502
mov dword [esp], 0x5b
call sub.USER32.DLL_GetKeyState
test ax, ax
push ebx
js 0x4bc480
mov dword [esp], 0x5c
call sub.USER32.DLL_GetKeyState
test ax, ax
push ecx
js 0x4bc480
mov eax, dword [esp + 0x24]
mov dword [esp + 4], 0xfffffff0
mov dword [esp], eax
call sub.USER32.DLL_GetWindowLongA
and eax, 0x40010000
push edx
cmp eax, 0x40010000
push edx
je 0x4bc490
mov dword [esp], esi
call sub.USER32.DLL_TranslateMessage
push ebx
mov dword [esp], esi
call sub.USER32.DLL_DispatchMessageA
push eax
jmp 0x4bc360
or dword [0x7322a8], 8
jmp 0x4bc441
mov eax, dword [esp + 0x24]
mov dword [esp], eax
jmp 0x4bc4a3
mov dword [esp], ebx
call sub.USER32.DLL_GetParent
test eax, eax
push ebx
mov ebx, eax
je 0x4bc463
mov dword [esp + 4], 0xfffffff0
mov dword [esp], eax
call sub.USER32.DLL_GetWindowLongA
and eax, 0x40010000
push ecx
cmp eax, 0x40010000
push ecx
je 0x4bc4a0
test ebx, ebx
je 0x4bc463
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.USER32.DLL_IsDialogMessage
test eax, eax
push edx
push edx
jne 0x4bc360
jmp 0x4bc463
add esp, 0x44
pop ebx
pop esi
ret
or dword [0x7322a8], 1
jmp 0x4bc3f1
or dword [0x7322a8], 4
jmp 0x4bc41d
or dword [0x7322a8], 2
jmp 0x4bc407
Function at 0x4bc520
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x10], 0xff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.USER32.DLL_MsgWaitForMultipleObjects
sub esp, 0x14
add esp, 0x2c
jmp fcn.004bc350

Function at 0x4bca90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x2c
mov edx, dword [0x7322b8]
mov eax, dword [esp + 0x30]
test edx, edx
mov dword [esp], eax
jne 0x4bcaf0
call fcn.004c1750
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
cmp eax, 0x20
setg al
and eax, 0xff
add esp, 0x2c
ret
call fcn.004c1770
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteW
sub esp, 0x18
cmp eax, 0x20
setg al
and eax, 0xff
add esp, 0x2c
ret

Function at 0x4bcfe0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1c
mov edx, dword [0x73d5e0]
mov eax, dword [esp + 0x20]
test edx, edx
mov dword [esp], eax
jne 0x4bd010
call fcn.004c1750
mov dword [esp], eax
call sub.MSVCRT.DLL_getenv
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp fcn.004c11b0
call fcn.004c1770
mov dword [esp], eax
call sub.MSVCRT.DLL__wgetenv
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp fcn.004c1120

Function at 0x4bd1d0
Capabilities:
Create directory

Disassembly:
sub esp, 0x1c
mov ecx, dword [0x73d5e0]
mov eax, dword [esp + 0x20]
test ecx, ecx
mov dword [esp], eax
jne 0x4bd1f5
call fcn.004c1750
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp 0x4ce228
call fcn.004c1770
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp 0x4ce230
jmp dword [sym.imp.MSVCRT.DLL__mkdir]
jmp dword [sym.imp.MSVCRT.DLL__wmkdir]

Function at 0x4bd210
Capabilities:
Delete directory

Disassembly:
sub esp, 0x1c
mov edx, dword [0x73d5e0]
mov eax, dword [esp + 0x20]
test edx, edx
mov dword [esp], eax
jne 0x4bd235
call fcn.004c1750
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp 0x4ce238
call fcn.004c1770
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp 0x4ce240
jmp dword [sym.imp.MSVCRT.DLL__rmdir]
jmp dword [sym.imp.MSVCRT.DLL__wrmdir]

Function at 0x4bd250
Capabilities:
Move file

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ecx, dword [0x73d5e0]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
test ecx, ecx
mov dword [esp], eax
jne 0x4bd290
call fcn.004c1750
mov dword [esp], ebx
mov esi, eax
call fcn.004c1750
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
add esp, 0x14
pop ebx
pop esi
jmp sub.MSVCRT.DLL_rename
call fcn.004c1770
mov dword [esp], ebx
mov esi, eax
call fcn.004c1770
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
add esp, 0x14
pop ebx
pop esi
jmp 0x4ce248
jmp dword [sym.imp.MSVCRT.DLL__wrename]
Function at 0x4bd2c0
Capabilities:
Delete file

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov dword [esp + 4], 0x1b6
mov dword [esp], ebx
call fcn.004bd180
mov eax, dword [0x73d5e0]
mov dword [esp], ebx
test eax, eax
jne 0x4bd2f6
call fcn.004c1750
mov dword [esp + 0x20], eax
add esp, 0x18
pop ebx
jmp sub.MSVCRT.DLL_remove
call fcn.004c1770
mov dword [esp + 0x20], eax
add esp, 0x18
pop ebx
jmp 0x4ce250
jmp dword [sym.imp.MSVCRT.DLL__wremove]
Function at 0x4bd310
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x1c
mov edx, dword [0x73d5e0]
mov eax, dword [esp + 0x20]
test edx, edx
mov dword [esp], eax
jne 0x4bd335
call fcn.004c1750
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp fcn.004c9f00
call fcn.004c1770
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp 0x4ca2c4
push edi
push esi
push ebx
sub esp, 0x330
mov ebx, dword [esp + 0x340]
call sub.MSVCRT.DLL__errno
test ebx, ebx
mov dword [eax], 0
jne 0x4ca2f3
call sub.MSVCRT.DLL__errno
mov dword [eax], 0xe
jmp 0x4ca4b6
cmp word [ebx], 0
je 0x4ca37d
mov eax, dword [sym.imp.MSVCRT.DLL__osver]
mov eax, dword [eax]
test ah, 0x80
je 0x4ca359
lea esi, [esp + 0x22c]
mov dword [esp + 0x10], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.DLL_WideCharToMultiByte
sub esp, 0x20
mov dword [esp], esi
call sub.KERNEL32.DLL_GetFileAttributesA
jmp 0x4ca361
mov dword [esp], ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
push edx
jne 0x4ca379
call sub.MSVCRT.DLL__errno
mov dword [eax], 2
xor ebx, ebx
jmp 0x4ca4b6
test al, 0x10
jne 0x4ca38a
call sub.MSVCRT.DLL__errno
mov dword [eax], 0x14
jmp 0x4ca372
lea edi, [esp + 0x24]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], edi
call sub.MSVCRT.DLL__wfullpath
mov dword [esp], edi
call sub.MSVCRT.DLL_wcslen
mov dword [esp], 0x709ca8
mov esi, eax
call sub.MSVCRT.DLL_wcslen
mov dword [esp], 0x709cac
mov ebx, eax
call sub.MSVCRT.DLL_wcslen
lea edx, [esi + ebx + 0x21d]
add eax, edx
add eax, eax
mov dword [esp], eax
call sub.MSVCRT.DLL_malloc
test eax, eax
mov ebx, eax
jne 0x4ca3ef
call sub.MSVCRT.DLL__errno
mov dword [eax], 0xc
jmp 0x4ca4b6
lea esi, [eax + 0x434]
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.MSVCRT.DLL_wcscpy
cmp word [ebx + 0x434], 0
je 0x4ca465
mov dword [esp + 4], 0x2f
mov dword [esp], esi
call sub.MSVCRT.DLL_wcsrchr
mov dword [esp], esi
mov edi, eax
call sub.MSVCRT.DLL_wcslen
lea eax, [ebx + eax*2 + 0x432]
cmp edi, eax
je 0x4ca465
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call sub.MSVCRT.DLL_wcsrchr
mov dword [esp], esi
mov edi, eax
call sub.MSVCRT.DLL_wcslen
lea eax, [ebx + eax*2 + 0x432]
cmp edi, eax
je 0x4ca465
mov dword [esp + 4], 0x709ca8
mov dword [esp], esi
call sub.MSVCRT.DLL_wcscat
mov dword [esp + 4], 0x709cac
mov dword [esp], esi
call sub.MSVCRT.DLL_wcscat
lea edx, [ebx + 0x224]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebx + 0x42c], 0xffffffff
mov dword [ebx + 0x430], 0
mov dword [ebx + 0x21c], 0
mov word [ebx + 0x220], 0
mov word [ebx + 0x222], 0
add esp, 0x330
mov eax, ebx
pop ebx
pop esi
pop edi
ret
Function at 0x4bd820
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.004c1750
mov dword [esp], eax
call sub.WS2_32.DLL_gethostbyname
test eax, eax
push edx
je 0x4bd857
movsx ecx, word [eax + 8]
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
mov edx, dword [esp + 0x28]
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov dword [edx], ecx
add esp, 0x1c
ret
xor eax, eax
jmp 0x4bd853

Function at 0x4bd860
Capabilities:
Connect socket

Disassembly:
push ebx
or eax, 0xffffffff
sub esp, 0x28
cmp dword [esp + 0x38], 2
jne 0x4bd8e7
mov eax, dword [esp + 0x40]
lea ebx, [esp + 0x10]
and eax, 0xffff
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov word [esp + 0x10], 2
mov dword [esp], eax
call sub.WS2_32.DLL_htons
push ecx
mov edx, dword [esp + 0x3c]
mov word [esp + 0x12], ax
mov dword [esp + 8], edx
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.MSVCRT.DLL_memcpy
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0x10
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.WS2_32.DLL_connect
sub esp, 0xc
add esp, 0x28
pop ebx
ret
Function at 0x4bdc90
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.WS2_32.DLL_send
sub esp, 0x10
add esp, 0x1c
ret

Function at 0x4bdd50
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.WS2_32.DLL_recv
sub esp, 0x10
add esp, 0x1c
ret

Function at 0x4bde20
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.WS2_32.DLL_setsockopt
sub esp, 0x14
add esp, 0x2c
ret

Function at 0x4bdec0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.WS2_32.DLL_getsockname
sub esp, 0xc
add esp, 0x1c
ret

Function at 0x4bdf80
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1ac
lea eax, [esp + 0x10]
mov dword [esp], 0x101
mov dword [esp + 4], eax
call sub.WS2_32.DLL_WSAStartup
push ecx
push ecx
mov dword [esp], 0x4bcf00
call fcn.00401335
mov eax, dword [sym.imp.MSVCRT.DLL__iob]
mov dword [0x73d5d0], eax
lea edx, [eax + 0x20]
add eax, 0x40
mov dword [0x73d5d8], edx
mov dword [0x73d5d4], eax
add esp, 0x1ac
ret

Function at 0x4c2a60
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
mov eax, dword [0x73c460]
test eax, eax
je 0x4c2a75
mov eax, dword [0x73c464]
add esp, 0xc
ret
call sub.KERNEL32.DLL_TlsAlloc
mov dword [0x73c460], 1
mov dword [0x73c464], eax
add esp, 0xc
ret

Function at 0x4c2a90
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.004c2a60
mov dword [esp], eax
call sub.KERNEL32.DLL_TlsGetValue
push edx
add esp, 0x1c
ret

Function at 0x4c2ab0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.004c2a60
mov edx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.KERNEL32.DLL_TlsSetValue
push ecx
push ecx
add esp, 0x1c
ret
Function at 0x4c2d60
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov dword [esp], 0x73d5e4
call sub.KERNEL32.DLL_InitializeCriticalSection
push eax
call sub.KERNEL32.DLL_TlsAlloc
mov dword [esp], 0xb8
mov dword [0x73c584], eax
call sub.MSVCRT.DLL_malloc
mov ecx, 0x20
mov ebx, eax
lea edx, [eax + 8]
mov dword [eax + 4], 0
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [0x73d5dc]
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x8c], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [ebx + 0xb4], eax
call sub.KERNEL32.DLL_GetCurrentProcess
mov edi, eax
call sub.KERNEL32.DLL_GetCurrentThread
mov esi, eax
call sub.KERNEL32.DLL_GetCurrentProcess
lea edx, [ebx + 0xb0]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.KERNEL32.DLL_DuplicateHandle
sub esp, 0x1c
test eax, eax
je 0x4c2e39
mov eax, dword [0x73c584]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.DLL_TlsSetValue
mov dword [0x73c58c], ebx
push eax
push eax
mov eax, dword [0x73c588]
mov dword [0x73c588], ebx
mov dword [ebx], eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov dword [esp], 0xffffffff
call sub.MSVCRT.DLL_exit
lea esi, [esi]
lea edi, [edi]
push edi
push esi
push ebx
xor esi, esi
sub esp, 0x2f0
mov dword [esp], 0xb8
call sub.MSVCRT.DLL_malloc
mov ebx, eax
mov eax, dword [esp + 0x300]
mov ecx, 0x20
lea edx, [ebx + 8]
mov dword [ebx + 4], eax
mov edi, edx
mov eax, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x304]
mov dword [ebx + 0x88], 0
mov dword [ebx + 8], eax
lea eax, [ebx + 0xb4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x4c2c80
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.DLL_CreateThread
mov ecx, 0xb3
sub esp, 0x18
mov edx, eax
mov dword [ebx + 0xb0], eax
mov eax, esi
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x10001
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.KERNEL32.DLL_GetThreadContext
push eax
push eax
mov eax, dword [esp + 0xe8]
mov dword [ebx + 0x8c], eax
mov eax, dword [0x73d5fc]
test eax, eax
jne 0x4c2f83
mov edi, 0x73c590
mov esi, dword [edi]
test esi, esi
je 0x4c2f2c
mov eax, dword [esi + 0x88]
test eax, eax
jne 0x4c2f66
mov edi, esi
mov esi, dword [edi]
test esi, esi
jne 0x4c2f1a
mov eax, dword [0x73c588]
mov edx, dword [0x73d5fc]
mov dword [ebx], eax
mov dword [0x73c588], ebx
test edx, edx
je 0x4c2f50
mov dword [esp], 0x73d5e4
call sub.KERNEL32.DLL_LeaveCriticalSection
push eax
mov dword [0x73d5fc], 1
add esp, 0x2f0
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 0xb0]
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
push ecx
mov dword [esp], esi
call fcn.004cdf48
jmp 0x4c2f14
mov dword [esp], 0x73d5e4
call sub.KERNEL32.DLL_EnterCriticalSection
push eax
jmp 0x4c2f0f
Function at 0x4cdabb
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x10]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.DLL_VirtualQuery
sub esp, 0xc
test eax, eax
jne 0x4cdaff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004cda80
mov eax, dword [esp + 0x24]
cmp eax, 4
je 0x4cdb34
cmp eax, 0x40
je 0x4cdb34
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_VirtualProtect
sub esp, 0x10
mov edi, ebx
mov ecx, ebp
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
cmp eax, 4
je 0x4cdb6f
cmp eax, 0x40
je 0x4cdb6f
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_VirtualProtect
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4cdd50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x73cf60
call sub.KERNEL32.DLL_EnterCriticalSection
mov ebx, dword [0x73cf78]
push ecx
jmp 0x4cdd8f
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.DLL_TlsGetValue
push edx
mov esi, eax
call sub.KERNEL32.DLL_GetLastError
test eax, eax
jne 0x4cdd8c
test esi, esi
je 0x4cdd8c
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4cdd6a
mov dword [esp], 0x73cf60
call sub.KERNEL32.DLL_LeaveCriticalSection
push eax
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x408b40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x43efc8
push dword [eax]
lea eax, [ebp + 8]
mov esi, ecx
push eax
call fcn.0042989e
add esp, 0xc
test eax, eax
jne 0x408c1e
mov eax, dword [ebp + 8]
test eax, eax
je 0x408bfb
push eax
push 0x40
lea edi, [esi + 4]
push 1
push edi
call fcn.00429eec
push dword [ebp + 8]
mov dword [esi + 0x44], eax
call fcn.00429827
mov ebx, dword [esi + 0x44]
add esp, 0x14
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc8], 7
mov dword [esi], eax
test ebx, ebx
je 0x408bd8
push ebx
mov ecx, edi
call fcn.004097e0
add esp, 4
test al, al
je 0x408bd8
push 0x40
push 0
push edi
mov byte [esi + 0xcc], 1
call fcn.00430ad0
add esp, 0xc
mov dword [esi + 0x44], 0
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
cmp ebx, 0x40
jbe 0x408bce
push 0x40
push 0
push edi
call fcn.00430ad0
add esp, 0xc
mov dword [esi + 0x44], 0
xor al, al
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
call fcn.00426c8a
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x1f2
push str.....commonoptionsDHCP.cpp
push str.ERROR
call fcn.0040ae90
add esp, 0x14
pop edi
pop esi
xor al, al
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x408c70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x454288]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x48]
push edi
push 0x40
push 0
push eax
mov edi, ecx
call fcn.00430ad0
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x43efc8
push dword [esi]
push eax
call fcn.0042989e
add esp, 0xc
test eax, eax
jne 0x408d76
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x408d53
push eax
push 0x40
lea eax, [ebp - 0x48]
push 1
push eax
call fcn.00429eec
push dword [ebp - 0x4c]
mov esi, eax
call fcn.00429827
mov ecx, dword [ebp + 0xc]
add esp, 0x14
mov dword [edi], ecx
test esi, esi
je 0x408d23
push esi
lea ecx, [ebp - 0x48]
call fcn.004097e0
add esp, 4
test al, al
je 0x408d23
push 0x40
lea eax, [edi + 4]
mov byte [edi + 0xcc], 1
push 0
push eax
call fcn.00430ad0
add esp, 0xc
mov dword [edi + 0x44], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426c47
mov esp, ebp
pop ebp
ret 8
push 0
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x48]
call fcn.00409ac0
mov ecx, dword [ebp - 0x50]
or edx, 0xffffffff
add esp, 4
cmp eax, 2
cmovne ecx, edx
mov eax, ecx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426c47
mov esp, ebp
pop ebp
ret 8
call fcn.00426c8a
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x228
push str.....commonoptionsDHCP.cpp
push str.ERROR
call fcn.0040ae90
add esp, 0x14
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop esi
call fcn.00426c47
mov esp, ebp
pop ebp
ret 8