joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408234
Capabilities:
Get hostname
Get session user name
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esi + 8], edi
call fcn.0040c44c
mov ecx, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, 0xffffffff
mov dword [esi + 0x10], edi
mov dword [esi + 4], eax
mov dword [esi], eax
push dword [ebp + 0xc]
mov dword [esi + 0x84], ecx
mov ecx, esi
call fcn.004082fd
test eax, eax
je 0x4082ed
lea ebx, [esi + 0x4e]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x32
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x408299
push edi
push str.gethostname__
call fcn.0040c289
add esp, 8
jmp 0x4082ed
push ebx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4082b2
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esi + 0x80], edx
jmp 0x4082bc
mov dword [esi + 0x80], 0
lea edi, [esi + 0x1c]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x32
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
je 0x4082e6
push 0x32
push str.no_name
push edi
call fcn.0040b647
add esp, 0xc
mov dword [esi + 8], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408a64
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
mov esi, ecx
push 0x10
push 0
push eax
call fcn.00417bc0
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xe], ax
mov ecx, dword [ebp + 8]
push 0x10
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0xc], ecx
mov word [ebp - 0x10], 2
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esi]
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x408b39
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2742
je 0x408ac5
cmp eax, 0x2751
je 0x408b0b
xor eax, eax
jmp 0x408b3e
mov ecx, esi
call fcn.004085e4
cmp eax, 1
je 0x408ad5
xor eax, eax
jmp 0x408b3e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x408aed
push eax
mov ecx, esi
call fcn.004086a8
cmp eax, 1
je 0x408aed
xor eax, eax
jmp 0x408b3e
push 0x10
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esi]
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x408b39
xor eax, eax
jmp 0x408b3e
xor esi, esi
cmp dword [0x420528], esi
jne 0x408b35
mov dword [0x420528], 1
push esi
push dword [ebp + 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
push str.sendto___failed._r_nPlease_set_default_gateway_in_TCP_IP_settings
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x408b3e
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x408b81
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0x10
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 1
push esi
push edi
mov edi, ecx
mov esi, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push dword [edi + 4]
call sub.WSOCK32.dll_accept
cmp eax, 0xffffffff
mov ecx, eax
mov dword [esi + 8], eax
je 0x408c41
push 4
lea eax, [ebp - 8]
push eax
mov ebx, 1
push ebx
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x18], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], 0x40000
movzx ecx, word [ebp - 0x1a]
mov dword [esi + 0x10], ecx
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [esi + 8]
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x408c17
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
test eax, eax
jg 0x408bec
push esi
mov ecx, edi
push dword [ebp + 8]
call fcn.00408d58
test eax, eax
je 0x408c39
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
mov eax, 1
jmp 0x408c43
push dword [esi + 8]
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408c4c
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
push ebx
push esi
mov ebx, ecx
push edi
push eax
mov edi, dword [ebp + 0xc]
push 1
push 2
lea esi, [edi + 8]
mov dword [edi + 0x14], eax
call sub.WSOCK32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x408d4d
mov dword [ebp - 8], 1
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
push eax
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
jne 0x408d4d
push 4
lea eax, [ebp - 8]
push eax
push 1
push 0xffff
push dword [esi]
call sub.WSOCK32.dll_setsockopt
mov dword [ebp - 4], 0x40000
push 4
lea eax, [ebp - 4]
push eax
push 0x1002
push 0xffff
push dword [esi]
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x408cda
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
test eax, eax
jg 0x408cb0
push edi
mov ecx, ebx
push dword [ebp + 8]
call fcn.00408d58
test eax, eax
je 0x408d46
push 0x10
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.00417bc0
add esp, 0xc
mov eax, dword [edi + 0x10]
mov word [ebp - 0x16], ax
mov ecx, dword [edi + 0xc]
push 0x10
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x14], ecx
push dword [esi]
mov word [ebp - 0x18], 2
call sub.WSOCK32.dll_connect
cmp eax, 1
sbb eax, eax
neg eax
mov dword [edi + 0x18], eax
test eax, eax
jne 0x408d33
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x408d46
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], eax
mov eax, 1
jmp 0x408d4f
push dword [esi]
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40966c
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x34
push ebx
push esi
push edi
push ebp
mov ebx, dword [ecx]
mov eax, dword [ecx + 0x30]
mov edi, ecx
push 0x32
mov esi, dword [ebx + 0x84]
add eax, 0x2f0
push eax
push 0x40a
call esi
push 0x32
mov eax, dword [edi + 0x30]
add eax, 0x322
mov ecx, edi
push eax
push 0x439
mov ebp, 0xf0
call esi
mov esi, dword [ebx + 0xa8]
mov ecx, edi
xor ebx, ebx
push ebx
push ebx
push ebp
push 0x3f9
call esi
mov ecx, dword [edi + 0x30]
push ebx
push ebx
push ebp
push 0x402
mov dword [ecx + 0x4c], eax
mov ecx, edi
call esi
mov ecx, dword [edi + 0x30]
push ebx
push ebx
push ebp
push 0x3f7
mov dword [ecx + 0x48], eax
mov ecx, edi
call esi
mov ecx, dword [edi + 0x30]
push ebx
push ebx
push ebp
push 0x3fa
mov dword [ecx + 0x54], eax
mov ecx, edi
call esi
mov ecx, dword [edi + 0x30]
push ebx
push ebx
push ebp
push 0x3ec
mov dword [ecx + 0x2b8], eax
mov ecx, edi
call esi
mov ecx, dword [edi + 0x30]
mov dword [ecx + 0x2bc], eax
mov ecx, dword [edi + 0x30]
add ecx, 0x96c
mov eax, dword [ecx]
call dword [eax + 4]
mov ebp, eax
test ebp, ebp
je 0x409738
push ebp
call fcn.00404fe6
add esp, 4
push ebp
call fcn.004179f0
add esp, 4
jmp 0x409710
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
mov ecx, edi
push ebx
push 0x189
push 0x3fc
call esi
cmp eax, 0xffffffff
je 0x4097a9
push 0x10
call fcn.00417e80
add esp, 4
mov ebp, eax
test ebp, ebp
je 0x4097a9
lea eax, [esp + 0x10]
inc ebx
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x30]
push dword [eax + 0x44]
call sub.WSOCK32.dll_htons
movzx ecx, ax
push ebp
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 0x30]
add ecx, 0x96c
mov eax, dword [ecx]
call dword [eax]
lea eax, [esp + 0x10]
mov ecx, edi
push eax
push ebx
push 0x189
push 0x3fc
call esi
cmp eax, 0xffffffff
jne 0x409753
push 0
mov ecx, edi
push 0
push 0xf0
push 0x42e
call esi
mov ecx, dword [edi + 0x30]
pop ebp
pop edi
pop esi
pop ebx
mov dword [ecx + 0x984], eax
add esp, 0x34
ret

Function at 0x40994f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 4
mov ebp, esp
sub esp, 0x70
push esi
mov dword [ebp - 8], eax
push edi
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
mov edx, dword [esi + 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [esi + edx*4 + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4099bc
lea eax, [ebp - 4]
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0x64
push eax
push ecx
mov eax, dword [esi + 4]
push dword [ebp + 8]
push dword [esi + eax*4 + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
mov eax, 0
jne 0x4099c1
lea eax, [ebp - 0x70]
push eax
call fcn.004186e0
add esp, 4
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x409a4a
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
call fcn.00417f20
add esp, 4
inc eax
push eax
mov eax, dword [esi + 4]
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi + eax*4 + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
cmp eax, 1
sbb eax, eax
neg eax
ret 8

Function at 0x409ab5
Capabilities:
Query or enumerate registry key

Disassembly:
xor eax, eax
lea edx, [esp + 0xc]
push eax
push eax
push eax
push eax
push edx
mov eax, dword [ecx + 4]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [ecx + eax*4 + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 1
sbb eax, eax
neg eax
ret 0xc
Function at 0x40bfb0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov edx, 0x41d268
mov ebp, esp
sub esp, 0x658
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
lea edi, [ebp - 0x154]
xor eax, eax
mov ecx, 0x40
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x153]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, edx
mov ecx, 0xff
stosb byte es:[edi], al
lea edi, [ebp - 0x658]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x657]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], al
je 0x40c034
lea eax, [ebp - 4]
lea ecx, [ebp - 0x154]
push eax
push ecx
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x40c034
cmp dword [ebp - 4], 0
je 0x40c034
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x658]
mov byte [eax - 1], 0
push dword [ebp - 4]
jmp 0x40c043
cmp dword [ebp + 0x14], 0
je 0x40c04c
push dword [ebp + 0x14]
lea ecx, [ebp - 0x154]
push ecx
call fcn.00417c20
add esp, 8
push 0x4c
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00417bc0
add esp, 0xc
mov eax, dword [ebx]
mov dword [ebp - 0x50], 0x4c
test eax, eax
je 0x40c071
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x4c], eax
jmp 0x40c078
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x658]
mov dword [ebp - 0x44], eax
cmp eax, 1
sbb eax, eax
mov edx, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x30], 0x400
lea eax, [ebp - 0x154]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0xc], eax
cmp eax, 1
mov eax, 0
adc eax, 0xffffffff
add ebx, 8
and eax, 0x20
or eax, 0x80004
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
test eax, eax
je 0x40c0df
cmp eax, 1
je 0x40c0df
sub eax, 3
cmp eax, 1
sbb eax, eax
and eax, 0x100000
jmp 0x40c0ed
dec eax
cmp eax, 1
sbb eax, eax
and eax, 0x200
or ah, 0x10
or dword [ebp - 0x1c], eax
lea eax, [ebp - 0x258]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebx]
test eax, eax
je 0x40c118
cmp eax, 1
je 0x40c118
lea eax, [ebp - 0x50]
push eax
call sub.comdlg32.dll_GetSaveFileNameA
jmp 0x40c121
lea eax, [ebp - 0x50]
push eax
call sub.comdlg32.dll_GetOpenFileNameA
mov esi, eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test esi, esi
je 0x40c175
cmp dword [ebx], 1
jne 0x40c150
push 0x400
lea eax, [ebp - 0x658]
push eax
push edi
call fcn.00417d10
add esp, 0xc
jmp 0x40c15c
push dword [ebp - 0x34]
push edi
call fcn.00417c20
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x40c175
movzx eax, word [ebp - 0x18]
push eax
push dword [ebp - 0x34]
push dword [ebp + 0x14]
call fcn.0040b647
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40ce16
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
mov ebx, ecx
mov esi, 0x41d268
lea edi, [ebp - 0x110]
xor eax, eax
mov ecx, 0x40
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x214]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 4
jb 0x40ce81
push str.Media
lea eax, [ebp - 0x110]
push eax
call fcn.00417c30
add esp, 8
xor eax, eax
lea ecx, [ebp - 0x110]
push ecx
mov dword [ebp - 0xc], ebx
push str.SoundFile_.wav_
lea ecx, [ebp - 0xc]
push str.SoundFile_selection
mov dword [ebp - 8], eax
push 0x433
mov dword [ebp - 4], eax
call fcn.0040bf42
mov esi, eax
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410182
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov eax, dword [esp + 0x10]
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ecx + 8], eax
mov edi, ecx
xor eax, eax
mov ecx, dword [eax + 0x41e770]
mov edx, dword [edi]
mov dword [edx + eax], ecx
add eax, 4
cmp eax, 0x48
jl 0x410196
xor eax, eax
mov ecx, 4
mov edx, 0x100
mov esi, dword [eax + 0x41e7b8]
mov ebx, dword [edi + 4]
mov dword [ebx + eax], esi
add eax, 4
dec edx
jne 0x4101b5
dec ecx
jne 0x4101b0
xor esi, esi
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov al, byte [esi + ecx]
mov byte [ebp - 1], al
lea eax, [esi + 1]
cdq
idiv dword [ebp + 0xc]
lea eax, [esi + 2]
mov dl, byte [ecx + edx]
mov byte [ebp - 2], dl
cdq
idiv dword [ebp + 0xc]
mov al, byte [ecx + edx]
mov byte [ebp - 3], al
lea eax, [esi + 3]
cdq
idiv dword [ebp + 0xc]
mov al, byte [ecx + edx]
mov byte [ebp - 4], al
mov eax, dword [edi]
mov edx, dword [ebp - 4]
xor dword [eax + ebx], edx
lea eax, [esi + 4]
cdq
idiv dword [ebp + 0xc]
mov esi, edx
add ebx, 4
cmp ebx, 0x48
jl 0x4101d1
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.0040fb56
mov edx, dword [ebp - 0xc]
mov ecx, dword [edi]
mov dword [ecx + esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 8]
add esi, 8
cmp esi, 0x48
mov dword [ecx + esi - 4], eax
jl 0x41021f
xor ebx, ebx
mov esi, 4
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.0040fb56
mov edx, dword [ebp - 0xc]
mov ecx, dword [edi + 4]
mov dword [ecx + ebx], edx
mov ecx, dword [edi + 4]
mov eax, dword [ebp - 8]
add ebx, 8
dec dword [ebp - 4]
mov dword [ecx + ebx - 4], eax
jne 0x410255
dec esi
jne 0x41024e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4127dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x412805
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x412877
push 0x140
push 0
push esi
call fcn.00417bc0
add esp, 0xc
push 0
push 0x2000000
push 3
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov edi, eax
je 0x412865
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x412865
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.00417d10
add esp, 0xc
mov eax, 1
jmp 0x412877
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [esi], eax
inc eax
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4144ae
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 3
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x34], eax
cmp eax, 0xffffffff
je 0x41459f
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov cl, 0x20
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00418860
or eax, ebx
or edx, edi
lea ecx, [esi + 0x20]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ecx], edx
mov dword [ecx + 4], eax
cmp eax, edi
jne 0x414524
cmp edx, edi
jne 0x414524
mov eax, 1
jmp 0x4145a6
xor edi, edi
push edi
push ebx
push dword [ebp - 0xc]
push 2
push edi
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x38], eax
cmp dword [esi + 0x24], edi
lea eax, [esi + 0x20]
mov edx, dword [eax]
mov dword [ebp - 8], edx
jl 0x414559
jg 0x414552
cmp dword [ebp - 8], 0x800000
jbe 0x414559
mov edi, 0x800000
jmp 0x41455c
mov edi, dword [ebp - 8]
mov edx, dword [esi + 0x2c]
lea eax, [esi + 0x28]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov cl, 0x20
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
call fcn.00418880
push 0
mov dword [ebp - 0xc], eax
push 0x800000
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00418630
shl eax, 0x17
push edi
push eax
push dword [ebp - 0xc]
push 4
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x30], eax
cmp dword [esi + 0x30], 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x414cfa
Capabilities:
Check for time delay via gettickcount
Read and send data from client to server
Read file via mapping
Send data
Send data on socket

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x414e50
cmp dword [esi + 0x34], eax
je 0x414e50
mov edx, dword [esi + 0x2c]
lea edi, [esi + 0x20]
lea ebx, [esi + 0x28]
mov ecx, dword [ebx]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi]
mov dword [ebp - 0xc], edx
mov edx, dword [edi + 4]
sub ecx, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
cmp edx, eax
jl 0x414d8f
jg 0x414d46
cmp dword [ebp - 8], eax
jbe 0x414d8f
cmp dword [ebp - 4], 0
jl 0x414d5e
jg 0x414d57
cmp dword [ebp - 8], 0x10000
jbe 0x414d5e
mov eax, 0x10000
jmp 0x414d61
mov eax, dword [ebp - 8]
push 0
push eax
push 0
push 0x800000
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.004187a0
mov ecx, dword [esi + 0x30]
add ecx, eax
mov eax, dword [esi + 8]
push ecx
push dword [eax + 8]
call sub.WSOCK32.dll_send
test eax, eax
jl 0x414e50
cdq
add eax, dword [ebx]
adc edx, dword [ebx + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp dword [edi + 4], edx
mov eax, dword [ebp - 8]
mov dword [ebx], eax
mov dword [ebx + 4], edx
jne 0x414dbf
cmp dword [edi], eax
jne 0x414dbf
mov eax, dword [esi + 0x18]
sub eax, 0x62
cmp eax, 1
sbb eax, eax
add eax, 8
mov dword [esi + 0x48], eax
jmp 0x414e3d
push 0
push 0x800000
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004187a0
test edx, edx
jne 0x414e3d
test eax, eax
jne 0x414e3d
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
sub ecx, dword [ebp - 0x10]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
js 0x414e14
jg 0x414e0b
cmp dword [ebp - 8], 0x800000
jbe 0x414e14
mov dword [ebp - 8], 0x800000
jmp 0x414e1a
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
push dword [ebp - 8]
push ecx
mov cl, 0x20
mov edx, dword [ebp - 0xc]
call fcn.00418880
push eax
push 4
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 8]
mov dword [ecx + 0x20], eax
mov eax, 1
jmp 0x414e52
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x415885
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x10]
push ebp
test edi, edi
je 0x4158db
lea ebx, [esi + 0x24]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 4]
lea ebp, [eax - 0x30]
test eax, eax
jne 0x4158a6
xor ebp, ebp
test ebp, ebp
je 0x4158db
cmp dword [ebp + 0x44], edi
jne 0x4158bb
mov ecx, ebp
call fcn.0040460e
cmp eax, 1
jne 0x415918
test ebp, ebp
je 0x4158c4
add ebp, 0x30
jmp 0x4158c6
xor ebp, ebp
mov eax, dword [ebx]
push ebp
mov ecx, ebx
call dword [eax + 8]
lea ebp, [eax - 0x30]
test eax, eax
jne 0x4158d7
xor ebp, ebp
test ebp, ebp
jne 0x4158aa
push 0x8304
call fcn.00417e80
add esp, 4
test eax, eax
je 0x415924
push dword [esp + 0x18]
push edi
lea ebx, [esi + 0x60]
mov ecx, eax
push dword [esi + 0x90]
push dword [esi + 0x98]
push ebx
push dword [esi + 0x94]
push dword [esi + 0x8c]
call fcn.004013b1
mov edi, eax
jmp 0x415926
push 1
mov ecx, esi
push ebp
call fcn.00416d8b
jmp 0x41598d
xor edi, edi
test edi, edi
jne 0x41592e
xor eax, eax
jmp 0x415992
lea eax, [edi + 0x30]
lea ecx, [esi + 0x24]
push eax
mov ebx, dword [ecx]
call dword [ebx]
mov ebp, dword [edi]
xor ebx, ebx
push ebx
mov ecx, edi
call dword [ebp + 0xe4]
push 0xa
mov ecx, edi
call dword [ebp + 4]
push 1
mov ecx, esi
push edi
call fcn.0041786a
cmp dword [esi + 0x6c], ebx
jne 0x41598d
mov eax, dword [esi + 0x98]
cmp dword [eax + 0x35c], ebx
jne 0x41598d
push 1
push dword [esi + 0xa0]
call sub.WSOCK32.dll_htons
movzx eax, ax
push eax
push str.127.0.0.1
call sub.WSOCK32.dll_inet_addr
push eax
mov ecx, esi
call fcn.00416724
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret 8