joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fbb0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52b368
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0044a4b0
test eax, eax
je 0x44fcb8
lea ecx, [esp + 0xc]
call fcn.00421a10
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0044a4b0
mov ecx, eax
call fcn.00447b70
test eax, eax
je 0x44fc9f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x44fc9f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc_1]
mov ebx, eax
test ebx, ebx
je 0x44fc9f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock_1]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00421c10
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock_1]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x44fc81
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree_1]
jmp 0x44fc9f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x6a7ee8]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x633e60
call fcn.00421c10
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x44fd00
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0044a4b0
test eax, eax
je 0x44fdef
mov ecx, edi
call fcn.0044a4b0
mov ecx, eax
call fcn.00447a20
test eax, eax
jne 0x44fdef
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x44fdef
mov eax, dword [0x6a7ee8]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x44fd62
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize_1]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock_1]
push eax
mov ecx, edi
call fcn.0044a4b0
mov ecx, eax
call fcn.00447c50
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock_1]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x44fdef
cmp ebx, eax
jne 0x44fdef
cmp dword [esp + 0x10], eax
jne 0x44fdd5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x452980
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52b5f8
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 0x4529b9
inc eax
mov dword [esi + 0x10], eax
jmp 0x452acc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4529cd
mov eax, 0xffffffc7
jmp 0x452ace
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4529de
cmp dword [esi + 8], eax
jne 0x4529cd
cmp dword [esi + 8], eax
jne 0x4529f7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4529f7
mov eax, 0xffffffc7
jmp 0x452ace
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x452a0b
push eax
mov ecx, ebx
call fcn.004521b0
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.00421a10
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x452a3c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00421a30
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00451920
test eax, eax
mov dword [esp + 0x38], eax
je 0x452a6f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x633e60
call fcn.00421c10
mov eax, dword [esp + 0x38]
jmp 0x452ace
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004527e0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x452ab3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00452800
mov esi, eax
test esi, esi
jne 0x452ae3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004527e0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x452a85
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x633e60
call fcn.00421c10
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], 0x633e60
call fcn.00421c10
mov eax, esi
jmp 0x452ace

Function at 0x455c00
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x455c60
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x455c60
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x455c60
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x455c60
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 0x455ca0
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 0x45bbf0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x52bc28
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.0052251b
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0045b590
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.00522449
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.0051ec2a
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.0051ec2a
push 1
push 0
push 0
mov ecx, esi
call fcn.0051ebd2
push 1
push 0
push 1
mov ecx, esi
call fcn.0051ebd2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0052258d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x45bd70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x52bc48
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.0052251b
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0045b590
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.00522449
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 0x45be34
cmp dword [esp + 0x40], 1
jne 0x45be32
cmp ecx, eax
jge 0x45be34
mov eax, ecx
cmp eax, 0xc8
jge 0x45be40
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0045bbf0
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.0052258d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x45c5c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x52bcb3
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.0051d04a
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.005227c3
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00523d1b
test eax, eax
je 0x45c6dc
mov ecx, dword [esp + 0x3c]
call fcn.005227f0
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 0x45c6a0
push edi
mov ecx, esi
call fcn.0051fda8
mov ecx, esi
call fcn.0045c840
cmp dword [esp + 0x38], 1
jne 0x45c6d5
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.0051ff12
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 0x45f100
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45f133
push esi
call fcn.00462210
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45f12c
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 0x45f1b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45f1a2
mov eax, dword [esi + 8]
test eax, eax
je 0x45f157
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 0x45f19e
cmp eax, 2
je 0x45f1a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45f14a
cmp eax, 3
je 0x45f17d
cmp eax, 1
jne 0x45f14a
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 0x45f14a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45f14a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045f1e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45f1c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045f1e0
add esp, 4
pop esi
ret

Function at 0x4731b6
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov dword [esp + 0x1c], ebp
call fcn.00489036
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
jns 0x4731e8
mov dword [esp + 0x2c], 0
jmp 0x473203
mov ecx, ebp
call fcn.00489036
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
mov dword [esp + 0x2c], eax
mov ecx, ebp
call fcn.00489036
xor edi, edi
mov ebx, eax
mov di, word [esi]
xor ecx, ecx
mov cx, word [esi + 4]
xor edx, edx
xor eax, eax
mov dx, di
mov ax, word [esi + 2]
sub ebx, eax
lea esi, [ecx + edx]
mov ecx, ebp
mov dword [esp + 0x20], ebx
call fcn.00489046
cmp eax, esi
jae 0x473243
mov ecx, ebp
call fcn.00489046
mov dword [esp + 0x10], eax
jmp 0x473247
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
call fcn.00488e46
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp ebp, ebx
jge 0x4732b3
mov eax, dword [esp + 0x10]
mov esi, edi
cmp edi, eax
jge 0x4732ae
mov eax, dword [esp + 0x2c]
mov ebx, ebp
sub ebx, eax
mov ecx, dword [esp + 0x28]
mov eax, esi
sub eax, edi
push ebx
push eax
call fcn.0047f526
mov edx, dword [esp + 0x18]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xff
cmp ecx, edx
je 0x4732a1
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push esi
call fcn.0047f906
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x47326e
mov ebx, dword [esp + 0x20]
inc ebp
cmp ebp, ebx
jl 0x47325c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x4944b6
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
cmp eax, 0x9ac6cdd7
jne 0x4944f8
mov dword [esp + 8], eax
lea ecx, [esi + 2]
mov edx, 9
xor ax, word [ecx]
add ecx, 2
dec edx
jne 0x4944d0
cmp ax, word [esi + 0x14]
jne 0x4944f8
mov si, word [esi + 0xe]
test si, si
jbe 0x4944f8
cmp si, 0x9ec
ja 0x4944f8
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x4a67b6
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
push ebx
push esi
jne 0x4a681f
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov cx, word [eax + 0x118]
test cx, cx
jne 0x4a67e1
test byte [eax + 0x230], 1
jne 0x4a67fe
movzx si, byte [edx]
cmp si, cx
jbe 0x4a67fe
push str.Invalid_background_palette_index
push eax
call fcn.0049ebb6
add esp, 8
pop esi
pop ebx
add esp, 8
ret
mov cl, byte [edx]
push 1
mov byte [esp + 0xc], cl
lea edx, [esp + 0xc]
push edx
push str.bKGD
push eax
call fcn.004a54e6
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
test al, 2
je 0x4a6897
mov esi, dword [esp + 0x18]
xor eax, eax
lea ecx, [esp + 8]
mov ax, word [esi + 2]
push eax
push ecx
call fcn.004a54c6
xor edx, edx
lea eax, [esp + 0x12]
mov dx, word [esi + 4]
push edx
push eax
call fcn.004a54c6
xor ecx, ecx
lea edx, [esp + 0x1c]
mov cx, word [esi + 6]
push ecx
push edx
call fcn.004a54c6
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp byte [eax + 0x127], 8
jne 0x4a6890
mov cl, byte [esp + 0xc]
mov bl, byte [esp + 0xa]
mov dl, byte [esp + 8]
or cl, bl
or cl, dl
je 0x4a6890
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push eax
call fcn.0049ebb6
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push 6
jmp 0x4a6806
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
xor eax, eax
mov edx, 1
mov ax, word [ecx + 8]
mov cl, byte [esi + 0x127]
shl edx, cl
cmp eax, edx
jl 0x4a68ca
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push esi
call fcn.0049ebb6
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004a54c6
lea ecx, [esp + 0x10]
push 2
push ecx
push str.bKGD
push esi
call fcn.004a54e6
add esp, 0x18
pop esi
pop ebx
add esp, 8
ret

Function at 0x4a8ff6
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4a9026
push esi
call fcn.004a95b6
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x4a901f
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4a90a9
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4a9095
mov eax, dword [esi + 8]
test eax, eax
je 0x4a904a
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4a9091
cmp eax, 2
je 0x4a9095
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a903d
cmp eax, 3
je 0x4a9070
cmp eax, 1
jne 0x4a903d
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 0x4a903d
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4a903d
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004a90d6
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4a90c9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004a90d6
add esp, 4
pop esi
ret
Function at 0x4aca66
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.004b4b86
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.004b4b46
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x4acaaa
push edi
call fcn.004b4b96
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 8
mov dword [esi], fcn.004acba6
mov dword [esi + 4], fcn.004accf6
mov dword [esi + 8], fcn.004acda6
mov dword [esi + 0xc], fcn.004ace56
mov dword [esi + 0x10], 0x4acf06
mov dword [esi + 0x14], 0x4acf76
mov dword [esi + 0x18], 0x4acfe6
mov dword [esi + 0x1c], 0x4ad166
mov dword [esi + 0x20], 0x4ad356
mov dword [esi + 0x24], fcn.004ad546
mov dword [esi + 0x28], 0x4ad646
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 0xc]
mov ecx, 2
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x4acb0c
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.msvcrt.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x4acb9e
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.msvcrt.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x4acb9e
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x4acb67
cmp al, 0x4d
jne 0x4acb8b
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4eec36
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x40
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
push edi
je 0x4eec76
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push 2
push ebp
push ebx
push ecx
push esi
push 0
push eax
call fcn.004fce36
mov edi, dword [esp + 0x78]
add esp, 0x24
jmp 0x4eec97
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
mov edi, 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4eecce
lea edx, [esp + 0x30]
lea ecx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x64]
push ecx
push 2
push ebp
push ebx
push edx
push esi
push 0x10000
push eax
call fcn.004fce36
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x80]
add esp, 0x24
jmp 0x4eece7
mov ecx, dword [esp + 0x60]
mov eax, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebp
imul eax, edi
mov ecx, dword [esp + 0x70]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x60], eax
mov dword [ecx], eax
jle 0x4eed84
mov edx, dword [esp + 0x74]
lea ecx, [edx + 0x1c]
jmp 0x4eed0b
mov edi, dword [esp + 0x54]
mov eax, ebx
cdq
idiv edi
mov eax, ebx
mov esi, edx
cdq
idiv edi
shl esi, 4
mov edx, esi
mov esi, dword [esp + edx + 0x10]
mov dword [ecx - 0x1c], esi
shl eax, 4
mov ebp, dword [esp + eax + 0x34]
mov edi, dword [esp + eax + 0x30]
mov dword [ecx - 0x10], ebp
mov ebp, dword [esp + edx + 0x18]
mov dword [ecx - 0x18], edi
mov edi, dword [esp + edx + 0x14]
mov edx, dword [esp + edx + 0x1c]
mov dword [ecx - 0xc], ebp
mov ebp, dword [esp + eax + 0x38]
mov eax, dword [esp + eax + 0x3c]
mov dword [ecx - 0x14], edi
mov dword [ecx - 8], ebp
mov dword [ecx - 4], edx
mov dword [ecx], eax
mov edx, dword [ecx - 0x18]
cmp esi, edi
jne 0x4eed67
mov eax, dword [ecx - 8]
mov dword [ecx - 0x10], edx
mov dword [ecx], eax
jmp 0x4eed78
cmp edx, dword [ecx - 0x10]
jne 0x4eed78
mov eax, dword [ecx - 0x1c]
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0x14], eax
mov dword [ecx - 4], edx
mov eax, dword [esp + 0x60]
inc ebx
add ecx, 0x20
cmp ebx, eax
jl 0x4eed07
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x4ffde0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4ffe46
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4ffe46
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4ffe27
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x5009e0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x500a29
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x500ea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52c400
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00500a50
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00500ad0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00500ad0
lea ecx, [esi + 0xc]
call fcn.0051b9b1
lea ecx, [esi + 0x10]
call fcn.0051b9b1
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00502060
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00502060
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00502060
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0051ba26
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0051ba26
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret