joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426780
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov dword [esp], esi
call sym._strlen
mov ebx, eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x40]
lea ecx, [ebx + 0x30]
shr eax, 4
mov dword [ebp - 0x20], ecx
shl eax, 4
call fcn.00413bd0
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], ebx
lea edi, [esp + 0xc]
mov dword [esp + 4], esi
mov dword [esp], eax
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [ebx + 0x10]
add eax, edi
mov dword [eax], 0x61616161
mov dword [eax + 4], 0x61616161
mov dword [eax + 8], 0x61616161
mov dword [eax + 0xc], 0x61616161
mov dword [eax + 0x10], 0x61616161
mov dword [eax + 0x14], 0x61616161
mov dword [eax + 0x18], 0x61616161
mov dword [eax + 0x1c], 0x61616161
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [edi + ebx + 0xf], 0x2d
sub esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x426874
int3
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
je 0x4268c0
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call sym._get_ptr_from_atom_1
mov ebx, eax
mov edi, dword [ebp - 0x24]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
add ebx, edi
mov dword [esp], eax
call sym._malloc
mov edx, 0x20
mov esi, eax
lea esi, [esi]
bt esi, edx
jae 0x4268e6
mov eax, edx
neg eax
mov byte [ebx + eax + 0x30], 0x41
sub edx, 1
jne 0x4268d8
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
jne 0x4268fd
int3
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call sym._get_ptr_from_atom_1
mov ebx, eax
cmp esi, eax
je 0x426923
mov dword [esp], esi
call sym._free
jmp 0x42689a
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42689a
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x42689a
Function at 0x401110
Capabilities:
Query or enumerate registry value

Disassembly:
cmp dword [ecx], 0
jne 0x40111a
xor eax, eax
ret 0x10
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret 0x10

Function at 0x401390
Capabilities:
Create process on windows
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
push 1
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x401404
cmp eax, 2
jb 0x401404
cmp eax, 3
ja 0x401404
lea eax, [esp + 4]
push eax
push str.SoftwareAdobeAcrobat_DistillerSpooledJobs
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401404
mov edx, dword [esp + 4]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push eax
push esi
push edx
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push 0
push 0x1388
push 0x9002
push eax
call dword [sym.imp.USER32.dll_SetTimer]
pop esi
pop ecx
ret

Function at 0x401410
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
push esi
push eax
push str.AcroDist_shellopencommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401438
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x104
push ecx
push ebx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401472
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
cmp byte [ebx], 0x22
jne 0x4014b0
push edi
lea edi, [ebx + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x22
mov edx, ecx
mov esi, edi
mov edi, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00402980
add esp, 8
test eax, eax
pop edi
jne 0x4014c2
pop esi
pop ebx
add esp, 8
ret 4
push str.___1_
push ebx
call fcn.00402900
add esp, 8
test eax, eax
je 0x4014c5
mov byte [eax], 0
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 4

Function at 0x4016e0
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, ecx
push esi
push 0
mov ecx, 0x40a890
call fcn.00401d60
mov ecx, 0x40a890
call fcn.00401d10
mov esi, dword [ebx + 8]
test esi, esi
je 0x40174c
cmp byte [esi], 0
je 0x401732
push ebp
mov ebp, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 1
push 0
push esi
push str.notepad.exe
push 0
push 0
call ebp
push esi
call edi
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x401714
pop edi
pop ebp
mov eax, dword [ebx + 8]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
pop esi
pop ebx
ret
Function at 0x4017c0
Capabilities:
Create process on windows
Create thread

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
cmp eax, 0x53686f77
ja 0x401844
je 0x401837
cmp eax, 0x44697374
je 0x401832
cmp eax, 0x45727221
je 0x401802
cmp eax, 0x48696465
jne 0x401875
mov eax, dword [0x40a918]
test eax, eax
jne 0x401875
mov ecx, 0x40a890
call fcn.00401d10
xor eax, eax
ret
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
push eax
push ecx
mov ecx, 0x40a878
call fcn.00401750
push 0x40a888
mov ecx, 0x40a890
call fcn.00401c40
push 1
mov ecx, 0x40a890
call fcn.00401d60
xor eax, eax
ret
jmp fcn.004015a0
mov ecx, 0x40a890
call fcn.00401ce0
xor eax, eax
ret
cmp eax, 0x546f6f6c
je 0x401867
cmp eax, 0x56696577
jne 0x401875
mov edx, dword [ecx + 8]
mov eax, dword [0x40a890]
push edx
push eax
call fcn.00401390
add esp, 8
xor eax, eax
ret
mov ecx, dword [ecx + 8]
push ecx
mov ecx, 0x40a890
call fcn.00401c40
xor eax, eax
ret
Function at 0x404ddb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a5b0
cmp edx, dword [eax]
je 0x404dfd
add eax, 8
inc ecx
cmp eax, 0x40a640
jl 0x404dee
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a5b0]
jne 0x404f2b
mov eax, dword [0x40a928]
cmp eax, 1
je 0x404f05
test eax, eax
jne 0x404e2e
cmp dword [0x40a1c4], 1
je 0x404f05
cmp edx, 0xfc
je 0x404f2b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e65
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406af0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406be0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404ea8
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406be0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4085b0
push edi
call fcn.00406cf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406af0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406b00
lea eax, [ebp - 0xa0]
push 0x408590
push eax
call fcn.00406b00
push dword [esi + 0x40a5b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406b00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406c5b
add esp, 0x2c
pop edi
jmp 0x404f2b
lea eax, [ebp + 8]
lea esi, [esi + 0x40a5b4]
push 0
push eax
push dword [esi]
call fcn.00406be0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x48d3ab
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x48d3e3
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x48d3d1
mov al, 1
jmp 0x48d434
cmp dword [ebx + 0x54], ecx
jne 0x48d3da
mov al, 2
jmp 0x48d434
cmp dword [ebx + 0x7c], ecx
jne 0x48d434
mov al, 3
jmp 0x48d434
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x48d3f8
mov al, 4
jmp 0x48d434
cmp ecx, 5
jne 0x48d418
cmp ebx, 0
jne 0x48d406
mov al, 5
jmp 0x48d434
cmp ebx, 1
jne 0x48d40f
mov al, 6
jmp 0x48d434
cmp ebx, 2
jne 0x48d418
mov al, 7
jmp 0x48d434
cmp ecx, 6
jne 0x48d424
cmp ebx, 0
jne 0x48d426
mov al, 8
jmp 0x48d434
cmp ebx, 1
jne 0x48d42d
mov al, 9
cmp ebx, 2
jne 0x48d434
mov al, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e5db0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x57a92b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0056efc3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4e5e32
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0056cd8c
mov eax, dword [eax]
push 0xe27d70
push eax
call fcn.0055b544
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0056f24e
test bl, bl
je 0x4e5e32
push 0xe27d70
lea ecx, [esp + 0xc]
call fcn.0056f5de
push 0xe27d7c
lea ecx, [esp + 0xc]
call fcn.0056f5de
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4e5e6e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0056f24e
jmp 0x4e5f39
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4e5ef2
lea edx, [esp + 0x7c]
push 0xe27d78
push edx
call fcn.0055b544
add esp, 8
test eax, eax
je 0x4e5ef2
lea eax, [esp + 0x7c]
push 0xe27d74
push eax
call fcn.0055b544
add esp, 8
test eax, eax
je 0x4e5ef2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4e5e82
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0056f24e
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4e6740
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4e67a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4e67b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x57a9ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xe3cee8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4e68e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4e6816
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0056f24e
xor eax, eax
jmp 0x4e695f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0056f38b
push esi
lea ecx, [esp + 0xc]
call fcn.0056f61a
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4e693d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004e6740
test eax, eax
jne 0x4e693d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004e6740
test eax, eax
jne 0x4e693d
lea eax, [esp + 0x14]
push 0xe27d8c
push eax
call fcn.0055c6a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e691c
lea ecx, [esp + 0x14]
push 0xe27d88
push ecx
call fcn.0055c620
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e691c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4e691f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0056f33b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4e682e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0056f24e
xor eax, eax
jmp 0x4e695f
mov byte [esi], 0
push 0xe27d84
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0056f24e
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4

Function at 0x4ecd16
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x4ecd3e
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3a0], eax
pop esi
add esp, 0x190
ret
Function at 0x4f5ab0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x4f5b1e
cmp si, 0x69
ja 0x4f5b1e
add esi, 0xffd0
cmp si, 0x11
je 0x4f5aee
push 0x11
call edi
test ax, ax
jge 0x4f5aee
or esi, 0x2000
cmp si, 0x10
je 0x4f5b03
push 0x10
call edi
test ax, ax
jge 0x4f5b03
or esi, 0x4000
cmp si, 0x12
je 0x4f5b18
push 0x12
call edi
test ax, ax
jge 0x4f5b18
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4f5b2b
mov esi, 0xbd
jmp 0x4f5adf
cmp si, 0x6e
jne 0x4f5b38
mov esi, 0xbe
jmp 0x4f5adf
cmp si, 0x6f
jne 0x4f5ad9
mov esi, 0xbf
jmp 0x4f5adf

Function at 0x4f7340
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xe4dc30]
xor edx, edx
cmp eax, edx
jne 0x4f7366
xor eax, eax
mov byte [eax + 0xe4db30], al
inc eax
cmp eax, 0x100
jl 0x4f734e
mov dword [0xe4dc30], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xe4db30
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4f73f7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4f73ca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4f7398
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4f7470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4f74c3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4f74aa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fe530
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x4fe6c8
cmp ebp, ebx
jle 0x4fe6c8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x4fe58e
dec eax
or eax, 0xfffffff8
inc eax
je 0x4fe595
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x4fe5a4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4fe5ab
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0056ef8f
add esp, 4
cmp eax, ebx
je 0x4fe5cc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0056ef8f
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x4fe6be
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x4fe6a5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x4fe691
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4fe686
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x4fe694
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x4fe694
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4fe630
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x4fe621
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x500ef8
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1b8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
jne 0x500f42
lea eax, [esp + 0x38]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
cmp eax, 1
mov dword [esi + 4], eax
jne 0x500f30
push str.icmp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 8], eax
jmp 0x500f37
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x500fda
mov eax, dword [esi + 8]
test eax, eax
je 0x500fda
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IcmpCreateFile
push eax
call edi
mov ecx, dword [esi + 8]
push str.IcmpSendEcho
push ecx
mov ebx, eax
call edi
mov edx, dword [esi + 8]
push str.IcmpCloseHandle
push edx
mov ebp, eax
call edi
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x500fda
test ebp, ebp
je 0x500fda
test eax, eax
je 0x500fda
mov esi, dword [esp + 0x1cc]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edi, eax
cmp edi, 0xffffffff
jne 0x500fac
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x500fda
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edi, dword [ecx]
call ebx
mov edx, dword [esp + 0x1d0]
mov esi, eax
push edx
lea eax, [esp + 0x18]
push 0x24
push eax
push 0
push 0
push 0
push edi
push esi
mov dword [esp + 0x3c], 0xffffffff
call ebp
test eax, eax
push esi
jne 0x500fea
call dword [esp + 0x14]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1b8
ret 8
call dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret 8

Function at 0x501b10
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57be78
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, ecx
test edi, edi
jne 0x501b49
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
push 0x400
lea ecx, [esp + 0xc]
call fcn.00576c81
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.00576ccd
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.00501bd0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.00576d0a
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24