joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404250
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0xc], eax
cmp dword [ecx], eax
je 0x4042d2
cmp edi, eax
jle 0x40427d
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x404270
lea ebx, [edi + 7]
push ebx
call fcn.00404d1d
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [0x415060]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x415064]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.0040be10
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
add esp, 0x10
push 0
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4042d6
cmp eax, ebx
jne 0x4042d6
mov dword [esp + 0xc], 1
jmp 0x4042d6
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4042e3
push esi
call fcn.004050e8
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x404430
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8e0
mov eax, dword [0x414044]
xor eax, esp
mov dword [esp + 0x8dc], eax
mov eax, dword [esp + 0x8e4]
push ebx
push esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x8f0]
push edi
lea edi, [esp + 0xe8]
mov ebx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
test eax, eax
je 0x404474
mov dword [esp + 0x10], eax
mov edi, eax
xor edx, edx
mov word [edi], dx
mov esi, dword [ebx]
xor eax, eax
mov dword [esp + 0xc], eax
test esi, esi
je 0x4045bb
test ecx, ecx
je 0x4045bb
push ebp
push 0xc7
push eax
mov byte [esp + 0x2c], al
lea eax, [esp + 0x2d]
push eax
call fcn.0040b3e0
mov ebp, dword [sym.imp.WS2_32.dll_recv]
add esp, 0xc
push 0
push 2
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebp
cmp eax, 0xffffffff
je 0x404611
test eax, eax
je 0x404611
movzx edi, word [esp + 0x24]
lea edx, [edi + 2]
push edx
xor esi, esi
call fcn.00404d1d
add esp, 4
mov dword [esp + 0x18], eax
test edi, edi
jle 0x4045a5
jmp 0x4044f0
mov ecx, dword [esp + 0x18]
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebx]
lea edx, [esi + ecx]
push edx
push eax
call ebp
cmp eax, 0xffffffff
je 0x404584
test eax, eax
je 0x404584
add esi, eax
cmp edi, esi
jg 0x4044f0
cmp esi, 5
jl 0x4045a5
mov ecx, dword [0x415060]
mov edi, dword [esp + 0x18]
sub esi, 5
cmp ecx, dword [edi]
jne 0x4045ec
mov dl, byte [edi + 4]
cmp dl, byte [0x415064]
jne 0x4045ec
test esi, esi
jle 0x40455c
lea eax, [edi + 5]
mov ecx, esi
lea esp, [esp]
mov dl, byte [eax]
not dl
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x404550
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
add edi, 5
cmp eax, esi
jl 0x4045d3
mov eax, dword [esp + 0x1c]
push esi
push edi
push eax
call fcn.0040be10
mov dword [ebx], esi
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x4045a5
mov edx, dword [esp + 0x14]
mov eax, 0x412d80
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404590
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4045b6
push eax
call fcn.004050e8
add esp, 4
mov eax, dword [esp + 0x10]
pop ebp
mov ecx, dword [esp + 0x8e8]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00404b06
add esp, 0x8e0
ret
mov ecx, dword [esp + 0x1c]
push eax
push edi
push ecx
call fcn.0040be10
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x4045a5
mov edx, dword [esp + 0x14]
mov eax, 0x412d80
sub edx, eax
jmp 0x404600
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404600
jmp 0x4045a5
mov eax, 0x412d80
mov edx, edi
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404620
jmp 0x4045b6
Function at 0x404800
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00410070
mov eax, dword [0x414044]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x1010]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push edi
xor edi, edi
push edi
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x404858
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00404b06
add esp, 0x100c
ret
cmp dword [esp + 8], edi
jbe 0x40489b
push esi
nop
mov ecx, dword [ebx]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x40489a
mov edx, dword [esp + 0x10]
push edx
push esi
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.00405e29
add edi, esi
add esp, 0x10
mov dword [0x417494], edi
cmp edi, dword [esp + 0xc]
jb 0x404860
pop esi
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00405c4b
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp edi, dword [esp + 8]
pop edi
sbb eax, eax
pop ebp
xor ecx, esp
inc eax
call fcn.00404b06
add esp, 0x100c
ret

Function at 0x4048d0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x414044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.0040b3e0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x4049d6
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404912
sub eax, edx
sar eax, 1
je 0x4049d6
cmp ebx, edi
je 0x4049d6
cmp dword [0x417498], 3
jne 0x404961
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x412cc8
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00405450
add esp, 0xc
jmp 0x404971
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.00405450
push 0x412c44
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004055aa
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x4049bb
push eax
push 1
push 0x1e0
push ebx
call fcn.00405e29
mov edx, dword [esp + 0x14]
push edx
call fcn.00405c4b
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00404b06
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00404b06
add esp, 0x214
ret
Function at 0x4049f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404a14
xor eax, eax
pop esi
pop ecx
ret
push edi
push 2
push 0
push 0xfffffdc2
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
test edi, edi
je 0x404a4d
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x23e
push edx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x404b06
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414044]
jne 0x404b10
repz ret
jmp fcn.00406435

Function at 0x40ec97
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004082f6
and dword [ebp - 4], 0
cmp dword [0x415be4], 0
mov ebx, eax
jne 0x40ed48
push 0x412470
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40edf9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x412464
push edi
call esi
test eax, eax
je 0x40edf9
push eax
call fcn.00408284
mov dword [esp], 0x412454
push edi
mov dword [0x415be4], eax
call esi
push eax
call fcn.00408284
mov dword [esp], 0x412440
push edi
mov dword [0x415be8], eax
call esi
push eax
call fcn.00408284
mov dword [esp], 0x412424
push edi
mov dword [0x415bec], eax
call esi
push eax
call fcn.00408284
pop ecx
mov dword [0x415bf4], eax
test eax, eax
je 0x40ed48
push 0x41240c
push edi
call esi
push eax
call fcn.00408284
pop ecx
mov dword [0x415bf0], eax
mov eax, dword [0x415bf0]
cmp eax, ebx
je 0x40eda0
cmp dword [0x415bf4], ebx
je 0x40eda0
push eax
call fcn.004082ff
push dword [0x415bf4]
mov esi, eax
call fcn.004082ff
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40eda0
test edi, edi
je 0x40eda0
call esi
test eax, eax
je 0x40ed97
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ed97
test byte [ebp - 0xc], 1
jne 0x40eda0
or dword [ebp + 0x10], 0x200000
jmp 0x40edd9
mov eax, dword [0x415be8]
cmp eax, ebx
je 0x40edd9
push eax
call fcn.004082ff
pop ecx
test eax, eax
je 0x40edd9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40edd9
mov eax, dword [0x415bec]
cmp eax, ebx
je 0x40edd9
push eax
call fcn.004082ff
pop ecx
test eax, eax
je 0x40edd9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x415be4]
call fcn.004082ff
pop ecx
test eax, eax
je 0x40edf9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40edfb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
or ebp, 0xffffffff
jmp 0x41d3b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41d3b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41d3a8
mov eax, 1
add ebx, ebx
jne 0x41d3cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41d3c0
jne 0x41d3dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d3c0
xor ecx, ecx
sub eax, 3
jb 0x41d3f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41d462
mov ebp, eax
add ebx, ebx
jne 0x41d3fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41d408
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41d42c
inc ecx
add ebx, ebx
jne 0x41d418
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41d40d
jne 0x41d429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d40d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41d44c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41d43d
jmp 0x41d3ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41d44c
add edi, ecx
jmp 0x41d3ae
pop esi
mov edi, esi
mov ecx, 0x167
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41d46a
cmp byte [edi], 5
jne 0x41d46a
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 0x41d46f
lea edi, [esi + 0x1b000]
mov eax, dword [edi]
or eax, eax
je 0x41d4e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22b70]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22bd4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41d49c
mov ecx, edi
jns 0x41d4cb
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 + 0x22bd8]
or eax, eax
je 0x41d4e1
mov dword [ebx], eax
add ebx, 4
jmp 0x41d4b9
call dword [esi + 0x22be0]
mov ebp, dword [esi + 0x22bdc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x41d51b
sub esp, 0xffffff80
jmp 0x40b10a
Function at 0x401664
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
xor eax, eax
mov ecx, dword [esi]
mov edx, dword [eax + 0x421030]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x48
jl 0x401673
xor eax, eax
mov ecx, 0x100
mov edx, dword [esi + 4]
mov ebx, dword [eax + 0x421078]
mov dword [eax + edx], ebx
add eax, 4
dec ecx
jne 0x40168d
cmp eax, 0x1000
jl 0x401688
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], edi
mov eax, edi
cdq
idiv ebx
inc edi
mov al, byte [edx + ecx]
mov byte [ebp + 0xf], al
mov eax, edi
cdq
idiv ebx
inc edi
mov al, byte [edx + ecx]
mov byte [ebp + 0xe], al
mov eax, edi
cdq
idiv ebx
inc edi
mov al, byte [edx + ecx]
mov byte [ebp + 0xd], al
mov eax, edi
cdq
idiv ebx
inc edi
mov al, byte [edx + ecx]
mov edx, dword [ebp - 4]
add dword [ebp - 4], 4
mov byte [ebp + 0xc], al
mov eax, dword [esi]
add eax, edx
mov edx, dword [ebp + 0xc]
xor dword [eax], edx
cmp dword [ebp - 4], 0x48
jl 0x4016af
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040104e
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
mov dword [edi + eax], ecx
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword [edi + eax + 4], ecx
add edi, 8
cmp edi, 0x48
jl 0x4016fd
push 4
pop edi
mov ebx, 0x80
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040104e
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 8]
mov dword [edi + eax - 4], ecx
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc]
mov dword [edi + eax], ecx
add edi, 8
dec ebx
jne 0x40172d
cmp edi, 0x1004
jl 0x401728
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x404a2b
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov al, byte [0x426550]
push ebx
push esi
push edi
mov ebx, ecx
push 0x40
mov byte [ebp - 0x110], al
pop ecx
xor eax, eax
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]
lea eax, [ebp - 0x110]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 4
jb 0x404a92
lea eax, [ebp - 0x110]
push str.Media
push eax
call fcn.00418490
pop ecx
pop ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0xc]
push eax
push 0x422af8
push 0x422ae0
push 0x433
mov dword [ebp - 0xc], ebx
call fcn.0040c1f5
mov esi, eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404dc8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
xor ebx, ebx
call fcn.00418790
mov edi, eax
mov eax, dword [esi]
pop ecx
cmp dword [eax + 0x68], ebx
je 0x404e32
add eax, 0x6c
cmp byte [eax], bl
je 0x404e32
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404e2e
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push ebx
push eax
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x404e35
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404eb1
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push dword [esp + 0x18]
call fcn.00417830
lea ecx, [esi + 0x24]
call fcn.00417333
lea ecx, [esi + 0x30]
call fcn.00417333
lea ecx, [esi + 0x3c]
call fcn.00417333
lea ecx, [esi + 0x48]
call fcn.00417333
lea ecx, [esi + 0x54]
call fcn.00417333
lea edi, [esi + 0x60]
mov ecx, edi
call fcn.0040bc5f
push 1
mov dword [esi], 0x41d4cc
pop eax
mov dword [edi], eax
push 0xadc
mov dword [esi + 0x64], eax
call fcn.0041802e
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x404f28
mov edx, dword [esp + 0x14]
mov ecx, eax
push edx
mov dword [esi + 0xa0], edx
push dword [esp + 0x14]
call fcn.004019bf
jmp 0x404f2a
xor eax, eax
push 0x8c
mov dword [esi + 0x98], eax
call fcn.0041802e
cmp eax, ebx
pop ecx
je 0x404f58
push dword [esi + 0x98]
mov ecx, eax
push dword [esi + 0xa0]
push dword [esp + 0x18]
call fcn.0040cbf7
jmp 0x404f5a
xor eax, eax
mov dword [esi + 0x8c], eax
cmp dword [eax + 8], ebx
jne 0x404f72
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esi + 0x98]
call fcn.00401a40
push 0x38
call fcn.0041802e
cmp eax, ebx
pop ecx
je 0x404f9a
push ebx
push edi
push dword [esi + 0x98]
mov ecx, eax
call fcn.00414364
jmp 0x404f9c
xor eax, eax
push 0x30
mov dword [esi + 0x7c], eax
call fcn.0041802e
cmp eax, ebx
pop ecx
je 0x404fb5
push ebx
mov ecx, eax
call fcn.0040a144
jmp 0x404fb7
xor eax, eax
push 0x40
mov dword [esi + 0x80], eax
call fcn.0041802e
cmp eax, ebx
pop ecx
je 0x404fd9
push esi
mov ecx, eax
push dword [esi + 0x98]
call fcn.0040a700
jmp 0x404fdb
xor eax, eax
push 4
mov dword [esi + 0x88], eax
call fcn.0041802e
cmp eax, ebx
pop ecx
je 0x404ffc
push dword [esi + 0x98]
mov ecx, eax
call fcn.00404ad1
jmp 0x404ffe
xor eax, eax
push 0x1c
mov dword [esi + 0x90], eax
call fcn.0041802e
cmp eax, ebx
pop ecx
je 0x40501d
push 0x10
push 0x64
mov ecx, eax
call fcn.004173a8
jmp 0x40501f
xor eax, eax
push 0x14
mov dword [esi + 0x9c], eax
call fcn.0041802e
cmp eax, ebx
pop ecx
je 0x405040
push dword [esi + 0x98]
mov ecx, eax
call fcn.00414a19
jmp 0x405042
xor eax, eax
lea edi, [esi + 0x94]
push 0x168
mov dword [edi], eax
call fcn.0041802e
cmp eax, ebx
pop ecx
je 0x40506b
push ebx
mov ecx, eax
push dword [esi + 0x98]
push dword [edi]
call fcn.004158bb
jmp 0x40506d
xor eax, eax
mov dword [esi + 0x84], eax
push 0xc0
lea eax, [esi + 0xcc]
push ebx
push eax
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
call fcn.00418050
add esp, 0xc
mov ecx, esi
mov dword [esi + 0x18c], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], 1
mov byte [esi + 0xc8], bl
call fcn.00408dbd
push 0x7c
push dword [0x4266dc]
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [esi + 0x14], eax
mov eax, esi
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x405380
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
lea eax, [ebp - 0x9c]
push esi
push eax
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x405436
cmp dword [ebp - 0x8c], 2
jne 0x4053bb
cmp dword [ebp - 0x98], 5
jae 0x4053cd
cmp dword [ebp - 0x8c], 1
jne 0x4053ea
cmp dword [ebp - 0x98], 4
jbe 0x405436
lea eax, [ebp - 8]
push 0
push eax
push 0
push 0x72
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x405436
cmp dword [ebp - 8], 0
setne al
jmp 0x405438
cmp dword [ebp - 0x8c], 2
jne 0x405436
cmp dword [ebp - 0x98], 4
jne 0x405436
push 0x81
push 1
push 0
push str.Screen_saver
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov esi, eax
test esi, esi
je 0x405436
and byte [ebp - 1], 0
lea eax, [ebp - 1]
push eax
push 0x405365
push esi
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
mov al, byte [ebp - 1]
jmp 0x405438
xor al, al
pop esi
leave
ret
Function at 0x40662b
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
push connect
mov edi, ecx
push dword [ebp + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [esi + 0x34], eax
je 0x40671c
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 8]
xor ecx, ecx
xor ebx, ebx
or ecx, eax
or edx, ebx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov ecx, dword [esi + 0x20]
or ecx, edx
jne 0x40668d
push 1
pop eax
jmp 0x406724
push 0
push eax
push dword [ebp + 8]
push 2
push 0
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x98]
mov edi, dword [esi + 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x428]
cdq
cmp dword [esi + 0x24], edx
jl 0x4066c6
jg 0x4066c1
cmp edi, eax
jbe 0x4066c6
mov dword [ebp + 0xc], eax
jmp 0x4066c9
mov dword [ebp + 0xc], edi
mov edi, dword [esi + 0x2c]
mov eax, edi
mov dword [ebp + 8], edi
mov ebx, dword [ecx + 0x428]
sar eax, 0x1f
mov eax, ebx
cdq
push edx
push eax
push edi
push dword [esi + 0x28]
call fcn.00418900
imul eax, ebx
push dword [ebp + 0xc]
push eax
push edi
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x30], eax
je 0x40671c
push 1
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x40671c
mov ecx, dword [ebp - 8]
push esi
call fcn.0040672b
xor eax, eax
jmp 0x406724
xor eax, eax
cmp dword [esi + 0x30], eax
setne al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406e00
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
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
mov dword [ebp - 4], edi
je 0x406f64
cmp dword [esi + 0x34], 0xffffffff
je 0x406f64
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x20]
and dword [ebp + 8], 0
mov edx, dword [esi + 0x2c]
mov ebx, dword [esi + 0x24]
sub eax, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x98]
sbb ebx, edx
mov edi, dword [eax + 0x42c]
mov eax, edi
cdq
push edx
push eax
push dword [esi + 0x2c]
push ecx
call fcn.004189b0
sub edi, eax
test ebx, ebx
jl 0x406eb6
jg 0x406e62
cmp dword [ebp - 0xc], 0
jbe 0x406eb6
mov eax, edi
cdq
cmp ebx, edx
jl 0x406e75
jg 0x406e70
cmp dword [ebp - 0xc], eax
jbe 0x406e75
mov dword [ebp - 8], edx
jmp 0x406e7b
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
push 0
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov eax, dword [eax + 0x428]
cdq
push edx
push eax
push dword [esi + 0x2c]
push dword [esi + 0x28]
call fcn.004189b0
add eax, dword [esi + 0x30]
push eax
mov eax, dword [esi + 8]
push dword [eax + 8]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
mov dword [ebp + 8], eax
jl 0x406f64
mov eax, dword [ebp + 8]
cdq
add dword [esi + 0x28], eax
adc dword [esi + 0x2c], edx
mov ecx, dword [esi + 0x28]
cmp ecx, dword [esi + 0x20]
mov edi, dword [esi + 0x2c]
jne 0x406ee1
cmp edi, dword [esi + 0x24]
jne 0x406ee1
xor eax, eax
cmp dword [esi + 0x18], 0x62
setne al
add eax, 7
mov dword [esi + 0x48], eax
jmp 0x406f53
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x98]
mov eax, dword [eax + 0x428]
cdq
push edx
push eax
push edi
push ecx
call fcn.004189b0
or eax, edx
jne 0x406f53
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x24]
sub edi, eax
mov eax, dword [ebx + 0x98]
sbb ecx, edx
mov eax, dword [eax + 0x428]
cdq
cmp ecx, edx
jl 0x406f33
jg 0x406f2e
cmp edi, eax
jbe 0x406f33
mov dword [ebp - 8], edx
jmp 0x406f38
mov eax, edi
mov dword [ebp - 8], ecx
push eax
mov eax, dword [esi + 0x2c]
push dword [esi + 0x28]
mov ecx, eax
sar ecx, 0x1f
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]
push 1
mov dword [ecx + 0x20], eax
pop eax
jmp 0x406f66
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4