joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor edi, edi
mov byte [esp + 8], cl
test esi, esi
mov byte [esp + 0x20], dl
jbe 0x4049ba
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x20]
push ebx
and ecx, 0xff
push ebp
and esi, 0xff
lea edx, [ecx + 1]
and edx, 0x800000ff
jns 0x404914
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x10], dl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov bl, byte [ecx + eax]
mov byte [esp + 0x18], bl
and ebx, 0xff
add ebx, esi
and ebx, 0x800000ff
jns 0x404941
dec ebx
or ebx, 0xffffff00
inc ebx
mov byte [esp + 0x28], bl
mov bl, byte [esp + 0x18]
mov esi, dword [esp + 0x28]
mov byte [esp + 0x14], bl
and esi, 0xff
mov ebp, dword [esp + 0x14]
and ebp, 0xff
mov bl, byte [esi + eax]
mov byte [ecx + eax], bl
mov bl, byte [esp + 0x14]
mov byte [esi + eax], bl
xor ebx, ebx
mov bl, byte [ecx + eax]
add ebx, ebp
and ebx, 0x800000ff
jns 0x404985
dec ebx
or ebx, 0xffffff00
inc ebx
mov ebp, dword [esp + 0x20]
and ebx, 0xff
mov bl, byte [ebx + eax]
xor byte [edi + ebp], bl
mov ebx, dword [esp + 0x24]
inc edi
cmp edi, ebx
jb 0x404901
mov cl, byte [esp + 0x28]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
add esp, 0xc
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
add esp, 0xc
ret

Function at 0x4049d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x400
xor ecx, ecx
lea edx, [esp]
push esi
mov eax, ecx
mov esi, 8
test al, 1
je 0x4049f1
shr eax, 1
xor eax, 0xedb88320
jmp 0x4049f3
shr eax, 1
dec esi
jne 0x4049e4
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x4049dd
mov ecx, dword [esp + 0x40c]
or eax, 0xffffffff
mov edx, ecx
dec ecx
test edx, edx
je 0x404a3c
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x408]
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [esp + edx*4 + 8]
xor eax, edx
inc ecx
dec esi
jne 0x404a20
pop ebx
not eax
pop esi
add esp, 0x400
ret
Function at 0x404d20
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Parse pe header

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebp
push esi
cmp eax, 0x40
push edi
mov dword [esp + 0xc], ecx
jb 0x404eb3
mov ebp, dword [esp + 0x14]
cmp word [ebp], 0x5a4d
jne 0x404eb3
mov esi, dword [ebp + 0x3c]
lea edx, [esi + 0xf8]
cmp eax, edx
jl 0x404eb3
mov edx, dword [esi + ebp]
add esi, ebp
cmp edx, 0x4550
jne 0x404eb3
test byte [esi + 0x17], 0x20
jne 0x404eb3
cmp word [esi + 0x14], 0xe0
jne 0x404eb3
lea edi, [esi + 0xf8]
push edi
push esi
push eax
push ebp
call fcn.00404c60
mov ecx, dword [esp + 0x28]
test eax, eax
mov dword [ecx], eax
je 0x404eb3
push ebx
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov ebx, dword [esp + 0x28]
test eax, eax
mov dword [ebx], eax
je 0x404ea6
mov edx, dword [esi + 0x54]
xor ecx, ecx
mov cx, word [esi + 6]
test ecx, ecx
jle 0x404ddb
add edi, 0x14
mov esi, dword [edi]
test esi, esi
je 0x404dd5
cmp esi, edx
jae 0x404dd5
mov edx, esi
add edi, 0x28
dec ecx
jne 0x404dc9
push edx
push ebp
push eax
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword [ebx]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [eax + 0x3c]
add eax, edx
mov dword [edi], eax
add eax, 0xf8
mov dword [ebp], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x54]
push ecx
mov ecx, dword [esp + 0x14]
push edx
call fcn.00404c40
mov ecx, dword [ebx]
mov esi, eax
add esi, ecx
mov ecx, dword [edi]
xor ebx, ebx
cmp word [ecx + 6], bx
mov dword [esp + 0x1c], ebx
jbe 0x404ea6
mov eax, dword [ebp]
add eax, ebx
mov edx, dword [eax + 0xc]
test edx, edx
je 0x404e3b
mov esi, dword [esp + 0x28]
add edx, dword [esi]
mov esi, edx
mov edx, dword [eax + 0x10]
test edx, edx
je 0x404e7b
mov ecx, dword [eax + 0x14]
mov eax, dword [esp + 0x18]
add ecx, eax
push edx
push ecx
push esi
call dword [sym.imp.msvcrt.dll_memmove]
mov edx, dword [ebp]
add esp, 0xc
mov ecx, dword [edx + ebx + 8]
lea eax, [edx + ebx]
mov eax, dword [edx + ebx + 0x10]
cmp ecx, eax
jae 0x404e72
mov ecx, dword [edi]
mov edx, dword [ecx + 0x38]
push edx
push eax
jmp 0x404e83
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
push edx
push ecx
jmp 0x404e83
mov ecx, dword [ecx + 0x38]
mov edx, dword [eax + 8]
push ecx
push edx
mov ecx, dword [esp + 0x18]
call fcn.00404c40
mov ecx, dword [edi]
add esi, eax
mov eax, dword [esp + 0x1c]
xor edx, edx
mov dx, word [ecx + 6]
inc eax
add ebx, 0x28
cmp eax, edx
mov dword [esp + 0x1c], eax
jl 0x404e27
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0x18
Function at 0x404f50
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x74
push ebp
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
push edx
push eax
push eax
push 4
push eax
push eax
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0xa0]
push eax
push 0
mov dword [esp + 0x60], 0x44
call dword [sym.imp.kernel32.dll_CreateProcessA]
mov ebp, eax
test ebp, ebp
je 0x405039
mov edi, dword [esp + 0x88]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x10]
push ebx
mov dword [edi], ecx
mov ecx, dword [esp + 0x94]
push esi
mov esi, dword [esp + 0x8c]
mov dword [eax], edx
mov edx, dword [esp + 0x1c]
push esi
mov dword [ecx], edx
mov dword [esi], 0x10007
mov eax, dword [eax]
push eax
call dword [sym.imp.kernel32.dll_GetThreadContext]
mov edx, dword [esi + 0xa4]
mov ebx, dword [esp + 0x9c]
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push 4
add edx, 8
push ebx
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadProcessMemory]
mov esi, dword [ebx]
mov edx, dword [edi]
lea ecx, [esp + 0x24]
push 0x1c
push ecx
push esi
push edx
call dword [sym.imp.kernel32.dll_VirtualQueryEx]
mov eax, dword [esp + 0xa0]
mov dword [eax], 0x7c2
mov ecx, dword [ebx]
sub esi, ecx
mov dword [eax], esi
pop esi
pop ebx
mov eax, ebp
pop edi
pop ebp
add esp, 0x74
ret 0x1c
mov eax, ebp
pop edi
pop ebp
add esp, 0x74
ret 0x1c
Function at 0x405270
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov dword [esp + 0x20], ecx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40531f
test ebp, ebp
je 0x40531f
push ebx
push esi
push edi
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
or edi, 0xffffffff
push eax
push esi
push ebx
push ebp
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x405303
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push esi
push ebx
call fcn.00405330
mov edi, eax
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret 0xc
or eax, 0xffffffff
pop ebp
add esp, 8
ret 0xc

Function at 0x4053c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x4053dc
xor eax, eax
pop esi
add esp, 0x104
ret
push edi
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
push 0x408988
push ecx
mov byte [esp + 0x12], 0
call dword [sym.imp.kernel32.dll_lstrcat]
mov ecx, dword [esp + 0x114]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.kernel32.dll_lstrcpy]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret

Function at 0x405436
Capabilities:
Get common file path

Disassembly:
mov dword [0x401c0e], 0xeeeeeeee

Function at 0x405440
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x40545c
xor eax, eax
pop esi
add esp, 0x104
ret
push edi
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
push 0x407034
push ecx
call dword [sym.imp.kernel32.dll_lstrcat]
mov ecx, dword [esp + 0x114]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.kernel32.dll_lstrcpy]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret
Function at 0x4054b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x4054cc
xor eax, eax
pop esi
add esp, 0x104
ret
push edi
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
push 0x4089b8
push ecx
call dword [sym.imp.kernel32.dll_lstrcat]
mov ecx, dword [esp + 0x114]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.kernel32.dll_lstrcpy]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret

Function at 0x405520
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x40553c
xor eax, eax
pop esi
add esp, 0x104
ret
push edi
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push 0x40862c
push ecx
call dword [sym.imp.kernel32.dll_lstrcat]
mov ecx, dword [esp + 0x114]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.kernel32.dll_lstrcpy]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret

Function at 0x405590
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x4055ac
xor eax, eax
pop esi
add esp, 0x104
ret
push edi
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
push 0x40862c
push ecx
call dword [sym.imp.kernel32.dll_lstrcat]
mov ecx, dword [esp + 0x114]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.kernel32.dll_lstrcpy]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret

Function at 0x405600
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x40561c
xor eax, eax
pop esi
add esp, 0x104
ret
push edi
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
push 0x4089c8
push ecx
mov byte [esp + 0x12], 0
call dword [sym.imp.kernel32.dll_lstrcat]
mov ecx, dword [esp + 0x114]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.kernel32.dll_lstrcpy]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret
Function at 0x4071e2
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [0x406548], 0x11aa22cc
jmp 0x407594
mov eax, dword fs:[0x30]
nop
mov eax, dword [eax + 0x18]
nop
mov eax, dword [eax + 0xc]
cmp eax, 2
je 0x407182
nop
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x409b20]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
nop
nop
call fcn.004072b0
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
ret
jmp loc.0040b09e
Function at 0x40b018
Capabilities:
Packed with generic packer

Disassembly:
lea esp, [esp + 0xc]
je 0x40b0b8
test bh, bh
pushfd
mov byte [esp], 0x72
push dword [esp + 4]
popfd
pushal
lea esp, [esp + 0x28]
jmp 0x40b1c9
pushfd
push dword [esp + 4]
popfd
pushal
lea esp, [esp + 0x28]
jmp 0x40b0d5
push edx
not edx
not ah
jmp 0x40b1f7
lahf
stc
mov eax, dword [ebx]
call fcn.0040b25b
mov word [esp], 0xd00f
jmp 0x40b1f2
call fcn.0040b0c8
lea esp, [esp + 4]
popal
pushal
lea esp, [esp + 0x20]
jmp loc.004067ed

Function at 0x40b187
Capabilities:
Packed with generic packer

Disassembly:
pushal
pushfd
lea esp, [esp + 0x28]
pushal
pushal
mov dword [esp + 0x1c], 0x406824
add esp, 0x1c
bsf ax, sp
pop ebx
sal cx, 0xd
sub bx, bx
movzx ax, bl
xadd ax, cx
aad 0xfd
add ebx, 0x6560
sal cx, 0xe
lahf
sar cl, cl
push 0xae
adc ax, dx
cmc
aam 0x13
pop ecx

Function at 0x409986
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409986
lcall 0x5de5, 0x8b10c483
jmp fcn.00781ad0
Function at 0x9bb455
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9bb47c
call fcn.0095d988
mov dword [eax], esi
call fcn.0095d975
push 0x16
pop esi
mov dword [eax], esi
call fcn.0095e5ca
mov eax, esi
jmp 0x9bb4d1
test dword [ebp + 0xc], 0xfffffff9
jne 0x9bb462
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9bb4a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0095d99b
pop ecx
call fcn.0095d975
mov eax, dword [eax]
jmp 0x9bb4d1
test al, 0x10
jne 0x9bb4cf
test al, 1
je 0x9bb4cf
test byte [ebp + 0xc], 2
je 0x9bb4cf
call fcn.0095d988
mov dword [eax], 5
call fcn.0095d975
mov dword [eax], 0xd
jmp 0x9bb4a0
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x6975ed1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x37a45c13
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
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
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
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 0x40894f
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
sub edx, edx
mov eax, edx
call fcn.00408975
xor dword [edi], ecx
inc edi
add eax, edx
cmp edi, esi
jne fcn.0040894f
add eax, 0x582a886c
ret
Function at 0x10002afe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x1009d8d0], 1
mov dword [ebp - 0x214], edi
jne 0x10002b4a
mov eax, dword [0x1009d194]
or dword [0x1009d8d0], 1
mov ecx, 0x1009d194
call dword [eax + 0xc]
add eax, 0x10
push 0x1007ace0
mov dword [0x1009d8cc], eax
call fcn.100541bb
pop ecx
mov eax, dword [0x1009d8cc]
cmp dword [eax - 0xc], edi
jne 0x10002b93
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.100541d0
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x1009d8cc
call fcn.100030a8
mov eax, dword [0x1009d8cc]
add eax, 0xfffffff0
call fcn.1000313b
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.10053c51
leave
ret

Function at 0x10002bb4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x1009d8c8], 1
mov dword [ebp - 0x214], edi
jne 0x10002c00
mov eax, dword [0x1009d194]
or dword [0x1009d8c8], 1
mov ecx, 0x1009d194
call dword [eax + 0xc]
add eax, 0x10
push 0x1007aced
mov dword [0x1009d8c4], eax
call fcn.100541bb
pop ecx
mov eax, dword [0x1009d8c4]
cmp dword [eax - 0xc], edi
jne 0x10002c49
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.100541d0
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x1009d8c4
call fcn.100030a8
mov eax, dword [0x1009d8c4]
add eax, 0xfffffff0
call fcn.1000313b
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.10053c51
leave
ret
Function at 0x10002c6a
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x10075a90
call fcn.1005acb8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x10002e25
mov eax, dword [0x1009d194]
mov esi, 0x1009d194
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
mov eax, dword [0x1009d194]
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
cmp dword [ebx - 0xc], edi
jne 0x10002ded
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x14]
call fcn.10002e8f
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10002ce1
mov esi, edi
call fcn.100034a5
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x10002ded
lea esi, [ebp - 0x18]
call fcn.100034a5
lea esi, [ebp - 0x1c]
call fcn.10002afe
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.10002e8f
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10003475
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x10002d69
mov esi, edi
call fcn.100255cb
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.10002f4d
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.10002e8f
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10003475
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10002d69
mov esi, edi
call fcn.100034a5
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x10002ded
lea esi, [ebp - 0x18]
call fcn.100034a5
lea esi, [ebp - 0x1c]
call fcn.10002bb4
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.10002e8f
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10003475
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x10002de9
mov esi, edi
call fcn.100255cb
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.10002f4d
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.10002e8f
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10003475
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10002de9
mov esi, edi
call fcn.100034a5
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x10002e09
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10002e09
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x10002e12
mov eax, dword [ebp - 0x20]
push dword [eax]
call esi
mov edi, eax
lea eax, [ebx - 0x10]
call fcn.10003475
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10003475
mov eax, edi
call fcn.1005ad3b
ret
Function at 0x1000323e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10003255
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1000328a
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10003286
cmp edi, eax
jae 0x1000328a
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10003278
cmp edi, eax
jb 0x1000328e
xor eax, eax
jmp 0x10003298
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x100034e5
Capabilities:
Hash data with md5

Disassembly:
push 0x5c
push 0
push esi
call fcn.100541d0
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
ret