joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416601
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edi
jne 0x41661c
xor eax, eax
jmp 0x416642
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0044d880
mov eax, esp
push esi
push dword [ebp + 8]
push eax
call fcn.00411bda
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
cmp ebx, edi
mov dword [ebp + 8], ebx
jne 0x41667f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x41666a
call esi
mov esi, eax
jmp 0x416713
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x416713
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4166a0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4166c2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4166b0
call esi
jmp 0x416708
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x41670a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov eax, esi
je 0x4166fc
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0044d880
mov ecx, edi
mov edx, ecx
mov eax, esp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebx], 0
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
push eax
call fcn.00415b87
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x41789a
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
add ecx, 0xffffff88
neg esi
sbb esi, esi
and esi, ecx
lea eax, [esi + 0x84]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x50]
test esi, esi
je 0x4178c4
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8
Function at 0x41f32b
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
xor eax, eax
push 0
inc eax
push eax
push 0x80000002
push 0x403854
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], eax
call fcn.0044dbd9
mov edi, dword [ebp + 0xc]
push edi
push 0x403844
lea ecx, [ebp - 0x20]
call fcn.0044e004
mov esi, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [esi], 0
jne 0x41f397
lea eax, [ebp + 0xc]
push eax
push esi
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x41f388
cmp byte [esi], 0
jne 0x41f397
push edi
push esi
push 0xcd
call fcn.0041f1ca
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x20]
call fcn.0044df2e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x420ae2
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
xor bl, bl
dec eax
push esi
mov esi, ecx
je 0x420bac
dec eax
je 0x420b9c
sub eax, 0x578
je 0x420b59
dec eax
je 0x420b4d
sub eax, 3
je 0x420b35
sub eax, 0x252
jne 0x420ca8
push 0x7d0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
dec eax
neg eax
sbb al, al
inc al
mov byte [esi + 0x1c], al
jmp 0x420ca8
push dword [esi + 0x18]
call fcn.00424980
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x420ca8
cmp dword [ebp + 0xc], 1
jne 0x420ca8
jmp 0x420b5f
cmp dword [ebp + 0xc], 5
jne 0x420b6b
mov ecx, esi
call fcn.00420961
jmp 0x420ca8
cmp dword [ebp + 0xc], 1
jne 0x420ca8
push 0
push 0
push 0x147
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jl 0x420ca8
push eax
mov ecx, esi
call fcn.004205d5
jmp 0x420ca8
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x420ca6
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x420c1b
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x100]
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0x100], eax
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x100], ebx
jle 0x420c9a
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ebx*8 + 0x104]
mov ecx, dword [esi + 0x10]
mov dword [ecx + ebx*8 + 0x104], eax
mov eax, dword [esi + 0x14]
lea edi, [ebx*8 + 0x108]
push dword [eax + edi]
call fcn.0041e986
mov ecx, dword [esi + 0x10]
mov dword [edi + ecx], eax
mov eax, dword [esi + 0x14]
inc ebx
cmp ebx, dword [eax + 0x100]
jl 0x420be1
jmp 0x420c9a
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x147
push dword [esi + 0xc]
call edi
cmp eax, 0xffffffff
jne 0x420c36
xor ebx, ebx
jmp 0x420c45
push 0
push eax
push 0x150
push dword [esi + 0xc]
call edi
mov ebx, eax
push dword [esi + 0x10]
push 0x100
push 0xd
push 0x57a
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
test ebx, ebx
jne 0x420c73
push dword [esi + 0x10]
call fcn.0040ee6f
test al, al
je 0x420c73
push 9
pop ebx
mov eax, dword [esi + 0x10]
mov dword [eax + 0x100], 1
mov eax, dword [esi + 0x10]
mov dword [eax + 0x104], ebx
push dword [esi + 0x10]
call fcn.0041e986
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0x108], eax
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
mov bl, 1
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x4214df
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
xor edi, edi
cmp esi, edi
mov dword [ebp - 8], esi
mov byte [ebp - 1], 0
je 0x421599
call fcn.0041ec66
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], eax
je 0x421534
push 0x410
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp + 0x10]
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
mov byte [ebp - 1], 1
jmp 0x421581
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
push 0xe
push dword [ebp + 8]
call esi
cmp eax, edi
jle 0x421581
push ebx
lea ebx, [eax + 1]
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
je 0x421580
push edi
push ebx
push 0xd
push dword [ebp + 8]
call esi
push 0x410
push dword [ebp + 0xc]
push 0xffffffffffffffff
push edi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_DrawTextA]
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov byte [ebp - 1], 1
pop ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 0xc

Function at 0x421792
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4566b4]
push esi
mov esi, ecx
cmp dword [esi + 0x44], 0
mov dword [ebp - 4], eax
jne 0x421891
push edi
mov edi, 0x100
push edi
lea eax, [ebp - 0x104]
push eax
push dword [esi + 0x38]
mov byte [ebp - 0x104], 0
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [ebp - 0x208], eax
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
cmp dword [ebp - 0x208], 0
je 0x421890
push ebx
lea ebx, [esi + 0x198]
mov cl, byte [ebx]
test cl, cl
mov dword [ebp - 0x20c], ebx
lea eax, [ebp - 0x104]
je 0x421820
mov edx, eax
sub ebx, edx
cmp cl, byte [eax]
jne 0x42181a
inc eax
mov cl, byte [ebx + eax]
test cl, cl
jne 0x42180e
mov ebx, dword [ebp - 0x20c]
cmp byte [eax], 0
jne 0x421835
lea eax, [ebp - 0x104]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x42188f
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [esi + 0x38]
call fcn.0041ff31
cmp eax, 0xffffffff
je 0x42188f
mov eax, dword [ebp - 0x208]
lea eax, [ebp + eax - 0x204]
push eax
push dword [esi + 0x38]
mov dword [esi + 0x44], 1
call fcn.00420279
mov eax, dword [ebp - 0x208]
inc eax
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
push ebx
call dword [sym.imp.USER32.dll_CharUpperBuffA]
and dword [esi + 0x44], 0
pop ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.0044d575
leave
ret
Function at 0x4234fc
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x4566b4]
push esi
mov dword [ebp - 4], eax
push 0x80
lea eax, [ebp - 0x84]
mov esi, ecx
push eax
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x423673
push ebx
push edi
lea eax, [ebp - 0x84]
push eax
call fcn.0041f8bd
mov ebx, eax
lea eax, [ebp - 0x84]
push eax
call fcn.0041f881
push ebx
push dword [esi + 0x3c]
mov dword [ebp - 0x8c], eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 0xffffffffffffffff
push 0x158
push dword [esi + 0x38]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x88], eax
jne 0x4235ff
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x423671
cmp dword [eax + 0xc], 0
je 0x423671
push 0
push 1
push 0x80000001
push 0x401d40
lea ecx, [ebp - 0xa8]
call fcn.0044dbd9
push 0
push 0x403c84
lea ecx, [ebp - 0xa8]
call fcn.0044dd85
test eax, eax
jne 0x4235eb
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x4235eb
push dword [ebp - 0x8c]
call fcn.0042a190
test eax, eax
je 0x4235eb
push dword [esi + 0x70]
mov ecx, esi
push ebx
push dword [esi + 0x7c]
call fcn.004218e6
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0xa8]
call fcn.0044df2e
cmp dword [ebp - 0x88], 0xffffffff
je 0x423671
mov ecx, dword [esi + 0x90]
test ecx, ecx
je 0x42360e
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x88]
cmp eax, dword [esi + 0x70]
jl 0x423664
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x423664
push dword [ebp - 0x8c]
mov dword [esi + 0x90], eax
call fcn.0041fa9f
test al, al
jne 0x423664
push dword [ebp - 0x8c]
mov ecx, dword [esi + 0x7c]
call fcn.004287b3
push 0
push dword [ebp - 0x88]
mov ebx, 0x14e
push ebx
push dword [esi + 0x38]
call edi
push 0
push dword [ebp - 0x88]
push ebx
push dword [esi + 0x38]
call edi
push dword [ebp - 0x88]
mov ecx, esi
call fcn.004229d8
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0044d575
leave
ret

Function at 0x426afc
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4566b4]
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x50
lea eax, [ebp - 0x54]
push eax
call sub.WSOCK32.dll_gethostname
xor ebx, ebx
cmp eax, ebx
mov byte [ebp - 5], 0
jl 0x426b8c
lea eax, [ebp - 0x54]
push eax
call sub.WSOCK32.dll_gethostbyname
mov edx, eax
cmp edx, ebx
mov dword [ebp - 0x58], edx
jne 0x426b3d
or eax, 0xffffffff
jmp 0x426b8c
xor ecx, ecx
cmp dword [ebp + 0xc], ebx
jle 0x426b56
mov eax, dword [edx + 0xc]
cmp dword [eax], 0
je 0x426b56
inc ebx
inc ecx
add eax, 4
cmp ecx, dword [ebp + 0xc]
jl 0x426b47
push esi
lea esi, [ebx - 1]
test esi, esi
jl 0x426b89
mov eax, ebx
sub eax, esi
lea edi, [edi + eax*4 - 4]
jmp 0x426b6b
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0xc]
mov eax, dword [eax + esi*4]
push dword [eax]
call sub.WSOCK32.dll_inet_ntoa
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
dec esi
add edi, 4
test esi, esi
jge 0x426b68
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0044d575
leave
ret 8
Function at 0x426cb1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
mov edi, ecx
mov ebx, 0x80004005
call fcn.00426c4e
test eax, eax
je 0x426cf3
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x426cf3
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], eax
jne 0x426cf3
add dword [esi], eax
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x426d9d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4566b4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
and dword [edi], 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
and dword [eax], 0
mov esi, ecx
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x210], eax
call fcn.00426c4e
test eax, eax
je 0x426e2a
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x28
push ebx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x426e2a
xor eax, eax
cmp dword [ebp - 0x20c], 0x28
sete al
test eax, eax
je 0x426e2a
mov eax, dword [ebx + 0xc]
mov esi, 0x200
cmp eax, esi
jb 0x426e13
mov eax, esi
mov ecx, dword [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.00426c76
test eax, eax
jne 0x426e31
mov eax, 0x80004005
jmp 0x426e8b
lea eax, [ebp - 0x204]
push eax
call fcn.0041eaa8
mov dword [edi], eax
mov eax, dword [ebx + 0x10]
cmp eax, esi
jb 0x426e48
mov eax, esi
mov ecx, dword [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.00426c76
test eax, eax
je 0x426e85
push 0x403e48
lea eax, [ebp - 0x204]
push eax
call fcn.0044ed72
test eax, eax
je 0x426e85
add eax, 8
push eax
call fcn.0041eaa8
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
mov eax, dword [ebx + 4]
shr eax, 0x1f
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0044d575
leave
ret 0x10

Function at 0x426e9f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
add dword [ebp + 8], 4
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.00426c4e
test eax, eax
je 0x426ef1
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x426ef1
xor eax, eax
cmp dword [ebp - 8], 4
sete al
test eax, eax
je 0x426ef1
push dword [ebp + 8]
or byte [ebp - 1], 0x80
mov ecx, esi
call fcn.00426c4e
test eax, eax
jne 0x426ef8
mov eax, 0x80004005
jmp 0x426f09
push 4
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.00426cb1
pop esi
leave
ret 4
Function at 0x42884f
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor ebx, ebx
push edi
inc ebx
push ebx
mov esi, ecx
call fcn.0040fe38
mov dword [esi + 0x144], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [esi + 0x138]
xor edi, edi
mov dword [esi + 0x154], eax
mov dword [esi + 0x140], edi
call fcn.0042003f
test eax, eax
jl 0x42893c
cmp dword [esi + 0xc], edi
jne 0x4288a0
mov dword [ebp - 4], 0x80070005
jmp 0x4288c3
mov ecx, esi
call fcn.004275a0
test eax, eax
mov ecx, esi
jne 0x4288bb
call fcn.00428548
mov dword [ebp - 4], 0x80004005
jmp 0x4288c3
call fcn.00428588
mov dword [ebp - 4], eax
push edi
call fcn.0040fe38
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 0xffffffffffffffff
push 0x100c
push eax
mov dword [ebp - 8], eax
call edi
cmp eax, 0xffffffff
jne 0x4288fb
lea eax, [ebp - 0x30]
push eax
push 0
push 0x102b
push dword [ebp - 8]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
call edi
push dword [esi + 0x138]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor edi, edi
cmp dword [ebp - 4], edi
jge 0x428929
push edi
push 0x3b8
push 0x4c8
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [esi + 0x12c]
mov ecx, dword [eax]
push ecx
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [esi + 0x144], edi
je 0x428967
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x154]
mov ecx, 0x7d0
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [esi + 0x158], eax
mov dword [esi + 0x144], edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4289e0
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x12c], 0
jne 0x428a2e
push esi
call fcn.0041c04a
lea eax, [ebp - 4]
push eax
push 4
push esi
push 0x4289c0
push 0
push 0
mov byte [esi + 0x13c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x428a28
push eax
mov dword [esi + 0x12c], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x428a2e
push esi
call fcn.0043ae8a
pop esi
leave
ret
Function at 0x428c16
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x4566b4]
mov ecx, dword [ebp + 0x14]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
xor esi, esi
inc esi
push esi
mov dword [ebp - 0x168], eax
mov eax, dword [ebp + 0x10]
push 0x80000002
mov dword [ebp - 0x170], ecx
push eax
lea ecx, [ebp - 0x1b8]
call fcn.0044dbd9
cmp dword [ebp - 0x1b4], ebx
jne 0x428db9
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x16c], esi
call fcn.0044de2b
lea ecx, [ebp - 0x19c]
call fcn.0044ded6
test eax, eax
jne 0x428dae
push edi
push 0x228
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [ebp - 0x174], esi
je 0x428d9a
mov dword [esi + 8], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
lea eax, [esi + 0x124]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
add eax, 0x7d01
mov dword [esi + 0x1c], eax
cmp dword [ebp - 0x188], 1
jne 0x428d1a
cmp dword [ebp - 0x184], ebx
je 0x428d1a
push 0x104
push dword [ebp - 0x18c]
lea edi, [esi + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x101
push 0x160
lea eax, [ebp - 0x164]
push eax
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x428d1d
mov eax, dword [ebp - 0x164]
mov dword [esi], eax
jmp 0x428d1d
mov byte [esi + 0x20], bl
cmp dword [esi], ebx
jne 0x428d2f
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi], eax
push 0x104
push dword [ebp - 0x190]
lea eax, [esi + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 0x170]
lea eax, [ebp - 0x174]
push eax
call fcn.0041ddf6
cmp dword [ebp - 0x16c], ebx
je 0x428d7e
push ebx
push 0x7d00
push 0x800
push dword [ebp - 0x168]
call dword [sym.imp.USER32.dll_AppendMenuA]
mov dword [ebp - 0x16c], ebx
push esi
push dword [esi + 0x1c]
push 0x100
push dword [ebp - 0x168]
call dword [sym.imp.USER32.dll_AppendMenuA]
test eax, eax
je 0x428d9a
inc dword [ebp + 0xc]
lea ecx, [ebp - 0x19c]
call fcn.0044ded6
test eax, eax
je 0x428c90
pop edi
lea ecx, [ebp - 0x19c]
call fcn.0044deb8
lea ecx, [ebp - 0x1b8]
call fcn.0044df2e
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
call fcn.0044d575
leave
ret 0x10
Function at 0x433953
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4566b4]
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
je 0x433972
mov byte [esi], 0
or dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x18]
push eax
push 1
push dword [ecx + 0x10]
call dword [0x457154]
add esp, 0xc
test eax, eax
jne 0x4339c6
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x10
call sub.WSOCK32.dll_getsockname
test eax, eax
jne 0x4339c6
test esi, esi
je 0x4339bd
push dword [ebp - 0x10]
push 0x404e44
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test edi, edi
je 0x4339c6
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0044d575
leave
ret 0xc

Function at 0x433b2c
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0xc]
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x433b57
push dword [esi + 0xc]
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x433b57
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 8], eax
xor eax, eax
cmp dword [esi + 8], 0xffffffff
pop esi
setne al
ret

Function at 0x433c52
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4566b4]
or dword [ebp - 0x18], 0xffffffff
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 1
push eax
call dword [0x457154]
add esp, 0xc
test eax, eax
jne 0x433c9d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x10
call sub.WSOCK32.dll_getsockname
test eax, eax
jne 0x433c9d
mov eax, dword [ebp - 0x10]
jmp 0x433ca0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
call fcn.0044d575
leave
ret 4
Function at 0x433e89
Capabilities:
Create thread
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
mov byte [ebx], 0
cmp byte [0x4570a4], 0
mov dword [ebp - 4], 0x8007000e
jne 0x433eb9
call fcn.00438bfb
test eax, eax
mov dword [ebp - 4], eax
jl 0x433fe7
push 0x10
mov byte [0x4570a4], 1
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
test esi, esi
pop ecx
je 0x433fe7
push edi
push dword [ebp + 8]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esi + 4], ebx
mov dword [esi], eax
call edi
mov ebx, 0x404e60
push ebx
mov dword [ebp + 0x14], eax
call edi
mov ecx, dword [ebp + 0x14]
lea eax, [ecx + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [esi + 8], eax
je 0x433fe6
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call dword [0x457130]
add esp, 0x14
test eax, eax
mov dword [esi + 0xc], eax
je 0x433f98
mov edi, 0x80
push edi
mov ebx, 0x40204f
push ebx
push ebx
push eax
call dword [0x457104]
add esp, 0x10
test eax, eax
je 0x433f98
cmp dword [ebp + 0x18], 0x3ea
jne 0x433f98
push dword [esi + 0xc]
call dword [0x457144]
mov dword [esp], 0x185
push dword [ebp + 0xc]
call dword [0x457130]
test eax, eax
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x433f98
push edi
push ebx
push ebx
push eax
call dword [0x457104]
add esp, 0x10
test eax, eax
je 0x433f98
push dword [esi + 0xc]
call dword [0x457144]
and dword [esi + 0xc], 0
pop ecx
xor eax, eax
cmp dword [esi + 0xc], eax
je 0x433fe6
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push 0x433d76
push eax
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x433fe6
push edi
call fcn.0042003f
push dword [ebp + 0x10]
call sub.WSOCK32.dll_inet_addr
test eax, eax
je 0x433fd8
cmp eax, 0xffffffff
je 0x433fd8
and dword [ebp - 4], 0
jmp 0x433fdf
mov dword [ebp - 4], 0x80004005
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push esi
call fcn.00433d40
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0x14