joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0ae8
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a0bf7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 1]
test eax, eax
jle 0x4a0be1
mov eax, esi
mov edx, ebx
call fcn.004a0ac8
cmp byte [0x69a09c], 0
jne 0x4a0be1
cmp dword [0x69a098], 0
jne 0x4a0b90
push 0xf0000040
push 1
push 0
push 0
push 0x69a098
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
jne 0x4a0b90
push 0
push 0x400
lea eax, [ebp - 0x404]
push eax
push 0
call sub.kernel32.dll_GetLastError_1
push eax
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [ebp - 4]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.00405904
xor eax, eax
mov dword [0x69a098], eax
mov byte [0x69a09c], 1
push esi
sub ebx, 0
inc ebx
push ebx
mov eax, dword [0x69a098]
push eax
call sub.advapi32.dll_CryptGenRandom
test eax, eax
jne 0x4a0be1
push 0
push 0x400
lea eax, [ebp - 0x404]
push eax
push 0
call sub.kernel32.dll_GetLastError_1
push eax
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [ebp - 4]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.00405904
mov byte [0x69a09c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0bfe
lea eax, [ebp - 4]
call fcn.00405684
ret

Function at 0x4a3748
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor ebx, ebx
cmp ebx, dword [ebp - 0xc]
jge 0x4a37c3
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov eax, dword [esi]
mov edi, dword [eax]
call dword [edi + 0x50]
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
dec ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
inc eax
call fcn.00403234
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
xor al, byte [edx]
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx + ebx]
mov byte [edx + eax - 1], cl
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x4a3767
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a38b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor ebx, ebx
cmp ebx, dword [ebp - 0xc]
jge 0x4a392f
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov eax, dword [esi]
mov edi, dword [eax]
call dword [edi + 0x50]
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
dec ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
inc eax
call fcn.00403234
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + ebx]
mov byte [edx + eax - 1], cl
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
xor al, byte [edx]
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x4a38d3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a4098
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x24]
mov ebx, eax
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x18]
shr edx, 1
add ebx, edx
mov ecx, dword [ebp + 8]
mov ecx, edx
mov edx, dword [ebp + 8]
mov edx, ebx
call fcn.00403234
add ebx, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x34]
add edx, edx
add edx, edx
sub edx, 5
test edx, edx
jl 0x4a416c
inc edx
mov eax, dword [ebx]
mov ecx, eax
and ecx, 0xff
mov esi, dword [0x690470]
movzx ecx, byte [esi + ecx]
mov esi, dword [0x691ad0]
mov ecx, dword [esi + ecx*4 + 0x1000]
mov esi, eax
shr esi, 8
and esi, 0xff
mov edi, dword [0x690470]
movzx esi, byte [edi + esi]
mov edi, dword [0x691ad0]
xor ecx, dword [edi + esi*4 + 0x1400]
mov esi, eax
shr esi, 0x10
and esi, 0xff
mov edi, dword [0x690470]
movzx esi, byte [edi + esi]
mov edi, dword [0x691ad0]
xor ecx, dword [edi + esi*4 + 0x1800]
shr eax, 0x18
mov esi, dword [0x690470]
movzx eax, byte [esi + eax]
mov esi, dword [0x691ad0]
xor ecx, dword [esi + eax*4 + 0x1c00]
mov dword [ebx], ecx
add ebx, 4
dec edx
jne 0x4a40e1
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4a6c54
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov edx, dword [eax + 4]
cmp edx, 0x12
jl 0x4a6c7c
mov ecx, dword [eax + edx*4 + 4]
xor dword [eax + edx*4 - 0x40], ecx
lea ecx, [edx + 3]
mov ebx, dword [eax + edx*4 + 4]
xor dword [eax + ecx*4 - 0x40], ebx
xor ecx, ecx
mov dword [eax + edx*4 + 4], ecx
dec edx
cmp edx, 0x11
jne 0x4a6c5d
cmp dword [eax + 4], 0x11
jle 0x4a6c9c
mov dword [eax + 4], 0x11
jmp 0x4a6c8e
dec dword [eax + 4]
mov edx, dword [eax + 4]
test edx, edx
je 0x4a6c9c
cmp dword [eax + edx*4 + 4], 0
je 0x4a6c8b
pop ebx
ret

Function at 0x4a6db0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, dword [ecx + 4]
mov esi, dword [edx + 4]
cmp edi, esi
jge 0x4a6df7
mov esi, edi
test esi, esi
jle 0x4a6dd8
mov ebx, 1
mov edi, dword [ecx + ebx*4 + 4]
xor edi, dword [edx + ebx*4 + 4]
mov dword [eax + ebx*4 + 4], edi
inc ebx
dec esi
jne 0x4a6dc8
mov ebx, dword [ecx + 4]
inc ebx
cmp ebx, 0x23
jg 0x4a6def
mov ecx, dword [edx + ebx*4 + 4]
mov dword [eax + ebx*4 + 4], ecx
inc ebx
cmp ebx, 0x24
jne 0x4a6de1
mov edx, dword [edx + 4]
mov dword [eax + 4], edx
jmp 0x4a6e5f
cmp edi, esi
jle 0x4a6e33
test esi, esi
jle 0x4a6e14
mov ebx, 1
mov edi, dword [ecx + ebx*4 + 4]
xor edi, dword [edx + ebx*4 + 4]
mov dword [eax + ebx*4 + 4], edi
inc ebx
dec esi
jne 0x4a6e04
mov ebx, dword [edx + 4]
inc ebx
cmp ebx, 0x23
jg 0x4a6e2b
mov edx, dword [ecx + ebx*4 + 4]
mov dword [eax + ebx*4 + 4], edx
inc ebx
cmp ebx, 0x24
jne 0x4a6e1d
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
jmp 0x4a6e5f
mov ebx, esi
jmp 0x4a6e38
dec ebx
mov esi, dword [ecx + ebx*4 + 4]
xor esi, dword [edx + ebx*4 + 4]
je 0x4a6e37
mov esi, ebx
mov dword [eax + 4], esi
mov ebx, esi
cmp ebx, 1
jl 0x4a6e5f
mov esi, dword [ecx + ebx*4 + 4]
xor esi, dword [edx + ebx*4 + 4]
mov dword [eax + ebx*4 + 4], esi
dec ebx
test ebx, ebx
jne 0x4a6e4e
pop edi
pop esi
pop ebx
ret
Function at 0x4a8dc8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405b64
mov eax, dword [ebp - 8]
call fcn.00405b64
xor eax, eax
push ebp
push 0x4a8e81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a8e04
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a8e13
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00405dfc
mov ebx, 1
jmp 0x4a8e5c
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx - 1]
movzx esi, byte [eax + 0x67cfd0]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx - 1]
movzx edi, byte [eax + 0x67cfd0]
mov eax, dword [ebp - 0xc]
call fcn.00405bcc
xor esi, edi
movzx edx, byte [esi + 0x67cf90]
mov byte [eax + ebx - 1], dl
inc ebx
cmp ebx, dword [ebp - 0x10]
jg 0x4a8e66
cmp ebx, dword [ebp - 0x14]
jle 0x4a8e28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8e88
lea eax, [ebp - 8]
mov edx, 2
call fcn.004056a8
ret
Function at 0x4cbd50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4cbd58
push ecx
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4cbf26
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 4]
call fcn.0040c1d4
push dword [ebp - 0xc]
push 0x4cbf3c
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 8]
call fcn.0040c1d4
push dword [ebp - 0x10]
push 0x4cbf3c
lea eax, [ebp - 8]
mov edx, 4
call fcn.00405a34
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.004060a4
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
mov dl, 0x3b
mov eax, dword [ebx + 0xc]
call fcn.00494928
push dword [ebp - 0x14]
push 0x4cbf44
lea ecx, [ebp - 0x18]
mov dl, 0x3b
mov eax, dword [ebx + 0x10]
call fcn.00494928
push dword [ebp - 0x18]
push 0x4cbf44
lea ecx, [ebp - 0x1c]
mov dl, 0x3b
mov eax, dword [ebx + 0x14]
call fcn.00494928
push dword [ebp - 0x1c]
push 0x4cbf44
fld qword [ebx + 0x18]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea ecx, [ebp - 0x24]
mov dl, 0x2e
mov eax, 0xa
call fcn.004968bc
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.004060a4
push dword [ebp - 0x20]
push 0x4cbf44
fld qword [ebx + 0x20]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea ecx, [ebp - 0x2c]
mov dl, 0x2e
mov eax, 0xa
call fcn.004968bc
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.004060a4
push dword [ebp - 0x28]
push 0x4cbf44
lea edx, [ebp - 0x34]
movzx eax, byte [ebx + 0x28]
call fcn.0040c1d4
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.004060a4
push dword [ebp - 0x30]
push 0x4cbf44
lea edx, [ebp - 0x3c]
mov eax, dword [ebx + 0x2c]
call fcn.0040c1d4
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.004060a4
push dword [ebp - 0x38]
push 0x4cbf44
lea edx, [ebp - 0x44]
mov eax, dword [ebx + 0x30]
call fcn.0040c1d4
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
call fcn.004060a4
push dword [ebp - 0x40]
mov eax, esi
mov edx, 0x10
call fcn.004061a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cbf2d
lea eax, [ebp - 0x44]
call fcn.00405684
lea eax, [ebp - 0x40]
call fcn.00405ebc
lea eax, [ebp - 0x3c]
call fcn.00405684
lea eax, [ebp - 0x38]
call fcn.00405ebc
lea eax, [ebp - 0x34]
call fcn.00405684
lea eax, [ebp - 0x30]
call fcn.00405ebc
lea eax, [ebp - 0x2c]
call fcn.00405684
lea eax, [ebp - 0x28]
call fcn.00405ebc
lea eax, [ebp - 0x24]
call fcn.00405684
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00405ed4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004056a8
lea eax, [ebp - 4]
call fcn.00405ebc
ret
Function at 0x4d5260
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d5441
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov eax, edi
mov edx, 0x4d5458
call fcn.004056d8
lea eax, [ebp - 0x14]
push eax
call sub.winhttp.dll_WinHttpGetIEProxyConfigForCurrentUser
test eax, eax
je 0x4d530a
push 0x4d5464
mov cl, 0x19
mov dl, 5
mov eax, esi
call fcn.004cec88
cmp dword [ebp - 0x14], 0
je 0x4d52e6
push 0x4d548c
mov cl, 0x19
mov dl, 4
mov eax, esi
call fcn.004cec88
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 3
mov bl, 1
cmp dword [ebp - 0x10], 0
je 0x4d532a
push 0x4d54b4
mov cl, 0x19
mov dl, 5
mov eax, esi
call fcn.004cec88
add dword [ebp - 0x2c], 2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov bl, 1
jmp 0x4d532a
push 0x4d54ec
mov cl, 0x19
mov dl, 5
mov eax, esi
call fcn.004cec88
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 3
mov bl, 1
test bl, bl
je 0x4d5400
push 0
push 0
push 0
push 1
push 0
call sub.winhttp.dll_WinHttpOpen
mov ebx, eax
lea ecx, [ebp - 4]
mov dx, 0x4e4
mov eax, dword [esi + 0x28]
call fcn.00496ec0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
call fcn.004060b4
push eax
push ebx
call sub.winhttp.dll_WinHttpGetProxyForUrl
test eax, eax
je 0x4d53d0
mov eax, dword [ebp - 0x38]
sub eax, 1
jb 0x4d537e
je 0x4d5390
sub eax, 2
je 0x4d53a2
jmp 0x4d53b4
push 0x4d5518
mov cl, 0x19
mov dl, 5
mov eax, esi
call fcn.004cec88
jmp 0x4d53c4
push 0x4d556c
mov cl, 0x19
mov dl, 5
mov eax, esi
call fcn.004cec88
jmp 0x4d53c4
push 0x4d55b8
mov cl, 0x19
mov dl, 5
mov eax, esi
call fcn.004cec88
jmp 0x4d53c4
push 0x4d5608
mov cl, 0x19
mov dl, 5
mov eax, esi
call fcn.004cec88
mov eax, edi
mov edx, dword [ebp - 0x34]
call fcn.004058bc
jmp 0x4d5400
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x40]
call fcn.0040c3a4
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x4d5640
call fcn.004059c0
mov eax, dword [ebp - 0x3c]
push eax
mov cl, 0x19
mov dl, 2
mov eax, esi
call fcn.004cec88
mov eax, dword [edi]
mov edx, 0x4d5458
call fcn.00405ac0
jne 0x4d541e
cmp dword [ebp - 0xc], 0
je 0x4d541e
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004058bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5448
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004056a8
lea eax, [ebp - 4]
call fcn.00405ebc
ret
Function at 0x511a30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x511b15
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0051197c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20006
push 0
push 0x511b28
push 0
mov eax, dword [ebp - 4]
call fcn.004060b4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
test ebx, ebx
jne 0x511af7
mov eax, dword [ebp - 8]
mov edx, 0x511b34
call fcn.00405ac0
jne 0x511ac1
mov eax, dword [ebp + 8]
push eax
push edi
push esi
push 0
push 0x511b28
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
jmp 0x511add
mov eax, dword [ebp + 8]
push eax
push edi
push esi
push 0
mov eax, dword [ebp - 8]
call fcn.00405b74
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
jne 0x511aee
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov ebx, eax
jmp 0x511af7
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x511b1c
lea eax, [ebp - 8]
call fcn.00405684
lea eax, [ebp - 4]
call fcn.00405ebc
ret
Function at 0x512050
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 4], ecx
mov esi, edx
xor edx, edx
push ebp
push 0x512114
push dword fs:[edx]
mov dword fs:[edx], esp
lea ecx, [ebp - 4]
lea edx, [ebp - 8]
call fcn.005115f4
lea eax, [ebp - 0xc]
push eax
push 8
push 0
mov eax, dword [ebp - 4]
call fcn.004060b4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5120f3
xor ebx, ebx
mov dword [ebp - 0x10], 0xff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x5120ea
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x110]
call fcn.0040d014
mov edx, dword [ebp - 0x114]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
jmp 0x5120a1
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 0x51211b
lea eax, [ebp - 0x114]
call fcn.00405684
lea eax, [ebp - 4]
call fcn.00405ebc
ret

Function at 0x512124
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
xor edx, edx
push ebp
push 0x512222
push dword fs:[edx]
mov dword fs:[edx], esp
lea ecx, [ebp - 4]
lea edx, [ebp - 0xc]
call fcn.005115f4
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.004060b4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x512201
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryInfoKeyW
test eax, eax
jne 0x512201
mov ebx, dword [ebp - 0x14]
dec ebx
test ebx, ebx
jl 0x5121f8
inc ebx
xor esi, esi
mov dword [ebp - 0x1c], 0xff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumValueA
test eax, eax
jne 0x5121f8
lea edx, [ebp - 0x120]
lea eax, [ebp - 0x11c]
call fcn.0040d014
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x5121ad
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512229
lea eax, [ebp - 0x120]
call fcn.00405684
lea eax, [ebp - 4]
call fcn.00405ebc
ret
Function at 0x514550
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x1a8], edx
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5146d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00405684
mov dl, 1
mov eax, dword [0x41c794]
call fcn.00404718
mov dword [ebp - 0x10], eax
mov eax, 0x65
call fcn.00402fc8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5146a5
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x5145ce
call fcn.004050a8
jmp 0x5146ac
push 0x65
mov ebx, dword [ebp - 0xc]
push ebx
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x51467d
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040d014
push ebx
call sub.wsock32.dll_gethostbyname
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x5145fd
cmp dword [ebx], 0
jne 0x514607
call fcn.004050a8
jmp 0x5146ac
mov eax, dword [ebx]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1a4]
call fcn.0040588c
mov edx, dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 4
jmp 0x514655
push dword [esi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1a8]
call fcn.0040588c
mov edx, dword [ebp - 0x1a8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 4
mov esi, dword [ebx]
test esi, esi
jne 0x514630
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jne 0x514675
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x51467d
mov eax, dword [ebp - 8]
call fcn.0051413c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5146ac
mov edx, 0x65
mov eax, dword [ebp - 0xc]
call fcn.00402fe4
call sub.wsock32.dll_WSACleanup
mov eax, dword [ebp - 0x10]
call fcn.00404748
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5146d9
lea eax, [ebp - 0x1a8]
mov edx, 2
call fcn.004056a8
lea eax, [ebp - 4]
call fcn.00405684
ret
Function at 0x514778
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1a8], edx
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x514933
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41c794]
call fcn.00404718
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.00405684
mov eax, 0x65
call fcn.00402fc8
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x514906
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x5148b4
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x514811
mov ecx, 0x51494c
mov dl, 1
mov eax, dword [0x40a7f8]
call fcn.004106cc
call fcn.00404ffc
push 0x65
mov ebx, dword [ebp - 0x10]
push ebx
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x5148aa
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040d014
push ebx
call sub.wsock32.dll_gethostbyname
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x514840
cmp dword [ebx], 0
jne 0x514856
mov ecx, 0x51497c
mov dl, 1
mov eax, dword [0x40a7f8]
call fcn.004106cc
call fcn.00404ffc
mov eax, dword [ebx]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1a4]
call fcn.0040588c
mov edx, dword [ebp - 0x1a4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 4
jmp 0x5148a4
push dword [esi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1a8]
call fcn.0040588c
mov edx, dword [ebp - 0x1a8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 4
mov esi, dword [ebx]
test esi, esi
jne 0x51487f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5148e6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51490d
mov edx, 0x65
mov eax, dword [ebp - 0x10]
call fcn.00402fe4
call sub.wsock32.dll_WSACleanup
ret