joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420c0c
Capabilities:
Create thread
Enumerate process modules
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
call sub.KERNEL32.DLL_GetCurrentProcessId
cmp edi, eax
jne 0x420c2e
xor eax, eax
jmp 0x420d5e
xor edx, edx
mov dword [ebp - 4], edx
push esi
push edi
mov esi, 0x4c61f0
lea edi, [ebp - 0x230]
mov ecx, 0x89
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push edi
push 8
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x224
push eax
push ebx
call sub.KERNEL32.DLL_Module32First
test eax, eax
je 0x420c99
push esi
lea edx, [ebp - 0x110]
push edx
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x420c88
mov dword [ebp - 4], 1
jmp 0x420c99
lea ecx, [ebp - 0x230]
push ecx
push ebx
call sub.KERNEL32.DLL_Module32Next
test eax, eax
jne 0x420c6e
push ebx
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 4], 0
je 0x420cac
xor eax, eax
jmp 0x420d5e
push edi
push 0
push 0x2a
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
test ebx, ebx
jne 0x420cc3
xor eax, eax
jmp 0x420d5e
push esi
call fcn.00479a2c
pop ecx
mov edi, eax
inc edi
push 4
push 0x1000
push edi
push 0
push ebx
call sub.KERNEL32.DLL_VirtualAllocEx
mov dword [ebp - 8], eax
push 0
push edi
push esi
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.KERNEL32.DLL_WriteProcessMemory
push 0x4c664d
call sub.KERNEL32.DLL_GetModuleHandleA
push str.LoadLibraryA
push eax
call sub.KERNEL32.DLL_GetProcAddress
xor edx, edx
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push eax
push 0
push 0
push ebx
call sub.KERNEL32.DLL_CreateRemoteThread
mov esi, eax
test esi, esi
jne 0x420d2d
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x420d5e
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x4ea064]
push edx
push str.Thread_Nine_ID:__d_
push ecx
call fcn.0040f424
add esp, 0xc
push 0xffffffffffffffff
push esi
call sub.KERNEL32.DLL_WaitForSingleObject
push esi
call sub.KERNEL32.DLL_CloseHandle
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e978
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ea184
cmp dword [edi], 0
jne 0x42e9f4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4ea180]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4c6794
mov ecx, 2
call fcn.004431cc
mov edx, 0x42e950
lea eax, [esi + 5]
call fcn.0042e970
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042e970
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x42e9c9
mov dword [0x4ea180], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42fdac
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42ff15
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00444b0c
mov eax, dword [ebp - 0x10]
call fcn.0042fb14
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x42fdfe
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00444fc4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00430290
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42fed3
xor eax, eax
push ebp
push 0x42fecc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0042fc84
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0042ff44
test al, al
je 0x42feaa
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00444b64
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42feaa
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00444f24
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x42fea4
mov eax, dword [ebp - 0x14]
call fcn.00444f24
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00444c64
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0042fdac
dec ebx
cmp ebx, 0xffffffff
jne 0x42fe5d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fed3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0042fc84
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 0x10]
call fcn.00444f24
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0042fc70
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ff1c
lea eax, [ebp - 0x3c]
call fcn.00444a74
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00444a98
ret

Function at 0x42ff44
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00443854
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4e9c14]
cmp byte [edx + 0xc], 0
je 0x42ffa8
mov edx, dword [0x4e9c00]
cmp dword [edx], 2
jne 0x42ffa8
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x42ffac
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x430064
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0042ff44
test al, al
je 0x430046
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00444b64
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x430046
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00444f24
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00444f24
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00444c64
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x42ffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43006b
lea eax, [ebp - 0x2c]
call fcn.00444a74
lea eax, [ebp - 0xc]
call fcn.00444a74
ret

Function at 0x4301a4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0042fb28
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00444f24
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x430202
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4e9be4]
mov dl, 1
mov eax, dword [0x42fa20]
call fcn.00436b90
call fcn.004446d4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43020c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00444f24
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x430264
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4e9be0]
mov dl, 1
mov eax, dword [0x42fa20]
call fcn.00436b90
call fcn.004446d4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042fb58
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43350c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00444f24
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x433525
test al, 0x10
jne 0x433529
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4362ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x436325
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00444b64
jmp 0x43632e
mov eax, ebx
mov edx, esi
call fcn.00444ac8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x436338
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x436359
mov al, byte [esp]
jmp 0x43635b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x437790
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4377f4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00444cdc
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004332e0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4377fb
lea eax, [ebp - 0xc]
call fcn.00444a74
ret

Function at 0x4432f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00444a74
test esi, esi
jne 0x44332e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00444b64
jmp 0x44334c
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0044320c
mov edi, eax
test esi, esi
je 0x44334c
cmp dword [ebx], 0
je 0x44334c
dec esi
jmp 0x443335
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x443db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4c6cd8]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x443e48
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x443e28
xor eax, eax
push ebp
push 0x443e21
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x443e64
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443e28
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4c6cd8]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4c6cd8], ax
mov esp, ebp
pop ebp
ret
Function at 0x4448f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ea4ac], 0
je 0x444959
cmp word [0x4ea680], 0xd7b2
jne 0x444921
cmp dword [0x4ea688], 0
jbe 0x444921
mov eax, 0x4ea67c
call dword [0x4ea698]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x444980
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4c6ce8], 0
jne 0x444975
push 0
push 0x4c6d40
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x4463b4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4465e4
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x446437
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4465e4
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x446437
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x446600
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4464c0
xor eax, eax
push ebp
push 0x4464b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004461fc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x44649e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x446620
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x44649e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4464c0
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4465da
cmp byte [ebp - 0xd], 0
jne 0x446507
cmp byte [ebp - 0x12], 0
je 0x4465da
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x446520
dec ebx
cmp byte [ebx], 0x2e
je 0x44652f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x44651f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4465da
inc ebx
cmp byte [ebp - 0x12], 0
je 0x44656c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4465da
cmp byte [ebp - 0xd], 0
je 0x4465da
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4465da
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446d58
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4eaa20], 1
jae 0x446dde
mov byte [0x4c6cd4], 2
mov dword [0x4ea470], 0x4b7382
mov dword [0x4ea474], 0x4b73a6
mov byte [0x4ea4ae], 2
mov dword [0x4ea45c], 0x4459e4
call fcn.00443d80
test al, al
je 0x446d9b
call fcn.00443db0
call fcn.00443e74
mov word [0x4ea4b4], 0xd7b0
mov word [0x4ea680], 0xd7b0
mov word [0x4ea84c], 0xd7b0
call fcn.004458c4
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4ea4a0], eax
call fcn.00441c04
mov dword [0x4ea49c], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4ea494], eax
ret

Function at 0x4471f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe44
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, 0x4c7024
call fcn.00479eb8
mov dword [ebp - 0x10], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.00488c1c
inc dword [ebp - 0x10]
lea edx, [ebp - 0x1bc]
mov word [ebp - 0x1c], 8
mov word [ebp - 0x1c], 0x14
mov ax, 0x202
push edx
push eax
call sub.WSOCK32.DLL_WSAStartup
mov ecx, dword [ebp - 8]
mov dword [ecx], 0xffffffff
mov eax, dword [ebp - 8]
add eax, 4
cmp dword [ebp - 4], 0
je 0x44725a
mov edx, dword [ebp - 4]
jmp 0x44725f
mov edx, 0x4c6f90
mov esi, eax
xor eax, eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 8]
mov word [eax + 0x108], bx
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.00488dd0
mov ecx, dword [ebp - 0x2c]
mov dword fs:[0], ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44730c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov edi, eax
mov eax, 0x4c7064
call fcn.00479eb8
lea ebx, [edi + 4]
push ebx
call fcn.00479a2c
pop ecx
test eax, eax
jne 0x447353
push str.server_is_null
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 8
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4474a4
push ebx
call sub.WSOCK32.DLL_gethostbyname
mov ebx, eax
test ebx, ebx
jne 0x447384
push str.get_ip_fail
mov ecx, dword [0x4ea064]
push ecx
call fcn.0040f424
add esp, 8
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4474a4
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov esi, eax
mov dword [edi], esi
cmp esi, 0xffffffff
jne 0x4473bc
push str.socket_init_fail
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 8
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4474a4
push 4
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00479888
add esp, 0xc
mov word [ebp - 0x18], 0x14
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.WSOCK32.DLL_inet_ntoa
mov edx, eax
lea eax, [ebp - 4]
call fcn.00488be4
inc dword [ebp - 0xc]
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x18], 8
push 0x10
push 0
push ecx
call fcn.004798f8
add esp, 0xc
mov word [ebp - 0x3c], 2
mov ax, word [edi + 0x108]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x3a], ax
xor esi, esi
mov edx, dword [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x38], edx
push 0x10
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [edi]
push edx
call sub.WSOCK32.DLL_connect
inc eax
jne 0x447437
inc esi
jmp 0x44743b
mov bl, 1
jmp 0x447440
cmp esi, 3
jl 0x447423
test bl, bl
je 0x447464
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0xc]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4474a4
push str.connect_server_fail
mov ecx, dword [0x4ea064]
push ecx
call fcn.0040f424
add esp, 8
mov eax, dword [edi]
push eax
call sub.WSOCK32.DLL_closesocket
mov dword [edi], 0xffffffff
xor eax, eax
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4474ac
Capabilities:
Set socket configuration

Disassembly:
push ebx
push ecx
mov dword [esp], edx
mov ebx, eax
test ecx, ecx
jne 0x4474be
mov ecx, 0x1006
jmp 0x4474c3
mov ecx, 0x1005
push 4
lea eax, [esp + 4]
push eax
push ecx
push 0xffff
mov edx, dword [ebx]
push edx
call sub.WSOCK32.DLL_setsockopt
inc eax
jne 0x447501
push str.settimeout_fail
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 8
mov edx, dword [ebx]
push edx
call sub.WSOCK32.DLL_closesocket
mov dword [ebx], 0xffffffff
xor eax, eax
pop edx
pop ebx
ret
mov al, 1
pop edx
pop ebx
ret
Function at 0x447508
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov dword [esp], edx
mov edi, eax
cmp dword [esp], 0
jne 0x447531
push str.NULL_point
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 8
jmp 0x4475b7
cmp esi, 0x400
je 0x44754f
push str.lenth_error
mov edx, dword [0x4ea064]
push edx
call fcn.0040f424
add esp, 8
jmp 0x4475b7
mov eax, edi
call fcn.0044730c
test al, al
je 0x4475b7
mov ecx, 1
mov edx, 0xbb8
mov eax, edi
call fcn.004474ac
test al, al
je 0x4475b7
xor ebx, ebx
cmp esi, ebx
jle 0x4475ad
push 0
mov eax, esi
sub eax, ebx
push eax
mov edx, dword [esp + 8]
add edx, ebx
push edx
mov ecx, dword [edi]
push ecx
call sub.WSOCK32.DLL_send
cmp eax, 0xffffffff
je 0x447594
add ebx, eax
jmp 0x4475a9
push str.send_fail
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 8
jmp 0x4475ad
cmp esi, ebx
jg 0x447575
push 0x1f4
call sub.KERNEL32.DLL_Sleep
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4476c4
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push ecx
push 0x447638
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret