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

Disassembly:
push 0xffffffffffffffff
push 0x405047
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 0x20]
call sub.MFC42.DLL_CString::CString
xor ebp, ebp
lea ecx, [esi + 0x24]
mov dword [esp + 0x1c], ebp
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x50]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea edi, [esi + 0x58]
mov byte [esp + 0x1c], 2
mov ecx, edi
call sub.MFC42.DLL_CString::CString
lea ebx, [esi + 0x5c]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
push 0x4082c4
mov ecx, edi
mov byte [esp + 0x20], 4
mov dword [esi], 0x406748
mov dword [esi + 4], eax
call fcn.00404c1c
push str..update_
mov ecx, ebx
call fcn.00404c1c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0xa000
push 8
mov dword [esi + 8], 0xffffffff
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
push 0x1000
push 8
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebp
call edi
push eax
call ebx
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x4081dc
push str..FILELIST.DAT
mov dword [esi + 0xc], eax
mov word [esi + 0x30], bp
mov dword [esi + 0x54], ebp
call edi
add esp, 8
cmp eax, ebp
mov dword [esi + 0x34], eax
jne 0x4030f1
push 0x40010
push 0x40806c
push 0x408294
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebp
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x403149
push 0x4081dc
push str..putmp.tmp
call edi
add esp, 8
cmp eax, ebp
mov dword [esi + 0x18], eax
jne 0x403136
mov ecx, dword [esi + 0x34]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x34], ebp
push 0x40010
push 0x40806c
push 0x408268
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebp
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x403149
mov dword [esi + 0x38], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x3c], 8
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x403190
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40508c
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
mov dword [esi], 0x406748
mov eax, dword [esi + 0x34]
mov edi, dword [sym.imp.MSVCRT.dll_fclose]
test eax, eax
mov dword [esp + 0x18], 3
je 0x4031d7
push eax
call edi
add esp, 4
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4031eb
push eax
call edi
add esp, 4
mov dword [esi + 0x18], 0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..FILELIST.DAT
call edi
push str..putmp.tmp
call edi
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 0
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebp
mov eax, dword [esi + 0xc]
push eax
push 0
call edi
push eax
call ebp
lea ecx, [esi + 0x5c]
call fcn.00404be0
lea ecx, [esi + 0x58]
mov byte [esp + 0x18], 2
call fcn.00404be0
lea ecx, [esi + 0x50]
mov byte [esp + 0x18], 1
call fcn.00404be0
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 0
call fcn.00404be0
lea ecx, [esi + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00404be0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x403280
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
xor ebx, ebx
push esi
cmp ebp, ebx
mov esi, ecx
je 0x4033ff
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x4033e2
push edi
mov edi, dword [esp + 0x14]
push eax
push ebp
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edx, dword [esi + 0x38]
add esp, 0x10
add edx, ebp
lea eax, [esp + 0x18]
mov dword [esi + 0x38], edx
mov edx, dword [0x408594]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [edx + 0xfc]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call sub.MFC42.DLL_CProgressCtrl::GetRange
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
jne 0x403387
mov eax, dword [esi + 0x38]
cmp eax, ebp
jne 0x403331
cmp ebp, 8
jl 0x4033a8
mov eax, dword [edi]
mov ecx, dword [0x408594]
push eax
push 0
mov edx, dword [ecx + 0x11c]
push 0x406
push edx
call ebx
mov eax, dword [edi + 4]
mov ecx, dword [0x408594]
push eax
push 0
mov edx, dword [ecx + 0xdc]
push 0x406
push edx
jmp 0x403385
cmp eax, 8
jl 0x4033a8
mov eax, dword [esi + 0x34]
push 0
push 0
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [esi + 0x34]
push ecx
push 8
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [edi]
mov eax, dword [0x408594]
add esp, 0x1c
mov ecx, dword [eax + 0x11c]
push edx
push 0
push 0x406
push ecx
call ebx
mov edx, dword [edi + 4]
mov eax, dword [0x408594]
push edx
push 0
mov ecx, dword [eax + 0xdc]
push 0x406
push ecx
call ebx
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4033a8
mov eax, dword [0x408594]
mov edx, dword [esi + 0x38]
push 0
push edx
mov ecx, dword [eax + 0x11c]
push 0x402
push ecx
call ebx
cmp ebp, 0x3fd
pop edi
jne 0x4033ff
mov edx, dword [esi + 0xc]
push 0
push 7
mov word [edx], 7
mov eax, dword [esi + 0xc]
mov byte [eax + 2], 7
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x38]
mov dword [ecx + 3], edx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
call fcn.004044a0
pop esi
pop ebp
pop ebx
ret 8
push 0x40010
push 0x40806c
push 0x4082c8
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
pop ebp
pop ebx
ret 8
Function at 0x403410
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
test edi, edi
je 0x4034b3
mov eax, dword [esi + 0x18]
test eax, eax
je 0x403494
push eax
mov eax, dword [esp + 0x10]
push edi
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esi + 0x1c]
add esp, 0x10
add eax, edi
mov dword [esi + 0x1c], eax
mov ecx, dword [0x408594]
push 0
push eax
mov edx, dword [ecx + 0x11c]
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp edi, 0x3fd
jne 0x4034b3
mov eax, dword [esi + 0xc]
push 0
push 7
mov word [eax], 7
mov ecx, dword [esi + 0xc]
mov byte [ecx + 2], 0xb
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x1c]
mov dword [edx + 3], eax
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
mov ecx, esi
call fcn.004044a0
pop edi
pop esi
ret 8
push 0x40010
push 0x40806c
push 0x4082e0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
ret 8
Function at 0x403b20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x403bdd
mov edx, dword [esi + 0x10]
mov ecx, 0xa000
sub ecx, eax
add eax, edx
mov edx, dword [esi + 8]
push ecx
push eax
push edx
call sub.WSOCK32.dll_recv
mov ecx, dword [esi + 0x14]
add ecx, eax
mov edx, ecx
mov dword [esi + 0x14], ecx
cmp edx, 2
jle 0x403c83
mov ecx, dword [esi + 0x10]
mov ax, word [ecx]
mov word [esi + 0x30], ax
and eax, 0xffff
cmp edx, eax
jl 0x403c83
add eax, 0xfffffffe
add ecx, 2
push eax
push ecx
mov ecx, esi
call fcn.004034c0
mov eax, dword [esi + 0x14]
xor edi, edi
mov di, word [esi + 0x30]
sub eax, edi
cmp eax, 2
jle 0x403bca
mov ecx, dword [esi + 0x10]
lea edx, [ecx + edi]
mov cx, word [ecx + edi]
mov word [esi + 0x30], cx
and ecx, 0xffff
cmp eax, ecx
jl 0x403bca
add ecx, 0xfffffffe
add edx, 2
push ecx
push edx
mov ecx, esi
call fcn.004034c0
mov eax, dword [esi + 0x14]
xor edx, edx
mov dx, word [esi + 0x30]
add edi, edx
sub eax, edi
cmp eax, 2
jg 0x403b91
mov eax, dword [esi + 0x14]
sub eax, edi
mov dword [esi + 0x14], eax
je 0x403c83
jmp 0x403c71
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 8]
push 0xa000
push ecx
push edx
call sub.WSOCK32.dll_recv
cmp eax, 2
mov dword [esi + 0x14], eax
jle 0x403c83
mov edx, dword [esi + 0x10]
mov cx, word [edx]
mov word [esi + 0x30], cx
and ecx, 0xffff
cmp eax, ecx
jl 0x403c83
add ecx, 0xfffffffe
add edx, 2
push ecx
push edx
mov ecx, esi
call fcn.004034c0
mov eax, dword [esi + 0x14]
xor edi, edi
mov di, word [esi + 0x30]
sub eax, edi
cmp eax, 2
jle 0x403c67
mov ecx, dword [esi + 0x10]
lea edx, [ecx + edi]
mov cx, word [ecx + edi]
mov word [esi + 0x30], cx
and ecx, 0xffff
cmp eax, ecx
jl 0x403c67
add ecx, 0xfffffffe
add edx, 2
push ecx
push edx
mov ecx, esi
call fcn.004034c0
mov eax, dword [esi + 0x14]
xor edx, edx
mov dx, word [esi + 0x30]
add edi, edx
sub eax, edi
cmp eax, 2
jg 0x403c2e
mov eax, dword [esi + 0x14]
sub eax, edi
mov dword [esi + 0x14], eax
je 0x403c83
mov esi, dword [esi + 0x10]
push eax
lea eax, [esi + edi]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
pop edi
pop esi
ret
Function at 0x403e40
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x34], ebx
je 0x403f17
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
cmp eax, ecx
je 0x403ee4
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
lea edi, [esi + 0x40]
push ebx
push eax
mov eax, dword [esi + 0x34]
push eax
call ebp
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0xc]
push ecx
push 0x1000
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
lea ecx, [esi + 0x50]
mov dword [edi], ebx
mov dword [esi + 0x44], ebx
push 0x40859c
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
call fcn.00404c1c
mov eax, dword [0x408594]
push ebx
push ebx
push 0x405
mov ecx, dword [eax + 0xdc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0xc]
push 0x1000
push edx
push edi
mov ecx, esi
call fcn.00403f20
test al, al
je 0x403efa
push edi
mov ecx, esi
call fcn.00403fc0
test al, al
jne 0x403f17
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
cmp eax, ecx
jne 0x403e68
mov eax, dword [esi + 4]
push ebx
push ebx
push 0x6bc
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x40010
push str.ERROR
push 0x40843c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4044a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
test edi, edi
jle 0x4044d1
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, edi
sub eax, esi
push ebx
push eax
push ebp
push ecx
call sub.WSOCK32.dll_send
test eax, eax
jle 0x4044d1
add esi, eax
cmp esi, edi
jl 0x4044b6
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x404520
Capabilities:
Create directory

Disassembly:
sub esp, 0x400
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__access]
push esi
mov esi, dword [esp + 0x40c]
push edi
push 0
push esi
call ebp
add esp, 8
test eax, eax
je 0x4045dc
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
cmp eax, 0x3fc
jl 0x404567
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x400
ret
lea ecx, [eax + 1]
lea edi, [esp + 0xc]
mov edx, ecx
lea eax, [esp + eax + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [eax - 1], 0x5c
je 0x40458e
mov ecx, dword [0x40847c]
mov dword [eax], ecx
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
lea edx, [esp + 0xc]
push 0x5c
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x4045dc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x10]
push 0
push eax
mov byte [esi], 0
call ebp
add esp, 8
test eax, eax
je 0x4045c9
lea ecx, [esp + 0x10]
push 0
push ecx
call ebx
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x4045ad
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x400
ret
Function at 0x4045f0
Capabilities:
Copy file
Delete file
Read .ini file
Write file on windows

Disassembly:
sub esp, 0xd90
push str..updateupdate.ini
push 0
push str.Result
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x40483a
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push ebx
lea eax, [esp + 0xc]
push str.File_d
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x198]
lea edx, [esp + 8]
push str..updateupdate.ini
push 0x400
push ecx
push 0x40859c
push edx
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x198]
test al, al
je 0x40482d
push esi
push edi
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x9a0]
push eax
push str.._s
push ecx
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xad]
mov byte [esp + 0xac], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x9ac]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa0]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xa0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x4046ec
cmp byte [esp + ecx + 0xa0], 0x5c
je 0x4046eb
dec ecx
jns 0x4046dc
jmp 0x4046ec
inc ecx
test ecx, ecx
jle 0x404708
mov byte [esp + ecx + 0xa0], 0
lea ecx, [esp + 0xa0]
push ecx
call fcn.00404520
add esp, 4
lea edx, [esp + 0x1a0]
lea eax, [esp + 0x5a0]
push edx
push str..update_s
push eax
call ebp
lea ecx, [esp + 0x5ac]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
test eax, eax
jne 0x4047e4
xor esi, esi
lea edx, [esp + 0x9a0]
push 0
lea eax, [esp + 0x5a4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x404768
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jl 0x40473c
jmp 0x40477b
lea ecx, [esp + 0x5a0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, 5
jl 0x4047e4
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x5a0]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x24]
push 0x408494
push eax
call ebp
push 0x408490
push str..UpdataLog.txt
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4047e4
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
push ecx
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
inc ebx
lea edx, [esp + 0x10]
push ebx
push str.File_d
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x10]
push str..updateupdate.ini
push 0x400
push eax
push 0x40859c
push ecx
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x1a0]
test al, al
jne 0x404668
pop edi
pop esi
push str..updateupdate.ini
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
pop ebx
add esp, 0xd90
ret
Function at 0x404850
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x405146
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40489e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404965
mov ecx, dword [esp + 0x150]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], ebx
call sub.MFC42.DLL_CString::MakeLower
lea edx, [esp + 0x18]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40493f
mov esi, dword [esp + 0x154]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 1
call sub.MFC42.DLL_CString::MakeLower
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x404915
mov eax, dword [esp + 0x20]
cmp esi, eax
jne 0x404980
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], bl
call fcn.00404be0
lea eax, [esp + 0x18]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4048db
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0xffffffff
call fcn.00404be0
xor eax, eax
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], bl
call fcn.00404be0
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0xffffffff
call fcn.00404be0
mov eax, 1
jmp 0x404967
Function at 0x40234b
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
xor ebp, ebp
cmp dword [esp + 8], ebp
je 0x402365
push dword [esp + 8]
push 0x4022ba
call dword [sym.imp.USER32.DLL_EnumWindows]
jmp 0x4023b8
push esi
mov esi, dword [0x40a538]
cmp esi, ebp
je 0x4023b7
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4023af
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp dword [esi + 0x10], ebp
je 0x4023a2
push 3
push ebp
push ebp
push ebp
push ebp
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x40a538
call fcn.004065be
pop ecx
pop ecx
cmp ebx, ebp
mov esi, ebx
jne 0x402372
pop edi
pop ebx
pop esi
pop ebp
ret 4
Function at 0x4030ff
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
neg eax
push fcn.0040305a
sbb eax, eax
push 0x10
inc eax
push 0x20
mov word [0x40a6c4], ax
call fcn.00405fba
mov dword [0x40a53c], eax
movsx eax, word [0x40a6c4]
add esp, 0x190
ret

Function at 0x403140
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40323a
push ebx
push esi
push dword [ebp + 0x10]
push 2
call dword [sym.imp.WSOCK32.DLL_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403239
push edi
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_inet_addr]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40319c
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_gethostbyname]
test eax, eax
je 0x403231
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x403231
xor eax, eax
inc eax
cmp dword [ebp + 0x10], eax
jne 0x4031ed
push dword [ebp + 0xc]
mov word [ebp - 0x14], 2
call dword [sym.imp.WSOCK32.DLL_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.WSOCK32.DLL_connect]
cmp eax, 0xffffffff
je 0x403231
push 0x10
push 0
push dword [0x40a4ec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x403231
mov dword [esi], 1
mov dword [esi + 8], ebx
jmp 0x40322b
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
test eax, eax
jne 0x403231
push 0x20
push eax
push dword [0x40a4ec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x403231
mov eax, dword [ebp + 0xc]
mov dword [esi], 2
mov dword [esi + 0x10], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], eax
and dword [esi + 0xc], 0
jmp 0x403238
push ebx
call dword [sym.imp.WSOCK32.DLL_closesocket]
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x403241
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi], 1
jne 0x403264
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_recv]
mov edi, eax
jmp 0x4032a5
cmp dword [esi + 0x14], edi
je 0x4032a5
mov eax, dword [esi + 0x18]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jle 0x403275
mov edi, eax
push edi
push dword [esi + 0x1c]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0x18], edi
mov eax, dword [esi + 0x18]
add dword [esi + 0x1c], edi
add esp, 0xc
test eax, eax
jne 0x4032a5
push dword [esi + 0x14]
push eax
push dword [0x40a4ec]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi + 0x14], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4032ad
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 1
jne 0x4032cf
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_send]
jmp 0x40330d
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
movzx eax, word [esi + 8]
push eax
mov word [ebp - 0x10], 2
call dword [sym.imp.WSOCK32.DLL_htons]
mov word [ebp - 0xe], ax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4032f5
mov eax, dword [eax]
jmp 0x4032f8
mov eax, dword [esi + 0x10]
push 0x10
lea ecx, [ebp - 0x10]
push ecx
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WSOCK32.DLL_sendto]
pop esi
leave
ret 0xc

Function at 0x40332d
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], 1
jne 0x40338b
lea eax, [ebp + 8]
push eax
push 0x4004667f
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
cmp dword [ebp + 8], ebx
je 0x4033e4
cmp dword [ebp + 8], 8
push 2
pop ebx
jl 0x4033e4
lea eax, [ebp - 0x10]
push eax
push 8
push dword [esi + 8]
call fcn.004033ec
cmp dword [ebp - 0x10], 0x474d4250
jne 0x4033e4
cmp dword [ebp - 0xc], 0x454c4653
jne 0x4033e4
push 3
pop ebx
jmp 0x4033e4
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x800
lea eax, [ebp - 0x820]
push eax
push dword [esi + 0x10]
mov dword [ebp - 4], 0x10
call dword [sym.imp.WSOCK32.DLL_recvfrom]
mov edi, eax
test edi, edi
jle 0x4033e3
push 2
pop ebx
push edi
push 0
push dword [0x40a4ec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
lea ecx, [ebp - 0x820]
push ecx
push eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x4033ec
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40340a
lea eax, [ebp + 0xc]
push eax
push 0x4004667f
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
cmp dword [ebp + 0xc], esi
je 0x403454
push 2
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40344d
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
cmp eax, 0x2745
je 0x403451
cmp eax, 0x2746
je 0x403451
cmp eax, 0x2749
je 0x403451
cmp eax, 0x274a
je 0x403451
xor esi, esi
jmp 0x403454
test esi, esi
jne 0x403454
push 0xfffffffffffffffe
pop esi
mov eax, esi
pop esi
pop ebp
ret 0xc