joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448123
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.004445f0
mov eax, dword [ebp + 0x34]
push esi
xor esi, esi
mov dword [eax], esi
cmp dword [0x458240], esi
jne 0x4481a5
push 0x458240
call dword [sym.imp.MSO.DLL_Ordinal_425]
cmp eax, esi
jl 0x4482c1
cmp dword [ebp + 0x10], esi
mov eax, dword [0x458240]
mov ecx, dword [eax]
je 0x448190
push esi
push eax
call dword [ecx + 0xc0]
mov eax, dword [0x458240]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
mov eax, dword [0x458240]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x1c]
mov eax, dword [0x458240]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x4c]
jmp 0x4481a5
push 1
push eax
call dword [ecx + 0x2c]
mov eax, dword [0x458240]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + pe_nt_image_headers32]
mov eax, dword [0x458240]
push dword [ebp + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
mov eax, dword [0x458240]
push dword [ebp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x98]
push dword [ebp + 0x24]
mov eax, dword [0x458240]
mov ecx, dword [eax]
push 0xfffffffffffffff9
push eax
call dword [ecx + 0xb0]
mov eax, dword [0x458240]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0xd0]
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x448202
mov ecx, dword [eax]
push esi
push 0xe
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 0x10], esi
push edi
je 0x448228
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [0x458240]
call fcn.00447fe7
cmp eax, esi
jge 0x448266
jmp 0x4482c0
push 0x824
lea eax, [ebp - 0x1050]
push eax
call dword [sym.imp.MSO.DLL_Ordinal_1326]
cmp dword [ebp + 0x20], esi
jne 0x44824e
lea eax, [ebp - 0x1050]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x448266
push dword [ebp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call edi
test eax, eax
jne 0x448266
lea eax, [ebp - 0x1050]
push eax
call edi
mov eax, dword [0x458240]
mov ecx, dword [eax]
xor edx, edx
cmp dword [ebp + 0xc], esi
sete dl
push edx
push eax
call dword [ecx + 0x14]
mov edi, dword [ebp + 0x30]
mov eax, dword [0x458240]
push dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc0]
push dword [ebp + 8]
mov eax, dword [0x458240]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x88]
cmp eax, esi
jl 0x4482c0
cmp dword [ebp - 8], 2
jne 0x4482bd
push dword [ebp + 0x34]
push edi
push dword [0x458240]
call fcn.0044807d
jmp 0x4482c0
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0x30
Function at 0x44900f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x4582a4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x449053
call ebx
test eax, eax
jns 0x449049
push 0x40d1f8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x40d1ec
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4582a8], eax
mov dword [0x4582a4], 1
mov eax, dword [0x4582a8]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x44906f
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x44909f
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x449095
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x449089
push dword [eax + 8]
call dword [eax]
jmp 0x44908f
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x44909e
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x4035b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
je 0x40362f
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40362f
xor eax, eax
xor ebx, ebx
mov word [esi], ax
lea eax, [ebp - 8]
push eax
push 1
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40362f
mov eax, dword [ebp + 0xc]
push edi
lea edi, [eax + eax]
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push esi
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403614
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jae 0x403626
xor ecx, ecx
mov word [esi + eax*2], cx
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [edi + esi - 2], ax
jmp 0x403612
xor al, al
jmp 0x403620

Function at 0x4048d7
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [ebp + 8]
mov esi, eax
cmp ebx, esi
jne 0x43d658
xor eax, eax
inc eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
xor edi, edi
test esi, esi
jne 0x43d66d
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x43d681
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x43d75c
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebx
mov dword [ebp + 8], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
push 1
push edi
push dword [ebp + 8]
call esi
push 1
push dword [ebp - 4]
push edi
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x43d738
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push eax
push eax
push 0x12
call edi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [ebp - 8]
test eax, eax
je 0x43d73d
push 4
jmp 0x43d73a
push 3
pop ebx
jmp 0x43d740
mov ebx, dword [ebp - 0xc]
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call esi
push 0
push edi
push dword [ebp + 8]
call esi
push 0
push dword [ebp - 4]
push edi
call esi
jmp 0x43d75f
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x4048f5
Function at 0x404e89
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x404ec1
push edi
push 0
push 0x48faf0
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x43d933
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x404ec0
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x404ec0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x404ec0
mov ecx, dword [ebx]
push 0
push edi
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
push edx
push edx
push edx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
jmp 0x404ec0
Function at 0x409ea0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x4c6480]
mov dword [esp + 4], ecx
push esi
push edi
test al, 1
je 0x40b3d6
mov edi, dword [ebp + 0x10]
xor eax, eax
push 8
mov word [esp + 0x5c], 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], 1
call int.00420db6
mov edx, eax
mov dword [esp + 0x20], eax
add esp, 4
test edx, edx
je 0x40b52a
mov dword [edx], 0x14
mov esi, dword [ebp + 0xc]
mov dword [edx + 4], 0
mov dword [esp + 0x54], edx
mov edx, dword [ebp + 8]
mov ecx, dword [esi]
mov dword [esp + 0x50], 1
mov dword [esp + 0x10], 0x17
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*4]
movsx eax, word [eax + 0xa]
mov dword [esp + 0x5c], eax
jmp 0x409faa
or eax, 1
mov dword [0x4c6488], 0
push 0x43b5ec
mov dword [0x4c6480], eax
mov dword [0x4c6490], 0
mov dword [0x4c6494], 1
call fcn.00422d40
add esp, 4
jmp 0x409ebf
xor edx, edx
mov dword [esp + 0x1c], edx
jmp 0x409f04
Function at 0x46220a
Capabilities:
Encode data using xor

Disassembly:
scasd eax, dword es:[edi]
cdq
dec esp
or ch, bl
cmp dword [ebx + 0x37a45de5], ebx
test dword [0x58a91374], ebp
in eax, dx
pop ebp
wait
stc
call 0x7d3b5cff
stosb byte es:[edi], al
clc
jmp 0x4620eb
pop ss
leave
retf
sub byte [esi], ah
stc
in al, 0x87
push es
out 0x8b, al
inc ebp
bound eax, qword [ebp - 0x3d305f64]
inc esi
xchg ebx, eax
inc ebx
lodsd eax, dword [esi]
mov bh, 0xa
in al, dx
jbe 0x46212f
cdq
sub byte [edi - 0x74101a97], ch
fcom st(2)
shl byte [ebx], 1
int3
rcl al, cl
and ecx, esp
cmp edi, 0x3e081075
in al, dx
add cl, byte [ecx + 0xe3dbeec]
je 0x4620ca
invalid
mov edx, 0xa2df6662
fild word [edx + 0x3ec4af2b]
call dword [esi + 0x66]
jbe 0x4621a1
je 0x46210e
or byte [eax + ecx], al
mov ebp, 0x9f8b7027
push ds
hlt
dec eax
inc eax
adc dword [edx], 0x1f
fsub qword [eax - 0x64658bcc]
fcomp st(4)
salc
je 0x462118
pop edi
pop ecx
push edi
push 0xffffffffffffff9f
into
sub eax, 0x40580f61
jl 0x4620f8
clc
pop ecx
outsb dx, byte [esi]
test dword [ebx + 0x7925d14b], 0xf98c67b0
or eax, 0x80590c00
sar dh, 1
pop ebp
movsd dword es:[edi], dword [esi]
and eax, 0xa03f7600
rol dword [edi - 0x38bc2bd], cl
jmp 0x504ef25e
mov ecx, 0x6e8086a4
jmp 0x462150
je 0xf0583461
push 0x3e
pop es
cmp byte [eax + 0x73], ah
xchg ecx, eax
dec esi
test al, 0x38
pop ecx
xor esi, dword [eax - 0x1b28a1eb]
push edi
push 0x14
loope 0x4621ad
add dword [esi], ecx
hlt
loop 0x462199
mov bh, byte [eax + 0x175c4b2b]
cmp dword [edi - 0x7bae90cb], esp
je 0x4621af
test byte [ebp + edx*4 + 9], dh
cmp dword [ebp - 0x58], 0xfffffff8
jl 0x100e5ca6
or dword [ebx + 0xff8a87d], eax
mov word [ecx + 0xf0fc83a], es
mov dl, 0xea
clc
std
push 0x26
out 6, al
imul eax, dword [ecx], 0
maxps xmm1, xmmword [edx]
add byte [edx + 0x21], ch
add byte [eax], dh
fadd st(4)
xor al, 0
add byte [esi - 0x1f000000], dh
mov eax, dword [0xfca8fe5]
test byte [ebp - 0x686acc46], bh
xchg ebp, eax
add byte [eax - 0x39], dl
and esi, ebx
ja 0xbca192f
invalid
ja 0x462217
stosd dword es:[edi], eax
scasb al, byte es:[edi]
sbb al, 0xd8
not byte [eax - 0xd]
int1
sbb cl, byte [edx - 0xa3ef2f7]
and dword gs:[edi], 0xffffffc4
cmpsd dword [esi], dword es:[edi]
mov esi, 0x76b9e8c
pop ds
pop es
test byte [ebx + 0x29], bl
fdivr st(5), st(0)
pop eax
dec ecx
or eax, 0xd0a7f3b5
mov bl, dh
push 0xffffffffffffffac
adc eax, 0x95dc45fb
pop ss
dec edx
jnp 0x462292
push 0x30
pop edx
xor al, 0x51
ret 0x88f9

Function at 0x467956
Capabilities:
Encode data using xor

Disassembly:
jne 0x467919
sub byte [esi - 0x37470dd0], al
je 0x46794a
sbb byte [edx], dl
fisttp dword [ecx - 0x7a]
xchg byte [ecx + 0x3c0f65ed], ah
adc ch, byte [ebp - 0x77]
mov bh, 0x2f
arpl bp, si
xlatb
cmpsd dword [esi], dword es:[edi]
cmp eax, 0xd5938b5b
xchg ebx, eax
aad 0xb7
fnsave dword [edx - 0x2a42c52a]
jno 0x46791c
bound edx, qword [edi + 0x2d8f0b2b]
add byte [ebx + 0x33], dl
xor edx, dword [ecx]
pop ds
invalid
push ebx
xor esi, dword [ebx]
adc dword [edi], ebx
add dword [edx + 0x42], edi
test dword [ebx + 0x3d], edx
cmc
xor al, 9
or esp, dword [edi]
loope 0x467966
cld
stc
je 0x467969
invalid
Function at 0x4721d6
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
inc ebx
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x4721f1
movzx eax, word [edi + 0x8c]
jmp 0x4721f5
movzx eax, word [edi + 0x58]
lea edx, [edi + 0xb0]
movsx ecx, ax
cmp dword [ebp + 8], ebx
je 0x472206
lea edx, [edi + 0x7c]
mov eax, dword [edi + 0xc0]
xor esi, esi
push esi
cmp ecx, ebx
jne 0x472218
push esi
push esi
push ebx
jmp 0x47222b
cmp ecx, 2
jne 0x472228
push str._local_
push dword [edx]
push 3
jmp 0x47222b
push esi
push esi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 4], eax
cmp eax, esi
jne 0x47223d
xor al, al
jmp 0x47225d
cmp byte [edi + 0xdc], 0
je 0x47225b
push 8
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
push ecx
push 0x32
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4722ee
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x30], 0
je 0x4722fd
pop ebp
jmp fcn.004723be
pop ebp
jmp fcn.00472303

Function at 0x47727d
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
or edx, 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
add eax, esi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
mov ebx, eax
imul ebx, dword [ebp + 0x14]
push edi
mov edi, esi
lea eax, [esi + eax*4]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
shl ebx, 2
shl eax, 2
mov dword [ebp + 0xc], eax
movzx eax, byte [esi + 2]
movzx ecx, dl
xor ecx, eax
shr edx, 8
movzx eax, byte [esi + 1]
xor edx, dword [ecx*4 + 0x4b55d0]
movzx ecx, dl
xor ecx, eax
shr edx, 8
movzx eax, byte [esi]
add esi, ebx
xor edx, dword [ecx*4 + 0x4b55d0]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4b55d0]
cmp esi, dword [ebp + 8]
jb 0x4772f4
add edi, dword [ebp + 0xc]
mov esi, edi
cmp edi, dword [ebp + 0x10]
jb 0x4772b0
not edx
mov dword [ebp + 8], edx
fild dword [ebp + 8]
test edx, edx
jns 0x47730b
fadd qword [0x4b9e48]
pop edi
fstp qword [ebp - 8]
fld qword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47731a
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [esi + 8]
mov edx, dword [esi]
cmp eax, edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 4]
setl bl
cmp ecx, edi
mov byte [ebp - 1], bl
setl bh
mov byte [ebp + 0xf], bh
test bl, bl
je 0x47734d
mov dword [esi], eax
mov dword [esi + 8], edx
test bh, bh
je 0x477357
mov dword [esi + 4], ecx
mov dword [esi + 0xc], edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x104]
call fcn.004739a0
mov ecx, dword [ebp - 0x1c]
add dword [esi + 8], ecx
mov eax, dword [ebp - 0x18]
add dword [esi + 0xc], eax
add dword [esi], ecx
add dword [esi + 4], eax
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0xc]
sub edi, dword [esi]
sub ebx, dword [esi + 4]
inc edi
inc ebx
push 0
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USER32.dll_GetDC]
push ebx
push edi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push dword [ebp - 8]
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dh, byte [ebp + 0xf]
mov ecx, ebx
mov dword [ebp - 0x14], eax
test dh, dh
je 0x4773c8
neg ecx
mov dl, byte [ebp - 1]
mov eax, edi
test dl, dl
je 0x4773d3
neg eax
test dh, dh
je 0x4773dc
mov ebx, dword [esi + 0xc]
jmp 0x4773df
mov ebx, dword [esi + 4]
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp - 0xc]
test dl, dl
je 0x4773ee
mov edx, dword [esi + 8]
jmp 0x4773f0
mov edx, dword [esi]
mov esi, dword [ebp - 0x10]
push 0xcc0020
push ecx
push eax
push dword [ebp + 0xc]
push edx
push dword [ebp - 8]
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, ebx
mov dword [ebp - 0x48], 0x28
neg eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
xor ecx, ecx
push 0x20
xor eax, eax
mov dword [ebp - 0x38], ecx
inc eax
mov word [ebp - 0x3c], ax
pop eax
push ecx
mov word [ebp - 0x3a], ax
lea eax, [ebp - 0x48]
push eax
push ecx
push ecx
push ecx
push dword [ebp + 8]
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDIBits]
call esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x34]
push ecx
mov dword [eax], ecx
call int.00420db6
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x48]
push eax
push edi
push ebx
mov ebx, dword [ebp - 0x10]
push 0
push dword [ebp + 8]
push ebx
call esi
push dword [ebp - 0x14]
mov esi, eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
test esi, esi
je 0x477499
mov eax, edi
jmp 0x4774a2
push edi
call fcn.00420e2c
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x477d8b
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 2
pop eax
lea ecx, [ebp - 0x10]
mov word [edi], ax
call fcn.00405ab8
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00477ff6
push dword [ebp - 0x10]
call dword [sym.imp.WSOCK32.dll_inet_addr]
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00405904
cmp ebx, 0xffffffff
jne 0x477de2
mov ecx, dword [ebp + 0xc]
mov edx, str.255.255.255.255
call 0x459e8b
test al, al
je 0x477de2
push 0
push 1
jmp 0x477e05
mov ecx, dword [ebp + 0x10]
mov dword [edi + 4], ebx
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja 0x477e01
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [edi + 2], ax
mov al, 1
jmp 0x477e13
push 0
push 2
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
call 0x45652d
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x477e1c
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
and dword [ebx], 0
mov edi, ecx
mov dword [ebx + 4], eax
mov ecx, 0x3e8
mov eax, esi
inc dword [ebx]
cdq
idiv ecx
mov dword [ebp - 8], eax
imul eax, eax, 0x3e8
sub esi, eax
imul eax, esi, 0x3e8
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
cmp byte [ebp + 0x14], al
je 0x477e65
push ebx
push eax
jmp 0x477e67
push eax
push ebx
push eax
call dword [sym.imp.WSOCK32.dll_select]
mov esi, eax
test esi, esi
jne 0x477e81
cmp byte [ebp + 0x14], al
je 0x477ead
push eax
push 0x274c
jmp 0x477ea1
jle 0x477e98
push ebx
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
test eax, eax
jne 0x477ead
push 0xfffffffffffffffe
pop esi
push eax
push esi
jmp 0x477ea1
push 0
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call 0x45652d
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48b69e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 3
mov edi, ecx
mov edx, dword [ebx + 4]
mov dword [ebp + 8], edx
pop esi
cmp dword [ebx + 0x190], eax
je 0x48b754
cmp dword [edi + 0x84], esi
jl 0x48b74e
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x48b73f
cmp dword [ecx + 4], edx
jne 0x48b73f
mov dl, byte [ecx + 0x90]
cmp dl, 0xb
je 0x48b73c
mov dh, byte [ecx + 0x93]
movzx eax, dh
cmp eax, dword [ebx + 0x190]
je 0x48b70e
cmp byte [ebx + 0x198], 0
je 0x48b73c
cmp dh, 0xff
je 0x48b73c
cmp dl, 0xa
je 0x48b73c
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x48b73c
cmp byte [eax + 0x90], 0x1a
jne 0x48b73c
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [edi + 0x84]
jle 0x48b6ce
mov eax, dword [ebp + 0xc]
push 3
pop esi
mov dword [ebx + 0x190], eax
cmp dword [edi + 0x84], esi
jl 0x48b7e1
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x48b7d2
cmp dword [ecx + 4], edx
jne 0x48b7d2
cmp byte [ecx + 0x90], 0xb
je 0x48b7d2
movzx eax, byte [ecx + 0x93]
cmp eax, dword [ebx + 0x190]
jne 0x48b7d2
test byte [ecx + 0x92], 0x20
jne 0x48b7d2
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x74]
push 4
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x48b7d2
cmp byte [eax + 0x90], 0x1a
jne 0x48b7d2
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [edi + 0x84]
jle 0x48b760
mov eax, dword [ebp + 0xc]
push 0
push eax
push 0x130c
push dword [ebx + 0x188]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404548
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040684c
test esi, esi
jne 0x404580
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406988
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405dc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e2050], 0
je 0x405e29
cmp word [0x4e232c], 0xd7b2
jne 0x405df1
cmp dword [0x4e2334], 0
jbe 0x405df1
mov eax, 0x4e2328
call dword [0x4e2344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405e54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4df030], 0
jne 0x405e45
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fd4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4df034], 0
je 0x405ffa
mov edx, esi
mov eax, ebx
call dword [0x4df034]
jmp 0x406009
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4e2051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405f9c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc