joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480978
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x480a50
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x511528], 0
jne 0x480a34
lea eax, [ebp - 4]
mov edx, 0x480a68
call fcn.004c16a4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004c1abc
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x480a34
mov eax, ebx
call fcn.004bfa18
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x480a2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x480a17
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x480a78
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x480a17
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x511528], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480a34
mov eax, dword [ebp - 0xc]
call fcn.004bfa38
ret
mov ebx, dword [0x511528]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480a57
lea eax, [ebp - 4]
call fcn.004c160c
ret

Function at 0x49e360
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x49e3e9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x511644
push 0x101
call sub.WSOCK32.DLL_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x49e3d3
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.004b2c74
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x49e400
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4f547c]
mov dl, 1
mov eax, dword [0x49dc14]
call fcn.004b35d0
call fcn.004c126c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e3f0
lea eax, [ebp - 0x1c]
call fcn.004c160c
ret
Function at 0x49ea90
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0049e9b4
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004c0cbc
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.WSOCK32.DLL_connect
mov edx, 0x49eaf4
call fcn.0049e2a8
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x49eae6
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004c0cbc
pop esi
pop ebx
ret

Function at 0x49eb18
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004c1abc
push eax
call sub.WSOCK32.DLL_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.004c037c
test ebx, ebx
je 0x49eb63
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x49eba8
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov word [ebx], 2
test edi, edi
je 0x49ebd0
mov edx, edi
mov eax, esi
call fcn.0049eb18
mov dword [ebx + 4], eax
jmp 0x49ec0d
cmp dword [ebp - 4], 0
je 0x49ebe9
mov eax, dword [ebp - 4]
call fcn.004c1abc
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 4], eax
jmp 0x49ec0d
cmp byte [ebp + 0xc], 0
jne 0x49ebf6
xor eax, eax
mov dword [ebx + 4], eax
jmp 0x49ec0d
mov ecx, dword [0x4f5484]
mov dl, 1
mov eax, dword [0x49dc14]
call fcn.004b3594
call fcn.004c126c
cmp dword [ebp + 0x14], 0
je 0x49ec29
mov edx, dword [ebp + 0x14]
mov eax, esi
call fcn.0049eb74
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
jmp 0x49ec37
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10
Function at 0x49ec40
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x49ec71
mov ecx, dword [0x4f548c]
mov dl, 1
mov eax, dword [0x49dc14]
call fcn.004b3594
call fcn.004c126c
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x49ec9e
mov ecx, dword [0x4f5488]
mov dl, 1
mov eax, dword [0x49dc14]
call fcn.004b3594
call fcn.004c126c
xor eax, eax
push ebp
push 0x49ed1a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004c0cbc
cmp byte [ebp + 8], 0
je 0x49ecf6
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0049eba8
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0049ea90
jmp 0x49ed10
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0049e594
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49ed37
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49eefc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0049e850
xor eax, eax
push ebp
push 0x49f06e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x49f058
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x49ef47
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49ef51
call fcn.004c1318
jmp 0x49f075
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004a61b0
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 8]
mov ebx, eax
test ebx, ebx
jle 0x49f04d
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.WSOCK32.DLL_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x49efff
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x49efec
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004c0cbc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0049eeb4
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x49f080]
cmp dl, byte [eax + 0x28]
je 0x49f054
call fcn.004b3470
jmp 0x49f054
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004a61d0
jmp 0x49f054
cmp ecx, ebx
jge 0x49f01b
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004a61d0
jmp 0x49ef51
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004a61b0
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004a61e4
cmp edx, dword [esp + 4]
jne 0x49f03c
cmp eax, dword [esp]
pop edx
pop eax
jne 0x49ef51
push ebp
call fcn.0049eeb4
pop ecx
jmp 0x49f054
push ebp
call fcn.0049eeb4
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f075
mov eax, dword [ebp - 4]
call fcn.0049e85c
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49f084
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49f1a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049e850
xor eax, eax
push ebp
push 0x49f189
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49f0d4
call fcn.004c1318
jmp 0x49f190
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.WSOCK32.DLL_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x49f173
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49f173
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004c0cbc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x49f173
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004b2c74
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x49f1c0
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4f547c]
mov dl, 1
mov eax, dword [0x49dc14]
call fcn.004b35d0
call fcn.004c126c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f190
mov eax, dword [ebp - 4]
call fcn.0049e85c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f1ad
lea eax, [ebp - 0x28]
call fcn.004c160c
ret
Function at 0x49f20c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49f356
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049e850
xor eax, eax
push ebp
push 0x49f339
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x49f271
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x49f271
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.WSOCK32.DLL_ioctlsocket
jmp 0x49f323
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49f284
call fcn.004c1318
jmp 0x49f340
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.WSOCK32.DLL_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x49f323
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49f323
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004c0cbc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x49f323
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004b2c74
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x49f370
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4f547c]
mov dl, 1
mov eax, dword [0x49dc14]
call fcn.004b35d0
call fcn.004c126c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f340
mov eax, dword [ebp - 4]
call fcn.0049e85c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f35d
lea eax, [ebp - 0x28]
call fcn.004c160c
ret

Function at 0x4acb84
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x51181c
cmp dword [edi], 0
jne 0x4acc00
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x511818]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4f07e8
mov ecx, 2
call fcn.004bfcf4
mov edx, 0x4acb5c
lea eax, [esi + 5]
call fcn.004acb7c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004acb7c
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 0x4acbd5
mov dword [0x511818], 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 0x4adf9c
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 0x4ae105
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004c16a4
mov eax, dword [ebp - 0x10]
call fcn.004add2c
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4adfee
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.004c1b5c
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.004ae210
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4ae0c3
xor eax, eax
push ebp
push 0x4ae0bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004ade74
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004ae114
test al, al
je 0x4ae09a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.004c16fc
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4ae09a
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.004c1abc
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x4ae094
mov eax, dword [ebp - 0x14]
call fcn.004c1abc
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004c17fc
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004adf9c
dec ebx
cmp ebx, 0xffffffff
jne 0x4ae04d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae0c3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004ade74
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 0x10]
call fcn.004c1abc
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.004ade60
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 0x4ae10c
lea eax, [ebp - 0x3c]
call fcn.004c160c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004c1630
ret

Function at 0x4ae114
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.004c037c
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 [0x4f54bc]
cmp byte [edx + 0xc], 0
je 0x4ae178
mov edx, dword [0x4f54a8]
cmp dword [edx], 2
jne 0x4ae178
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 0x4ae1a8
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.004add40
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.004c1abc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x4ae206
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4f5460]
mov dl, 1
mov eax, dword [0x4adc64]
call fcn.004b35d0
call fcn.004c126c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4aebc8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x49d1b0]
call fcn.004c2044
xor eax, eax
push ebp
push 0x4aed0c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f0830], 0
jne 0x4aec1b
mov ecx, dword [0x4f54a4]
mov dl, 1
mov eax, dword [0x4afe34]
call fcn.004b3594
call fcn.004c126c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004c037c
mov eax, ebx
call fcn.004c1eb4
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4aed1c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004c33c4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004c1ec4
test eax, eax
jle 0x4aecb3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x4aecac
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004c188c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004c1874
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004b0d28
test eax, eax
jne 0x4aecac
mov ebx, 0x15
jmp 0x4aecb8
mov ebx, 0x10
jmp 0x4aecb8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4f0830]
call fcn.004aeb20
mov eax, dword [ebp - 8]
call fcn.004aeb20
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004c33dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aed13
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004c1630
lea eax, [ebp - 0x10]
mov edx, dword [0x49d1b0]
call fcn.004c2114
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004c1abc
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4b12d5
test al, 0x10
jne 0x4b12d9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4b2cc0
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 0x4b2cf9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004c16fc
jmp 0x4b2d02
mov eax, ebx
mov edx, esi
call fcn.004c1660
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b2d0c
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 0x4b2d2d
mov al, byte [esp]
jmp 0x4b2d2f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4b40e4
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 0x4b4148
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.004c1874
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004b1090
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b414f
lea eax, [ebp - 0xc]
call fcn.004c160c
ret

Function at 0x4bfc5c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4bfc99
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test bl, bl
je 0x4bfcb9
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004c1874
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4bfe20
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.004c160c
test esi, esi
jne 0x4bfe56
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.004c16fc
jmp 0x4bfe74
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004bfd34
mov edi, eax
test esi, esi
je 0x4bfe74
cmp dword [ebx], 0
je 0x4bfe74
dec esi
jmp 0x4bfe5d
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x4c0930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4f0d50]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4c09c8
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4c09a8
xor eax, eax
push ebp
push 0x4c09a1
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 0x4c09e4
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 0x4c09a8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4f0d50]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4f0d50], ax
mov esp, ebp
pop ebp
ret

Function at 0x4c1490
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x511b60], 0
je 0x4c14f1
cmp word [0x511d34], 0xd7b2
jne 0x4c14b9
cmp dword [0x511d3c], 0
jbe 0x4c14b9
mov eax, 0x511d30
call dword [0x511d4c]
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 0x4c1518
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4f0d60], 0
jne 0x4c150d
push 0
push 0x4f0db8
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret