joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ed41
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x650
mov eax, 0x41aa2f
call fcn.0041a007
mov eax, dword [ebp + 8]
mov dword [ebp - 0x654], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x650], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp eax, esi
jne 0x40ed72
xor eax, eax
jmp 0x40ef0c
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.0040ef12
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x640]
push ecx
push 0x20019
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov eax, dword [ebp - 0x658]
add eax, 0xfffffff0
call fcn.004016a7
cmp edi, esi
jne 0x40ed6b
push 0x410
lea eax, [ebp - 0x636]
push esi
push eax
mov word [ebp - 0x638], si
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x64c]
push eax
push esi
push str.InstallDir
push dword [ebp - 0x640]
mov ebx, 0x208
mov dword [ebp - 0x64c], 1
mov dword [ebp - 0x648], ebx
call edi
cmp eax, esi
je 0x40ee1f
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ed6b
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x638]
call fcn.0040453a
lea eax, [ebp - 0x644]
push eax
mov ecx, 0x421144
mov dword [ebp - 4], esi
call fcn.0040453a
mov ecx, dword [ebp - 0x654]
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x63c]
push eax
mov byte [ebp - 4], 1
call fcn.00411b3f
push ebx
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call sub.MSVCR80.dll_memset
add esp, 0x14
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x64c]
push eax
push esi
push str.ExcDir
push dword [ebp - 0x640]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x64c], ebx
mov dword [ebp - 0x648], 0x104
call edi
test eax, eax
jne 0x40eee2
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.0040146d
mov ecx, dword [ebp - 0x650]
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.00411b3f
pop ecx
pop ecx
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x644]
add eax, 0xfffffff0
call fcn.004016a7
mov eax, dword [ebp - 0x63c]
add eax, 0xfffffff0
call fcn.004016a7
mov eax, ebx
call fcn.0041a08a
ret
Function at 0x40ef58
Capabilities:
Enumerate processes

Disassembly:
push 0x264
mov eax, 0x41a9f1
call fcn.0041a007
mov eax, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x244], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40f07a
lea eax, [ebp - 0x23c]
push eax
push ebx
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40f073
and dword [ebp - 0x248], 0
mov edi, str.barclientview.exe
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x26c], str.processsafe.exe
mov dword [ebp - 0x268], str.hardwareinfo.exe
mov dword [ebp - 0x264], str.pubwinclient.exe
mov dword [ebp - 0x260], str.clmsn.exe
mov dword [ebp - 0x25c], str.sicent.exe
mov dword [ebp - 0x258], str.rzxclient.exe
mov dword [ebp - 0x254], str.hintxun02.exe
mov dword [ebp - 0x250], str.pubxun.exe
mov dword [ebp - 0x24c], str.yqsclient.exe
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x218]
call fcn.0040453a
xor esi, esi
lea eax, [ebp - 0x240]
mov dword [ebp - 4], esi
call fcn.00404638
mov eax, edi
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00404ab2
test eax, eax
je 0x40f082
mov eax, dword [ebp + esi*4 - 0x26c]
inc esi
test eax, eax
jne 0x40f033
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
call fcn.004016a7
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40f00f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.0041a08a
ret
mov eax, dword [ebp - 0x244]
mov dword [eax], esi
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
call fcn.004016a7
xor eax, eax
inc eax
jmp 0x40f07c

Function at 0x40f09d
Capabilities:
Get disk information

Disassembly:
push 8
mov eax, 0x41aefb
call fcn.00419f9e
mov eax, dword [0x428220]
mov ecx, 0x428220
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor edi, edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x40f0dd
push 0x1e
pop edi
push 0x422b7c
push dword [ebp + 8]
call fcn.004045ef
or dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x14]
push eax
call fcn.0040ef58
test eax, eax
pop ecx
je 0x40f115
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push str.B_d_
push eax
add edi, 0x1e
call fcn.0040556c
mov eax, dword [ebp - 0x10]
add esp, 0xc
push dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
call fcn.004053e8
push edi
lea eax, [ebp - 0x10]
push 0x422b90
push eax
call fcn.0040556c
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.004053e8
lea eax, [esi - 0x10]
call fcn.004016a7
xor eax, eax
cmp eax, edi
sbb eax, eax
neg eax
call fcn.0041a076
ret
Function at 0x40f2ae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f311
cmp dword [ebp + 0xc], 1
je 0x40f2ea
cmp dword [ebp + 0xc], 2
je 0x40f2ea
push 0xd
pop eax
jmp 0x40f311
test edi, edi
mov eax, dword [ebp - 4]
je 0x40f30b
test eax, eax
je 0x40f307
test al, 1
jne 0x40f2e5
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40f30b
jmp 0x40f2e5
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x410f6e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x410fc9
push 0x40
call fcn.0041956e
pop ecx
push 0
push 0x40
push 0x40
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 8]
mov byte [eax], 0xb9
mov eax, dword [esi + 8]
mov byte [eax + 5], 0xe9
mov eax, dword [esi + 8]
mov dword [eax + 1], esi
mov eax, dword [esi + 8]
mov ecx, 0x410fcf
sub ecx, eax
sub ecx, 0xa
mov dword [eax + 6], ecx
push dword [esi + 8]
push 0xfffffffffffffffc
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [esi + 4], eax
mov eax, esi
pop ebp
ret 4
Function at 0x411287
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x4112aa
mov eax, 0x80004005
jmp 0x4113dd
push esi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, dword [ebx + 4]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x4112e6
mov esi, dword [eax]
push edi
push 0x2710
push 0x64
push dword [ebp - 4]
add esi, 0xc
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [esi]
push dword [ebp - 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebx + 4], edi
mov dword [ebp - 0xc], eax
je 0x411375
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 8], eax
jne 0x411375
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0xc], eax
jne 0x411375
mov eax, dword [ebx + 4]
cmp eax, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
je 0x41133e
push esi
lea esi, [ebp - 0x1c]
call fcn.00410f6e
mov esi, dword [ebp + 0x10]
push edi
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x100
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
cmp dword [ebp - 0x18], edi
mov esi, eax
je 0x41136a
push dword [ebp - 0x18]
push 0xfffffffffffffffc
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [ebp - 0x14]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x41138e
push edi
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x100
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DestroyMenu]
lea eax, [esi - 0x64]
cmp eax, 0x26ac
ja 0x4113d1
mov ebx, dword [ebx + 4]
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x40], 0x24
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
add esi, 0xffffff9c
movzx eax, si
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 1
mov eax, dword [ebx]
push ebx
call dword [eax + 0x10]
jmp 0x4113dc
push dword [ebp + 0x10]
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 8]
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x4129b6
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x428024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x24]
lea eax, [ebp - 0x66c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x670], eax
je 0x412aa6
xor esi, esi
cmp dword [ebp - 0x650], esi
jne 0x412a09
cmp dword [ebp - 0x64c], 0x500000
jbe 0x412a9a
mov ecx, edi
lea eax, [ebp - 0x41c]
mov word [ebp - 0x41c], si
call fcn.00411d0d
mov ecx, edi
lea eax, [ebp - 0x214]
mov word [ebp - 0x214], si
call fcn.00411d0d
mov ecx, 0x422bcc
lea eax, [ebp - 0x41c]
call fcn.00411d0d
mov ecx, 0x422bd4
lea eax, [ebp - 0x214]
call fcn.00411d0d
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x214]
push eax
call ebx
test eax, eax
jne 0x412a77
cmp esi, 2
jge 0x412a71
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jl 0x412a57
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call esi
lea eax, [ebp - 0x41c]
push eax
push edi
call esi
push edi
call ebx
push dword [ebp - 0x670]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419580
leave
ret 4
Function at 0x412dd2
Capabilities:
Accept command line arguments

Disassembly:
push 0x18
mov eax, 0x41aea9
call fcn.00419f9e
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ecx, ecx
lea eax, [edi + 0x240]
mov dword [ebp - 4], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
lea esi, [edi + 0x238]
mov byte [edi + 0x23d], 1
mov dword [edi + 0x22c], ecx
mov dword [edi + 0x230], ecx
mov byte [edi + 0x23c], 1
mov dword [edi + 0x234], 2
mov dword [esi], 0x3e8
mov byte [edi + 0x23e], 1
mov byte [edi + 0x23f], cl
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.0040453a
lea eax, [ebp - 0x24]
push eax
lea ebx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004121f8
mov eax, dword [ebp - 0x14]
pop ecx
add eax, 0xfffffff0
call fcn.004016a7
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x20], 0
mov dword [ebp + 8], ecx
je 0x412f48
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp eax, ecx
mov dword [ebp - 0x14], eax
jbe 0x412f48
cmp dword [ebp - 0x20], 0
je 0x412eab
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp dword [ebp + 8], eax
jb 0x412eb1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je 0x412f39
cmp word [ebx], 0x2f
jne 0x412ee4
movzx eax, word [ebx + 2]
push eax
call dword [sym.imp.MSVCR80.dll_iswdigit]
test eax, eax
pop ecx
je 0x412ee4
cmp word [ebx + 4], 0
jne 0x412ee4
movzx eax, word [ebx + 2]
sub eax, 0x30
jmp 0x412f04
push 0xa
push str._loglevel:
push ebx
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x412f0c
add ebx, 0x14
push ebx
call dword [sym.imp.MSVCR80.dll__wtoi]
pop ecx
mov dword [edi + 0x234], eax
jmp 0x412f39
push 8
push str._logbuf:
push ebx
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x412f39
mov eax, esi
mov ecx, ebx
call fcn.004123ce
add dword [esi], 8
cmp dword [esi], 1
ja 0x412f39
mov byte [edi + 0x23d], 0
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jb 0x412e97
push edi
call fcn.00412d36
test eax, eax
jne 0x412f58
mov byte [edi + 0x23c], al
mov ebx, edi
call fcn.00412ab7
lea esi, [ebp - 0x24]
call fcn.00404949
mov eax, edi
call fcn.0041a076
ret 4
Function at 0x412f71
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1901c
call fcn.0041a0f0
mov eax, dword [0x428024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x23f], 0
mov dword [ebp - 0x19018], edi
jne 0x41311b
or dword [ebp - 0x1900c], 0xffffffff
lea esi, [edi + 0x24]
push esi
lea eax, [ebp - 0x1900c]
push eax
call fcn.0041295c
test eax, eax
jne 0x413024
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x412fe2
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
lea eax, [ebp - 0x1900c]
push eax
call fcn.0041295c
test eax, eax
jne 0x413024
xor ebx, ebx
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [ebp - 0x1900c]
push eax
call fcn.0041295c
test eax, eax
jne 0x413003
inc ebx
cmp ebx, 3
jb 0x412fe4
cmp ebx, 3
jne 0x413024
cmp dword [ebp - 0x1900c], 0xffffffff
je 0x41301d
push dword [ebp - 0x1900c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41315a
cmp dword [ebp - 0x1900c], 0xffffffff
je 0x41303f
push 2
push 0
push 0
push dword [ebp - 0x1900c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x18fff
xor ebx, ebx
lea eax, [ebp - 0x19007]
push ebx
push eax
mov byte [ebp - 0x19008], 0
call sub.MSVCR80.dll_memset
and dword [ebp - 0x19010], ebx
lea eax, [edi + 0x240]
add esp, 0xc
mov dword [ebp - 0x19014], eax
call fcn.00411439
test eax, eax
jbe 0x4130f3
mov esi, dword [ebp - 0x19010]
mov edi, dword [ebp - 0x19014]
call fcn.00413991
mov esi, dword [eax]
mov eax, dword [esi]
add eax, ebx
mov edi, 0x19000
cmp eax, edi
jbe 0x4130ad
push ebx
lea eax, [ebp - 0x19008]
push eax
lea eax, [ebp - 0x1900c]
call fcn.0041298d
xor ebx, ebx
mov eax, dword [esi]
cmp eax, edi
push eax
push esi
jbe 0x4130c2
lea eax, [ebp - 0x1900c]
call fcn.0041298d
jmp 0x4130d4
lea eax, [ebp + ebx - 0x19008]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add ebx, dword [esi]
mov eax, dword [ebp - 0x19014]
inc dword [ebp - 0x19010]
call fcn.00411439
cmp dword [ebp - 0x19010], eax
jb 0x413078
mov edi, dword [ebp - 0x19018]
push ebx
lea eax, [ebp - 0x19008]
push eax
lea eax, [ebp - 0x1900c]
call fcn.0041298d
cmp dword [ebp - 0x1900c], 0xffffffff
je 0x41311b
push dword [ebp - 0x1900c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 0x240
mov eax, edi
xor esi, esi
call fcn.00411439
test eax, eax
jbe 0x413150
call fcn.00413991
push dword [eax]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
call fcn.00413991
and dword [eax], 0
mov eax, edi
inc esi
call fcn.00411439
cmp esi, eax
jb 0x41312e
mov esi, edi
call fcn.004139a9
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419580
leave
ret
Function at 0x413e9f
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, eax
push 3
mov esi, ecx
xor edx, edx
lea eax, [edi + 2]
pop ecx
div ecx
cmp eax, 0x40000000
jae 0x413fa0
mov ecx, dword [ebp + 0xc]
shl eax, 2
cmp dword [ecx], eax
jb 0x413fa0
cmp edi, 2
mov ecx, dword [ebp + 8]
jbe 0x413f3a
push ebx
push 3
xor edx, edx
lea eax, [edi - 3]
pop ebx
div ebx
inc eax
movzx edx, byte [esi]
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
movzx edx, byte [esi]
movzx ebx, byte [esi + 1]
and edx, 3
shl edx, 4
shr ebx, 4
mov dl, byte [edx + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [esi + 1]
movzx ebx, byte [esi + 2]
and edx, 0xf
shr ebx, 6
mov dl, byte [ebx + edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [esi + 2]
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
inc ecx
add esi, 3
sub edi, 3
dec eax
jne 0x413edf
pop ebx
test edi, edi
je 0x413f8f
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
and eax, 3
inc ecx
shl eax, 4
cmp edi, 1
jbe 0x413f7e
movzx edx, byte [esi + 1]
shr edx, 4
mov al, byte [eax + edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi + 1]
inc ecx
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
jmp 0x413f8a
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [ebp + 0xc]
mov eax, ecx
sub eax, dword [ebp + 8]
mov byte [ecx], 0
mov dword [edx], eax
xor eax, eax
jmp 0x413fa3
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret
Function at 0x414090
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x4140c2
lea esp, [esp]
test cl, 3
je 0x4140c2
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41d870]
add ecx, 1
sub esi, 1
jne 0x4140a0
cmp esi, 0x20
push ebx
push edi
jb 0x4142ac
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x41dc70]
xor edx, dword [ebx*4 + 0x41e070]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x41d870]
add ecx, 4
xor edx, dword [eax*4 + 0x41e470]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x41dc70]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x41e070]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x41d870]
add ecx, 4
xor eax, dword [edx*4 + 0x41e470]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x41dc70]
xor edx, dword [ebx*4 + 0x41e070]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x41d870]
xor edx, dword [eax*4 + 0x41e470]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x41dc70]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x41e070]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x41d870]
xor eax, dword [edx*4 + 0x41e470]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x41dc70]
xor edx, dword [ebx*4 + 0x41e070]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x41d870]
xor edx, dword [eax*4 + 0x41e470]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x41dc70]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x41e070]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x41d870]
and edx, 0xff
xor eax, dword [edx*4 + 0x41e470]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x41dc70]
xor edx, dword [ebx*4 + 0x41e070]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x41d870]
add ecx, 4
xor edx, dword [eax*4 + 0x41e470]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x41dc70]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x41e070]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x41d870]
and edx, 0xff
xor eax, dword [edx*4 + 0x41e470]
sub edi, 1
jne 0x4140d2
cmp esi, 4
jb 0x4142f9
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x41dc70]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x41e070]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x41d870]
and eax, 0xff
xor edi, dword [eax*4 + 0x41e470]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x4142b6
test esi, esi
pop edi
pop ebx
je 0x41431d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41d870]
add ecx, 1
sub esi, 1
jne 0x414300
not eax
pop esi
ret
Function at 0x414ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
cmp eax, edx
mov dword [esp + 0xc], edi
jb 0x414f80
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call sub.MSVCR80.dll_memcpy
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x414f4f
sub eax, ebp
jmp 0x414f51
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x414f40
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x414f70
sub eax, ebp
jmp 0x414f72
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x414f61
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x4150b2
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [esp + 0xc]
mov ebx, eax
cmp ebx, ecx
mov dword [esp + 0x10], edx
jbe 0x414fa8
mov ebx, ecx
test ebx, ebx
je 0x414ffc
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x414fca
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00415e30
jmp 0x414fe3
cmp eax, 2
jne 0x414fea
mov ecx, dword [edi]
test ecx, ecx
mov eax, dword [edi + 0x30]
jne 0x414fdc
xor eax, eax
jmp 0x414fe7
mov edx, ebx
call fcn.00414090
mov edx, dword [esp + 0x10]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call sub.MSVCR80.dll_memcpy
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x415026
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x41503a
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x414f00
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x4150b2
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x415081
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x415061
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
add ebx, edi
pop edi
pop ebp
mov dword [esi + 0x16c0], ebx
pop ebx
add esp, 8
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x4150b2
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x41509b
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x417adb
Capabilities:
Hash data with md5

Disassembly:
push 0x5c
push 0
push esi
call sub.MSVCR80.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
ret