joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100257ac
Capabilities:
Check if file exists

Disassembly:
push 0xa8
mov eax, 0x1003fa92
call fcn.100296da
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, edx
push esi
mov dword [ebp - 0x60], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100257da
mov eax, 0x44f
jmp 0x100259b5
push esi
call fcn.100251aa
pop ecx
test eax, eax
je 0x100257f5
push edi
mov edx, ebx
mov ecx, esi
call fcn.100253dd
pop ecx
jmp 0x100259b5
push esi
push 0x10048674
push str.__s__l___s_
lea ecx, [ebp - 0x4c]
call fcn.1000b2a5
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x10025861
push 0x10048678
lea esi, [ebp - 0x98]
call fcn.10004b6d
push edi
push eax
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 4], 1
call fcn.1000d06e
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.1000c012
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x7c]
call fcn.10005985
push ebx
push edi
lea esi, [ebp - 0x98]
call fcn.10005985
jmp 0x10025864
xor edi, edi
inc edi
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.10006a33
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x10025884
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.1002513e
pop ecx
pop ecx
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jne 0x1002599e
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x100258a7
lea eax, [ebp - 0x2c]
push 0x100486cc
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.1000b267
add esp, 0xc
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 0x50], ebx
cmp esi, dword [ebp - 0x68]
jbe 0x100258cd
call fcn.10028dac
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], esi
mov esi, dword [ebp - 0x68]
cmp dword [ebp - 0x6c], esi
jbe 0x100258e3
call fcn.10028dac
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x100258ef
cmp eax, dword [ebp - 0x78]
je 0x100258f4
call fcn.10028dac
cmp dword [ebp - 0x54], esi
je 0x1002598d
lea esi, [ebp - 0x58]
call fcn.10024296
push eax
call fcn.10020e73
test eax, eax
jne 0x10025914
inc dword [ebp - 0x50]
jmp 0x10025980
cmp dword [ebp - 0x50], edi
jne 0x1002597a
lea esi, [ebp - 0x58]
call fcn.10024296
cmp dword [eax + 0x14], 0x35
jbe 0x10025980
call fcn.10024296
push 0xffffffffffffffff
push 0x35
push eax
lea esi, [ebp - 0xb4]
call fcn.10004b3f
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 5
call fcn.10009e46
pop ecx
push eax
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 6
call fcn.10004faa
push ebx
push edi
lea esi, [ebp - 0x98]
call fcn.10005985
push ebx
push edi
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 4
call fcn.100057e3
jmp 0x10025980
cmp dword [ebp - 0x50], 2
je 0x1002598d
lea esi, [ebp - 0x58]
call fcn.10004d05
jmp 0x100258d6
lea esi, [ebp - 0x78]
call fcn.100059e9
push dword [ebp - 0x78]
call fcn.10028e08
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x30]
call fcn.100057e3
push ebx
push edi
lea esi, [ebp - 0x4c]
call fcn.10005985
mov eax, dword [ebp - 0x5c]
call fcn.1002975d
ret
Function at 0x100259bb
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
push esi
push edi
mov dword [ebp - 4], 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
lea edi, [ebp - 0x14]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x14], eax
call fcn.1000688c
test al, al
jne 0x10025a60
call fcn.1000c89b
add eax, 0x1c
cmp dword [eax + 0x18], 8
jb 0x10025a04
mov eax, dword [eax + 4]
jmp 0x10025a07
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10025a4f
lea esi, [ebp - 0xc]
call fcn.1000c89b
cmp dword [eax + 0x18], 8
jb 0x10025a25
mov edi, dword [eax + 4]
jmp 0x10025a28
lea edi, [eax + 4]
lea esi, [ebp - 0xc]
call fcn.1000c89b
add eax, 0x1c
cmp dword [eax + 0x18], 8
jb 0x10025a3e
mov eax, dword [eax + 4]
jmp 0x10025a41
add eax, 4
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10025a53
and dword [ebp - 4], 0
lea esi, [ebp - 0xc]
call fcn.1000d984
jmp 0x100259d7
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x10025a67
Capabilities:
Check if file exists

Disassembly:
push 0x80
mov eax, 0x10040190
call fcn.100296da
mov ebx, dword [ebp + 8]
mov esi, ecx
mov edi, edx
push esi
mov dword [ebp - 0x34], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10025a95
mov eax, 0x44f
jmp 0x10025ba0
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10025aaa
mov eax, 0x450
jmp 0x10025ba0
push esi
call fcn.100251aa
pop ecx
test eax, eax
je 0x10025ac5
push edi
mov edx, ebx
mov ecx, esi
call fcn.1002550e
pop ecx
jmp 0x10025ba0
lea eax, [ebp - 0x70]
push eax
call fcn.1000bad5
push dword [ebp - 0x34]
xor edi, edi
push esi
push 0x10048674
push str.__s__x___s___r__o__s___y
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], edi
call fcn.1000b2a5
add esp, 0x10
mov byte [ebp - 4], 4
cmp ebx, edi
je 0x10025b3e
push 0x10048678
lea esi, [ebp - 0x8c]
call fcn.10004b6d
push ebx
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 5
call fcn.1000d06e
add esp, 0xc
push 0xffffffffffffffff
push edi
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.1000c012
push edi
push 1
lea esi, [ebp - 0x50]
call fcn.10005985
push edi
push 1
lea esi, [ebp - 0x8c]
call fcn.10005985
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x38], 0xf
call fcn.10006a33
mov byte [ebp - 4], 7
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10025b5e
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x50]
push ecx
push eax
call fcn.1002513e
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x34], eax
call fcn.100057e3
cmp dword [ebp - 0x34], edi
je 0x10025b85
lea ebx, [ebp - 0x70]
call fcn.100259bb
push edi
push 1
lea esi, [ebp - 0x30]
call fcn.10005985
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x70]
push eax
call fcn.1000bb0b
mov eax, dword [ebp - 0x34]
call fcn.1002975d
ret
Function at 0x10026cb5
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x10027302
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 3]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 4]
push ebx
push esi
movzx esi, byte [eax + 5]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 6]
movzx ebx, byte [eax + 0xd]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 7]
push edi
movzx edi, byte [eax + 9]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 8]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 0xa]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 0xb]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 0xc]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl edi, 8
or edi, ebx
shl edi, 8
or edi, eax
xor ecx, 0xa3b1bac6
xor edx, 0x56aa3350
xor esi, 0x677d9197
xor edi, 0xb27022dc
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
xor ecx, ecx
mov eax, dword [ecx + 0x10047668]
xor eax, dword [ebp + ecx - 0x20]
xor eax, dword [ebp + ecx - 0x18]
xor eax, dword [ebp + ecx - 0x1c]
mov edx, eax
shr edx, 0x18
mov ebx, eax
movzx edx, dl
mov dl, byte [edx + 0x10047558]
shr ebx, 0x10
mov byte [ebp + 0x70], dl
mov byte [ebp + 0x6d], bl
movzx edx, byte [ebp + 0x6d]
mov dl, byte [edx + 0x10047558]
mov ebx, eax
movzx eax, al
mov al, byte [eax + 0x10047558]
mov byte [ebp + 0x73], al
movzx eax, byte [ebp + 0x70]
shr ebx, 8
movzx edx, dl
shl eax, 8
or eax, edx
movzx esi, bl
mov bl, byte [esi + 0x10047558]
shl eax, 8
movzx edx, bl
or eax, edx
movzx edx, byte [ebp + 0x73]
shl eax, 8
or eax, edx
mov edx, eax
rol edx, 0xd
mov esi, eax
ror esi, 9
xor edx, esi
xor edx, dword [ebp + ecx - 0x24]
xor edx, eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp + ecx - 0x14], edx
mov dword [ecx + eax], edx
add ecx, 4
cmp ecx, 0x80
jb 0x100273b1
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x10027a93
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push 0x2c
mov eax, 0x1003df63
call fcn.100296da
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
xor esi, esi
mov eax, edi
mov dword [ebp - 0x30], esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10027ab2
sub eax, ecx
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 0xf
call fcn.10006a33
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x30], 0
mov dword [ebp - 4], esi
jbe 0x10027bb7
jmp 0x10027ae3
mov edi, dword [ebp + 0xc]
movsx eax, byte [esi + edi]
mov al, byte [eax + 0x100474d8]
inc esi
cmp esi, dword [ebp - 0x30]
jae 0x10027af7
cmp al, 0xff
je 0x10027ae3
cmp al, 0xff
je 0x10027bb7
movsx ecx, byte [esi + edi]
mov cl, byte [ecx + 0x100474d8]
inc esi
mov byte [ebp - 0x32], cl
cmp esi, dword [ebp - 0x30]
jae 0x10027b17
cmp cl, 0xff
je 0x10027aff
cmp cl, 0xff
je 0x10027bb7
sar cl, 4
shl al, 2
and cl, 3
or cl, al
movzx eax, cl
push eax
lea edi, [ebp - 0x2c]
call fcn.1000bc18
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
inc esi
cmp al, 0x3d
je 0x10027bb7
movsx eax, al
mov al, byte [eax + 0x100474d8]
mov byte [ebp - 0x31], al
cmp esi, dword [ebp - 0x30]
jae 0x10027b57
cmp al, 0xff
je 0x10027b37
cmp al, 0xff
je 0x10027bb7
mov cl, al
mov al, byte [ebp - 0x32]
sar cl, 2
shl al, 4
and cl, 0xf
or cl, al
movzx eax, cl
push eax
lea edi, [ebp - 0x2c]
call fcn.1000bc18
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
inc esi
cmp al, 0x3d
je 0x10027bb7
movsx eax, al
mov cl, byte [eax + 0x100474d8]
cmp esi, dword [ebp - 0x30]
jae 0x10027b95
cmp cl, 0xff
je 0x10027b77
cmp cl, 0xff
je 0x10027bb7
mov al, byte [ebp - 0x31]
shl al, 6
or al, cl
movzx eax, al
push eax
lea edi, [ebp - 0x2c]
call fcn.1000bc18
cmp esi, dword [ebp - 0x30]
jb 0x10027ae0
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
push eax
call fcn.10004af9
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.100057e3
mov eax, dword [ebp - 0x38]
call fcn.1002975d
ret

Function at 0x10027e27
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 4
shl eax, 4
pop edx
mov esi, ecx
lea edi, [eax + ecx + 0x3c]
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, edi
mov bl, byte [ecx]
xor byte [esi + eax], bl
inc eax
add ecx, edx
cmp eax, edx
jl 0x10027e41
inc edi
add esi, edx
dec dword [ebp - 4]
jne 0x10027e3d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10027f5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10050060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 4
lea esi, [ebp - 8]
lea ecx, [eax + 4]
pop edi
mov al, byte [esi - 0xc]
mov dl, byte [esi - 8]
call fcn.10028122
mov bl, al
mov al, dl
call fcn.10028122
xor bl, al
xor bl, byte [esi - 4]
mov al, dl
xor bl, byte [esi]
xor bl, dl
mov byte [ecx - 4], bl
call fcn.10028122
mov bl, al
mov al, byte [esi - 4]
call fcn.10028122
xor bl, al
xor bl, byte [esi - 0xc]
mov al, byte [esi - 4]
xor bl, byte [esi]
xor bl, al
mov byte [ecx], bl
call fcn.10028122
mov bl, al
mov al, byte [esi]
call fcn.10028122
xor bl, al
mov al, byte [esi]
xor bl, dl
xor bl, byte [esi - 0xc]
xor bl, al
mov byte [ecx + 4], bl
call fcn.10028122
mov bl, al
mov al, byte [esi - 0xc]
call fcn.10028122
xor bl, al
xor bl, dl
xor bl, byte [esi - 4]
xor bl, byte [esi - 0xc]
inc ecx
mov byte [ecx + 7], bl
inc esi
dec edi
jne 0x10027f84
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002874e
leave
ret 4

Function at 0x10028011
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10050060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x10]
lea esi, [eax + 4]
mov dword [ebp - 0x1c], 4
mov al, byte [edi - 4]
mov bl, byte [edi + 4]
call fcn.1002819e
push ebx
mov dl, al
call fcn.10028177
xor dl, al
movzx eax, byte [edi + 8]
push eax
call fcn.10028132
xor dl, al
movzx eax, byte [edi]
push eax
call fcn.10028150
xor dl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi - 4], dl
call fcn.10028132
push ebx
mov byte [ebp - 0x15], al
call fcn.10028150
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [edi + 8]
push eax
mov byte [ebp - 0x15], cl
call fcn.10028177
mov cl, byte [ebp - 0x15]
xor cl, al
mov al, byte [edi]
mov byte [ebp - 0x15], cl
call fcn.1002819e
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi], cl
call fcn.10028177
mov bl, al
mov al, byte [edi + 4]
call fcn.1002819e
movzx edx, byte [edi + 8]
push edx
xor bl, al
call fcn.10028150
xor bl, al
movzx eax, byte [edi]
push eax
call fcn.10028132
xor bl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi + 4], bl
call fcn.10028150
mov bl, al
movzx eax, byte [edi + 4]
push eax
call fcn.10028132
xor bl, al
mov al, dl
call fcn.1002819e
xor bl, al
movzx eax, byte [edi]
push eax
call fcn.10028177
xor bl, al
mov byte [esi + 8], bl
inc esi
inc edi
dec dword [ebp - 0x1c]
jne 0x1002803d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002874e
leave
ret 4

Function at 0x1002874e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10050060]
jne 0x10028758
repz ret
jmp fcn.1002977b
Function at 0x100336a2
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.10029f01
and dword [ebp - 4], 0
cmp dword [0x1005365c], 0
mov ebx, eax
jne 0x10033753
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10033804
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10033804
push eax
call fcn.10029e8f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1005365c], eax
call esi
push eax
call fcn.10029e8f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10053660], eax
call esi
push eax
call fcn.10029e8f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10053664], eax
call esi
push eax
call fcn.10029e8f
pop ecx
mov dword [0x1005366c], eax
test eax, eax
je 0x10033753
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10029e8f
pop ecx
mov dword [0x10053668], eax
mov eax, dword [0x10053668]
cmp eax, ebx
je 0x100337ab
cmp dword [0x1005366c], ebx
je 0x100337ab
push eax
call fcn.10029f0a
push dword [0x1005366c]
mov esi, eax
call fcn.10029f0a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100337ab
test edi, edi
je 0x100337ab
call esi
test eax, eax
je 0x100337a2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100337a2
test byte [ebp - 0xc], 1
jne 0x100337ab
or dword [ebp + 0x10], 0x200000
jmp 0x100337e4
mov eax, dword [0x10053660]
cmp eax, ebx
je 0x100337e4
push eax
call fcn.10029f0a
pop ecx
test eax, eax
je 0x100337e4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100337e4
mov eax, dword [0x10053664]
cmp eax, ebx
je 0x100337e4
push eax
call fcn.10029f0a
pop ecx
test eax, eax
je 0x100337e4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1005365c]
call fcn.10029f0a
pop ecx
test eax, eax
je 0x10033804
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10033806
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40b823
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40b814
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40b951
mov eax, dword [0x41911c]
cmp eax, 1
je 0x40b92b
test eax, eax
jne 0x40b854
cmp dword [0x411488], 1
je 0x40b92b
cmp edx, 0xfc
je 0x40b951
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b88b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408910
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b8ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408910
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41050c
push edi
call fcn.00408fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408750
lea eax, [ebp - 0xa0]
push 0x4104ec
push eax
call fcn.00408750
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e2c6
add esp, 0x2c
pop edi
jmp 0x40b951
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.00408910
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x403fa0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441b3b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x45a780]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x410
mov dword [ebp - 0x23c], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x404170
lea eax, [ebp - 0x234]
push eax
push 4
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x404170
mov eax, dword [ebp - 0x234]
mov ecx, 4
shr eax, 2
mul ecx
mov esi, eax
mov eax, 0xffffffff
cmovb esi, eax
push esi
call fcn.00435cd4
mov edi, eax
add esp, 4
test edi, edi
je 0x404051
push esi
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x404053
xor edi, edi
mov dword [ebp - 0x240], edi
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x234]
push edi
push ebx
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x404163
xor esi, esi
test dword [ebp - 0x234], 0xfffffffc
jbe 0x404163
nop
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push eax
push dword [edi + esi*4]
push ebx
call sub.KERNEL32.dll_K32GetModuleFileNameExW
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402000
mov eax, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 7
push 0
mov byte [ebp - 4], 1
lea ecx, [eax + eax]
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x238]
push eax
call fcn.00404bb0
mov ecx, dword [ebp - 0x238]
push 0
push 2
push 0x445640
call fcn.00404bb0
mov ecx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x404151
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404147
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40418c
push ecx
push edx
call fcn.00435cc6
add esp, 8
mov eax, dword [ebp - 0x234]
inc esi
shr eax, 2
cmp esi, eax
jb 0x404090
test edi, edi
je 0x404170
push edi
call fcn.00435cdd
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00435b6e
mov esp, ebp
pop ebp
ret
call fcn.00436ea0
int3
Function at 0x405830
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x45a780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push str.RshFileMap000
push 0x34
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4058ab
push 0x34
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [eax + 0x10]
add eax, 0x14
push eax
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4058d4
mov dword [esi], 0
mov dword [esi + 4], 0x3a4
mov dword [esi + 8], 0x411
mov dword [esi + 0xc], 0xfffffde4
mov dword [esi + 0x10], 0x64
mov dword [esi + 0x14], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
lea eax, [ebp - 0x408]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
test eax, eax
je 0x405a1b
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405926
pop edi
pop esi
mov eax, 0xffffd8ed
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435b6e
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x40c]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a05
mov eax, 0x5a4d
cmp word [ebp - 0x404], ax
jne 0x405a05
push edi
call ebx
lea edi, [ebp - 0x404]
mov ebx, 0x14c
add edi, dword [ebp - 0x3c8]
movzx eax, word [edi + 4]
cmp ax, bx
je 0x405999
mov ecx, 0x8664
cmp ax, cx
je 0x405999
pop edi
pop esi
mov eax, 0xffffd8e5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435b6e
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x34]
push str.RcpEvent000
push 0
push 0
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x28]
push 0
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push str.RcpFileMap000
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 4
push 0
push 0
push 0xf001f
push eax
mov dword [esi + 0x38], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
mov dword [esi + 0x3c], eax
cmp word [edi + 4], bx
mov eax, 0xffffd8ef
pop edi
pop esi
cmove eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435b6e
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffd8e6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435b6e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffd8ec
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435b6e
mov esp, ebp
pop ebp
ret