joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101001b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101150e0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10152034]
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
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.10100d30
add esp, 4
cmp dword [ebp + 0x18], 0
jle 0x1010038c
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.10001d60
call fcn.101005f0
add esp, 0x18
test al, al
je 0x1010022f
mov bl, 1
jmp 0x1010038e
call fcn.10100960
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10007490
mov esi, eax
add esp, 0xc
lea eax, [ebp + 8]
cmp eax, esi
je 0x1010027c
cmp dword [ebp + 0x1c], 8
jb 0x1010025f
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.10001be0
cmp dword [ebp - 0x14], 8
jb 0x1010028d
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [ebp + 8]
push eax
call fcn.10100800
mov ecx, dword [ebp + 0x18]
mov esi, 1
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 4
cmp ecx, esi
jbe 0x1010033d
cmp ecx, esi
jbe 0x10100381
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax + esi*2], 0x5c
jne 0x10100334
push esi
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.1000e030
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.10001d60
call fcn.101005f0
add esp, 0x18
test al, al
jne 0x1010031c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call edi
cmp dword [ebp - 0x14], 8
mov byte [ebp - 4], 0
jb 0x10100331
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp + 0x18]
inc esi
cmp ecx, esi
ja 0x101002b7
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call edi
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.10001d60
call fcn.101005f0
add esp, 0x18
test al, al
je 0x1010038c
mov bl, 1
jmp 0x1010038e
push str.invalid_string_position
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x1010039f
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
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.1010a06b
mov esp, ebp
pop ebp
ret
Function at 0x101005f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10115178
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x10152034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.10100800
add esp, 4
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [ebp + 0x1c], 8
jb 0x1010064e
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10108050
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10115d59
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10152034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.100081b0
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0xc]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.100081b0
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.100081b0
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.10109ff0
add esp, 4
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.10109d70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10109850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push dword [0x10156b90]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x101098a4
push esi
push 0x10
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x1010987a
mov ecx, eax
call fcn.10109010
mov esi, eax
jmp 0x1010987c
xor esi, esi
push dword [0x10156b90]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10109894
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
push dword [0x10156b90]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x6a3e3153
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..text_1
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5922208c
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x10001620
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
push edi
call fcn.10001520
add esp, 4
test al, al
jne 0x1000163b
mov eax, 1
pop edi
ret 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
push 0
push esi
push eax
mov dword [esi], 0
mov edx, dword [edi + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000166f
cmp dword [esi], eax
jne 0x1000166f
pop esi
mov eax, 4
pop edi
ret 0x10
pop esi
xor eax, eax
pop edi
ret 0x10

Function at 0x10001680
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
push edi
call fcn.10001520
add esp, 4
test al, al
jne 0x1000169b
mov eax, 1
pop edi
ret 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
push 0
push esi
push eax
mov dword [esi], 0
mov edx, dword [edi + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100016cf
cmp dword [esi], eax
jne 0x100016cf
pop esi
mov eax, 4
pop edi
ret 0x10
pop esi
xor eax, eax
pop edi
ret 0x10

Function at 0x100027f0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.10001520
add esp, 4
test al, al
jne 0x10002808
xor eax, eax
pop esi
ret 0x14
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push eax
mov dword [eax], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
ret 0x14

Function at 0x10002830
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.10001520
add esp, 4
test al, al
jne 0x10002848
xor eax, eax
pop esi
ret 0x14
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push eax
mov dword [eax], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
ret 0x14

Function at 0x10003fd0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [ecx + 0x130]
push edi
lea eax, [ecx + 4]
lea edi, [edx + ecx + 4]
cmp eax, edi
mov word [ecx + 0x120], 0xaaaa
jae 0x10004026
push esi
lea esp, [esp]
mov dx, word [eax]
xor word [ecx + 0x120], dx
movzx edx, word [ecx + 0x120]
mov si, dx
shr si, 0xf
movzx esi, si
add edx, edx
add eax, 2
or edx, esi
cmp eax, edi
mov word [ecx + 0x120], dx
jb 0x10003ff0
mov ax, dx
pop esi
mov word [edi], ax
pop edi
ret
mov cx, word [ecx + 0x120]
mov word [edi], cx
pop edi
ret
Function at 0x1000f41a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000aaac
xor ebx, ebx
cmp dword [0x10027fd0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1000f4ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1000f45a
xor eax, eax
jmp 0x1000f5b3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1000f453
push eax
call fcn.1000aa49
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10027fd0], eax
call esi
push eax
call fcn.1000aa49
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10027fd4], eax
call esi
push eax
call fcn.1000aa49
mov dword [0x10027fd8], eax
lea eax, [ebp - 8]
push eax
call fcn.10009b81
test eax, eax
pop ecx
pop ecx
je 0x1000f4bd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10007240
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1000f4ef
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000aa49
cmp eax, ebx
pop ecx
mov dword [0x10027fe0], eax
je 0x1000f4ef
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000aa49
pop ecx
mov dword [0x10027fdc], eax
mov eax, dword [0x10027fdc]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1000f568
cmp dword [0x10027fe0], esi
je 0x1000f568
push eax
call fcn.1000aab5
pop ecx
call eax
cmp eax, ebx
je 0x1000f535
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10027fe0]
call fcn.1000aab5
pop ecx
call eax
test eax, eax
je 0x1000f535
test byte [ebp - 0x18], 1
jne 0x1000f568
lea eax, [ebp - 0xc]
push eax
call fcn.10009c30
test eax, eax
pop ecx
je 0x1000f550
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10007240
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1000f55f
or dword [ebp + 0x10], 0x200000
jmp 0x1000f599
or dword [ebp + 0x10], 0x40000
jmp 0x1000f599
mov eax, dword [0x10027fd4]
cmp eax, esi
je 0x1000f599
push eax
call fcn.1000aab5
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000f599
mov eax, dword [0x10027fd8]
cmp eax, esi
je 0x1000f599
push dword [ebp - 4]
push eax
call fcn.1000aab5
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10027fd0]
call fcn.1000aab5
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x28131bdc
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x5c502715
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x4f6b72a3
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x30ee318b
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x100094f0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100096b4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
jmp 0x1000951a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10009521
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10009510
mov eax, 1
add ebx, ebx
jne 0x10009533
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10009528
jne 0x10009544
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10009528
xor ecx, ecx
sub eax, 3
jb 0x10009558
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100095ca
mov ebp, eax
add ebx, ebx
jne 0x10009563
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10009570
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10009594
inc ecx
add ebx, ebx
jne 0x10009580
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10009575
jne 0x10009591
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10009575
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100095b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100095a5
jmp 0x10009516
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100095b4
add edi, ecx
jmp 0x10009516
pop esi
mov edi, esi
mov ecx, 0x12a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100095d2
cmp byte [edi], 1
jne 0x100095d2
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 0x100095d7
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x10009646
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9364]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x938c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10009604
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9390]
or eax, eax
je 0x10009640
mov dword [ebx], eax
add ebx, 4
jmp 0x10009621
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10009677
cmp al, 0xef
ja 0x1000966a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1000964c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10009659
mov ebp, dword [esi + 0x9394]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x100096ab
sub esp, 0xffffff80
jmp 0x100013d0
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp int.00401219
Function at 0x5b9e60
Capabilities:
Accept command line arguments

Disassembly:
push ecx
mov al, byte [0x7d104a]
mov cl, byte [0x7d104d]
mov edx, dword [0x7d1030]
and cl, al
mov eax, dword [0x7d1034]
mov byte [0x7d104d], cl
mov ecx, eax
push esi
shr ecx, 2
sub edx, ecx
xor ecx, ecx
mov cl, byte [0x7d1043]
mov dword [0x7d1030], edx
mov edx, dword [0x7d1038]
push edi
or edx, 7
imul edx, ecx
and eax, edx
mov dword [0x7d1034], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov edi, dword [esp + 0x10]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test esi, esi
je 0x5b9ee6
mov eax, dword [0x7d4acc]
push 0x7d47e8
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x6d9adc
Capabilities:
Encode data using xor

Disassembly:
retf
adc al, byte [edi - 0x6c6518ae]
outsb dx, byte [esi]
nop
pop esi
jp 0x6d9b0e
pop ds
pop edx
mov dword [ebx], esp
sbb dword [ebx], esp
out 0x30, al
pop ss
sbb esi, edi
cmp bl, cl
pop ss
xor dword [esi - 7], edi
xchg edx, eax
mov bh, 0xc9
jp 0x6d9b70
jne 0x6d9a95
lcall 0x4a62, 0x81bbbf43
mov ds, word [ebx + 0x3826cae3]
dec esi
and ebp, dword [esp + edx]
sub al, 0x14
and ch, cl
imul ebx, dword [0xbe7523a2], 0x58f45d1
mov ch, 0x21
jbe 0x6d9b8b
movsd dword es:[edi], dword [esi]
pop ebx
lea esi, [edi - 0x7a]
push ecx
outsb dx, byte fs:[esi]
lahf
or dword [esi], eax
adc dword [ebx + 0xe], edi
dec esp
aas
add byte [edx - 0x6661246a], 0x62
outsb dx, byte fs:[esi]
out 0xf6, eax
push edi
invalid
not byte [edi - 0x10]
pop ebp
inc ebp
adc ecx, dword [eax - 0x7736c00]
dec esp
mov esp, 0xc5e9ee00
out dx, al
dec esi
xor ch, bh
invalid
mov byte [eax], al
xchg esp, eax
invalid
push eax
or ch, dh
push eax
int1
mov bh, 0x5e
jns 0x6d9b41
shl dword [esi], 1
sti
add eax, 0xb80b6f37
mov ch, 0x2e
mov ebp, 0x89bc2480
push ebp
xchg esp, eax
int 0x6f
adc byte [ebx - 0x7f], bh
fadd dword [edx - 0x2b276b58]
lcall 0x9f47, 0xada7abff
out 0xe4, al
cmpsb byte [esi], byte es:[edi]
js 0x6d9bb4
das
ja 0x6d9b3b
mov esp, 0xc33f731b
sub eax, 0x6d4dcd44
mov eax, dword [0x54a6e4ab]
push esp
test eax, 0x8a819214
lcall 0x76fa, 0xb2ad9a82
xor ah, byte [edi + esi*4]
sbb byte [edx + 0x76fab2ad], 0x32
and al, 0xb7
push es
sub esi, dword [edx - 0x4e]
aam 0x6a
je 0x6d9bbb
arpl bp, bx
sal ch, 1
sub eax, 0x3bbb7cd6
sbb ebx, dword [esi + 0x2b]
or byte [edi - 0x52777740], 0x27
push cs
lodsb al, byte [esi]
dec ebx
inc edi
dec edx
cld
push edi
push 0x5ec9ce9a
or edi, edx
dec esi
sti
das
mov bh, 0xfc
and eax, dword [edi]
cmc
mov dh, 0x2f
adc byte [ebx + 0x29fa3fca], ch
xchg byte [esi + 0x52], bh
jne 0x6d9c5f
stosd dword es:[edi], eax
retf 0xfa3f
jge 0x6d9be3
jg 0x6d9c5f
fmul st(5), st(0)
into
inc edi
jo 0x6d9bf9
jb 0x6d9bee
add dword [ebx], ebp
sbb dl, byte [0xaac5235]
scasb al, byte es:[edi]
mov esi, esi
xchg ebx, eax
insd dword es:[edi], dx
push 0xffffffffffffff82
mov ecx, 0x10a28b3a
mov edi, 0xf77531b4
out dx, al
out dx, al
mov esp, 0xd22ca32
out 0x5b, al
pop ss
aas
stosb byte es:[edi], al
pushal
xor byte [esi - 0x48], dl
in eax, dx
hlt
out 0x53, eax
sahf
jae 0x6d9c5a
jne 0x6d9c4a
mov bh, 0xb1
aaa
and byte [eax], bl
sbb ebp, edx
jmp 0x6d9c2a
test eax, 0x6349a00a
stosd dword es:[edi], eax
inc ecx
inc esp
sbb eax, 0xb33bef57
mov dl, dh
repne outsd dx, dword [esi]
cmpsd dword [esi], dword es:[edi]
sub edx, 0xfffffff4
cmp edx, esi
adc ecx, ecx
sbb ah, dh
nop
mov eax, dword [0x808d518e]
wait
jmp 0x6d9c3c
Function at 0x7c7edd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7d13b8
cmp edx, dword [eax]
je 0x7c7eff
add eax, 8
inc ecx
cmp eax, 0x7d1448
jl 0x7c7ef0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7d13b8]
jne 0x7c802d
mov eax, dword [0xbd0d14]
cmp eax, 1
je 0x7c8007
test eax, eax
jne 0x7c7f30
cmp dword [0x7d12e4], 1
je 0x7c8007
cmp edx, 0xfc
je 0x7c802d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c7f67
lea eax, [ebp - 0x1a4]
push 0x7cda58
push eax
call fcn.007c88c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c8d50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c7faa
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c8d50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7cda54
push edi
call fcn.007cac20
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x7cda38
push eax
call fcn.007c88c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c88d0
lea eax, [ebp - 0xa0]
push 0x7cda34
push eax
call fcn.007c88d0
push dword [esi + 0x7d13bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c88d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x7cda0c
push eax
call fcn.007cab94
add esp, 0x2c
pop edi
jmp 0x7c802d
lea eax, [ebp + 8]
lea esi, [esi + 0x7d13bc]
push 0
push eax
push dword [esi]
call fcn.007c8d50
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