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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x468b48
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x433219
inc eax
mov dword [esi + 0x10], eax
jmp 0x43332c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43322d
mov eax, 0xffffffc7
jmp 0x43332e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43323e
cmp dword [esi + 8], eax
jne 0x43322d
cmp dword [esi + 8], eax
jne 0x433257
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x433257
mov eax, 0xffffffc7
jmp 0x43332e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43326b
push eax
mov ecx, ebx
call fcn.00432a10
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004075b0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43329c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004075d0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00432180
test eax, eax
mov dword [esp + 0x38], eax
je 0x4332cf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6dc948
call fcn.004077b0
mov eax, dword [esp + 0x38]
jmp 0x43332e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00433040
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x433313
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00433060
mov esi, eax
test esi, esi
jne 0x433343
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00433040
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4332e5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6dc948
call fcn.004077b0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6dc948
call fcn.004077b0
mov eax, esi
jmp 0x43332e

Function at 0x436410
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x436470
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x436470
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x436470
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x436470
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4364b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43c380
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004624a2
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043bd20
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004623d0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045ec94
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045ec94
push 1
push 0
push 0
mov ecx, esi
call fcn.0045ec3c
push 1
push 0
push 1
mov ecx, esi
call fcn.0045ec3c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00462514
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43c500
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004624a2
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043bd20
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004623d0
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43c5c4
cmp dword [esp + 0x40], 1
jne 0x43c5c2
cmp ecx, eax
jge 0x43c5c4
mov eax, ecx
cmp eax, 0xc8
jge 0x43c5d0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043c380
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00462514
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43cd50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469203
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045d0b4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046274a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00463c66
test eax, eax
je 0x43ce6c
mov ecx, dword [esp + 0x3c]
call fcn.00462777
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43ce30
push edi
mov ecx, esi
call fcn.0045fddb
mov ecx, esi
call fcn.0043cfd0
cmp dword [esp + 0x38], 1
jne 0x43ce65
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045ff16
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43f890
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43f8c3
push esi
call fcn.00442980
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43f8bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43f949
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f932
mov eax, dword [esi + 8]
test eax, eax
je 0x43f8e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43f92e
cmp eax, 2
je 0x43f932
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43f8da
cmp eax, 3
je 0x43f90d
cmp eax, 1
jne 0x43f8da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43f8da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43f8da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f970
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f958
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f970
add esp, 4
pop esi
ret

Function at 0x45deaa
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45dee2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045bf5e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045bf36
jmp 0x45deee
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45f598
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 0x45f5da
call fcn.00465051
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45f5da
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45f5d1
xor eax, eax
jmp 0x45f5e2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045f5e8
pop edi
pop esi
pop ebx
ret 4

Function at 0x465581
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4655af
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4655cd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004654e7
jmp 0x4655cd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4655cd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004654e7
test edi, edi
mov eax, edi
jne 0x4655b7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4673fd
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x467438
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x467473
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
test al, 1
je 0x46745d
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x467430
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x4674aa
or eax, 0xffffffff
jmp 0x467430
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x467481
cmp eax, 0xffffffff
je 0x467481
push 1
mov edx, esi
mov ecx, eax
call fcn.004671f9
pop ecx
jmp 0x46742e
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push SysReAllocString
push 0x4bb488
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x46742c
test eax, eax
je 0x46742c
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.004671f9
pop ecx
mov ecx, esi
call fcn.004671c8
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x46742e
Function at 0x48bcf5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [eax], di
je 0x48be0f
push edi
push edi
push 3
push edi
push edi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48bd2c
xor eax, eax
jmp 0x48be3e
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x48bd4f
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x48bd25
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
je 0x48bd25
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x493ccc
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x48bd25
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp dword [edx], edi
jne 0x48bdeb
cmp dword [ecx], edi
jne 0x48bdeb
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
push 0x2000
push dword [ecx]
push dword [edx]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
jmp 0x48be14
mov eax, edi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x64], 0
je 0x48be29
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov dword [esi + 0x64], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4023b0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x114
push esi
push 0
push 2
push 2
mov dword [esp + 0x20], 1
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4023f2
mov esi, dword [esp + 0x11c]
push 0x10
push 0x415200
push str.Error_:_Cant_create_BootP_socket
push esi
call fcn.004032c0
add esp, 0x10
jmp 0x4024dc
mov ecx, dword [esp + 0x120]
xor eax, eax
mov dword [esp + 4], eax
push 0x415548
mov dword [esp + 0xc], eax
push ecx
mov dword [esp + 0x14], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x18], eax
call sub.WSOCK32.dll_getservbyname
test eax, eax
je 0x40242c
mov dx, word [eax + 8]
mov word [esp + 6], dx
jmp 0x40243e
mov eax, dword [esp + 0x124]
push eax
call sub.WSOCK32.dll_htons
mov word [esp + 6], ax
lea ecx, [esp + 0x14]
push 4
push ecx
push 0x20
push 0xffff
push esi
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x402474
mov esi, dword [esp + 0x11c]
push 0x10
push 0x415200
push str.Error:_Cant_set_broadcast_option._nPlease_suppress_DHCP_server_in_the_global_settings
push esi
call fcn.004032c0
add esp, 0x10
jmp 0x4024dc
mov al, byte [0x416b54]
test al, al
jne 0x402487
mov dword [esp + 8], 0
jmp 0x402495
push 0x416b54
call sub.WSOCK32.dll_inet_addr
mov dword [esp + 8], eax
lea edx, [esp + 4]
push 0x10
push edx
push esi
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4024f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push str.Error_Cant_bind_the_BOOTP_port__nEither_you_do_not_have_necessary_privilege_nor_a_BOOTP_daemon_is_already_started_nor_IP_configuration_has_changed_n_nbind_returns_error__d__GetLastError__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [esp + 0x12c]
push 0x10
lea ecx, [esp + 0x2c]
push 0x415200
push ecx
push esi
call fcn.004032c0
add esp, 0x20
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
or eax, 0xffffffff
pop esi
add esp, 0x114
ret
mov eax, esi
pop esi
add esp, 0x114
ret
Function at 0x4030a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20
push esi
mov esi, dword [esp + 0x2c]
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 8]
push esi
push 0x104
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0x20], esi
je 0x4030e6
mov dword [esp + 0x1c], 0x403120
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
test eax, eax
je 0x40310c
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40310c
pop edi
mov eax, 1
pop esi
add esp, 0x20
ret
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret

Function at 0x4033b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403400
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, 1
pop esi
ret
Function at 0x403720
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x444
push ebx
mov ebx, dword [esp + 0x44c]
push esi
push edi
push 0x5c
push ebx
call fcn.0040b8b0
add esp, 8
test eax, eax
jne 0x403743
mov eax, ebx
jmp 0x403744
inc eax
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x468]
mov edi, dword [esp + 0x458]
push ecx
lea edx, [esp + 0x54]
push 0x400
push edx
push 0
lea eax, [esp + 0x20]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
jle 0x4037e5
mov eax, dword [esp + 0x464]
dec eax
je 0x4037b2
sub eax, 3
jne 0x403831
lea ecx, [esp + 0x50]
push ecx
call fcn.0040b8a0
mov edx, dword [esp + 0x460]
add esp, 4
mov dword [edx], eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x444
ret
mov eax, dword [esp + 0x460]
mov edi, dword [esp + 0x45c]
lea ecx, [esp + 0x50]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [esp + 0x460]
mov eax, esi
mov byte [edi + edx - 1], 0
pop edi
pop esi
pop ebx
add esp, 0x444
ret
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push ebx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403831
mov edx, dword [esp + 0x45c]
lea ecx, [esp + 0x460]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x444
ret
Function at 0x403840
Capabilities:
Set registry value

Disassembly:
sub esp, 0x488
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x4ac]
push ebx
push 0x80
push 3
push ebx
push 1
push bind
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40391f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x498]
push 0x5c
push esi
call fcn.0040b8b0
add esp, 8
test eax, eax
jne 0x403893
mov eax, esi
jmp 0x403894
inc eax
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x4a8]
dec eax
je 0x4038f9
sub eax, 3
jne 0x4039a7
mov ecx, dword [esp + 0x4a0]
lea eax, [esp + 0x94]
mov edx, dword [ecx]
push edx
push 0x415804
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x4a8]
add esp, 0xc
lea ecx, [esp + 0x94]
lea eax, [esp + 0x14]
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebx
add esp, 0x488
ret
mov ecx, dword [esp + 0x4a0]
mov edx, dword [esp + 0x49c]
push edi
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebx
add esp, 0x488
ret
mov eax, dword [esp + 0x498]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4039a7
mov esi, dword [esp + 0x4a8]
mov edi, dword [esp + 0x4a0]
cmp esi, 1
jne 0x40396a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
jmp 0x403971
mov eax, dword [esp + 0x4a4]
mov ecx, dword [esp + 0x49c]
mov edx, dword [esp + 0xc]
push eax
push edi
push esi
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x488
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x488
ret