joyce8/EMBER2024-capa huggingface dataset:
Function at 0x516b00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x516b0e
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push edx
call fcn.005583d8
add esp, 0x10
pop ebp
ret 0xc

Function at 0x516b30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x516b3e
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push edx
call fcn.00557f51
add esp, 0x10
pop ebp
ret 0xc

Function at 0x51f680
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x51f6b2
push esi
call fcn.0051fe00
add esp, 4
cmp byte [esi + 0x40], 0
je 0x51f6ab
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
pop ebp
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x51f72e
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x51f71d
mov eax, dword [esi + 8]
test eax, eax
je 0x51f6d7
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x51f718
cmp eax, 2
je 0x51f71d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x51f6c8
cmp eax, 3
je 0x51f6ff
cmp eax, 1
jne 0x51f6c8
inc dword [ecx + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 8]
jl 0x51f6c8
mov ecx, dword [esi + 0x11c]
add dword [eax + 8], ecx
jmp 0x51f6c8
xor al, al
pop esi
pop ebp
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.0051f510
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x51f750
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
call fcn.0051f510
pop esi
pop ebp
ret
Function at 0x528210
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x4c], 1
push esi
mov esi, dword [ebx + 0x1a8]
push edi
mov dword [ebp - 0x10], esi
jne 0x528238
mov dword [ebp - 4], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x528243
mov dword [ebp - 4], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push ebx
call eax
xor edi, edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [ebp - 8], edi
cmp dword [ebx + 0x64], edi
jle 0x52831f
jmp 0x52827e
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
mov ecx, dword [esi + edi*4 + 0x20]
cdq
idiv ecx
cmp dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
je 0x52829b
mov edx, dword [esi + 0x18]
add dword [edx + edi*4], 0xff
lea eax, [edx + edi*4]
mov eax, dword [esi + 0x18]
mov edi, dword [eax + edi*4]
dec ecx
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x14], ecx
call fcn.005280b0
mov ecx, eax
xor esi, esi
cmp esi, ecx
jle 0x5282c7
mov ecx, dword [ebp - 0x14]
inc ebx
mov eax, ebx
call fcn.005280b0
mov ecx, eax
cmp esi, ecx
jg 0x5282b6
mov al, byte [ebp - 0xc]
imul bl
mov byte [esi + edi], al
inc esi
cmp esi, 0xff
jle 0x5282b2
cmp dword [ebp - 4], 0
je 0x52830c
mov eax, 1
lea ecx, [edi - 1]
jmp 0x5282f0
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
inc eax
dec ecx
cmp eax, 0xff
jle 0x5282f0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + 0x64]
jl 0x528275
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x531330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, edx
jb 0x5313a9
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00554470
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x531380
sub eax, ebx
jmp 0x531382
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x531371
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x53139f
sub eax, ebx
jmp 0x5313a1
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x531390
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x531403
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, esi
add edx, dword [edi + 0x38]
mov esi, eax
push edx
call fcn.005310c0
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x5313ef
mov esi, dword [edi + 0x6c]
add esi, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx eax, byte [esi]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x531403
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x531335
pop esi
pop ebx
ret

Function at 0x532bb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596dcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.005402d7
push 4
mov dword [ebp - 4], 0
call fcn.0055549a
mov edi, eax
add esp, 4
test edi, edi
je 0x532c27
push ebx
call fcn.0053fcf5
mov dword [edi], eax
call fcn.0053fbaf
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0053f8da
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x532c1c
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0053f902
pop ebx
jmp 0x532c29
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x53a2e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5973f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x14], esi
call fcn.0053a1d0
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x14], 0x10
jb 0x53a317
mov eax, dword [ebx]
jmp 0x53a319
mov eax, ebx
lea ecx, [ebp - 0x10]
push ecx
push esi
lea edx, [ebp - 0x14]
push edx
push esi
push eax
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x53a41b
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x53a347
cmp eax, 2
jne 0x53a41b
mov eax, dword [ebp - 0x10]
cmp eax, esi
jbe 0x53a3f8
inc eax
push eax
call fcn.0053f875
add esp, 4
cmp dword [ebx + 0x14], 0x10
mov esi, eax
jb 0x53a368
mov eax, dword [ebx]
jmp 0x53a36a
mov eax, ebx
mov edx, dword [edi + 0x20]
lea ecx, [ebp - 0x10]
push ecx
push esi
xor ebx, ebx
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x10]
mov byte [esi + eax], bl
mov edi, 0xf
mov eax, esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x53a397
sub eax, ecx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.0040a960
push esi
mov dword [ebp - 4], 1
call fcn.005559df
mov esi, dword [ebp + 8]
add esp, 4
lea ecx, [ebp - 0x30]
push ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov ecx, esi
mov byte [esi], 0
call fcn.0042cb10
cmp dword [ebp - 0x1c], 0x10
jb 0x53a3e3
mov edx, dword [ebp - 0x30]
push edx
call fcn.00553d26
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x10], esi
pop edi
mov dword [eax + 0x14], 0xf
pop esi
mov byte [eax], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push ebx
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
call fcn.0053a0b0
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], esi
call fcn.005379f0
push 0x5e2d8c
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00554cbc
int3
Function at 0x53a450
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5973f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x14], esi
call fcn.0053a1d0
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x14], 0x10
jb 0x53a487
mov eax, dword [ebx]
jmp 0x53a489
mov eax, ebx
lea ecx, [ebp - 0x10]
push ecx
push esi
lea edx, [ebp - 0x14]
push edx
push esi
push eax
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x53a5be
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x53a4b7
cmp eax, 2
jne 0x53a5be
mov eax, dword [ebp - 0x10]
cmp eax, esi
jbe 0x53a59b
inc eax
push eax
call fcn.0053f875
add esp, 4
cmp dword [ebx + 0x14], 0x10
mov esi, eax
jb 0x53a4d8
mov eax, dword [ebx]
jmp 0x53a4da
mov eax, ebx
mov edx, dword [edi + 0x20]
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x10]
push 1
lea ecx, [ebp + 0xf]
push ecx
push esi
mov byte [esi + eax], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, eax
push ebx
call fcn.0053f875
add esp, 4
push ebx
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
xor ebx, ebx
mov eax, edi
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x53a530
sub eax, ecx
push eax
push edi
lea ecx, [ebp - 0x30]
call fcn.0040a960
push esi
mov dword [ebp - 4], 1
call fcn.005559df
push edi
call fcn.005559df
mov esi, dword [ebp + 8]
add esp, 8
lea edx, [ebp - 0x30]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push edx
mov ecx, esi
mov byte [esi], 0
call fcn.0042cb10
cmp dword [ebp - 0x1c], 0x10
jb 0x53a586
mov eax, dword [ebp - 0x30]
push eax
call fcn.00553d26
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x10], esi
pop edi
mov dword [eax + 0x14], 0xf
pop esi
mov byte [eax], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push ebx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, edi
call fcn.0053a0b0
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], esi
call fcn.005379f0
push 0x5e2d8c
lea edx, [ebp - 0x5c]
push edx
call fcn.00554cbc
int3
Function at 0x53a5f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x597408
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
push edi
mov esi, ecx
call fcn.0053a1d0
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0x10
jb 0x53a621
mov eax, dword [edi]
jmp 0x53a623
mov eax, edi
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
mov edx, dword [esi + 0x20]
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x53a65b
cmp dword [ebp - 0x10], 4
jne 0x53a65b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push edi
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.0053a0b0
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0
call fcn.005379f0
push 0x5e2d8c
lea ecx, [ebp - 0x60]
push ecx
call fcn.00554cbc
int3

Function at 0x53a690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597441
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push esi
push edi
mov esi, ecx
call fcn.0053a1d0
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x10], 0
jb 0x53a6cb
mov eax, dword [edi]
jmp 0x53a6cd
mov eax, edi
lea ecx, [ebp - 0x14]
push ecx
push 0
lea edx, [ebp - 0x10]
push edx
push 0
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x53a715
push edi
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, esi
call fcn.0053a0b0
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0
call fcn.005379f0
push 0x5e2d8c
lea edx, [ebp - 0x6c]
push edx
call fcn.00554cbc
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x53a76d
cmp eax, 2
je 0x53a76d
cmp eax, 4
je 0x53a76d
push edi
lea eax, [ebp - 0x88]
push eax
mov ecx, esi
call fcn.0053a0b0
push str.:_type_not_supported
push eax
lea ecx, [ebp - 0xc0]
push ecx
mov dword [ebp - 4], 1
call fcn.00535160
add esp, 0xc
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.005379f0
push 0x5e2d8c
lea edx, [ebp - 0x40]
push edx
call fcn.00554cbc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x53a780
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.0053a1d0
mov edx, dword [esi + 0x20]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x53a879
xor esi, esi
mov dword [ebp - 0x14], pe_nt_image_headers32
cmp dword [ebp - 0x10], ebx
jbe 0x53a879
push edi
mov edi, dword [ebp + 8]
jmp 0x53a7f0
mov edx, dword [ebp - 0x1c]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [edx + 0x20]
lea ecx, [ebp - 0x138]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x53a867
lea eax, [ebp - 0x138]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x53a827
sub eax, edx
push eax
lea ecx, [ebp - 0x138]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040a960
lea edx, [ebp - 0x38]
push edx
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.005398b0
cmp dword [ebp - 0x24], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x53a867
mov eax, dword [ebp - 0x38]
push eax
call fcn.00553d26
add esp, 4
inc esi
mov dword [ebp - 0x14], pe_nt_image_headers32
cmp esi, dword [ebp - 0x10]
jb 0x53a7f0
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x53a890
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.0053a1d0
mov ecx, dword [esi + 0x20]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x53a982
xor esi, esi
mov dword [ebp - 0x14], pe_nt_image_headers32
cmp dword [ebp - 0x10], ebx
jbe 0x53a982
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ecx + 0x20]
lea eax, [ebp - 0x134]
push eax
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x53a970
lea eax, [ebp - 0x134]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x53a930
sub eax, edx
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040a960
lea ecx, [ebp - 0x34]
push ecx
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.005398b0
cmp dword [ebp - 0x20], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x53a970
mov edx, dword [ebp - 0x34]
push edx
call fcn.00553d26
add esp, 4
inc esi
mov dword [ebp - 0x14], pe_nt_image_headers32
cmp esi, dword [ebp - 0x10]
jb 0x53a8f5
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x53a9f7
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5f5cf4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x53aacc
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x53aabb
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x53aaa5
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x53aabb
push eax
push edi
push dword [ebp - 0x110]
call fcn.0053a994
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x53aace
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055dffb
leave
ret 4
Function at 0x53da80
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59774b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push esi
push edi
mov ecx, 0x5fd474
mov dword [ebp - 0x1c], 0x5fd474
call fcn.00530f30
mov esi, dword [ebp + 8]
push esi
mov ecx, 0x5fd48c
mov dword [ebp - 4], 0
call fcn.0053cee0
mov dword [ebp - 0x10], eax
cmp eax, dword [0x5fd490]
je 0x53daf7
mov ecx, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x53dadf
mov eax, dword [eax]
push ecx
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
mov ecx, esi
call fcn.00439da0
test eax, eax
js 0x53daf7
lea eax, [ebp - 0x10]
jmp 0x53db03
mov ecx, dword [0x5fd490]
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x14]
mov edi, dword [eax]
cmp edi, dword [0x5fd490]
je 0x53db2b
push 0x5fd474
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [edi + 0x28]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0x10
jb 0x53db35
mov eax, dword [esi]
jmp 0x53db37
mov eax, esi
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x53dc07
push eax
lea ecx, [ebp - 0xb0]
call fcn.0053cae0
mov edi, eax
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
call fcn.00407f50
push edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0053ca60
push 0
lea edx, [ebp - 0x74]
push edx
mov ecx, 0x5fd48c
mov byte [ebp - 4], 3
call fcn.0053d9c0
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x5fd48c
call fcn.0053d6e0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.0053c8b0
cmp dword [ebp - 0x60], 0x10
jb 0x53dbc5
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.00553d26
add esp, 4
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
mov byte [ebp - 4], 0
call fcn.0053c8b0
push 0x5fd474
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
add eax, 0x28
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.0053cfd0
int3

Function at 0x53ec40
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x596da8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0xffffffff
jne 0x53ec7a
mov ebx, dword [edi]
mov ecx, esi
call fcn.0053ac90
push eax
mov eax, dword [ebx + 0x78]
mov ecx, edi
call eax
mov ebx, dword [sym.imp.WS2_32.dll_connect]
mov ecx, esi
call fcn.0053b7e0
push eax
mov ecx, esi
call fcn.0053b7d0
mov ecx, dword [edi + 0x20]
push eax
push ecx
call ebx
test eax, eax
je 0x53ecbf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x53ec80
lea edx, [ebp - 0x28]
push edx
mov ecx, esi
call fcn.0053af70
push eax
mov dword [ebp - 4], 0
call fcn.0053eaf0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x53eee0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [ecx + 0x20], 0xffffffff
mov dword [ebp - 4], ecx
jne 0x53ef06
push 0xec
push str...PocoNet_srcSocketImpl.cpp
push str._sockfd___POCO_INVALID_SOCKET
call fcn.00535310
add esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push esi
push edi
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x53ef66
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x53ef12
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x53ef50
call esi
cmp eax, 0x274c
je 0x53ef50
call fcn.0053eab0
lea ecx, [ebp - 0x30]
call fcn.00537460
push 0x5e2dcc
lea edx, [ebp - 0x30]
push edx
call fcn.00554cbc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x53eff0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x597958
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0xffffffff
jne 0x53f02c
push 0x118
push str...PocoNet_srcSocketImpl.cpp
push str._sockfd___POCO_INVALID_SOCKET
call fcn.00535310
add esp, 0xc
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x10], 0x10
push esi
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [edi + 0x20]
push ebx
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
jns 0x53f082
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x53f037
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x53f0c6
call esi
cmp eax, 0x274c
je 0x53f0c6
call fcn.0053eab0
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0x14]
call fcn.0053aca0
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ebp - 4], 0
call fcn.0053ac40
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0053ac30
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x4c]
call fcn.00537460
push 0x5e2dcc
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00554cbc
int3