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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 4]
push edi
test ebx, ebx
jle 0x447ebc
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
lea edi, [esi + 0x21c]
mov ecx, dword [ebp + 8]
call fcn.00442760
xor eax, dword [edi]
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
add dword [ebp + 8], 4
add edi, 4
cmp dword [ebp - 4], ebx
mov dword [ebp + ecx*4 - 0x34], eax
jl 0x447e9c
mov ecx, dword [esi + 8]
cmp ecx, 1
lea edi, [ebp - 0x54]
lea eax, [ebp - 0x34]
mov dword [ebp + 8], edi
jle 0x447f79
dec ecx
mov dword [ebp - 0x10], ecx
cmp dword [esi + 4], 0
jle 0x447f66
lea edx, [esi + ebx*4 + 0x21c]
mov dword [ebp - 4], edx
mov edx, eax
sub edx, dword [ebp + 8]
lea ecx, [esi + 0x24]
mov dword [ebp - 0xc], edx
mov edx, dword [esi + 4]
add ebx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], ebx
movzx edx, byte [ecx]
mov edx, dword [eax + edx*4]
movzx ebx, byte [ecx + 1]
movzx ebx, byte [eax + ebx*4 + 2]
mov ebx, dword [ebx*4 + 0x497210]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x497210]
rol edx, 8
rol ebx, 0x10
xor edx, ebx
movzx ebx, byte [ecx + 2]
movzx ebx, byte [eax + ebx*4 + 3]
mov ebx, dword [ebx*4 + 0x497210]
ror ebx, 8
xor edx, ebx
mov ebx, dword [ebp - 0xc]
movzx ebx, byte [ebx + edi]
xor edx, dword [ebx*4 + 0x497210]
mov ebx, dword [ebp - 4]
xor edx, dword [ebx]
add dword [ebp - 4], 4
mov dword [edi], edx
add edi, 4
add ecx, 3
dec dword [ebp - 8]
jne 0x447eff
mov ebx, dword [ebp - 0x14]
dec dword [ebp - 0x10]
mov ecx, eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [ebp + 8], edi
jne 0x447ed5
cmp dword [esi + 4], 0
jle 0x448004
lea edx, [esi + ebx*4 + 0x21c]
mov dword [ebp - 8], edx
mov edx, eax
sub edx, dword [ebp + 8]
lea ecx, [esi + 0x24]
mov dword [ebp - 0xc], edx
mov edx, dword [esi + 4]
mov dword [ebp - 0x10], edx
movzx edx, byte [ecx]
mov edx, dword [eax + edx*4]
movzx ebx, byte [ecx + 1]
movzx ebx, byte [eax + ebx*4 + 2]
movzx ebx, byte [ebx + 0x497010]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x497010]
rol edx, 8
rol ebx, 0x10
xor edx, ebx
movzx ebx, byte [ecx + 2]
movzx ebx, byte [eax + ebx*4 + 3]
movzx ebx, byte [ebx + 0x497010]
ror ebx, 8
xor edx, ebx
mov ebx, dword [ebp - 0xc]
movzx ebx, byte [ebx + edi]
movzx ebx, byte [ebx + 0x497010]
xor edx, ebx
mov ebx, dword [ebp - 8]
xor edx, dword [ebx]
add dword [ebp - 8], 4
mov dword [edi], edx
add edi, 4
add ecx, 3
dec dword [ebp - 0x10]
jne 0x447f9e
and dword [ebp - 4], 0
cmp dword [esi + 4], 0
jle 0x44804b
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
add edx, 2
sub eax, edi
mov ecx, dword [edi]
and dword [edi], 0
and dword [eax + edi], 0
mov ebx, ecx
shr ebx, 8
mov byte [edx - 1], bl
mov byte [edx - 2], cl
mov ebx, ecx
shr ecx, 0x18
shr ebx, 0x10
inc dword [ebp - 4]
mov byte [edx + 1], cl
mov ecx, dword [ebp - 4]
mov byte [edx], bl
add edi, 4
add edx, 4
cmp ecx, dword [esi + 4]
jl 0x448019
pop edi
pop esi
pop ebx
leave
ret
Function at 0x449b5d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [esi + 8]
mov ebx, eax
cmp dword [ebp + 0x14], edi
jne 0x449c17
test ecx, ecx
jne 0x449bb6
push edi
push dword [esi + 4]
push dword [esi]
call fcn.00458bd0
push dword [esi]
push dword [ebp + 8]
call dword [ebp + 0xc]
push edi
push dword [esi]
push dword [esi + 4]
call fcn.00458bd0
mov esi, dword [esi]
add esp, 0x20
test edi, edi
jle 0x449cc9
sub esi, ebx
mov al, byte [esi + ebx]
xor byte [ebx], al
inc ebx
dec edi
jne 0x449ba8
jmp 0x449cc9
mov eax, dword [esi]
sub edi, ecx
add eax, ecx
test edi, edi
jle 0x449bd2
mov ecx, ebx
sub eax, ebx
mov dword [ebp + 0x14], edi
mov dl, byte [eax + ecx]
xor byte [ecx], dl
inc ecx
dec dword [ebp + 0x14]
jne 0x449bc7
push dword [ebp + 0x10]
push dword [esi + 4]
push dword [esi]
call fcn.00458bd0
push dword [esi]
push dword [ebp + 8]
call dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [esi]
push dword [esi + 4]
call fcn.00458bd0
mov eax, dword [esi + 8]
mov esi, dword [esi]
add esp, 0x20
lea ecx, [edi + ebx]
test eax, eax
jle 0x449cc9
sub esi, ecx
mov dl, byte [esi + ecx]
xor byte [ecx], dl
inc ecx
dec eax
jne 0x449c09
jmp 0x449cc9
test ecx, ecx
jne 0x449c57
push edi
push dword [esi + 4]
push dword [esi]
call fcn.00458bd0
push dword [esi]
push dword [ebp + 8]
call dword [ebp + 0xc]
push edi
push dword [esi]
push dword [esi + 4]
call fcn.00458bd0
mov edi, dword [ebp + 0x14]
mov eax, dword [esi]
add esp, 0x20
test edi, edi
jle 0x449c52
sub eax, ebx
mov ecx, edi
mov dl, byte [eax + ebx]
xor byte [ebx], dl
inc ebx
dec ecx
jne 0x449c49
mov dword [esi + 8], edi
jmp 0x449cc9
sub edi, ecx
cmp edi, dword [ebp + 0x14]
jl 0x449c61
mov edi, dword [ebp + 0x14]
mov eax, dword [esi]
add eax, ecx
test edi, edi
jle 0x449c7b
mov ecx, ebx
sub eax, ebx
mov dword [ebp - 4], edi
mov dl, byte [eax + ecx]
xor byte [ecx], dl
inc ecx
dec dword [ebp - 4]
jne 0x449c70
add dword [esi + 8], edi
cmp edi, dword [ebp + 0x14]
jge 0x449cc9
push dword [ebp + 0x10]
push dword [esi + 4]
push dword [esi]
call fcn.00458bd0
push dword [esi]
push dword [ebp + 8]
call dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [esi]
push dword [esi + 4]
call fcn.00458bd0
mov ecx, dword [ebp + 0x14]
mov edx, dword [esi + 4]
sub ecx, edi
add esp, 0x20
lea eax, [edi + ebx]
test ecx, ecx
jle 0x449cc6
mov edi, edx
sub edi, eax
mov edx, ecx
mov bl, byte [edi + eax]
xor byte [eax], bl
inc eax
dec edx
jne 0x449cbd
mov dword [esi + 8], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x449df5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 8]
push edi
mov edi, dword [ebp + 0x14]
cmp edi, eax
jne 0x449ea8
test ecx, ecx
jne 0x449e47
push eax
push dword [esi + 4]
push dword [esi]
call fcn.00458bd0
push dword [esi]
push dword [ebp + 8]
call dword [ebp + 0xc]
mov ecx, dword [esi]
add esp, 0x14
cmp dword [ebp + 0x10], 0
jle 0x449e3f
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov eax, ebx
sub edi, ebx
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x449e36
push dword [ebp + 0x10]
jmp 0x449f64
mov edi, eax
mov eax, dword [esi]
sub edi, ecx
add eax, ecx
test edi, edi
jle 0x449e65
mov ecx, ebx
sub eax, ebx
mov dword [ebp + 0x14], edi
mov dl, byte [eax + ecx]
xor byte [ecx], dl
inc ecx
dec dword [ebp + 0x14]
jne 0x449e5a
push dword [ebp + 0x10]
push dword [esi + 4]
push dword [esi]
call fcn.00458bd0
push dword [esi]
push dword [ebp + 8]
call dword [ebp + 0xc]
mov eax, dword [esi + 8]
mov edx, dword [esi]
add esp, 0x14
lea ecx, [edi + ebx]
test eax, eax
jle 0x449e99
sub edx, ecx
mov dword [ebp + 0x10], eax
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
dec dword [ebp + 0x10]
jne 0x449e8e
push dword [esi + 8]
mov eax, dword [esi + 4]
push ebx
add eax, edi
push eax
jmp 0x449f68
test ecx, ecx
jne 0x449eec
push eax
push dword [esi + 4]
push dword [esi]
call fcn.00458bd0
push dword [esi]
push dword [ebp + 8]
call dword [ebp + 0xc]
mov ecx, dword [esi]
add esp, 0x14
test edi, edi
jle 0x449eda
mov eax, ebx
sub ecx, ebx
mov dword [ebp + 0x10], edi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec dword [ebp + 0x10]
jne 0x449ecf
push edi
push ebx
push dword [esi + 4]
call fcn.00458bd0
mov dword [esi + 8], edi
jmp 0x449f6d
sub eax, ecx
cmp eax, edi
jge 0x449ef4
mov edi, eax
mov eax, dword [esi]
add eax, ecx
test edi, edi
jle 0x449f0e
mov ecx, ebx
sub eax, ebx
mov dword [ebp - 4], edi
mov dl, byte [eax + ecx]
xor byte [ecx], dl
inc ecx
dec dword [ebp - 4]
jne 0x449f03
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
push edi
push ebx
push eax
call fcn.00458bd0
add dword [esi + 8], edi
add esp, 0xc
cmp edi, dword [ebp + 0x14]
jge 0x449f70
push dword [ebp + 0x10]
push dword [esi + 4]
push dword [esi]
call fcn.00458bd0
push dword [esi]
push dword [ebp + 8]
call dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 4]
sub eax, edi
add esp, 0x14
lea ecx, [edi + ebx]
test eax, eax
jle 0x449f60
mov edi, ecx
sub edx, ecx
mov dword [ebp + 0x10], eax
mov cl, byte [edx + edi]
xor byte [edi], cl
inc edi
dec dword [ebp + 0x10]
jne 0x449f55
mov dword [esi + 8], eax
push eax
push ebx
push dword [esi + 4]
call fcn.00458bd0
add esp, 0xc
pop edi
leave
ret
Function at 0x449f73
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
push edi
mov edi, eax
cmp dword [ebp + 0x14], ebx
jne 0x44a02e
test ecx, ecx
jne 0x449fcb
push ebx
push dword [esi + 4]
push dword [esi]
call fcn.00458bd0
push dword [esi]
push dword [ebp + 8]
call dword [ebp + 0xc]
push ebx
push edi
push dword [esi + 4]
call fcn.00458bd0
mov esi, dword [esi]
add esp, 0x20
test ebx, ebx
jle 0x44a0f9
sub esi, edi
mov al, byte [esi + edi]
xor byte [edi], al
inc edi
dec ebx
jne 0x449fbd
jmp 0x44a0f9
mov eax, dword [esi]
sub ebx, ecx
add eax, ecx
test ebx, ebx
jle 0x449fe7
mov ecx, edi
sub eax, edi
mov dword [ebp + 0x14], ebx
mov dl, byte [eax + ecx]
xor byte [ecx], dl
inc ecx
dec dword [ebp + 0x14]
jne 0x449fdc
push dword [ebp + 0x10]
push dword [esi + 4]
push dword [esi]
call fcn.00458bd0
push dword [esi]
push dword [ebp + 8]
call dword [ebp + 0xc]
push dword [esi + 8]
mov eax, dword [esi + 4]
add eax, ebx
push edi
push eax
call fcn.00458bd0
mov eax, dword [esi + 8]
mov esi, dword [esi]
add esp, 0x20
lea ecx, [ebx + edi]
test eax, eax
jle 0x44a0f9
sub esi, ecx
mov dl, byte [esi + ecx]
xor byte [ecx], dl
inc ecx
dec eax
jne 0x44a020
jmp 0x44a0f9
test ecx, ecx
jne 0x44a070
push ebx
push dword [esi + 4]
push dword [esi]
call fcn.00458bd0
push dword [esi]
push dword [ebp + 8]
call dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
push ebx
push edi
push dword [esi + 4]
call fcn.00458bd0
mov eax, dword [esi]
add esp, 0x20
test ebx, ebx
jle 0x44a068
sub eax, edi
mov ecx, ebx
mov dl, byte [eax + edi]
xor byte [edi], dl
inc edi
dec ecx
jne 0x44a05f
mov dword [esi + 8], ebx
jmp 0x44a0f9
mov eax, ebx
sub eax, ecx
cmp eax, dword [ebp + 0x14]
mov ebx, eax
jl 0x44a07e
mov ebx, dword [ebp + 0x14]
mov eax, dword [esi]
add eax, ecx
test ebx, ebx
jle 0x44a098
mov ecx, edi
sub eax, edi
mov dword [ebp - 4], ebx
mov dl, byte [eax + ecx]
xor byte [ecx], dl
inc ecx
dec dword [ebp - 4]
jne 0x44a08d
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
push ebx
push edi
push eax
call fcn.00458bd0
add dword [esi + 8], ebx
add esp, 0xc
cmp ebx, dword [ebp + 0x14]
jge 0x44a0f9
push dword [ebp + 0x10]
push dword [esi + 4]
push dword [esi]
call fcn.00458bd0
push dword [esi]
push dword [ebp + 8]
call dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
sub eax, ebx
push eax
push edi
push dword [esi + 4]
mov dword [ebp + 0x14], eax
call fcn.00458bd0
mov edx, dword [ebp + 0x14]
mov eax, dword [esi + 4]
add esp, 0x20
add edi, ebx
test edx, edx
jle 0x44a0f6
mov ecx, edi
sub eax, edi
mov edi, edx
mov bl, byte [eax + ecx]
xor byte [ecx], bl
inc ecx
dec edi
jne 0x44a0ed
mov dword [esi + 8], edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44a33f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [esi + 8]
mov ebx, eax
cmp dword [ebp + 0x14], edi
jne 0x44a3f5
test ecx, ecx
jne 0x44a395
push edi
push dword [esi + 4]
push dword [esi]
call fcn.00458bd0
push dword [esi]
push dword [ebp + 8]
call dword [ebp + 0xc]
mov eax, dword [esi]
add esp, 0x14
test edi, edi
jle 0x44a386
sub eax, ebx
mov ecx, edi
mov dl, byte [eax + ebx]
xor byte [ebx], dl
inc ebx
dec ecx
jne 0x44a37d
mov ecx, dword [esi + 4]
mov eax, edi
call fcn.0044a236
jmp 0x44a49e
mov eax, dword [esi]
sub edi, ecx
add eax, ecx
test edi, edi
jle 0x44a3b1
mov ecx, ebx
sub eax, ebx
mov dword [ebp + 0x14], edi
mov dl, byte [eax + ecx]
xor byte [ecx], dl
inc ecx
dec dword [ebp + 0x14]
jne 0x44a3a6
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 4]
call fcn.0044a236
push dword [ebp + 0x10]
push dword [esi + 4]
push dword [esi]
call fcn.00458bd0
push dword [esi]
push dword [ebp + 8]
call dword [ebp + 0xc]
mov eax, dword [esi + 8]
mov esi, dword [esi]
add esp, 0x14
add edi, ebx
test eax, eax
jle 0x44a49e
mov ecx, edi
sub esi, edi
mov dl, byte [esi + ecx]
xor byte [ecx], dl
inc ecx
dec eax
jne 0x44a3e7
jmp 0x44a49e
test ecx, ecx
jne 0x44a42a
push edi
push dword [esi + 4]
push dword [esi]
call fcn.00458bd0
push dword [esi]
push dword [ebp + 8]
call dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov eax, dword [esi]
add esp, 0x14
test edi, edi
jle 0x44a425
sub eax, ebx
mov ecx, edi
mov dl, byte [eax + ebx]
xor byte [ebx], dl
inc ebx
dec ecx
jne 0x44a41c
mov dword [esi + 8], edi
jmp 0x44a49e
mov eax, edi
sub eax, ecx
cmp eax, dword [ebp + 0x14]
mov edi, eax
jl 0x44a438
mov edi, dword [ebp + 0x14]
mov eax, dword [esi]
add eax, ecx
test edi, edi
jle 0x44a452
mov ecx, ebx
sub eax, ebx
mov dword [ebp - 4], edi
mov dl, byte [eax + ecx]
xor byte [ecx], dl
inc ecx
dec dword [ebp - 4]
jne 0x44a447
add dword [esi + 8], edi
cmp edi, dword [ebp + 0x14]
jge 0x44a49e
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 4]
call fcn.0044a236
push dword [ebp + 0x10]
push dword [esi + 4]
push dword [esi]
call fcn.00458bd0
push dword [esi]
push dword [ebp + 8]
call dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi]
sub eax, edi
add esp, 0x14
add ebx, edi
test eax, eax
jle 0x44a49b
mov edi, ecx
mov edx, ebx
sub edi, ebx
mov ecx, eax
mov bl, byte [edi + edx]
xor byte [edx], bl
inc edx
dec ecx
jne 0x44a492
mov dword [esi + 8], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45260d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x497c2c], 0
push esi
jne 0x452580
call fcn.004524a6
test eax, eax
je 0x4525c3
mov eax, dword [0x497c2c]
cmp eax, 1
jne 0x4525a1
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4525c3
pop esi
ret
push eax
call dword [0x497c34]
test eax, eax
jne 0x45260b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4525c7
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x497c2c]
call dword [0x497c34]
mov edi, eax
test edi, edi
je 0x4525ec
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x452608
mov edi, esi
add esi, 0xff0
push edi
push dword [0x497c2c]
call dword [0x497c30]
add edi, 0x10
cmp edi, esi
jb 0x4525f4
mov eax, edi
pop edi
pop esi
ret
jmp 0x45256d
Function at 0x457904
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x491fb4]
jne 0x45790e
repz ret
jmp fcn.0045be09

Function at 0x465857
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.0045ca84
and dword [ebp - 4], 0
cmp dword [0x498740], 0
mov ebx, eax
jne 0x465908
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4659b9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4659b9
push eax
call fcn.0045ca12
mov dword [esp], 0x47d3a4
push edi
mov dword [0x498740], eax
call esi
push eax
call fcn.0045ca12
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x498744], eax
call esi
push eax
call fcn.0045ca12
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x498748], eax
call esi
push eax
call fcn.0045ca12
pop ecx
mov dword [0x498750], eax
test eax, eax
je 0x465908
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045ca12
pop ecx
mov dword [0x49874c], eax
mov eax, dword [0x49874c]
cmp eax, ebx
je 0x465960
cmp dword [0x498750], ebx
je 0x465960
push eax
call fcn.0045ca8d
push dword [0x498750]
mov esi, eax
call fcn.0045ca8d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x465960
test edi, edi
je 0x465960
call esi
test eax, eax
je 0x465957
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x465957
test byte [ebp - 0xc], 1
jne 0x465960
or dword [ebp + 0x10], 0x200000
jmp 0x465999
mov eax, dword [0x498744]
cmp eax, ebx
je 0x465999
push eax
call fcn.0045ca8d
pop ecx
test eax, eax
je 0x465999
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x465999
mov eax, dword [0x498748]
cmp eax, ebx
je 0x465999
push eax
call fcn.0045ca8d
pop ecx
test eax, eax
je 0x465999
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x498740]
call fcn.0045ca8d
pop ecx
test eax, eax
je 0x4659b9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4659bb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401015
Capabilities:
Get common file path

Disassembly:
sub esp, 0x1c
mov dword [0x4040e4], 0x14
push ebx
push ebp
push esi
push edi
push 0x15
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [0x4040d4], eax
mov eax, dword [0x4040e4]
add eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push str.USR_Shohdi_Photo_USR
mov dword [0x4040fc], eax
push dword [0x4040d4]
call sub.MSVCRT.dll_strcpy
sbb dword [eax], eax
add byte [edi + 0x4040dc], bh
Function at 0x401f20
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
push 0x1f4
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push edi
call sub.MSVCRT.dll_strcpy
cmp byte [edi], 0x22
pop ecx
pop ecx
jne 0x401f44
inc edi
xor eax, eax
cmp byte [eax + edi], 0x22
jne 0x401f50
and byte [eax + edi], 0
inc eax
cmp eax, 0x1f3
jl 0x401f46
push edi
xor esi, esi
call sub.MSVCRT.dll_strlen
sub eax, 4
pop ecx
test eax, eax
jle 0x401fe4
mov cl, byte [esi + edi]
jmp 0x423354
push edi
call sub.MSVCRT.dll_strlen
sub eax, 4
pop ecx
cmp esi, eax
jl 0x40200b
push edi
push dword [esp + 0x10]
call sub.MSVCRT.dll_strcpy
push edi
push dword [esp + 0x1c]
call sub.MSVCRT.dll_strcpy
add esp, 0x10
jmp 0x402042
push ebx
mov ebx, dword [esp + 0x10]
push edi
push ebx
call sub.MSVCRT.dll_strcpy
add esi, 3
pop ecx
pop ecx
lea eax, [esi + ebx]
mov byte [eax + 1], 0
js 0x402035
mov edx, edi
lea ecx, [esi + 1]
sub edx, ebx
mov bl, byte [edx + eax]
mov byte [eax], bl
dec eax
dec ecx
jne 0x40202c
push edi
push dword [esp + 0x18]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
pop ebx
dec edi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
ret

Function at 0x407684
Capabilities:
Create process on windows

Disassembly:
push 0x30000
jmp loc.0041f8b0
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x438c81
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
sub ecx, 0x4c176e95
sub ecx, 0xd30cf70f
call fcn.00438cd3
mov ecx, 0xbcef311a
xor dword [esi], edx
sub edi, 0xe2721f18
sub ecx, 0x2e427e5e
add esi, 1
dec edi
mov ecx, 0xabcfd864
cmp esi, eax
jne fcn.00438c81
sub edi, 0x3b5bad57
sub ecx, 0xd1e8230b
add ecx, 0xb7ad6fd9
ret
Function at 0x408930
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
push 0x6ccaaef2
pop edx
call main
xor dword [eax], edi
inc eax
sub esp, 4
mov dword [esp], ecx
pop ecx
push 0x3d9c38f6
pop ecx
cmp eax, ebx
jne fcn.00408930
or edx, ecx
or ecx, edx
ret
Function at 0x4292d0
Capabilities:
Create pipe

Disassembly:
sub esp, 0x41c
mov eax, dword [0x43814c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
mov eax, dword [eax]
push ebx
mov ebx, dword [0x43cd7c]
push edi
mov edi, dword [0x43f1fc]
call fcn.00429240
cmp dword [0x43f1fc], 0x2f
jne 0x429364
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
call fcn.00429270
mov ecx, dword [esp + 0x420]
pop edi
pop ebx
xor ecx, esp
call fcn.0040215c
add esp, 0x41c
ret
Function at 0x429860
Capabilities:
Get disk information
Read file on windows

Disassembly:
sub esp, 0x41c
mov eax, dword [0x43814c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x43f1fc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519a5
mov edi, 0x8e46a7b8
lea esp, [esp]
mov dword [0x43ee64], edi
cmp eax, 0x3dc
jne 0x4298aa
push 0
push 0
push 0
call esi
mov eax, dword [0x43f1fc]
dec ebx
jne 0x429890
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
jmp 0x4298c0
cmp eax, 0x997
jne 0x429907
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x43f1fc]
cmp esi, 0x845fb3
jne 0x42991e
mov eax, dword [0x439d70]
add eax, 0xa231
mov dword [0x43f1fc], eax
cmp eax, 0x141
jne 0x429939
mov dword [0x43b508], 0xec58acac
mov dword [0x43b50c], 0xffffffff
inc esi
cmp esi, 0x12d131e
jl 0x4298c0
call fcn.00429380
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040215c
add esp, 0x41c
ret 0x10