joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bcfc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6a000]
push edi
jmp 0x4bcfda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4bcfe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bcfd0
mov eax, 1
add ebx, ebx
jne 0x4bcff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4bd004
jne 0x4bd023
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bd023
dec eax
add ebx, ebx
jne 0x4bd010
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4bcfe8
add ebx, ebx
jne 0x4bd01f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4bd075
xor ecx, ecx
sub eax, 3
jb 0x4bd03b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4bd0aa
sar eax, 1
mov ebp, eax
jmp 0x4bd046
add ebx, ebx
jne 0x4bd046
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bd014
inc ecx
add ebx, ebx
jne 0x4bd054
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bd014
add ebx, ebx
jne 0x4bd061
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4bd056
jne 0x4bd072
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4bd056
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4bd094
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4bd086
jmp 0x4bcfd6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4bd094
add edi, ecx
jmp 0x4bcfd6
pop esi
mov edi, esi
mov ecx, 0x309a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4bd0b2
cmp byte [edi], 0x17
jne 0x4bd0b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4bd0b7
lea edi, [esi + 0xb9000]
mov eax, dword [edi]
or eax, eax
je 0x4bd12f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbeb5c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbec24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4bd0e4
mov ecx, edi
jns 0x4bd113
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbec28]
or eax, eax
je 0x4bd129
mov dword [ebx], eax
add ebx, 4
jmp 0x4bd101
call dword [esi + 0xbec38]
mov ebp, dword [esi + 0xbec2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4bd163
sub esp, 0xffffff80
jmp 0x436e49
Function at 0x7c65ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7d03a8
cmp edx, dword [eax]
je 0x7c660f
add eax, 8
inc ecx
cmp eax, 0x7d0438
jl 0x7c6600
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7d03a8]
jne 0x7c673d
mov eax, dword [0xbd3d04]
cmp eax, 1
je 0x7c6717
test eax, eax
jne 0x7c6640
cmp dword [0x7d02d4], 1
je 0x7c6717
cmp edx, 0xfc
je 0x7c673d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c6677
lea eax, [ebp - 0x1a4]
push 0x7cbda8
push eax
call fcn.007c6fd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c7460
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c66ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c7460
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7cbda4
push edi
call fcn.007c9330
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x7cbd88
push eax
call fcn.007c6fd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c6fe0
lea eax, [ebp - 0xa0]
push 0x7cbd84
push eax
call fcn.007c6fe0
push dword [esi + 0x7d03ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c6fe0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x7cbd5c
push eax
call fcn.007c92a4
add esp, 0x2c
pop edi
jmp 0x7c673d
lea eax, [ebp + 8]
lea esi, [esi + 0x7d03ac]
push 0
push eax
push dword [esi]
call fcn.007c7460
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401240
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret 8

Function at 0x401a20
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push 0x20
push str.hra_u.dll
push eax
xor ebx, ebx
call dword [0x408dcc]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401a9f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StartWork
push esi
call edi
push str.StopWork
push esi
mov dword [0x40936c], eax
call edi
test eax, eax
mov dword [0x409370], eax
pop edi
je 0x401a8d
mov eax, dword [0x40936c]
test eax, eax
je 0x401a8d
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x402440
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0xfe
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
inc dl
test esi, esi
jbe 0x40246c
mov eax, dword [esp + 8]
mov cl, byte [eax]
sub cl, dl
xor cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x402460
pop esi
ret

Function at 0x402470
Capabilities:
Contain obfuscated stackstrings
Get common file path
Move file

Disassembly:
sub esp, 0x21c
mov al, 0x65
push esi
mov byte [esp + 5], al
mov byte [esp + 0xc], al
mov byte [esp + 0x10], al
mov byte [esp + 0x14], al
lea eax, [esp + 4]
push edi
mov cl, 0x6c
push eax
push str.kernel32.dll
mov byte [esp + 0x10], 0x47
mov byte [esp + 0x12], 0x74
mov byte [esp + 0x13], 0x4d
mov byte [esp + 0x14], 0x6f
mov byte [esp + 0x15], 0x64
mov byte [esp + 0x16], 0x75
mov byte [esp + 0x17], cl
mov byte [esp + 0x19], 0x46
mov byte [esp + 0x1a], 0x69
mov byte [esp + 0x1b], cl
mov byte [esp + 0x1d], 0x4e
mov byte [esp + 0x1e], 0x61
mov byte [esp + 0x1f], 0x6d
mov byte [esp + 0x21], 0x41
mov byte [esp + 0x22], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x20]
push ecx
push 0
stosb byte es:[edi], al
call edx
lea edx, [esp + 0x120]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x120]
push str.SOFTWARE.LOG
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [esp + 0x120]
push 3
lea edx, [esp + 0x20]
push ecx
push edx
call esi
test eax, eax
je 0x402560
push 5
lea eax, [esp + 0x124]
push 0
push eax
call esi
pop edi
pop esi
add esp, 0x21c
ret
Function at 0x402660
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push str.SYSTEMCurrentControlSetServices_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push str.Distriburmb
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [0x408d90]
test eax, eax
je 0x4026b5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.ImagePath
push eax
call dword [0x408d94]
test eax, eax
je 0x402701
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x408d98]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0x10]
push edx
call dword [0x408d98]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402728
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push 0
push 3
push 0
push 1
lea ecx, [esp + 0x2c]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402755
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x402779
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x40279b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push 0
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4027cd
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x120]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
jne 0x4027fd
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push edx
push ebx
push 0
push 0x66
push 0xa
push esi
call ebp
mov edi, eax
test edi, edi
je 0x402836
push str.Distriburmb
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push str.Distriburmb
push 0
push 0x65
push 0xa
push esi
call ebp
mov edi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
pop ebp
test eax, eax
push ebx
jne 0x402857
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x403dc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
mov byte [esp + 0xa], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x108]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
add esp, 0x104
ret

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x40be7998
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
mov eax, str._b
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x40d62a7e
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x100211b
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push dword [0x1025d08]
xor esi, esi
inc esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push dword [0x102b45c]
mov dword [0x10107c8], esi
mov word [ebp - 0x18], 0x10
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0xffffffffffffffff
push dword [0x1025d08]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x10107cc]
pop esi
leave
ret
Function at 0x10037fa
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0x28]
push eax
push dword [0x1025d14]
mov word [ebp - 4], bx
mov word [ebp - 2], bx
mov word [ebp - 8], bx
mov word [ebp - 6], bx
mov word [ebp - 0x10], bx
mov word [ebp - 0xe], bx
mov word [ebp - 0xc], bx
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1003905
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
sub esi, dword [ebp - 0x1c]
lea ecx, [eax - 1]
inc esi
mov word [ebp - 4], ax
mov word [ebp - 0xc], cx
movsx eax, ax
movsx ecx, si
imul eax, ecx
shl eax, 2
push eax
mov word [ebp - 0xa], si
mov word [ebp - 2], si
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
cmp edi, ebx
pop ecx
je 0x1003905
movsx eax, word [ebp - 0x26]
dec eax
jmp 0x10038cf
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push edi
push dword [0x1025d14]
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
test eax, eax
je 0x10038d7
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push edi
push dword [0x1025d18]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
mov ecx, dword [ebp - 0x26]
add word [ebp - 0xa], si
add word [ebp - 0xe], si
movsx edx, word [ebp - 0xa]
movsx eax, cx
dec eax
cmp edx, eax
jle 0x10038cf
dec ecx
mov word [ebp - 0xa], cx
movsx ecx, word [ebp - 0xe]
cmp ecx, eax
jle 0x1003881
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea eax, [ebp - 0x1e]
push eax
push 1
push dword [0x1025d18]
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push dword [ebp - 0x24]
push dword [0x1025d18]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
xor eax, eax
inc eax
jmp 0x1003907
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003d00
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x1003d7c
cmp word [ebx + 8], 2
jne 0x1003d58
cmp word [ebx + 0xa], 4
jne 0x1003d58
mov esi, dword [ebx + 0xc]
jmp 0x1003d52
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01003c93
test eax, eax
mov dword [edi], eax
je 0x1003d77
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x1003d36
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
mov byte [esi + 0x400], 0
xor eax, eax
jmp 0x1003da2
push 8
pop eax
jmp 0x1003da2
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x1003da2
dec ecx
je 0x1003d9d
dec ecx
je 0x1003d96
dec ecx
jmp 0x1003da2
mov eax, 0x2afb
jmp 0x1003da2
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x10043f8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x1010c7c], 0
mov eax, dword [0x10106f0]
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], 0x1001d38
mov dword [ebp - 0x22c], 0x1003fa5
mov dword [ebp - 0x228], 0x1001d2c
mov dword [ebp - 0x224], 0x1004227
mov dword [ebp - 0x220], 0x1001d1c
mov dword [ebp - 0x21c], fcn.01003f5f
jne 0x1004579
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100456f
xor eax, eax
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x1004470
push edi
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100448b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, 0x1001d14
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x110]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x10044ce
push 0x1001d38
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10044ca
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x1004525
xor eax, eax
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x10044d0
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10044ea
mov esi, 0x1001d0c
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x110]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x100456c
push 0x1001d38
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1004521
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x100456c
xor edi, edi
push dword [ebp + edi*8 - 0x230]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + edi*8 - 0x22c], eax
je 0x1004548
inc edi
cmp edi, 3
jl 0x1004527
jmp 0x1004551
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x100456c
xor eax, eax
mov ecx, dword [ebp + eax - 0x22c]
mov dword [eax + 0x100f844], ecx
add eax, 8
cmp eax, 0x18
jl 0x1004557
pop esi
pop ebx
pop edi
mov dword [0x1010c7c], 1
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax*8 + 0x100f844]
call fcn.0100cdd8
leave
ret 4

Function at 0x1004703
Capabilities:
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov cl, byte [ebp + 0xc]
push 0
mov byte [ebp + 0xb], cl
push 2
lea ecx, [ebp + 0xa]
push ecx
mov byte [ebp + 0xa], 0xff
push dword [eax + 0x104]
call dword [sym.imp.WSOCK32.dll_send]
pop ebp
ret 8
Function at 0x1005527
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
mov eax, dword [esi + 0x510]
push ebx
mov ecx, 0x1000
sub ecx, eax
push ecx
mov ecx, dword [esi + 0x514]
add ecx, eax
push ecx
push dword [esi + 0x104]
call dword [sym.imp.WSOCK32.dll_recv]
mov edi, eax
cmp edi, ebx
jl 0x1005620
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, dword [esi + 0x510]
mov eax, dword [esi + 0x514]
mov dword [esi + 0x510], ebx
mov ebx, dword [esi + 0x528]
mov dword [ebp - 4], 0
je 0x1005620
mov cl, byte [eax]
dec edi
cmp cl, 0xff
mov dword [ebp - 8], edi
jne 0x10055d9
test edi, edi
je 0x10055e6
inc eax
cmp byte [eax], cl
mov dword [ebp - 0xc], eax
jne 0x10055b8
inc eax
mov byte [ebx], cl
inc ebx
dec edi
jmp 0x10055dd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.010053ad
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jmp 0x10055e0
mov byte [ebx], cl
inc ebx
inc eax
inc dword [ebp - 4]
test edi, edi
jne 0x100559a
jmp 0x10055f9
mov eax, dword [esi + 0x514]
mov byte [eax], 0xff
mov dword [esi + 0x510], 1
cmp dword [ebp - 4], 0
je 0x1005620
cmp dword [0x1010744], 0
je 0x1005611
cmp dword [0x1010754], 0
je 0x1005620
push esi
push dword [esi + 0x528]
push dword [ebp - 4]
call fcn.01005488
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1005674
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x10106f0]
and dword [0x10107e4], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x18c], eax
mov eax, dword [0x10107e0]
test eax, eax
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x188], 1
je 0x100583c
push eax
push 0x1001d60
lea eax, [ebp - 0x104]
push 0xff
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
push 0x100
push edi
push esi
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0x1c
lea ebx, [esi + 0x50c]
push ebx
push 0
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.01004595
test eax, eax
jne 0x100583c
mov eax, dword [0x1010740]
mov edi, dword [ebx]
and eax, 0x10
and dword [0x1010740], 0xffffffef
mov dword [0x1010754], 1
mov dword [0x1010758], eax
jmp 0x1005804
push 0
push 1
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x104], eax
je 0x1005801
push 0x80
lea eax, [ebp - 0x184]
push eax
call fcn.010020f9
mov ax, word [edi + 4]
mov word [ebp - 0x184], ax
push 0x80
lea eax, [ebp - 0x184]
push eax
push dword [esi + 0x104]
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
jl 0x10057ee
xor eax, eax
inc eax
push 4
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x190]
push eax
push 0xffffff7f
push 0xffff
push dword [esi + 0x104]
call dword [sym.imp.WSOCK32.dll_setsockopt]
push 4
lea eax, [ebp - 0x188]
push eax
push 0x100
push 0xffff
push dword [esi + 0x104]
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
jl 0x100584d
push dword [esi + 0x104]
call fcn.0100b235
test eax, eax
jl 0x100584d
push dword [edi + 0x10]
push dword [edi + 0x18]
push dword [esi + 0x104]
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jge 0x100580c
push dword [esi + 0x104]
call dword [sym.imp.WSOCK32.dll_closesocket]
or dword [esi + 0x104], 0xffffffff
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x1005720
push dword [ebx]
call fcn.010045d2
and dword [ebx], 0
test edi, edi
jne 0x1005877
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
add esi, 0x104
mov dword [0x10107e4], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1005839
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
or dword [esi], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100cdd8
leave
ret 4
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [0x10107e4], eax
push dword [esi + 0x104]
call dword [sym.imp.WSOCK32.dll_closesocket]
push dword [ebx]
or dword [esi + 0x104], 0xffffffff
call fcn.010045d2
and dword [ebx], 0
jmp 0x100583c
mov eax, dword [ebp - 0x18c]
push 0x27
xor edi, edi
push 0x5f4
inc edi
mov dword [esi + 0x100], edi
push dword [eax + 0x7b0]
push dword [esi + 0x104]
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
test eax, eax
jge 0x10058cd
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [0x10107e4], eax
push dword [esi + 0x104]
call dword [sym.imp.WSOCK32.dll_closesocket]
or dword [esi + 0x104], 0xffffffff
or dword [esi + 0x100], 0xffffffff
jmp 0x100583c
mov eax, edi
jmp 0x100583e