joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7a60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004cba10
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x1008]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push edx
push 0x20219
push 0
push eax
push ecx
mov dword [ebp - 0x1008], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c7b53
push 0x1000
push eax
mov dword [ebp - 0x100c], eax
lea eax, [ebp - 0x1004]
push eax
call fcn.004e30c0
add esp, 0xc
mov dword [ebp - 0x1010], 0x1000
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x100c]
push eax
push 0
push esi
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1008]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4c7b11
cmp dword [ebp - 0x100c], 1
jne 0x4c7b53
lea edx, [ebp - 0x1004]
lea esi, [edx + 2]
lea ebx, [ebx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4c7b20
sub edx, esi
lea eax, [ebp - 0x1004]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.0044e920
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x4c7d60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc0], ebx
push esi
test ecx, ecx
jne 0x4c7d99
mov ecx, edx
lea esi, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c7d90
sub ecx, esi
push edi
push ecx
push edx
lea ecx, [ebp - 0xbc]
mov byte [ebp - 0x54], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xbc], 0x67452301
mov dword [ebp - 0xb8], 0xefcdab89
mov dword [ebp - 0xb4], 0x98badcfe
mov dword [ebp - 0xb0], 0x10325476
call fcn.004c87e0
cmp byte [ebp - 0x54], 0
jne 0x4c7f19
mov eax, dword [ebp - 0xbc]
lea edx, [ebp - 0xc]
mov edi, dword [ebp - 0xac]
lea esi, [ebp - 0xac]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xa8]
mov byte [ebp - 0x54], 1
mov dword [ebp - 0xc0], eax
mov ecx, dword [esi]
lea esi, [esi + 4]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [edx + 2], al
lea eax, [ebp - 4]
mov byte [edx + 3], cl
add edx, 4
cmp edx, eax
jb 0x4c7e40
mov edx, edi
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0xbc]
push eax
push 0x689448
call fcn.004c87e0
push 8
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0xbc]
call fcn.004c87e0
lea edx, [ebp - 0x64]
lea esi, [ebp - 0xbc]
mov edi, edi
mov ecx, dword [esi]
lea esi, [esi + 4]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [edx + 2], al
lea eax, [ebp - 0x54]
mov byte [edx + 3], cl
add edx, 4
cmp edx, eax
jb 0x4c7eb0
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], eax
push 0x42
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004e30c0
add esp, 0xc
lea edi, [ebp - 0x50]
xor esi, esi
mov edi, edi
movzx eax, byte [ebp + esi - 0x64]
push eax
push 0x683a80
push 3
push 3
push edi
call fcn.0048f9b0
inc esi
add esp, 0x14
add edi, 4
cmp esi, 0x10
jl 0x4c7f30
xor eax, eax
mov dword [ebx + 0x10], 0
lea ecx, [ebp - 0x50]
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea edx, [ecx + 2]
pop edi
jmp 0x4c7f70
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c7f70
sub ecx, edx
lea eax, [ebp - 0x50]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0044e920
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x4ce19c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x501ef1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00501d67
Function at 0x517ec0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x517f56
push esi
call fcn.0052a1a0
add esp, 4
test al, al
jne 0x517f56
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x517ee5
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.005375a0
add esp, 0xc
test eax, eax
je 0x517f19
sub eax, esi
push eax
push 0x2e
push esi
call fcn.005375a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x517f1b
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x517f4e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.005283c0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x517f30
pop edi
movzx eax, bl
pop ebx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x524510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x6db], 0
je 0x524597
cmp dword [esi + 0x1a4], 0
je 0x524561
push esi
call fcn.005126e0
push 1
push esi
mov byte [ebp + 8], al
call fcn.00512990
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
push dword [ebp + 8]
push esi
call fcn.00512990
add esp, 0x28
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x524597
push dword [esi + 0x150]
lea eax, [eax + eax*2]
push 1
add eax, 0x697530
push 2
push eax
call fcn.00504cc0
push dword [esi + 0x150]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00504cc0
add esp, 0x20
pop esi
pop ebp
ret
Function at 0x526420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.005018a3

Function at 0x5266c0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x526719
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x526706
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x526700
shr eax, 8
cmp al, 2
je 0x526719
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
push esi
push edi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x526739
mov dword [0x723298], esi
jmp 0x526875
push ebx
push 0x697850
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x697860
push str.iphlpapi.dll
mov ebx, eax
call fcn.00662743
add esp, 8
test eax, eax
je 0x526786
test ebx, ebx
je 0x526774
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x52684d
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x52684d
test ebx, ebx
je 0x5267af
push str.AddDllDirectory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5267af
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x52684d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x198], eax
test eax, eax
je 0x52684d
lea ecx, [eax + 0xd]
push ecx
call dword [0x7192f0]
mov edi, eax
add esp, 4
test edi, edi
je 0x526843
push dword [ebp - 0x198]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x526843
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5267f0
sub ecx, edx
mov eax, 0x5c
mov edx, edi
mov word [ecx + edi], ax
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x526807
sub edx, ecx
mov ecx, str.iphlpapi.dll
sub edx, ecx
add edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x526820
test ebx, ebx
je 0x52683a
push 8
push 0
push edi
call ebx
jmp 0x526841
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x7192f4]
add esp, 4
mov dword [0x723298], esi
pop ebx
test esi, esi
je 0x526875
push str.if_nametoindex
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x723294]
test eax, eax
cmovne ecx, eax
mov dword [0x723294], ecx
push 3
push 2
push 0
push 0
push 6
call fcn.00559910
add esp, 0x14
xorps xmm0, xmm0
test al, al
movlpd qword [0x7260a8], xmm0
setne byte [0x7260a0]
push 0x7260a8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x52a340
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x52a381
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x108], 0
jne 0x52a374
push 0
call fcn.0052a340
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x108], cl
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x108], 2
pop esi
sete al
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x52a397
xor al, al
pop esi
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
pop ebp
ret
Function at 0x537d00
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00518250
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.0066398c
push dword [ebp + 0xc]
mov edi, eax
call fcn.0066398c
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x537d87
lea eax, [ebp - 0x20]
push eax
call fcn.00518250
movups xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.00518310
add esp, 0x20
test edx, edx
ja 0x537daa
jb 0x537d75
cmp eax, 0x3e8
ja 0x537daa
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x537d40
test edi, edi
je 0x537d94
push edi
call fcn.004e6956
add esp, 4
test esi, esi
je 0x537da1
push esi
call fcn.004e6956
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x537db7
push edi
call fcn.004e6956
add esp, 4
test esi, esi
je 0x537dc4
push esi
call fcn.004e6956
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x537f40
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [eax], ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
test eax, eax
jne 0x5380d7
push esi
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x5380c3
push edi
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x537f9e
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x537f90
sub eax, edx
lea ecx, [eax + 1]
jmp 0x537fa0
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], ecx
cmp eax, 2
jne 0x537fb2
mov eax, 0x10
jmp 0x537fc0
cmp eax, 0x17
jne 0x538065
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x538065
mov edx, dword [esi + 0x10]
test edx, edx
je 0x538065
cmp edx, eax
jb 0x538065
add ecx, 0x20
add eax, ecx
push eax
call dword [0x7192f0]
mov edi, eax
add esp, 4
test edi, edi
je 0x5380b5
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.004e25c0
mov edx, dword [ebp - 0xc]
add esp, 0xc
test edx, edx
je 0x538053
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.004e25c0
add esp, 0xc
mov eax, dword [ebp - 0x10]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x538062
mov dword [eax + 0x1c], edi
mov dword [ebp - 0x10], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x537f80
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
pop edi
test eax, eax
je 0x538082
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x5380bf
test ebx, ebx
je 0x5380a6
nop word [eax + eax]
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x7192f4]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x538090
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
mov dword [ebp - 8], esi
jmp 0x538073
test ebx, ebx
jne 0x5380cf
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5384c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.004f9850
add esp, 0x18
test eax, eax
je 0x5384e2
cmp eax, 0xffffffff
jne 0x5384e4
xor eax, eax
pop ebp
ret
Function at 0x538520
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, 0x2b
test edi, edi
je 0x538607
mov esi, dword [ebp + 0xc]
nop word [eax + eax]
push 4
lea eax, [ebp + 0x10]
mov ebx, 4
push eax
push dword [ebp + 8]
cmp edi, ebx
cmovb ebx, edi
call fcn.0051e210
add esp, 0xc
cmp eax, 4
jne 0x5385c4
cmp byte [0x7232a0], 0
jne 0x5385cf
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp + 0x10], 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x538597
mov eax, 2
jmp 0x5385c4
lea eax, [ebp + 0x10]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
test eax, eax
jne 0x5385bc
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
jmp 0x5385c4
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov ecx, eax
test eax, eax
jne 0x538609
mov eax, dword [ebp + 0x10]
jmp 0x5385eb
imul eax, dword [0x72329c], 0x41c64e6d
add eax, 0x3039
mov dword [0x72329c], eax
rol eax, 0x10
xor ecx, ecx
mov dword [ebp + 0x10], eax
test ebx, ebx
je 0x5385ff
nop
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x5385f0
mov dword [ebp + 0x10], eax
test edi, edi
jne 0x538540
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x538610
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov eax, ecx
and eax, 0xfffffffe
mov dword [ebp - 0x94], edx
cmp eax, 0x100
jae 0x5387bf
test cl, 1
je 0x5387bf
dec ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp + 0x10], ecx
shr esi, 1
mov ecx, 0x2b
push edi
lea edi, [ebp - 0x84]
je 0x538761
nop dword [eax]
mov ebx, 4
lea eax, [ebp - 0x88]
push 4
push eax
cmp esi, ebx
push edx
cmovb ebx, esi
call fcn.0051e210
add esp, 0xc
cmp eax, 4
jne 0x538707
cmp byte [0x7232a0], 0
jne 0x538719
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x88], 0
push eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x5386d1
mov eax, 2
jmp 0x538707
lea eax, [ebp - 0x88]
push eax
push 4
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 0x8c]
test eax, eax
jne 0x5386ff
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
jmp 0x538707
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov ecx, eax
test eax, eax
jne 0x5387ae
mov eax, dword [ebp - 0x88]
jmp 0x538738
imul eax, dword [0x72329c], 0x41c64e6d
add eax, 0x3039
mov dword [0x72329c], eax
rol eax, 0x10
xor ecx, ecx
mov dword [ebp - 0x88], eax
test ebx, ebx
je 0x538752
nop dword [eax]
mov byte [edi], al
dec esi
inc edi
shr eax, 8
sub ebx, 1
jne 0x538740
mov dword [ebp - 0x88], eax
test esi, esi
je 0x538761
mov edx, dword [ebp - 0x94]
jmp 0x538670
mov eax, ecx
test eax, eax
jne 0x5387ae
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x90]
test ebx, ebx
je 0x5387a9
lea esi, [ebp - 0x84]
nop word [eax + eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x69b0e4]
mov byte [edx], al
movzx eax, byte [ecx + 0x69b0e4]
mov byte [edx + 1], al
add edx, 2
sub ebx, 2
jne 0x538780
mov byte [edx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x2b
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x53b0b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
je 0x53b14d
mov ebx, dword [0x7232a8]
test ebx, ebx
je 0x53b130
nop word [eax + eax]
mov edi, dword [ebx + 8]
push dword [ebx]
mov dword [ebp - 0x110], edi
call dword [0x7192f4]
mov esi, dword [ebx + 4]
add esp, 4
test esi, esi
je 0x53b120
nop dword [eax + eax]
push dword [esi]
mov edi, dword [esi + 4]
call fcn.00570cd0
push esi
call dword [0x7192f4]
add esp, 8
mov esi, edi
test edi, edi
jne 0x53b100
mov edi, dword [ebp - 0x110]
push ebx
call dword [0x7192f4]
add esp, 4
mov ebx, edi
test edi, edi
jne 0x53b0e0
pop edi
pop esi
mov dword [0x7232a8], 0
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
cmp dword [0x7232a8], 0
jne 0x53b2cf
mov eax, 1
lock xadd dword [0x7232a4], eax
inc eax
cmp eax, 1
jne 0x53b2cf
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x110]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftSystemCertificates
push 0x80000002
mov dword [ebp - 0x110], 0
call esi
test eax, eax
jne 0x53b2ad
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push 0x20019
push 0
push 0x67cb10
push dword [ebp - 0x110]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x53b2a5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004e30c0
add esp, 0xc
mov dword [ebp - 0x10c], 0x104
xor edi, edi
lea eax, [ebp - 0x10c]
xor ebx, ebx
push edi
push edi
push edi
push edi
push eax
lea eax, [ebp - 0x108]
push eax
push edi
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x53b29d
nop dword [eax]
push 0xc
push 1
call dword [0x719300]
mov ecx, dword [ebp - 0x10c]
mov esi, eax
inc ecx
push 1
push ecx
call dword [0x719300]
mov dword [esi], eax
lea ecx, [ebp - 0x108]
push dword [ebp - 0x10c]
push ecx
push eax
call fcn.004e25c0
add esp, 0x1c
test edi, edi
jne 0x53b260
mov dword [0x7232a8], esi
jmp 0x53b263
mov dword [edi + 8], esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x104
push eax
lea eax, [ebp - 0x108]
inc ebx
push eax
push ebx
push dword [ebp - 0x114]
mov edi, esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x53b220
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x114]
call esi
push dword [ebp - 0x110]
call esi
mov esi, dword [0x7232a8]
test esi, esi
je 0x53b2cf
push dword [esi]
call fcn.0053b2f0
add esp, 4
test eax, eax
je 0x53b2c8
mov dword [esi + 4], eax
mov esi, dword [esi + 8]
test esi, esi
jne 0x53b2b7
mov ecx, dword [ebp - 4]
mov eax, dword [0x7232a8]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x53dd20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
lea esi, [ebx + 1]
push esi
push ebx
call dword [0x7192f8]
mov edi, eax
add esp, 8
test edi, edi
je 0x53dd7a
nop dword [eax]
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x53dd96
cmp esi, ebx
je 0x53dd96
cmp esi, 0x8000
ja 0x53dd96
cmp esi, ebx
jb 0x53dd8d
push esi
push edi
call dword [0x7192f8]
mov edi, eax
add esp, 8
test edi, edi
jne 0x53dd40
mov ebx, dword [ebp - 4]
push ebx
call dword [0x7192f4]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x7192f4]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
mov ebx, dword [edi + 0x18]
mov esi, dword [ebx + 0x12c]
push esi
mov dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x543b56
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x88], eax
jmp 0x543b5c
mov eax, dword [ebp - 0x88]
cmp eax, 0xffffffff
jne 0x543b85
push str.Error_accept__ing_server_connect
push edi
call fcn.005245a0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server
push edi
call fcn.00524660
mov byte [ebx + 0x1d5], 0
push 1
push dword [ebp - 0x88]
call fcn.00560480
lea eax, [ebp - 0x88]
push eax
push 1
push ebx
push edi
call fcn.005538c0
add esp, 0x20
test eax, eax
jne 0x543c1e
cmp dword [edi + 0x1ac], eax
je 0x543c1c
push 1
push edi
call fcn.00512990
mov eax, dword [edi + 0x1ac]
push 1
push dword [ebp - 0x88]
push dword [edi + 0x1b0]
call eax
push 0
push edi
mov esi, eax
call fcn.00512990
add esp, 0x1c
test esi, esi
je 0x543c1c
push 1
push edi
call fcn.00523cf0
push 1
push ebx
push edi
call fcn.00523ad0
add esp, 0x14
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb998
mov esp, ebp
pop ebp
ret