joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407190
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4000
call fcn.0040ad10
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x407216
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x4000]
push eax
push 0x2000
push ecx
call fcn.00405110
add esp, 0xc
test eax, eax
jne 0x40720d
lea edx, [ebp - 0x4000]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_wcschr]
mov edi, eax
add esp, 8
lea ecx, [ebp - 0x4000]
mov word [edi], 0x2a
mov word [edi + 2], 0
mov eax, dword [esi + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi + 4], eax
mov word [edi], 0
cmp dword [esi + 4], 0xffffffff
je 0x407271
mov dword [esi + 0x18], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test ecx, ecx
je 0x407266
mov dword [esi + 0x18], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x407296
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
mov eax, dword [esi + 0x14]
add eax, 0x2c
push eax
call edi
mov edx, dword [esi + 8]
add esp, 4
add eax, edx
cmp eax, 0x2000
jb 0x407296
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 4]
push ecx
push edx
call ebx
test eax, eax
je 0x407271
mov eax, dword [esi + 8]
test eax, eax
jne 0x407237
jmp 0x407296
mov edx, dword [esi + 0x14]
push edx
push eax
call ebx
test eax, eax
jne 0x40722a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x407286
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call esi
pop edi
pop esi
add eax, 0xafc80
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
add eax, 0x2c
push eax
push 0x30d
push ecx
call fcn.00405200
add esp, 0xc
test eax, eax
jne 0x40720d
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [esi + 0x10]
push edx
push eax
mov eax, dword [esi + 0x14]
push eax
push edi
call fcn.00404840
mov eax, dword [edi + 4]
mov ecx, dword [esi]
or eax, 0x2000000
mov dword [edi], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi + 4], eax
not eax
add esp, 0x10
and ecx, eax
mov dword [edi + 0x54], ebx
mov dword [ebp + 0xc], ecx
je 0x40720b
lea edx, [ebp - 0x4000]
push 0
push edx
call dword [sym.imp.MSVCRT.dll_wcschr]
mov ebx, eax
mov eax, dword [esi + 0x14]
add eax, 0x2c
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov ecx, dword [ebp + 0xc]
push 2
lea edx, [ebp - 0x4000]
push ecx
push edx
push edi
call fcn.00404250
add esp, 0x20
mov word [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407340
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4000
call fcn.0040ad10
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x4000]
push eax
push 0x2000
push ecx
call fcn.00405110
add esp, 0xc
test eax, eax
jne 0x40739e
lea edx, [ebp - 0x4000]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40739c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x40738e
pop esi
mov esp, ebp
pop ebp
ret 8
call esi
add eax, 0xafc80
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x407560
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x40de14]
push esi
test eax, eax
jne 0x4076bc
push 0x40dd20
mov dword [0x40dd20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x40dd30], 2
jne 0x4076b2
mov al, byte [0x40dd34]
push edi
test al, al
mov esi, 0x40dd34
je 0x4075dd
mov edi, dword [sym.imp.MSVCRT.dll__isctype]
mov eax, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [eax], 1
jle 0x4075c0
xor ecx, ecx
push 4
mov cl, byte [esi]
push ecx
call edi
add esp, 8
jmp 0x4075d1
mov eax, dword [sym.imp.MSVCRT.dll__pctype]
xor edx, edx
mov dl, byte [esi]
mov ecx, dword [eax]
mov al, byte [ecx + edx*2]
and eax, 4
test eax, eax
jne 0x40760c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4075a8
mov ecx, dword [0x40de18]
mov eax, dword [0x40dd24]
pop edi
cmp eax, 3
jb 0x4076b2
je 0x4076b2
cmp eax, 4
jne 0x407659
cmp ecx, 2
jae 0x407625
mov eax, 0x28
jmp 0x4076b7
cmp byte [esi], 0
je 0x4075dd
push esi
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, eax
add esp, 4
mov dword [0x40de18], ecx
jmp 0x4075e3
ja 0x407631
mov eax, 0x2a
jmp 0x4076b7
cmp ecx, 3
ja 0x40763d
mov eax, 0x2b
jmp 0x4076b7
cmp ecx, 4
ja 0x407649
mov eax, 0x2c
jmp 0x4076b7
mov edx, 5
cmp edx, ecx
sbb eax, eax
neg eax
add eax, 0x2d
jmp 0x4076b7
cmp eax, 5
jne 0x4076a4
mov eax, dword [0x40dd28]
test eax, eax
jne 0x40767f
test ecx, ecx
jne 0x407672
mov eax, 0x32
jmp 0x4076b7
xor eax, eax
cmp ecx, 1
setne al
add eax, 0x33
jmp 0x4076b7
cmp eax, 2
jne 0x40768b
mov eax, 0x46
jmp 0x4076b7
cmp ecx, 1
jae 0x407697
mov eax, 0x3c
jmp 0x4076b7
xor eax, eax
cmp ecx, 1
setne al
add eax, 0x3d
jmp 0x4076b7
sub eax, 6
neg eax
sbb eax, eax
and al, 0xec
add eax, 0x50
jmp 0x4076b7
mov eax, 1
mov dword [0x40de14], eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov esi, dword [0x40de14]
xor eax, eax
cmp esi, 1
setge al
dec eax
pop esi
and eax, 0x4e2e
pop ebp
ret

Function at 0x408ec0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x408f00
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x408efa
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x408eee
pop esi
pop ebp
ret 8
call esi
add eax, 0xafc80
pop esi
pop ebp
ret 8
xor eax, eax
pop ebp
ret 8
mov eax, 0x4e3b
pop ebp
ret 8
Function at 0x40abaa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b5b0
push 0x40ae08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40e21c], 0xffffffff
or dword [0x40e220], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40e214]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40e210]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40e218], eax
call fcn.0040ae07
cmp dword [0x40d750], 0
jne 0x40ac2d
push 0x40ae04
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040adf2
push 0x40c00c
push 0x40c008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40e20c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40e208]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40c004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401000
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x4039cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00403061
test eax, eax
pop ecx
je 0x403a23
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x403756
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402ca7
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.004031c0
add esp, 0x18
call fcn.00402217
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4021b2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
sub ebp, 0x82
mov esi, eax
mov cl, byte [0x404050]
mov edx, eax
mov ebx, eax
shl edx, cl
mov eax, 0x404054
add edx, dword [0x404050]
call fcn.004020f3
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x4039aa
push eax
sub edi, fcn.00403144
push edi
push fcn.00403144
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x402229
mov eax, fcn.00403144
mov ebx, esi
mov edx, edi
call fcn.004020f3
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.00402d42
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 0
call fcn.0040151f
lea eax, [esi + 0x1c000]
lea edi, [esi + 1]
imul edi, eax
mov ebx, 0x404054
or bl, 1
xor edx, edx
mov eax, esi
div ebx
lea ebx, [ebp - 2]
add eax, 0x404054
mov edx, edi
call fcn.00403144
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x407118
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004072c8
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x407216
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4071b9
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4071fc
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4071d0
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4071eb
test al, 0x40
je 0x4071e2
mov ecx, dword [edi + 0x20]
jmp 0x4071e9
test al, 0x80
je 0x4071fc
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4071fc
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x407188
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4a8fe0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x57be0b
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.0057017f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4a9062
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0056de72
mov eax, dword [eax]
push 0x703dc0
push eax
call fcn.0055b9c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0057040a
test bl, bl
je 0x4a9062
push 0x703dc0
lea ecx, [esp + 0xc]
call fcn.0057079a
push 0x703dcc
lea ecx, [esp + 0xc]
call fcn.0057079a
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 0x4a909e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0057040a
jmp 0x4a9169
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 0x4a9122
lea edx, [esp + 0x7c]
push 0x703dc8
push edx
call fcn.0055b9c4
add esp, 8
test eax, eax
je 0x4a9122
lea eax, [esp + 0x7c]
push 0x703dc4
push eax
call fcn.0055b9c4
add esp, 8
test eax, eax
je 0x4a9122
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 0x4a90b2
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.0057040a
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 0x4a9980
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 0x4a99e2
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 0x4a99f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x57be8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x765ea8]
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 0x4a9b28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4a9a56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0057040a
xor eax, eax
jmp 0x4a9b9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00570547
push esi
lea ecx, [esp + 0xc]
call fcn.005707d6
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x703e00
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4a9b7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.004a9980
test eax, eax
jne 0x4a9b7d
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 accept
mov ecx, edi
call fcn.004a9980
test eax, eax
jne 0x4a9b7d
lea eax, [esp + 0x14]
push 0x703ddc
push eax
call fcn.0055cb10
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a9b5c
lea ecx, [esp + 0x14]
push 0x703dd8
push ecx
call fcn.0055ca90
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a9b5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4a9b5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.005704f7
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4a9a6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0057040a
xor eax, eax
jmp 0x4a9b9f
mov byte [esi], 0
push 0x703dd4
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.0057040a
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 0x4bfe20
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 0x4bfe8e
cmp si, 0x69
ja 0x4bfe8e
add esi, 0xffd0
cmp si, 0x11
je 0x4bfe5e
push 0x11
call edi
test ax, ax
jge 0x4bfe5e
or esi, 0x2000
cmp si, 0x10
je 0x4bfe73
push 0x10
call edi
test ax, ax
jge 0x4bfe73
or esi, 0x4000
cmp si, 0x12
je 0x4bfe88
push 0x12
call edi
test ax, ax
jge 0x4bfe88
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4bfe9b
mov esi, 0xbd
jmp 0x4bfe4f
cmp si, 0x6e
jne 0x4bfea8
mov esi, 0xbe
jmp 0x4bfe4f
cmp si, 0x6f
jne 0x4bfe49
mov esi, 0xbf
jmp 0x4bfe4f

Function at 0x4c17b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x776c60]
xor edx, edx
cmp eax, edx
jne 0x4c17d6
xor eax, eax
mov byte [eax + 0x776b60], al
inc eax
cmp eax, 0x100
jl 0x4c17be
mov dword [0x776c60], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x776b60
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4c1867
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 0x4c183a
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 0x4c1808
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4c18e0
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 0x4c1933
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 0x4c191a
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 0x4c9050
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 0x4c91e8
cmp ebp, ebx
jle 0x4c91e8
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 0x4c90ae
dec eax
or eax, 0xfffffff8
inc eax
je 0x4c90b5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x4c90c4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4c90cb
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0057014b
add esp, 4
cmp eax, ebx
je 0x4c90ec
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.0057014b
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 0x4c91de
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 0x4c91c5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x4c91b1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4c91a6
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 0x4c91b4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x4c91b4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4c9150
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 0x4c9141
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 0x4cc740
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57dd48
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 0x4cc779
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.00577af8
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.00577b44
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.004cc800
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.00577b81
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24