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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
mov eax, dword [0x46f068]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
mov esi, ecx
push edi
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41f838
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
mov eax, dword [0x473954]
test eax, eax
jne 0x41f97c
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SHGetKnownFolderPath
push str.shell32.dll
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x473954], eax
test eax, eax
jne 0x41f97c
cmp dword [0x473948], eax
jne 0x41f8b8
push str.SHGetFolderPathW
push str.shell32.dll
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov eax, dword [0x473954]
mov dword [0x473948], ecx
test eax, eax
jne 0x41f97c
test ecx, ecx
jne 0x41f8b8
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41f9d0
lea eax, [esp + 0x10]
push str._EAC_Service___Warning__Falling_back_to_deprecated_SHGetFolderPathW_WinAPI.
push eax
call fcn.004120c0
add esp, 8
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 0x10
jb 0x41f8d9
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esp + 0x24]
cmp edx, 0x10
jb 0x41f916
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41f90c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f9eb
push edx
push ecx
call fcn.00434e86
add esp, 8
lea eax, [esp + 0x28]
mov dword [esp + 0x20], 0
push eax
push 0
push 0
push 0x1a
push 0
mov dword [esp + 0x38], 0xf
mov byte [esp + 0x24], 0
call dword [0x473948]
test eax, eax
jne 0x41f9d0
lea ecx, [esp + 0x28]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f950
sub ecx, edx
lea eax, [esp + 0x28]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004013d0
push 0xe
push 0x46816c
mov ecx, esi
call fcn.004038a0
jmp 0x41f9d0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x458440
call eax
test eax, eax
jne 0x41f9d0
mov edx, dword [esp + 0xc]
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f9a0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004013d0
push 0xe
push 0x46816c
mov ecx, esi
call fcn.004038a0
push dword [esp + 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [esi + 0x10], 0
mov ecx, dword [esp + 0x234]
pop edi
setne al
pop esi
xor ecx, esp
call fcn.00434e45
mov esp, ebp
pop ebp
ret
call fcn.00439dba
int3

Function at 0x44d259
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044ced6
Function at 0x402a04
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.0040407c
test esi, esi
jne 0x402a3a
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.0040416c
jmp 0x402a58
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028b8
mov edi, eax
test esi, esi
je 0x402a58
cmp dword [ebx], 0
je 0x402a58
dec esi
jmp 0x402a41
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4033dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403474
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403454
xor eax, eax
push ebp
push 0x40344d
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 0x403490
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 0x403454
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x41e020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41e020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41f04c], 0
je 0x403edd
cmp word [0x41f220], 0xd7b2
jne 0x403ea5
cmp dword [0x41f228], 0
jbe 0x403ea5
mov eax, 0x41f21c
call dword [0x41f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41e070
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 0x403f04
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41e030], 0
jne 0x403ef9
push 0
push 0x41e068
push 0x41e070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040269c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x41f04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403ff8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405520
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 0x405750
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4055a3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405750
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4055a3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40576c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40562c
xor eax, eax
push ebp
push 0x405625
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405368
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 0x40560a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40578c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40560a
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 0x40562c
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 0x405746
cmp byte [ebp - 0xd], 0
jne 0x405673
cmp byte [ebp - 0x12], 0
je 0x405746
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40568c
dec ebx
cmp byte [ebx], 0x2e
je 0x40569b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40568b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405746
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4056d8
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 0x405746
cmp byte [ebp - 0xd], 0
je 0x405746
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 0x405746
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 0x40562c
Capabilities:
Get geographical location

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 0x405750
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4055a3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405750
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4055a3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40576c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40562c
xor eax, eax
push ebp
push 0x405625
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405368
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 0x40560a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40578c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40560a
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 0x40562c
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 0x405746
cmp byte [ebp - 0xd], 0
jne 0x405673
cmp byte [ebp - 0x12], 0
je 0x405746
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40568c
dec ebx
cmp byte [ebx], 0x2e
je 0x40569b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40568b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405746
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4056d8
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 0x405746
cmp byte [ebp - 0xd], 0
je 0x405746
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 0x405746
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 0x405ddc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405e42
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004042ec
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e74
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e2c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e49
lea eax, [ebp - 0x10]
call fcn.0040407c
ret

Function at 0x40a3c4
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 pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a3fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040416c
jmp 0x40a406
mov eax, ebx
mov edx, esi
call fcn.004040d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a410
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_1
test eax, eax
jle 0x40a431
mov al, byte [esp]
jmp 0x40a433
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40aab8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a930
mov eax, dword [0x41e6d0]
cmp byte [eax], 0
je 0x40ab34
mov eax, dword [0x41e5b0]
call fcn.00402de4
call fcn.004027e4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407be4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40ab7c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ab6a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41e588]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41f668]
call fcn.0040532c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40b860
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 0x40b8c4
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_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004042ec
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407690
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b8cb
lea eax, [ebp - 0xc]
call fcn.0040407c
ret

Function at 0x416a54
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00416880
dec esi
jne 0x416a76
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x419538
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x90], ebx
mov word [ebp - 6], cx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4196df
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 7], 0
mov bl, 6
lea eax, [ebp - 0xd]
mov byte [eax], 0
inc eax
dec bl
jne 0x41957e
xor ebx, ebx
lea esi, [ebp - 0xd]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
mov edx, edi
call fcn.00404274
mov eax, dword [ebp - 0x90]
xor edx, edx
mov dl, bl
lea edx, [edx + edx*2]
inc edx
mov ecx, 2
call fcn.00404578
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, 0x4196fc
call fcn.00404364
mov eax, dword [ebp - 0x88]
call fcn.00407654
mov byte [esi], al
inc ebx
inc esi
cmp bl, 6
jne 0x41958b
mov bl, 6
lea eax, [ebp - 0x73]
mov byte [eax], 0xff
inc eax
dec bl
jne 0x4195e6
xor eax, eax
xor ebx, ebx
lea edx, [ebp - 0xd]
xor ecx, ecx
mov cl, al
add ecx, ecx
lea ecx, [ecx + ecx*2]
mov esi, ebx
and esi, 0xff
add ecx, esi
lea esi, [ebp + ecx - 0x6d]
mov cl, byte [edx]
mov byte [esi], cl
inc ebx
inc edx
cmp bl, 6
jne 0x4195f5
inc eax
cmp al, 0x10
jne 0x4195f0
lea eax, [ebp - 0x84]
xor ecx, ecx
mov edx, 0x10
call fcn.00402e54
mov word [ebp - 0x84], 2
cmp dword [ebp - 4], 0
je 0x41965d
lea eax, [ebp - 0x94]
mov edx, dword [ebp - 4]
call fcn.00404274
mov eax, dword [ebp - 0x94]
mov edx, 0x419708
call fcn.00404464
jne 0x419666
mov dword [ebp - 0x80], 0xffffffff
jmp 0x419672
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
xor ecx, ecx
mov edx, 8
call fcn.00402e54
mov ax, word [ebp - 6]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x82], ax
push 0x10
lea eax, [ebp - 0x84]
push eax
push 0
push 0x66
lea eax, [ebp - 0x73]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.wsock32.dll_sendto
cmp eax, 0xffffffff
je 0x4196b6
cmp eax, 0x66
je 0x4196bd
call sub.wsock32.dll_WSAGetLastError
jmp 0x4196c1
mov byte [ebp - 7], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4196e6
lea eax, [ebp - 0x94]
mov edx, 4
call fcn.004040a0
ret
Function at 0x419718
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4197c7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, esi
mov edx, 0x4197e0
call fcn.004040d0
mov eax, edi
call fcn.00407d10
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4197b1
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4197b1
mov ebx, dword [edx]
lea eax, [ebp - 4]
push eax
xor eax, eax
mov al, byte [ebx]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
xor eax, eax
mov al, byte [ebx + 1]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
xor eax, eax
mov al, byte [ebx + 2]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
xor eax, eax
mov al, byte [ebx + 3]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x24]
mov ecx, 3
mov eax, 0x4197f0
call fcn.004081ac
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004040d0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4197ce
lea eax, [ebp - 4]
call fcn.0040407c
ret

Function at 0x419af8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x419bef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
and eax, 0x80000000
cmp eax, 0x80000000
jb 0x419b55
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, ebx
call fcn.00404518
push eax
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x419bd4
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.00404518
push eax
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x419bd4
mov dword [ebp - 4], 1
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00404648
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
call fcn.00404570
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.00404518
push eax
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x419bd4
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0040747c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.004040d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419bf6
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004040a0
ret
Function at 0x419c04
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
push ebp
push 0x419c91
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx]
and eax, 0x80000000
cmp eax, 0x80000000
jb 0x419c55
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, esi
call fcn.00404518
push eax
mov eax, dword [ebx]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov esi, eax
test esi, esi
jne 0x419c83
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebp - 4], 4
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.00404518
push eax
mov eax, dword [ebx]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419c98
ret

Function at 0x419ca4
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x114], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x419e1f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x419d27
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 8]
call fcn.00404518
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov edi, eax
test edi, edi
jne 0x419e01
mov eax, esi
call fcn.00404518
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov edi, eax
test edi, edi
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x419e01
mov eax, dword [0x41e768]
cmp dword [eax], 1
jne 0x419d4f
mov eax, dword [ebp - 8]
call fcn.00404518
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteKeyA
mov edi, eax
test edi, edi
sete bl
jmp 0x419e01
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 8]
call fcn.00404518
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov edi, eax
test edi, edi
jne 0x419e01
xor edi, edi
xor esi, esi
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyA
mov edi, eax
xor esi, esi
test edi, edi
jne 0x419dd1
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.004042ec
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.0040747c
mov edx, dword [ebp - 0x110]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
call fcn.00419ca4
jmp 0x419df4
cmp edi, 0x103
jne 0x419df4
mov eax, dword [ebp - 8]
call fcn.00404518
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteKeyA
mov edi, eax
test edi, edi
sete bl
jmp 0x419df8
test edi, edi
je 0x419d7a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419e26
lea eax, [ebp - 0x114]
mov edx, 2
call fcn.004040a0
ret