joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401112
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
xor esi, esi
push edi
push esi
push eax
mov dword [0x403108], eax
push esi
push esi
mov eax, 0x80000000
push esi
push eax
push esi
push eax
push 0xcf0000
push 0x4030a4
push 0x403040
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
cmp edi, esi
jne 0x40114c
xor eax, eax
jmp 0x40117a
push esi
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push esi
push esi
push str.http:__game.kugou.com_go.htm_t2
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
push 1
pop eax
pop edi
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403bc7
Capabilities:
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.0040ef10
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x45be88], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x403c03
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov eax, dword [0x451738]
mov dword [ebp - 0x24], eax
mov eax, dword [0x45173c]
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00403bc0
mov eax, dword [0x451740]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x451744]
add ebx, 0x23f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x45be88], 0xc
mov dword [ebp - 4], eax
jne 0x403ca7
lea eax, [ebp - 0x838]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1038]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x45be88]
cmp eax, 0xfa9
jne 0x403cc3
mov dword [0x45b424], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403cd0
mov dword [0x45add0], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x45b420], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x45be88], 0x213
mov dword [ebp - 0x14], edx
jne 0x403d0e
push 0x4036cc
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x45be88], 0xc
jne 0x403d3b
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupWrite]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00403bba
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x2c]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x403c3f
cmp dword [0x45be88], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x403d96
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x4040f5
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x45be88], 0x400
push edi
jne 0x404155
push esi
call fcn.00404519
pop ecx
push esi
call fcn.00404702
pop ecx
push esi
push esi
call fcn.00404a22
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403b37
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403b14
fstp st(0)
push esi
call fcn.00404cca
pop ecx
push esi
push esi
call fcn.004045a7
pop ecx
pop ecx
mov eax, dword [0x451dc4]
mov dword [0x45be88], eax
mov eax, dword [0x451d9c]
mov dword [0x45be8c], eax
call fcn.00403e38
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
cmp dword [esp + 0x10], ebx
jle 0x4041c4
cmp dword [esp + 0x18], 0x785074d5
jne 0x4041d2
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x404177
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x403894
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x404203
cmp dword [esp + 0x18], 0x785074d5
jne 0x40420c
inc edi
cmp edi, 0x11915
jl 0x4041d4
mov eax, dword [0x45add8]
mov dword [0x45b41c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405640
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x450118]
jne 0x40564a
repz ret
jmp fcn.0040a1e2
Function at 0x409f05
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040830e
and dword [ebp - 4], 0
cmp dword [0x45268c], 0
mov ebx, eax
jne 0x409fb6
push 0x402450
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a067
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402444
push edi
call esi
test eax, eax
je 0x40a067
push eax
call fcn.0040829c
mov dword [esp], 0x402434
push edi
mov dword [0x45268c], eax
call esi
push eax
call fcn.0040829c
mov dword [esp], 0x402420
push edi
mov dword [0x452690], eax
call esi
push eax
call fcn.0040829c
mov dword [esp], 0x402404
push edi
mov dword [0x452694], eax
call esi
push eax
call fcn.0040829c
pop ecx
mov dword [0x45269c], eax
test eax, eax
je 0x409fb6
push 0x4023ec
push edi
call esi
push eax
call fcn.0040829c
pop ecx
mov dword [0x452698], eax
mov eax, dword [0x452698]
cmp eax, ebx
je 0x40a00e
cmp dword [0x45269c], ebx
je 0x40a00e
push eax
call fcn.00408317
push dword [0x45269c]
mov esi, eax
call fcn.00408317
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a00e
test edi, edi
je 0x40a00e
call esi
test eax, eax
je 0x40a005
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a005
test byte [ebp - 0xc], 1
jne 0x40a00e
or dword [ebp + 0x10], 0x200000
jmp 0x40a047
mov eax, dword [0x452690]
cmp eax, ebx
je 0x40a047
push eax
call fcn.00408317
pop ecx
test eax, eax
je 0x40a047
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a047
mov eax, dword [0x452694]
cmp eax, ebx
je 0x40a047
push eax
call fcn.00408317
pop ecx
test eax, eax
je 0x40a047
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45268c]
call fcn.00408317
pop ecx
test eax, eax
je 0x40a067
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a069
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a40
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x503b48
jmp 0x401a34
mov eax, 0x4c4cdc
call fcn.00494148
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00401b4d
mov eax, dword [0x4ff4f8]
lea ecx, [esi + 0xa0]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ecx], eax
mov eax, dword [0x4ff4f8]
mov dword [esi + 0xa8], eax
push 1
mov dword [esi], 0x4cc9b4
pop eax
mov ebx, 0x503b44
mov dword [esi + 0x1c], eax
push 0xa
mov dword [esi + 0x20], eax
or dword [esi + 0x28], 0xffffffff
or dword [esi + 0x24], 0xffffffff
pop edx
mov dword [esi + 0x30], edi
push ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], 5
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edx
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], 0x3e8
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], 0xc0
mov dword [esi + 0x90], 0x6c
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
call fcn.004b40d8
push ebx
lea ecx, [esi + 0xa8]
mov dword [esi + 0xa4], edi
call fcn.004b40d8
mov ecx, dword [ebp - 0xc]
push 0x64
pop eax
mov dword [esi + 0xb4], edi
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40abcb
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4c5a4c
call fcn.00494148
sub esp, 0x22c
push ebx
push esi
mov dword [ebp - 0x2c], ecx
mov esi, 0x503928
push str.DataFile_Types
mov ecx, esi
call fcn.004c285e
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x40ac01
xor eax, eax
jmp 0x40ad49
mov eax, dword [0x4ff4f8]
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x24], 0x100
mov dword [ebp - 0x20], ebx
call edi
cmp eax, 0x103
je 0x40ad19
lea eax, [ebp - 0x238]
push eax
push str.DataFile_Types
lea eax, [ebp - 0x10]
push 0x4ebfc8
push eax
call fcn.004acbf7
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, esi
push ebx
push str.Name
push dword [ebp - 0x10]
push eax
call fcn.004c2910
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004b4088
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004b3f41
push ebx
push str.Extension
push dword [ebp - 0x10]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004c2910
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004b4088
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004b3f41
push 0xffffffffffffffff
push str.Icon
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004c28a4
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
je 0x40acf2
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 8], ebx
je 0x40acf2
cmp eax, 0xffffffff
je 0x40acf2
push eax
push edx
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0040ae36
lea eax, [ebp - 0x38]
inc dword [ebp - 0x20]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x24], 0x100
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
jmp 0x40ac3d
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004b3f41
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004b3f41
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004b3f41
push 1
pop eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40be8b
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
mov edi, 0x4ceb68
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, 0x2b4
lea eax, [ebp - 0x2bc]
push esi
push ebx
push eax
call fcn.00494170
lea eax, [ebp - 8]
add esp, 0xc
neg eax
sbb eax, eax
lea ecx, [ebp - 4]
and eax, ecx
xor ecx, ecx
cmp dword [ebp + 8], ebx
mov eax, dword [eax]
sete cl
or cx, 0x4008
push ecx
lea ecx, [ebp - 0x2bc]
push esi
push ecx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [ebp - 8]
mov esi, eax
neg ecx
sbb ecx, ecx
lea eax, [ebp - 4]
and ecx, eax
mov dword [ebp - 8], edi
call fcn.0040c1ff
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ca75
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
mov esi, 0x2b4
push edi
push esi
lea eax, [ebp - 0x2b4]
push 0
mov edi, ecx
push eax
call fcn.00494170
mov eax, dword [ebp + 8]
add esp, 0xc
or ax, 0x4008
push eax
lea eax, [ebp - 0x2b4]
push esi
push eax
push 0
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b0]
pop edi
pop esi
leave
ret 4

Function at 0x40e1ae
Capabilities:
Check os version

Disassembly:
mov eax, 0x4c5f2f
call fcn.00494148
sub esp, 0x118
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x1c]
mov esi, ecx
mov dword [ebp - 0x10], esi
push ebx
call fcn.004b380a
mov eax, dword [0x4ff4f8]
mov dword [ebp - 4], ebx
mov dword [esi + 0x64], eax
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
mov dword [esi], 0x4cf138
jne 0x40e234
mov edi, 0x114
lea eax, [ebp - 0x124]
push edi
push ebx
push eax
call fcn.00494170
add esp, 0xc
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x40e22d
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x40e234
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.0049493d
cmp eax, ebx
pop ecx
mov dword [esi + 0x5c], eax
jne 0x40e249
call fcn.004ad2d8
push dword [ebp + 0x20]
mov ecx, esi
push ebx
call fcn.0040e40e
push eax
call fcn.00494170
push 0x200002
call fcn.004b0066
mov dword [esi + 0xe8], eax
mov word [eax], bx
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [esi + 0x60], eax
lea edi, [esi + 0x68]
neg eax
sbb eax, eax
mov ecx, esi
add eax, 0x7005
mov word [edi], bx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x3c], eax
call fcn.0040e40e
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, esi
call fcn.0040e40e
mov ecx, dword [esi + 0xe8]
mov dword [eax + 0x1c], ecx
mov ecx, esi
call fcn.0040e40e
mov ecx, esi
mov dword [eax + 0x20], 0x100000
call fcn.0040e40e
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x3c], ecx
mov ecx, esi
call fcn.0040e40e
mov ecx, esi
mov dword [eax + 0x24], edi
call fcn.0040e40e
mov ecx, esi
mov dword [eax + 0x28], 0x40
call fcn.0040e40e
mov ecx, dword [ebp + 0x14]
add eax, 0x34
or ecx, 0x880020
or dword [eax], ecx
test byte [ebp + 0x14], 0x40
je 0x40e306
mov ecx, esi
call fcn.0040e40e
add eax, 0x34
and byte [eax + 2], 0x7f
call fcn.004c2fcb
mov edi, dword [eax + 0xc]
mov ecx, esi
call fcn.0040e40e
mov ecx, esi
mov dword [eax + 8], edi
call fcn.0040e40e
cmp dword [ebp + 0x10], ebx
mov dword [eax + 0x44], 0x40e037
je 0x40e33f
push 0x100000
push dword [ebp + 0x10]
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x40e37e
push dword [ebp + 0x18]
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.004b40d8
push ebx
mov ecx, edi
call fcn.004b4386
push 0x7c
push eax
call fcn.00494914
pop ecx
cmp eax, ebx
pop ecx
je 0x40e371
mov word [eax], bx
push 0x7c
add eax, 2
jmp 0x40e35b
mov edi, dword [esi + 0x64]
mov ecx, esi
call fcn.0040e40e
mov dword [eax + 0xc], edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x416200
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor eax, eax
xor esi, esi
mov byte [ebp - 4], al
mov byte [ebp - 3], al
mov byte [ebp - 2], al
mov byte [ebp - 8], al
mov byte [ebp - 7], al
mov byte [ebp - 6], al
mov byte [ebp - 5], al
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
dec eax
test ecx, ecx
je 0x41637f
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
inc esi
inc dword [ebp + 8]
cmp esi, 3
mov al, byte [eax]
mov byte [ebp + esi - 5], al
mov dl, byte [ebp - 2]
mov al, byte [ebp - 3]
mov cl, byte [ebp - 4]
jne 0x4162c5
mov dl, cl
mov bl, al
shr dl, 2
mov byte [ebp - 8], dl
mov dl, cl
and dl, 3
shl dl, 4
shr bl, 4
add dl, bl
mov bl, byte [ebp - 2]
mov byte [ebp - 7], dl
mov dl, al
and dl, 0xf
shl dl, 2
shr bl, 6
add dl, bl
mov byte [ebp - 6], dl
mov dl, byte [ebp - 2]
mov bl, dl
and bl, 0x3f
and dword [ebp + 0xc], 0
mov byte [ebp - 5], bl
mov ebx, dword [0x503cec]
test ebx, ebx
jne 0x4162a1
mov esi, 0x4ceb6c
jmp 0x4162ab
mov esi, dword [ebp + 0xc]
movzx esi, byte [ebp + esi - 8]
add esi, ebx
mov bl, byte [esi]
mov edi, dword [edi]
mov esi, dword [ebp + 0x10]
mov byte [edi + esi], bl
mov edi, dword [ebp + 0x14]
inc dword [edi]
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 4
jl 0x416290
xor esi, esi
dec dword [ebp - 0xc]
jne 0x416239
test esi, esi
je 0x41637f
cmp esi, 3
jge 0x416300
push 3
lea edi, [ebp + esi - 4]
pop ecx
xor eax, eax
sub ecx, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dl, byte [ebp - 2]
mov al, byte [ebp - 3]
mov cl, byte [ebp - 4]
mov edi, dword [ebp + 0x14]
mov bl, cl
and cl, 3
shr bl, 2
mov byte [ebp - 8], bl
mov bl, al
shl cl, 4
shr bl, 4
add cl, bl
and dword [ebp + 8], 0
mov byte [ebp - 7], cl
and al, 0xf
mov cl, dl
and dl, 0x3f
shl al, 2
shr cl, 6
add al, cl
lea ecx, [esi + 1]
test ecx, ecx
mov byte [ebp - 6], al
mov byte [ebp - 5], dl
jle 0x416367
mov edx, dword [0x503cec]
test edx, edx
jne 0x416349
mov eax, 0x4ceb6c
jmp 0x416353
mov eax, dword [ebp + 8]
movzx eax, byte [ebp + eax - 8]
add eax, edx
mov edx, dword [edi]
mov ebx, dword [ebp + 0x10]
mov al, byte [eax]
mov byte [edx + ebx], al
inc dword [edi]
inc dword [ebp + 8]
cmp dword [ebp + 8], ecx
jl 0x416338
cmp esi, 3
jge 0x41637f
push 4
pop eax
sub eax, ecx
mov ecx, dword [edi]
mov edx, dword [ebp + 0x10]
mov byte [ecx + edx], 0x3d
inc dword [edi]
dec eax
jne 0x416371
mov eax, dword [edi]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x416edf
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4183b9
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4c6470
call fcn.00494148
push ecx
mov eax, dword [0x4ff4f8]
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x18], eax
mov eax, dword [0x4ff4f8]
and dword [ebp - 4], 0
mov dword [esi + 0x20], eax
mov eax, dword [0x4ff4f8]
mov dword [esi + 0x24], eax
mov eax, dword [0x4ff4f8]
mov dword [esi + 0x28], eax
mov eax, dword [0x4ff4f8]
mov dword [esi + 0x2c], eax
mov eax, dword [0x4ff4f8]
mov dword [esi + 0x30], eax
mov eax, dword [0x4ff4f8]
mov dword [esi + 0x34], eax
mov eax, dword [0x4ff4f8]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 7
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], 0x4d0394
mov dword [esi + 0xc], eax
call fcn.0041b830
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x419aa6
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea esi, [edi + 4]
lea eax, [edi + 0x14]
push esi
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x419ad3
or eax, 0xffffffff
jmp 0x419b2c
cmp dword [ebp + 0xc], ebx
je 0x419b08
mov dword [ebp + 8], ebx
push 0x64
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x419b12
mov eax, dword [ebp + 0xc]
cmp dword [eax], ebx
je 0x419adb
add dword [ebp + 8], 0x64
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0x58]
jl 0x419adb
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x419b12
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
leave
ret 8