joyce8/EMBER2024-capa huggingface dataset:
Function at 0x576949
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
xor eax, eax
mov dword [esp + 4], 0
push eax
push eax
lea edx, [esp + 0xc]
call fcn.00576a69
mov ebp, eax
mov ebx, 0x60a734
xor edx, edx
push eax
push eax
mov eax, dword [ebx + 0x14]
call fcn.00576a69
mov dword [esp + 8], eax
mov esi, dword [ebx + 4]
mov edx, dword [esp + 4]
cmp dword [esi], 0
je 0x5769b9
push eax
mov eax, edx
mov dword [esp + 4], edx
call fcn.00576b01
movzx eax, al
mov edx, dword [esp]
cmp al, byte [esi]
je 0x5769a3
cmp al, byte [esi + 1]
jne 0x576a59
mov eax, edx
push eax
call fcn.00576b1d
cmp eax, dword [esi + 4]
je 0x5769b9
cmp eax, dword [esi + 8]
jne 0x576a59
mov eax, dword [ebx + 0x1c]
xor esi, esi
mov dword [esp], esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, eax
mov eax, dword [ebx + 0xc]
test eax, eax
jbe 0x5769e6
mov eax, dword [ebx]
mov ecx, dword [eax + esi]
mov dword [edx + esi], ecx
mov edi, dword [ebx + 0x10]
add esi, edi
mov eax, dword [ebx + 0xc]
cmp esi, eax
jb 0x5769d2
push eax
push eax
mov eax, dword [esp + 0x10]
call fcn.00576b49
mov edi, eax
test edi, edi
je 0x576a59
lea esi, [esp]
push esi
mov esi, dword [ebx + 0x40]
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 0xc]
push eax
push edx
push esi
call edi
mov edx, dword [ebx + 0x2c]
add ebp, edx
mov eax, dword [ebx + 0x18]
mov edx, dword [ebp + 4]
cmp eax, 8
jbe 0x576a31
push 8
pop eax
mov ecx, dword [ebp + eax]
add ecx, edx
mov dword [esi + eax], ecx
mov ecx, dword [ebx + 0x10]
add eax, ecx
mov ecx, dword [ebx + 0x18]
cmp eax, ecx
jb 0x576a1c
mov edx, dword [ebx + 8]
lea eax, [esp]
push eax
mov dword [esi + 8], edx
push dword [esp + 4]
mov ecx, dword [ebx + 0x18]
push ecx
push esi
call edi
mov edx, dword [esi + 0xc]
add edx, esi
mov eax, dword [ebx + 0x38]
add edx, eax
mov ebx, dword [ebx + 0x38]
add esi, ebx
push esi
call edx
pop eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x576b49
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0xc
mov esi, eax
mov dword [esp], edx
test esi, esi
je 0x576b94
mov ebp, dword [esi + 0x3c]
mov edx, dword [ebp + esi + 0x78]
mov dword [esp + 8], edx
mov ecx, dword [edx + esi + 0x18]
mov ebp, dword [edx + esi + 0x20]
add ebp, esi
mov dword [esp + 4], ecx
test ecx, ecx
jbe 0x576b94
xor ebx, ebx
mov eax, dword [ebp + ebx*4]
push eax
push eax
add eax, esi
mov edx, dword [esp + 8]
call fcn.00576bc5
test al, al
jne 0x576b98
inc ebx
cmp ebx, dword [esp + 4]
jb 0x576b78
xor eax, eax
jmp 0x576bb2
mov edx, dword [esp + 8]
mov ecx, dword [edx + esi + 0x24]
add ecx, esi
mov ebp, dword [edx + esi + 0x1c]
add ebp, esi
movzx ebx, word [ecx + ebx*2]
add esi, dword [ebp + ebx*4]
mov eax, esi
add esp, 0xc
pop ebp
pop ebx
pop edi
pop esi
ret 8

Function at 0x57c790
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x57c7bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x57c7bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x57d6a0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x60aca0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5f4620
push esi
call fcn.00504c04
pop ecx
pop ecx
test eax, eax
jne 0x57d6ce
xor al, al
jmp 0x57d74b
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0057d3e1
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x57d708
push dword [ebp - 0x210]
call fcn.004e21e3
xor al, al
jmp 0x57d749
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x57d70e
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x57d72e
push edx
call fcn.0057d5d7
pop ecx
test al, al
je 0x57d6f9
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x57d73c
mov bl, 1
push dword [ebp - 0x210]
call fcn.004e21e3
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004dcc5c
leave
ret

Function at 0x57e401
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x60aca0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x57e444
call fcn.004ee2d3
mov dword [eax], 0xf
call fcn.004ee2e6
mov dword [eax], 0xd
call fcn.004ee205
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dcc5c
leave
ret
test eax, eax
jne 0x57e44b
inc eax
jmp 0x57e438
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x57e436
xor eax, eax
cmp ecx, 1
setne al
jmp 0x57e438
Function at 0x401860
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x4018a4
mov eax, dword [esi + 8]
test eax, eax
je 0x4018a4
mov ecx, dword [esp + 8]
push edi
push eax
mov eax, dword [esp + 0x14]
push eax
push 1
push ecx
call fcn.00427ac3
mov edx, dword [esi + 8]
push edx
mov edi, eax
call fcn.004275f6
add esp, 0x14
test eax, eax
je 0x40189d
pop edi
or eax, 0xffffffff
pop esi
ret 8
mov eax, edi
pop edi
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x4018b0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x4018f4
mov eax, dword [esi + 8]
test eax, eax
je 0x4018f4
mov ecx, dword [esp + 8]
push edi
push eax
mov eax, dword [esp + 0x14]
push eax
push 1
push ecx
call fcn.00427c3d
mov edx, dword [esi + 8]
push edx
mov edi, eax
call fcn.004275f6
add esp, 0x14
test eax, eax
je 0x4018ed
pop edi
or eax, 0xffffffff
pop esi
ret 8
mov eax, edi
pop edi
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x4027a0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43fd58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x452528]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push edi
mov eax, dword [0x452528]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea ebx, [esi + 0x20]
mov edi, 0x10
cmp dword [ebx + 0x18], edi
jb 0x4027e3
mov eax, dword [ebx + 4]
jmp 0x4027e6
lea eax, [ebx + 4]
cmp dword [esi + 0x1c], edi
jb 0x4027f0
mov edx, dword [esi + 8]
jmp 0x4027f3
lea edx, [esi + 8]
lea ebp, [esi + 0xa8]
push eax
mov ecx, ebp
call fcn.00404860
test al, al
je 0x402910
xor eax, eax
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], eax
mov byte [esp + 0x1c], al
mov dword [esp + 0x40], eax
cmp dword [esi + 0x128], edi
jb 0x40282f
mov edx, dword [esi + 0x114]
jmp 0x402835
lea edx, [esi + 0x114]
mov eax, edx
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402840
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.004012c0
cmp dword [esp + 0x2c], 0
je 0x40286d
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.004011d0
cmp dword [esi + 0x144], 0x10
jb 0x40287e
mov edx, dword [esi + 0x130]
jmp 0x402884
lea edx, [esi + 0x130]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402890
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.004012c0
cmp dword [esp + 0x2c], 0
je 0x4028be
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x3c]
call fcn.004011d0
lea edx, [esp + 0x14]
push edx
push 0
push ebp
push 0x404a80
push 0
push 0
mov dword [ebp + 4], 2
mov byte [ebp], 0
call fcn.004270f0
add esp, 0x18
test eax, eax
mov dword [ebp + 0x10], eax
jne 0x4028f8
mov byte [ebp], 1
mov dword [ebp + 4], 5
xor bl, bl
jmp 0x4028fa
mov bl, 1
cmp dword [esp + 0x30], 0x10
jb 0x40290e
mov eax, dword [esp + 0x1c]
push eax
call fcn.00409b4d
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00426fe7
add esp, 0x34
ret
Function at 0x402930
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x43fa88
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x452528]
xor eax, esp
mov dword [esp + 0x78], eax
push ebp
push esi
mov eax, dword [0x452528]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [edi]
test eax, eax
je 0x402add
cmp eax, 1
je 0x40297b
cmp eax, 2
jne 0x402add
push 0x44
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0042a1a0
xor eax, eax
mov ebp, 0x10
add esp, 0xc
cmp dword [edi + 0x128], ebp
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jb 0x4029bb
mov ecx, dword [edi + 0x114]
jmp 0x4029c1
lea ecx, [edi + 0x114]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4029c6
sub eax, esi
push eax
lea esi, [edi + 0x20]
push ecx
mov ecx, esi
call fcn.004012c0
push 1
push 0x446fe0
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
call fcn.004012c0
push 0
push esi
or eax, 0xffffffff
lea esi, [esp + 0x70]
mov dword [esp + 0x98], 0
call fcn.00401b20
push 1
push 0x446fe0
mov eax, esi
call fcn.00401a30
lea esi, [edi + 0x58]
mov edx, esi
call fcn.00403790
test al, al
jne 0x402a5d
push 1
push 0x446fe4
lea eax, [esp + 0x70]
call fcn.00401a30
push 0
push esi
or eax, 0xffffffff
lea esi, [esp + 0x70]
call fcn.00401b20
cmp dword [esp + 0x80], ebp
mov eax, dword [esp + 0x6c]
jae 0x402a6e
lea eax, [esp + 0x6c]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402aa1
cmp dword [esp + 0x80], ebp
jb 0x402add
mov eax, dword [esp + 0x6c]
push eax
jmp 0x402ad5
cmp dword [edi], 2
jne 0x402ab3
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
cmp dword [esp + 0x80], ebp
jb 0x402add
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00409b4d
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00426fe7
add esp, 0x88
ret
Function at 0x403ce0
Capabilities:
Set socket configuration

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
lea esi, [ebp + 0x7c]
push edi
mov eax, esi
call fcn.00403930
test al, al
je 0x403d8b
mov eax, dword [ebp + 0x84]
cmp eax, 0xffffffff
mov ebx, 0x1388
mov dword [esp + 0x14], ebx
je 0x403d86
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [esp + 0x18]
push ecx
push 0x1006
push 0xffff
push eax
call edi
cmp eax, 0xffffffff
setne al
test al, al
je 0x403d86
mov eax, dword [ebp + 0x84]
cmp eax, 0xffffffff
mov dword [esp + 0x14], ebx
je 0x403d86
push 4
lea edx, [esp + 0x18]
push edx
push 0x1005
push 0xffff
push eax
call edi
cmp eax, 0xffffffff
setne al
test al, al
je 0x403d86
cmp dword [ebp + 0x24], 0x10
jb 0x403d6a
mov ebx, dword [ebp + 0x10]
jmp 0x403d6d
lea ebx, [ebp + 0x10]
movzx eax, word [ebp + 2]
push eax
mov ecx, esi
call fcn.00408fd0
test al, al
je 0x403d86
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
call fcn.004039b0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x403e20
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x43f9f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x452528]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x452528]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 4
mov esi, ecx
push str.GET
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.004012c0
lea eax, [esp + 8]
push eax
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.00404270
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00404380
push 2
push 0x44709c
lea eax, [esp + 0x10]
call fcn.00401a30
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x403eb5
lea eax, [esp + 0xc]
mov esi, dword [esi + 0x84]
cmp esi, 0xffffffff
jne 0x403ec4
or esi, esi
jmp 0x403ed5
mov edx, dword [esp + 0x1c]
push 0
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp dword [esp + 0x20], 0x10
jb 0x403ee9
mov eax, dword [esp + 0xc]
push eax
call fcn.00409b4d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00426fe7
add esp, 0x2c
ret
Function at 0x404860
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1a0
mov eax, dword [0x452528]
xor eax, esp
mov dword [esp + 0x19c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1ac]
push esi
mov eax, ebp
mov ebx, edx
push edi
mov esi, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404888
sub eax, edx
push eax
lea edi, [esi + 0x68]
push ebp
mov ecx, edi
call fcn.004012c0
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4048ba
xor al, al
jmp 0x404987
push esi
mov ecx, ebx
call fcn.00405200
mov bl, al
test bl, bl
je 0x40496f
cmp dword [edi + 0x18], 0x10
jb 0x4048d7
mov eax, dword [edi + 4]
jmp 0x4048da
lea eax, [edi + 4]
mov edx, dword [esi + 0x1ac]
lea ecx, [esi + 0x1ac]
push 0x1a
push eax
mov eax, dword [edx]
call eax
mov bl, al
test bl, bl
je 0x404914
push 0x80000
call fcn.00409b52
add esp, 4
test bl, bl
mov dword [esi + 0x1a8], eax
mov dword [esi + 0x1a4], 0
jne 0x40496f
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push ebp
call fcn.00401160
push esi
mov ecx, edi
call fcn.00404a90
cmp dword [edi + 0x18], 0x10
jb 0x404936
mov edi, dword [edi + 4]
jmp 0x404939
add edi, 4
mov edx, dword [esi + 0x1ac]
mov eax, dword [edx]
lea ecx, [esi + 0x1ac]
push 0x1a
push edi
call eax
mov bl, al
test bl, bl
je 0x40496f
push 0x80000
call fcn.00409b52
add esp, 4
mov dword [esi + 0x1a8], eax
mov dword [esi + 0x1a4], 0
add esi, 0x1b8
push esi
call fcn.004296bb
add esp, 4
mov dword [esi + 0x10], 0
mov al, bl
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00426fe7
add esp, 0x1a0
ret 4

Function at 0x404a30
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
push 0
push esi
push 0x404a80
push 0
push 0
mov dword [esi + 4], 2
mov byte [esi], 0
call fcn.004270f0
add esp, 0x18
test eax, eax
mov dword [esi + 0x10], eax
jne 0x404a6d
mov byte [esi], 1
mov dword [esi + 4], 5
xor al, al
pop esi
pop ecx
ret
mov al, 1
pop esi
pop ecx
ret
Function at 0x405a30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43fded
mov eax, dword fs:[0]
push eax
sub esp, 0x5ec
push ebx
push ebp
push esi
push edi
mov eax, dword [0x452528]
xor eax, esp
push eax
lea eax, [esp + 0x600]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.00411b57
xor ebp, ebp
push ebp
call fcn.004132be
add esp, 4
push 0x4471ec
mov ecx, edi
call fcn.00413833
xor bl, bl
xor esi, esi
cmp dword [0x455b30], ebp
jle 0x405b20
lea ebx, [ebx]
mov ecx, dword [0x455b34]
mov edx, dword [ecx + esi*4]
push 0x44720c
push edx
call fcn.00429606
add esp, 8
test eax, eax
je 0x405b13
mov eax, dword [0x455b34]
mov ecx, dword [eax + esi*4]
push str._silent
push ecx
call fcn.00429606
add esp, 8
test eax, eax
je 0x405b13
mov edx, dword [0x455b34]
mov eax, dword [edx + esi*4]
push 5
push str._APP_
push eax
call fcn.00428d73
add esp, 0xc
test eax, eax
jne 0x405b15
mov ecx, dword [0x455b34]
mov ecx, dword [ecx + esi*4]
push edi
call fcn.00405d90
jmp 0x405b15
mov bl, 1
add esi, 1
cmp esi, dword [0x455b30]
jl 0x405ab0
lea edx, [esp + 0x30]
push edx
push ebp
lea esi, [edi + 0xa8]
push esi
push 0x402c50
push ebp
push ebp
mov byte [esi], 0
mov byte [esi + 1], 0
call fcn.004270f0
add esp, 0x18
cmp eax, ebp
jne 0x405b56
push ebp
mov byte [esi], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405bdc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x405bc8
push ebp
lea eax, [esp + 0x24]
push eax
lea ecx, [edi + 0xa4]
push ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call sub.gdiplus.dll_GdiplusStartup
test eax, eax
jne 0x405bdc
lea edx, [esp + 0x34]
push edx
call fcn.00406640
lea eax, [esp + 0x34]
mov dword [esp + 0x608], ebp
mov ecx, eax
mov dword [esp + 0x154], esi
mov dword [edi + 0x20], eax
call fcn.00414673
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x60c], 0xffffffff
call fcn.00405c00
jmp 0x405bdc
cmp byte [esi], 0
jne 0x405bdc
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call edi
cmp byte [esi], 0
je 0x405bd3
xor eax, eax
mov ecx, dword [esp + 0x600]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407799
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4077d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4077d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4077d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4077c0
cmp esi, eax
jb 0x4077da
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4088a0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x43fb08
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push edi
mov eax, dword [0x452528]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0040c247
mov ecx, eax
call fcn.0040f3f8
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x408904
lea ecx, [esi + 0x54]
call fcn.0040f6da
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0040f668
mov edi, eax
cmp edi, ebx
jne 0x40891e
xor eax, eax
jmp 0x408921
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x54]
call fcn.0040f676
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], vtable.CBitmap.0
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
mov edx, dword [edi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x14]
call fcn.0040f93d
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40897c
push eax
mov eax, dword [esi + 0x58]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x40897e
xor eax, eax
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
sub eax, edx
sub ecx, ebx
test ebp, ebp
je 0x4089a0
mov ebp, dword [ebp + 4]
push 0xcc0020
push edx
push ebx
push ebp
push eax
push ecx
mov ecx, dword [esi + 0x58]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [edi + 4]
mov eax, dword [esi + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CBitmap.0
call fcn.004074c0
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x408fd0
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x452528]
xor eax, esp
mov dword [esp + 0x10], eax
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x25], 0
jne 0x409095
push ebp
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x40902a
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x409065
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
mov al, byte [edi + 0x18]
cmp al, 1
je 0x409065
cmp al, 8
je 0x409065
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
mov byte [edi + 0x18], 5
je 0x409061
push 0x10
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40907b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40907b
mov byte [edi + 0x18], 7
xor al, al
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00426fe7
add esp, 0x14
ret 4
mov byte [edi + 0x18], 6
mov al, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00426fe7
add esp, 0x14
ret 4
cmp dword [edi + 0x44], 0x10
jb 0x4090a0
mov eax, dword [edi + 0x30]
jmp 0x4090a3
lea eax, [edi + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
movzx edx, word [edi + 0x28]
push edx
mov dword [esp + 0x14], eax
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xe], ax
mov al, byte [edi + 0x18]
cmp al, 1
je 0x409065
cmp al, 8
je 0x409065
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
mov byte [edi + 0x18], 5
je 0x409061
push 0x10
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x409100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x409061
mov al, byte [edi + 0x26]
cmp al, 5
mov byte [edi + 0x18], 6
jne 0x409139
mov esi, edi
call fcn.004095c0
test al, al
je 0x409065
push ebp
mov ecx, ebx
call fcn.00409190
mov byte [edi + 0x24], al
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00426fe7
add esp, 0x14
ret 4
cmp al, 3
jne 0x40915d
push ebp
push edi
mov esi, ebx
call fcn.00409490
mov byte [edi + 0x24], al
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00426fe7
add esp, 0x14
ret 4
cmp al, 4
jne 0x409065
push ebp
push ebx
mov ecx, edi
call fcn.00409370
mov ecx, dword [esp + 0x1c]
mov byte [edi + 0x24], al
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00426fe7
add esp, 0x14
ret 4