joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496900
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57f851
push eax
mov dword fs:[0], esp
sub esp, 0xec
push edi
mov edi, ecx
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x49693d
xor eax, eax
pop edi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
push esi
push 0x400
lea ecx, [esp + 0xc]
call fcn.00576f34
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x10c], 0
call fcn.0057627c
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 1
push ecx
mov ecx, dword [edi + 0x5c]
call fcn.0048f910
lea ecx, [esp + 8]
call fcn.005771a3
lea ecx, [esp + 0x30]
call fcn.005763e0
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [edx + 0x28]
push 0
push 0x1000
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x84]
call fcn.0057627c
lea ecx, [esp + 0x74]
lea esi, [edi + 0x60]
push ecx
mov ecx, esi
mov byte [esp + 0x100], 2
call fcn.0048fd80
lea ecx, [esp + 0x74]
call fcn.005763e0
lea ecx, [esp + 8]
call fcn.005771a4
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0xb8]
push edx
push 0x3c
mov eax, dword [eax + 0xc8]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA_1]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call fcn.0048d520
mov edx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [edx + 0xdc]
mov dword [esi + 0xdc], eax
call fcn.0048f820
mov ecx, esi
call fcn.004903c0
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [eax + 0xe0]
mov dword [esi + 0xe0], eax
call fcn.0048f820
mov ecx, esi
call fcn.004903c0
mov ecx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov eax, dword [ecx + 0xe4]
mov ecx, esi
mov dword [esi + 0xe4], eax
call fcn.0048f820
mov ecx, esi
call fcn.004903c0
mov ecx, dword [edi + 0x5c]
call fcn.0048cd00
push eax
mov ecx, esi
call fcn.0048cd10
mov ecx, dword [edi + 0x5c]
call fcn.0048d2c0
push eax
mov ecx, esi
call fcn.0048d260
mov ecx, dword [edi + 0x5c]
call fcn.0048d3e0
push eax
mov ecx, esi
call fcn.0048d390
mov ecx, dword [edi + 0x5c]
push 0
call fcn.0048c5e0
push eax
mov ecx, esi
call fcn.0048c5f0
mov edx, dword [edi + 0x7c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 1
call fcn.00576358
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 0
call fcn.00576358
lea ecx, [esp + 8]
mov dword [esp + 0xfc], 0xffffffff
call fcn.00576fbd
mov ecx, dword [esp + 0xf4]
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0xf8
ret
Function at 0x498180
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x57fa77
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.1.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.0056d3a9
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.0056d3a9
mov edi, dword [sym.imp.USER32.dll_GetSysColor_1]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.1.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA_1]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.00498ca0
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x498cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57fb50
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00578f27
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x498d23
xor al, al
jmp 0x498e4f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA_1]
cmp eax, ebp
jne 0x498d45
xor al, al
jmp 0x498e4f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource_1]
cmp eax, ebp
jne 0x498d58
xor al, al
jmp 0x498e4f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov edi, eax
cmp edi, ebp
jne 0x498d6c
xor al, al
jmp 0x498e4f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.0056d46e
test eax, eax
jne 0x498da0
xor al, al
jmp 0x498e4f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x687aa4
mov dword [esp + 0x20], ebp
call fcn.00578f27
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA_1]
push eax
lea ecx, [esp + 0x14]
call fcn.00575f31
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.00575f88
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x498e34
mov ax, word [ebx]
test ax, ax
je 0x498e26
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00498e70
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x498e0a
mov dword [esp + 0x10], method.CGdiObject.1.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.00575f88
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x499380
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.005775e1
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4993c6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
lea edx, [esp + 8]
push edx
call fcn.0055e6b8
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x6ae230
push ecx
call fcn.005605ee
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA_1]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4bcb1e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x108
call fcn.0053af86
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x6ae816
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
push 0x108
call fcn.0053af86
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x6ae816
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], 0
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], 0
mov eax, dword [ebp - 4]
add eax, 8
mov ecx, pe_nt_image_headers32
xor ebx, ebx
sub bl, cl
mov byte [ebx + eax], bl
loop 0x4bcbb7
push eax
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov edi, dword [edx + 4]
add edx, 8
mov esi, dword [ebp - 8]
add esi, 8
mov ecx, pe_nt_image_headers32
xor ebx, ebx
cmp ebx, edi
jb 0x4bcbdf
xor ebx, ebx
mov ah, byte [ebx + edx]
mov byte [esi], ah
inc esi
inc ebx
loop 0x4bcbd9
pop edi
xor ebx, ebx
sub esi, 0x100
xor eax, eax
mov ecx, pe_nt_image_headers32
mov dl, byte [eax + esi]
add bl, dl
mov dl, byte [eax + edi]
add bl, dl
mov dl, byte [eax + edi]
mov dh, byte [ebx + edi]
mov byte [eax + edi], dh
mov byte [ebx + edi], dl
inc eax
loop 0x4bcbf8
mov esi, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0xc], ecx
add esi, 8
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x1bc
call fcn.0053e450
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4bcc54
push ebx
call fcn.0053af9e
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
add edx, 8
xor eax, eax
xor ebx, ebx
push ecx
movzx ecx, al
inc cl
push edx
mov dh, byte [ecx + edi]
add bl, dh
mov dl, byte [ebx + edi]
mov byte [ecx + edi], dl
mov byte [ebx + edi], dh
add dl, dh
movzx edx, dl
mov dl, byte [edx + edi]
mov cl, byte [eax + esi]
xor cl, dl
pop edx
mov byte [eax + edx], cl
inc eax
pop ecx
loop 0x4bcc69
mov ebx, dword [ebp - 4]
push ebx
call fcn.0053af9e
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.0053af9e
add esp, 4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51f221
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 0x8000
jg 0x51f33b
je 0x51f332
cmp eax, 0x80
jg 0x51f2b8
je 0x51f2af
cmp eax, 8
jg 0x51f281
je 0x51f278
cmp eax, 0x80000000
je 0x51f26f
cmp eax, 2
je 0x51f266
cmp eax, 4
jne 0x51f41e
mov eax, 2
pop ebp
ret 4
mov eax, 1
pop ebp
ret 4
mov eax, 0x1f
pop ebp
ret 4
mov eax, 3
pop ebp
ret 4
cmp eax, 0x10
je 0x51f2a6
cmp eax, 0x20
je 0x51f29d
cmp eax, 0x40
jne 0x51f41e
mov eax, 6
pop ebp
ret 4
mov eax, 5
pop ebp
ret 4
mov eax, 4
pop ebp
ret 4
mov eax, 7
pop ebp
ret 4
cmp eax, 0x800
jg 0x51f2fe
je 0x51f2f5
cmp eax, 0x100
je 0x51f2ec
cmp eax, 0x200
je 0x51f2e3
cmp eax, 0x400
jne 0x51f41e
mov eax, 0xa
pop ebp
ret 4
mov eax, 9
pop ebp
ret 4
mov eax, 8
pop ebp
ret 4
mov eax, 0xb
pop ebp
ret 4
cmp eax, 0x1000
je 0x51f329
cmp eax, 0x2000
je 0x51f320
cmp eax, 0x4000
jne 0x51f41e
mov eax, 0xe
pop ebp
ret 4
mov eax, 0xd
pop ebp
ret 4
mov eax, 0xc
pop ebp
ret 4
mov eax, 0xf
pop ebp
ret 4
cmp eax, 0x800000
jg 0x51f3c7
je 0x51f3be
cmp eax, 0x80000
jg 0x51f38e
je 0x51f385
cmp eax, 0x10000
je 0x51f37c
cmp eax, 0x20000
je 0x51f373
cmp eax, 0x40000
jne 0x51f41e
mov eax, 0x12
pop ebp
ret 4
mov eax, 0x11
pop ebp
ret 4
mov eax, 0x10
pop ebp
ret 4
mov eax, 0x13
pop ebp
ret 4
cmp eax, 0x100000
je 0x51f3b5
cmp eax, 0x200000
je 0x51f3ac
cmp eax, 0x400000
jne 0x51f41e
mov eax, 0x16
pop ebp
ret 4
mov eax, 0x15
pop ebp
ret 4
mov eax, 0x14
pop ebp
ret 4
mov eax, 0x17
pop ebp
ret 4
cmp eax, 0x8000000
jg 0x51f409
je 0x51f400
cmp eax, 0x1000000
je 0x51f3f7
cmp eax, 0x2000000
je 0x51f3ee
cmp eax, 0x4000000
jne 0x51f41e
mov eax, 0x1a
pop ebp
ret 4
mov eax, 0x19
pop ebp
ret 4
mov eax, 0x18
pop ebp
ret 4
mov eax, 0x1b
pop ebp
ret 4
cmp eax, 0x10000000
je 0x51f436
cmp eax, 0x20000000
je 0x51f42d
cmp eax, 0x40000000
je 0x51f424
xor eax, eax
pop ebp
ret 4
mov eax, 0x1e
pop ebp
ret 4
mov eax, 0x1d
pop ebp
ret 4
mov eax, 0x1c
pop ebp
ret 4

Function at 0x5383cb
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.ws2_32.dll_WSASocketA]
nop
nop
nop
nop
jmp 0x538401
mov esp, ebp
pop ebp
ret
Function at 0x53a390
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push dword [ebp + 0xc]
call fcn.00538a95
mov dword [ebp - 4], eax
fild dword [ebp + 0xc]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x6b68c1]
fstp qword [ebp - 0x14]
push 0
push dword [ebp + 0xc]
push 0
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 1
fld qword [ebp - 0x14]
call fcn.00499a3d
push eax
push dword [ebp - 4]
call dword [sym.imp.ws2_32.dll_WSASend]
nop
nop
nop
nop
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x53a4ad
mov ebx, dword [0x6b6f62]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp + 8]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
push 0x80000301
push 0
mov ebx, dword [ebp - 4]
push dword [ebx]
push 1
mov ebx, 0xc
mov eax, 0x5479a0
call fcn.0053b760
add esp, 0x10
mov ebx, dword [0x6b6f62]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp + 8]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x18
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx], 0
mov ebx, dword [0x6b6f62]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp + 8]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
push 0x80000301
push 0
mov ebx, dword [ebp - 4]
push dword [ebx]
push 1
mov ebx, 0x10
mov eax, 0x5479c0
call fcn.0053b760
add esp, 0x10
mov eax, 1
jmp 0x53a587
call dword [sym.imp.kernel32.dll_GetLastError]
nop
nop
nop
nop
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3e5
jne 0x53a57d
mov ebx, dword [0x6b6f62]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp + 8]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
push 0x80000301
push 0
mov ebx, dword [ebp - 4]
push dword [ebx]
push 1
mov ebx, 0xc
mov eax, 0x5479a0
call fcn.0053b760
add esp, 0x10
mov ebx, dword [0x6b6f62]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp + 8]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x18
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx], 1
mov ebx, dword [0x6b6f62]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp + 8]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
push 0x80000301
push 0
mov ebx, dword [ebp - 4]
push dword [ebx]
push 1
mov ebx, 0x10
mov eax, 0x5479c0
call fcn.0053b760
add esp, 0x10
mov eax, 1
jmp 0x53a587
mov eax, 0
jmp 0x53a587
mov esp, ebp
pop ebp
ret 8

Function at 0x53e970
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x53e98e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x53e983
pop esi
ret
Function at 0x53fc90
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x53fcf9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0053b5f0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x53ff40
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.00554d11
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x53ffaa
push esi
lea edi, [eax + 0x400]
call fcn.00554d3a
push edi
call fcn.00554d11
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x53ff7a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x53ffc6
push ecx
push esi
call fcn.00540f30
add esp, 8
mov ebx, eax
push esi
call fcn.00554d3a
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x53ffe0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x540063
push ebp
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x540063
push ebx
push edi
call dword [sym.imp.user32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x540056
push ebx
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.user32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.user32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x5405c0
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x5405ce
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.00542280
add esp, 4
test eax, eax
jne 0x5405e0
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
jne 0x5405fb
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
pop esi
ret
cmp ecx, 2
jne 0x540608
mov ecx, dword [esi + 4]
call fcn.00542270
pop esi
ret

Function at 0x540620
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x540633
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.00542280
add esp, 4
test eax, eax
jne 0x540645
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x540654
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x5406ab
mov ebx, dword [ebx + 4]
push edi
call fcn.00554d11
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x54068e
push ebp
call fcn.00554d3a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.00540ff0
push ebp
mov esi, eax
call fcn.00554d3a
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x5406ed
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.0053b5f0
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x5406ea
push esi
call fcn.0053b680
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x5407c0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.ws2_32.dll_gethostbyname
test eax, eax
je 0x5407d6
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
ret
or eax, 0xffffffff
ret

Function at 0x5407e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
push 0x202
xor esi, esi
call sub.ws2_32.dll_WSAStartup
test eax, eax
jne 0x540838
mov ecx, dword [esp + 0x19c]
push ecx
call fcn.005407c0
add esp, 4
cmp eax, 0xffffffff
je 0x540833
push edi
push eax
call sub.ws2_32.dll_inet_ntoa
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00540f30
add esp, 8
mov esi, eax
pop edi
call sub.ws2_32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x190
ret
Function at 0x55569f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x55c930
call fcn.0054a6cc
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0055ad92
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x5556de
call fcn.0055ad92
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5556ec
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5556fa
or eax, 0xffffffff
jmp 0x5557e2
mov ecx, esi
call fcn.00555615
mov dword [ebp - 0x14], eax
call fcn.00556915
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x555731
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x555731
push edi
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.005568c9
push dword [ebp - 0x14]
call fcn.005563fa
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.005553ad
cmp eax, edi
je 0x5557a4
test byte [esi + 0x24], 0x10
je 0x555772
push 4
mov ecx, esi
pop ebx
call fcn.00555dfa
test ah, 1
je 0x55576a
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0055841f
cmp dword [esi + 0x1c], edi
je 0x5557a4
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00555e2e
jmp 0x5557a4
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x5557b8
push 1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x5557d1
call dword [sym.imp.user32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x5557d1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0055564f
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x5582cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x55830f
call fcn.0055ad92
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x55830f
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x558306
xor eax, eax
jmp 0x558317
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0055831d
pop edi
pop esi
pop ebx
ret 4