joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x402ee4
pop dword [ebp - 0x10]
mov eax, 0x402ee4
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x364c3fdd
sub dword [ebp - 0x20], 0xe7f9fa92
mov dword [ebp - 0x1c], 0x4c93ac1
sub dword [ebp - 0x1c], 0xd295ee7c
mov dword [ebp - 0x18], 0xb4cf3468
add dword [ebp - 0x18], 0x977d0fc6
mov dword [ebp - 0x14], 0xf8ff2eef
sub dword [ebp - 0x14], 0xf8ff2eef
lea eax, [ebp - 0x20]
push eax
mov eax, 0x62b8f897
add eax, 0x9d87886d
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x245a9e1b
add dword [ebp - 0x20], 0x5017cb3b
mov dword [ebp - 0x1c], 0xcc2fa626
sub dword [ebp - 0x1c], 0x8ac344b1
mov dword [ebp - 0x18], 0xcf87b7af
add dword [ebp - 0x18], 0x93e7b4bd
mov dword [ebp - 0x14], 0x3352d880
sub dword [ebp - 0x14], 0x3352d880
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x3d540fe
add eax, 0xfc6b4002
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3635b
push 0
call eax
mov ecx, 0xe79e6701
add ecx, 0x1861ddb1
xor edx, edx
add edx, eax
mov ebx, 0x46e400
add ebx, dword [ebp - 0x10]
mov esi, 0xc900aa96
sub esi, 0x9040cd08
sub dword [ebp - 0xc], esi
mov edi, dword [ebx]
add dword [ebp - 0xc], ecx
sub edi, esi
add dword [ebp - 4], eax
mov dword [edx], edi
xor dword [ebp - 4], edi
add edx, 0x849ead32
sub edx, 0x849ead2e
add ebx, 0x8cb57583
add ebx, 0x734a8a81
loop 0x402ffd
add eax, 0x1059b
xor ebx, ebx
add ebx, eax
add eax, 0x5a67a7e0
sub eax, 0x5a67a7db
mov ecx, 0xf5578867
add ecx, 0xae87799
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x2a3246f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x2a324705
pop dword [ebp - 0x24]
mov eax, 0x4266e82a
sub eax, 0x1834a125
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x5f1520e7
add dword [ebp - 0x34], 0xef3d2464
mov dword [ebp - 0x30], 0x9553c725
add dword [ebp - 0x30], 0x9cdf8520
mov dword [ebp - 0x2c], 0x631e9925
sub dword [ebp - 0x2c], 0x16d254f7
mov dword [ebp - 0x28], 0x8e44863
add dword [ebp - 0x28], 0xf71bb79d
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x910cc780
sub dword [ebp - 0x34], 0x1c9a5e2a
mov dword [ebp - 0x30], 0x4707aec6
sub dword [ebp - 0x30], 0x59b4d51
mov dword [ebp - 0x2c], 0x51ebe5d
sub dword [ebp - 0x2c], 0xa1af51f1
mov dword [ebp - 0x28], 0x6db45f1
add dword [ebp - 0x28], 0xf924ba0f
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x4c690
push 0
call eax
mov ecx, 0xd702b988
add ecx, 0x28fd966c
mov esi, eax
mov edx, 0x362226b
sub edx, 0xd92a2c6b
add edx, dword [ebp - 0x24]
mov ebx, 0x77d265e5
add ebx, 0xb18cddd3
sub dword [ebp - 8], 0x7a4c3e40
mov edi, dword [edx]
add dword [ebp - 0x10], ebx
xor edi, ebx
sub dword [ebp - 0x1c], 0x41e201c
mov dword [esi], edi
sub dword [ebp - 0x18], 0xd42fb975
add esi, 0x6b7db132
sub esi, 0x6b7db12e
add edx, 4
loop 0x2a32481d
add eax, 0x132a3
xor ebx, ebx
add ebx, eax
add eax, 0x11f7e21f
add eax, 0xee081de6
mov ecx, 0x2a300000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x412210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41223d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41223d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x409780
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
jmp 0x40979a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4097a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409790
mov eax, 1
add ebx, ebx
jne 0x4097b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4097a8
jne 0x4097c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4097a8
xor ecx, ecx
sub eax, 3
jb 0x4097d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40984a
mov ebp, eax
add ebx, ebx
jne 0x4097e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4097f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x409814
inc ecx
add ebx, ebx
jne 0x409800
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4097f5
jne 0x409811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4097f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x409834
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x409825
jmp 0x409796
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x409834
add edi, ecx
jmp 0x409796
pop esi
mov edi, esi
mov ecx, 0x1f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x409852
cmp byte [edi], 0
jne 0x409852
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x409857
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x4098c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb1f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb244]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x409884
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb24c]
or eax, eax
je 0x4098c0
mov dword [ebx], eax
add ebx, 4
jmp 0x4098a1
call dword [esi + 0xb248]
mov ebp, dword [esi + 0xb250]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4098fa
sub esp, 0xffffff80
jmp 0x401d10
Function at 0x40c198
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040799b
mov dword [ebp - 0x14], eax
cmp dword [0x811f80], esi
jne 0x40c28b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c218
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c36b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c36b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c36b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x811f80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x811f84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x811f88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x811f90], eax
test eax, eax
je 0x40c288
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x811f8c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c2b0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c2a3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c2c5
push 4
pop eax
jmp 0x40c36d
cmp dword [ebp - 0x14], esi
je 0x40c2c5
push dword [0x811f80]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c2aa
mov eax, dword [0x811f8c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c323
cmp dword [0x811f90], edi
je 0x40c323
push eax
call ebx
push dword [0x811f90]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c323
test eax, eax
je 0x40c323
call ecx
test eax, eax
je 0x40c318
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c318
test byte [ebp - 8], 1
jne 0x40c323
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c353
mov eax, dword [0x811f84]
cmp eax, edi
je 0x40c350
push eax
call ebx
test eax, eax
je 0x40c350
call eax
mov esi, eax
test esi, esi
je 0x40c350
mov eax, dword [0x811f88]
cmp eax, edi
je 0x40c350
push eax
call ebx
test eax, eax
je 0x40c350
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x811f80]
call ebx
test eax, eax
je 0x40c36b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c36d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403b05
mov esp, ebp
pop ebp
ret
Function at 0x401a31
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x504e58
jmp 0x401a25
mov eax, 0x4c4ddc
call fcn.00494248
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00401b3e
mov eax, dword [0x500810]
lea ecx, [esi + 0xa0]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ecx], eax
mov eax, dword [0x500810]
mov dword [esi + 0xa8], eax
push 1
mov dword [esi], 0x4cc9b4
pop eax
mov ebx, 0x504e54
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.004b41d8
push ebx
lea ecx, [esi + 0xa8]
mov dword [esi + 0xa4], edi
call fcn.004b41d8
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 0x40ab68
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4c5aec
call fcn.00494248
sub esp, 0x22c
push ebx
push esi
mov dword [ebp - 0x2c], ecx
mov esi, 0x504c38
push str.DataFile_Types
mov ecx, esi
call fcn.004c2963
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x40ab9e
xor eax, eax
jmp 0x40ace6
mov eax, dword [0x500810]
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 0x40acb6
lea eax, [ebp - 0x238]
push eax
push str.DataFile_Types
lea eax, [ebp - 0x10]
push 0x4ebfd4
push eax
call fcn.004accf7
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, esi
push ebx
push str.Name
push dword [ebp - 0x10]
push eax
call fcn.004c2a15
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004b4188
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004b4041
push ebx
push str.Extension
push dword [ebp - 0x10]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004c2a15
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004b4188
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004b4041
push 0xffffffffffffffff
push str.Icon
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004c29a9
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
je 0x40ac8f
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 8], ebx
je 0x40ac8f
cmp eax, 0xffffffff
je 0x40ac8f
push eax
push edx
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0040add3
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 0x40abda
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004b4041
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004b4041
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004b4041
push 1
pop eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40be28
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.00494270
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.0040c19c
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ca1f
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.00494270
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 0x40e144
Capabilities:
Check os version

Disassembly:
mov eax, 0x4c5fcf
call fcn.00494248
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.004b3909
mov eax, dword [0x500810]
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 0x40e1ca
mov edi, 0x114
lea eax, [ebp - 0x124]
push edi
push ebx
push eax
call fcn.00494270
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 0x40e1c3
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x40e1ca
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.00494a3d
cmp eax, ebx
pop ecx
mov dword [esi + 0x5c], eax
jne 0x40e1df
call fcn.004ad3d8
push dword [ebp + 0x20]
mov ecx, esi
push ebx
call fcn.0040e3a4
push eax
call fcn.00494270
push 0x200002
call fcn.004b016a
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.0040e3a4
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, esi
call fcn.0040e3a4
mov ecx, dword [esi + 0xe8]
mov dword [eax + 0x1c], ecx
mov ecx, esi
call fcn.0040e3a4
mov ecx, esi
mov dword [eax + 0x20], 0x100000
call fcn.0040e3a4
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x3c], ecx
mov ecx, esi
call fcn.0040e3a4
mov ecx, esi
mov dword [eax + 0x24], edi
call fcn.0040e3a4
mov ecx, esi
mov dword [eax + 0x28], 0x40
call fcn.0040e3a4
mov ecx, dword [ebp + 0x14]
add eax, 0x34
or ecx, 0x880020
or dword [eax], ecx
test byte [ebp + 0x14], 0x40
je 0x40e29c
mov ecx, esi
call fcn.0040e3a4
add eax, 0x34
and byte [eax + 2], 0x7f
call fcn.004c30cb
mov edi, dword [eax + 0xc]
mov ecx, esi
call fcn.0040e3a4
mov ecx, esi
mov dword [eax + 8], edi
call fcn.0040e3a4
cmp dword [ebp + 0x10], ebx
mov dword [eax + 0x44], 0x40dfcd
je 0x40e2d5
push 0x100000
push dword [ebp + 0x10]
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x40e314
push dword [ebp + 0x18]
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.004b41d8
push ebx
mov ecx, edi
call fcn.004b4486
push 0x7c
push eax
call fcn.00494a14
pop ecx
cmp eax, ebx
pop ecx
je 0x40e307
mov word [eax], bx
push 0x7c
add eax, 2
jmp 0x40e2f1
mov edi, dword [esi + 0x64]
mov ecx, esi
call fcn.0040e3a4
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 0x4161ce
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 0x41634d
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 0x416293
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 [0x504ffc]
test ebx, ebx
jne 0x41626f
mov esi, 0x4ceb6c
jmp 0x416279
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 0x41625e
xor esi, esi
dec dword [ebp - 0xc]
jne 0x416207
test esi, esi
je 0x41634d
cmp esi, 3
jge 0x4162ce
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 0x416335
mov edx, dword [0x504ffc]
test edx, edx
jne 0x416317
mov eax, 0x4ceb6c
jmp 0x416321
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 0x416306
cmp esi, 3
jge 0x41634d
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 0x41633f
mov eax, dword [edi]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x416ead
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 0x4183c3
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4c6510
call fcn.00494248
push ecx
mov eax, dword [0x500810]
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x18], eax
mov eax, dword [0x500810]
and dword [ebp - 4], 0
mov dword [esi + 0x20], eax
mov eax, dword [0x500810]
mov dword [esi + 0x24], eax
mov eax, dword [0x500810]
mov dword [esi + 0x28], eax
mov eax, dword [0x500810]
mov dword [esi + 0x2c], eax
mov eax, dword [0x500810]
mov dword [esi + 0x30], eax
mov eax, dword [0x500810]
mov dword [esi + 0x34], eax
mov eax, dword [0x500810]
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], 0x4d0398
mov dword [esi + 0xc], eax
call fcn.0041b688
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 0x60]
lea ebx, [esi + 4]
mov dword [ebp - 4], eax
push ebx
mov dword [eax], edi
lea eax, [esi + 0x14]
push eax
push edi
push edi
push 0x20
push edi
push edi
push edi
mov dword [esi + 0x5c], edi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4199a2
or eax, 0xffffffff
jmp 0x419a17
cmp dword [ebp + 0xc], edi
mov dword [esi + 0x5c], 0xa
je 0x4199de
mov dword [ebp + 8], edi
push 0x64
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4199e8
mov eax, dword [ebp + 0xc]
cmp dword [eax], edi
je 0x4199b1
add dword [ebp + 8], 0x64
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x58]
jl 0x4199b1
push 1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4199e8
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x5c], 0x64
cmp eax, edi
je 0x4199ff
cmp dword [eax], edi
je 0x4199ff
push 1
pop eax
jmp 0x419a17
mov esi, dword [ebp - 4]
push esi
push dword [ebx]
mov dword [esi], 1
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esi]
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
leave
ret 8