joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ebb00
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push ebp
mov ebp, dword [esp + 0x10]
push edi
jne 0x4ebbd1
cmp dword [esi + 4], 0xffffffff
jne 0x4ebbd1
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ebb31
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4ebb73
cmp ax, 0x2f
je 0x4ebb73
add edi, 0xfffffffe
jmp 0x4ebb60
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4ebb60
mov eax, dword [0x5958a8]
mov dword [edi], eax
cmp ebp, 1
jne 0x4ebb94
push ebp
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4ebb94
mov eax, 0x2000000
pop edi
pop ebp
pop ecx
ret 8
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edx
push ebx
call fcn.004eaa20
add esp, 0x10
test eax, eax
jne 0x4ebbb6
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ecx
ret 8
call fcn.004eaf20
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ebp
pop ecx
ret 8
pop edi
mov eax, 0x1000000
pop ebp
pop ecx
ret 8

Function at 0x4ec1b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x5e95e0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push edi
mov edi, dword [esp + 0x420]
test edi, edi
je 0x4ec1ed
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ec1ed
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x4ec2ca
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x4ec20c
cmp ax, 0x5c
jne 0x4ec20e
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x4ec200
cmp ecx, ebx
push esi
je 0x4ec251
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov esi, ecx
push esi
lea eax, [esp + 0x218]
push ebx
push eax
call fcn.0055cb00
lea ecx, [esp + 0x220]
push ecx
push edi
mov word [esp + esi + 0x228], 0
call fcn.004ec1b0
add esp, 0x14
test edi, edi
mov word [esp + 0xc], 0
je 0x4ec273
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4ec264
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ec277
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4ec290
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4ec290
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop esi
jne 0x4ec2ca
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x418]
pop edi
pop ebx
xor ecx, esp
call fcn.00552101
add esp, 0x414
ret
Function at 0x4ed250
Capabilities:
Encode data using xor
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x4ed330
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x4ed284
cmp dword [esi + 0x40], edi
jae 0x4ed284
push eax
call fcn.005308f6
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x4ed29b
lea eax, [edi + edi]
push eax
call fcn.005308fb
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.0055cb00
add esp, 0xc
cmp edi, ebp
jbe 0x4ed32c
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movzx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5a3550]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
add ecx, 1
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5a3550]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
add ebp, 1
cmp ebp, dword [esp + 0x18]
jb 0x4ed2b1
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x4ed369
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x4ed351
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.0055cb00
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4ed38a
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x4fd350
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0x278]
test eax, eax
je 0x4fd0ac
mov ecx, dword [esi + 0x27c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4fd0b1
call fcn.00553698
mov ecx, dword [esi + 0x278]
lea eax, [edi*8]
sub eax, edi
mov edx, dword [ecx + eax*4 + 0x18]
cmp dword [edx - 0xc], 0
lea eax, [ecx + eax*4]
je 0x4fd0f5
mov eax, dword [eax + 0x10]
sub eax, 1
je 0x4fd0f7
sub eax, 1
jne 0x4fd0f5
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4fd0f5
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4fd0f5
mov esi, dword [esi + 0x3c]
push esi
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
mov ecx, esi
pop esi
jmp 0x4fd350
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x5e95e0]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x134]
test eax, eax
push edi
mov edi, edx
mov dword [ebp - 0x80], edi
je 0x4fd390
push eax
call dword [sym.imp.USER32.dll_DestroyCursor]
mov dword [esi + 0x134], 0
push esi
call fcn.00502930
mov esi, dword [esi + 4]
test esi, esi
je 0x4fd3ac
push 1
push edi
call esi
add esp, 8
xor eax, eax
jmp 0x4fd4d3
push 5
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
mov dword [ebp - 0x7c], eax
ja 0x4fd4d0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x78]
push eax
push 1
push 0
push str..htm
push SysReAllocStringLen
call esi
test eax, eax
jne 0x4fd4d0
lea ecx, [ebp - 0x78]
push ecx
lea edi, [ebp - 0x74]
call fcn.004fd500
test eax, eax
jne 0x4fd4d0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str._shellopencommand
mov edx, edi
push edx
call ebx
lea eax, [ebp - 0x78]
push eax
push 1
push 0
mov ecx, edi
push ecx
push SysReAllocStringLen
call esi
test eax, eax
jne 0x4fd4d0
lea edx, [ebp - 0x78]
push edx
call fcn.004fd500
test eax, eax
jne 0x4fd4d0
mov eax, edi
push str.__1_
push eax
call fcn.00552eeb
mov esi, eax
add esp, 8
test esi, esi
jne 0x4fd478
mov ecx, edi
push 0x5a7ff4
push ecx
call fcn.00552eeb
mov esi, eax
add esp, 8
test esi, esi
jne 0x4fd478
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp + eax*2 - 0x76]
jmp 0x4fd47d
mov word [esi], 0
push 0x598c64
push esi
call ebx
mov eax, dword [ebp - 0x80]
push eax
push esi
call ebx
call dword [0x5eaa70]
lea ecx, [ebp - 0x74]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x4fd4ac
xor eax, eax
jmp 0x4fd4c4
lea esi, [eax + eax]
mov eax, esi
call fcn.00559850
mov eax, esp
push edi
push esi
lea edx, [ebp - 0x74]
push edx
push eax
call fcn.0050c680
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
call fcn.00552101
add ebp, 0x3a0
mov esp, ebp
pop ebp
ret
Function at 0x4fd500
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x5e95e0]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
push esi
mov esi, dword [eax]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
mov dword [esp + 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00552101
add esp, 0x210
ret 4
Function at 0x502230
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x57658e
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x1c]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.004020f0
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x18], 0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x1c]
sub eax, 0x10
push eax
call fcn.004020f0
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [esp + 0x1c], 1
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov ecx, dword [edi + 0x24]
mov dword [esi + 0x24], ecx
mov edx, dword [edi + 0x28]
mov dword [esi + 0x28], edx
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x34], edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov eax, dword [edi + 0x40]
sub eax, 0x10
push eax
call fcn.004020f0
add eax, 0x10
mov dword [esi + 0x40], eax
mov byte [esp + 0x20], 2
mov edx, dword [edi + 0x44]
mov dword [esi + 0x44], edx
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov ecx, dword [edi + 0x4c]
mov dword [esi + 0x4c], ecx
mov edx, dword [edi + 0x50]
mov dword [esi + 0x50], edx
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov ecx, dword [edi + 0x58]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x5c]
mov dword [esi + 0x5c], edx
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov ecx, dword [edi + 0x64]
mov dword [esi + 0x64], ecx
mov edx, dword [edi + 0x68]
mov dword [esi + 0x68], edx
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x6c], eax
mov ecx, dword [edi + 0x70]
mov dword [esi + 0x70], ecx
mov edi, dword [edi + 0x74]
sub edi, 0x10
push edi
call fcn.004020f0
add esp, 0x10
add eax, 0x10
mov dword [esi + 0x74], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x502930
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x585978
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
cmp dword [ebp + 0x134], 0
jne 0x502a7a
mov ebx, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f89
push 0
call ebx
test eax, eax
mov dword [ebp + 0x134], eax
jne 0x502a7a
call fcn.00530e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x50299c
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x5029da
push 0x104
lea ecx, [esp + 0x28]
call fcn.00401fc0
mov esi, dword [esp + 0x24]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test esi, esi
jne 0x5029ee
xor eax, eax
jmp 0x502a08
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5029f3
sub eax, edx
sar eax, 1
js 0x502a90
cmp eax, dword [esi - 8]
jg 0x502a90
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x28]
mov word [esi + eax*2], 0
call fcn.0041ccd0
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x502a4f
push 0x6a
push esi
call ebx
test eax, eax
je 0x502a4f
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebp + 0x134], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x502a7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push 0x80070057
call fcn.00401f70
int3
Function at 0x513ee0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x577428
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x78]
xor edx, edx
cmp ecx, edx
je 0x513f1b
mov eax, ecx
mov ecx, dword [eax + 0x78]
cmp ecx, edx
jne 0x513f12
cmp dword [esp + 0x34], 2
mov ebx, dword [edi + 4]
jne 0x513f36
mov ecx, dword [edi + 0xc]
mov ebp, ecx
sub ebp, ebx
cmp ebp, 3
mov ebx, ecx
je 0x513f36
lea ebx, [ecx - 6]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], vtable.CPen.0
mov dword [esp + 0x28], edx
mov eax, dword [eax + 0x114]
push eax
push 1
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call fcn.00537346
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0053741e
mov ecx, dword [edi]
lea ebp, [ebx + 2]
push ebp
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
mov dword [esp + 0x40], eax
call fcn.00536d88
mov eax, dword [edi + 8]
push ebp
push eax
mov ecx, esi
call fcn.00536a70
mov ecx, dword [edi]
lea ebp, [ebx + 3]
push ebp
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00536d88
mov eax, dword [edi + 8]
push ebp
push eax
mov ecx, esi
call fcn.00536a70
mov ecx, dword [edi]
lea ebp, [ebx + 1]
push ebp
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00536d88
lea eax, [ebx + 5]
push eax
mov eax, dword [edi]
push eax
mov ecx, esi
call fcn.00536a70
mov ecx, dword [edi]
push ebx
sub ecx, 1
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00536d88
lea eax, [ebx + 6]
push eax
mov dword [esp + 0x34], eax
mov eax, dword [edi]
sub eax, 1
push eax
mov ecx, esi
call fcn.00536a70
mov ecx, dword [edi + 8]
push ebp
sub ecx, 1
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00536d88
lea eax, [ebx + 5]
push eax
mov eax, dword [edi + 8]
sub eax, 1
push eax
mov ecx, esi
call fcn.00536a70
mov ecx, dword [edi + 8]
push ebx
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00536d88
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 8]
push eax
push ecx
mov ecx, esi
call fcn.00536a70
mov edx, dword [esp + 0x34]
push edx
mov ecx, esi
call fcn.0053741e
lea ecx, [esp + 0x10]
call fcn.00537399
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.00537399
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x514080
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x577428
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x78]
xor esi, esi
cmp eax, esi
je 0x5140bc
mov ecx, eax
mov eax, dword [ecx + 0x78]
cmp eax, esi
jne 0x5140b3
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], vtable.CPen.0
mov dword [esp + 0x28], esi
mov ebp, dword [edx + 4]
mov eax, dword [edx + 0xc]
mov ebx, dword [edx + 8]
sub eax, ebp
sub eax, 7
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x34]
sar esi, 1
sub ebx, 0xa
add esi, ebp
test eax, eax
jl 0x5141f4
mov edx, dword [esp + 0x30]
cmp eax, dword [edx + 0x6c]
jge 0x5141f4
mov edx, dword [edx + 0x68]
lea eax, [edx + eax*4]
mov eax, dword [eax]
cmp dword [eax + 0x10], 0
je 0x514115
mov ecx, dword [ecx + 0x128]
jmp 0x51411b
mov ecx, dword [ecx + 0x120]
push ecx
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call fcn.00537346
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.0053741e
push esi
push ebx
lea edx, [esp + 0x20]
push edx
mov ecx, edi
mov dword [esp + 0x3c], eax
call fcn.00536d88
lea eax, [esi + 7]
push eax
push ebx
mov ecx, edi
call fcn.00536a70
lea ecx, [esi + 1]
push ecx
lea ebp, [ebx + 1]
push ebp
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.00536d88
lea eax, [esi + 6]
push eax
push ebp
mov ecx, edi
call fcn.00536a70
lea ecx, [esi + 2]
push ecx
lea ebp, [ebx + 2]
push ebp
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.00536d88
lea eax, [esi + 5]
push eax
push ebp
mov ecx, edi
call fcn.00536a70
lea ecx, [esi + 3]
push ecx
add ebx, 3
push ebx
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.00536d88
add esi, 4
push esi
push ebx
mov ecx, edi
call fcn.00536a70
mov eax, dword [esp + 0x30]
push eax
mov ecx, edi
call fcn.0053741e
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.00537399
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
call fcn.00530cad
int3
Function at 0x5172f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x576278
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov eax, dword [ebp]
sub eax, 0x10
push eax
call fcn.004020f0
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 4]
sub eax, 0x10
push eax
call fcn.004020f0
add esp, 8
add eax, 0x10
mov dword [ebx + 4], eax
movzx eax, byte [ebp + 8]
mov byte [ebx + 8], al
mov cl, byte [ebp + 9]
mov byte [ebx + 9], cl
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x10], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebx + 0x14], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebx + 0x18], edx
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov ecx, dword [ebp + 0x20]
mov dword [ebx + 0x20], ecx
mov edx, dword [ebp + 0x24]
mov dword [ebx + 0x24], edx
mov eax, dword [ebp + 0x28]
mov dword [ebx + 0x28], eax
mov ecx, dword [ebp + 0x2c]
mov dword [ebx + 0x2c], ecx
mov edx, dword [ebp + 0x30]
mov dword [ebx + 0x30], edx
mov eax, dword [ebp + 0x34]
mov dword [ebx + 0x34], eax
mov ecx, dword [ebp + 0x38]
mov dword [ebx + 0x38], ecx
mov edx, dword [ebp + 0x3c]
mov dword [ebx + 0x3c], edx
lea esi, [ebp + 0x40]
lea edi, [ebx + 0x40]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x60]
mov dword [ebx + 0x60], eax
mov ecx, dword [ebp + 0x64]
mov dword [ebx + 0x64], ecx
mov dl, byte [ebp + 0x68]
mov byte [ebx + 0x68], dl
movzx eax, byte [ebp + 0x69]
mov byte [ebx + 0x69], al
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x518820
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x578868
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov bl, cl
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x6c]
mov ecx, esi
mov dword [esi + 0x64], eax
call fcn.00537de3
mov ecx, dword [esi + 0x20]
mov dword [esp + 0xc], ecx
mov ecx, esi
call fcn.00537d2d
mov ebp, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov ecx, dword [esi + 0x20]
neg bl
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0xffffff50
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
push ecx
sbb ebx, ebx
not ebx
and ebx, ebp
mov dword [esp + 0x30], ebx
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00533854
mov ecx, esi
mov ebx, eax
call fcn.00537d2d
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ebx + 0x20]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x64]
push ecx
push edi
push edi
mov eax, 3
mov ecx, esi
call fcn.00518290
lea eax, [ebp - 0x10]
mov dword [esp + 0x5c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x518905
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
add esp, 0x54
ret 0xc
Function at 0x51f6f0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x583dcb
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x5e95e0]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x1a8]
mov dword fs:[0], eax
call fcn.00530e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x51f743
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x14]
push ecx
push 0x202
mov dword [esp + 0x1b8], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x51f7c2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
lea edx, [esp + 0x14]
push str.WSAStartUp_Faild_With_Error:__d
push edx
call fcn.00405480
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.0051f860
lea eax, [edi - 0x10]
mov dword [esp + 0x1b0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51f7be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x51f834
mov ax, word [esp + 0x14]
cmp al, 2
jne 0x51f7fa
cmp ah, al
jne 0x51f7fa
lea eax, [esi - 0x10]
mov dword [esp + 0x1b0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51f7f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x51f834
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.The_Local_Socket_Version_is_not_2
call fcn.0051f860
lea eax, [esi - 0x10]
mov dword [esp + 0x1b0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51f831
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.00552101
add esp, 0x1a8
ret