joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ad890
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10158f58
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10200c9c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.icu_69::UnicodeMatcher.0
push dword [ebp + 0x18]
lea eax, [esi + 0x34]
mov dword [ebp - 4], 0
push dword [ebp + 0x14]
mov dword [esi], vtable.icu_69::UnicodeSet.0
push dword [ebp + 0x10]
mov dword [esi + 4], vtable.icu_69::UnicodeSet.1.0
push dword [ebp + 0xc]
mov dword [esi + 8], eax
push dword [ebp + 8]
mov dword [esi + 0xc], 0x19
mov dword [esi + 0x10], 1
mov byte [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10051290
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x100ad950
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10158f88
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10200c9c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.icu_69::UnicodeMatcher.0
push dword [ebp + 0x14]
lea eax, [esi + 0x34]
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov dword [esi], vtable.icu_69::UnicodeSet.0
push dword [ebp + 0xc]
mov dword [esi + 4], vtable.icu_69::UnicodeSet.1.0
push dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x19
mov dword [esi + 0x10], 1
mov byte [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10051290
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 0x100ae130
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10159098
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10200c9c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.icu_69::UnicodeMatcher.0
push dword [ebp + 0xc]
lea eax, [esi + 0x34]
mov dword [ebp - 4], 0
push dword [ebp + 8]
mov dword [esi], vtable.icu_69::UnicodeSet.0
mov dword [esi + 4], vtable.icu_69::UnicodeSet.1.0
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x19
mov dword [esi + 0x10], 1
mov byte [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10051290
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40fa80
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40fad8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fad8
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40fab8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40fad8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fad3
test al, 0x10
je 0x40fad3
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40fad8
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4101c0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4101f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_succ__error_code_d
call fcn.0044ceb0
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4101ef
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41023a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41023a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_succ__error_d
call fcn.0044ceb0
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x1e288f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x1ad6015
lea edi, [esi - 0x16d5015]
push edi
jmp 0x1e2890a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1e28911
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1e28900
mov eax, 1
add ebx, ebx
jne 0x1e28923
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1e28934
jne 0x1e28953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1e28953
dec eax
add ebx, ebx
jne 0x1e28940
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1e28918
add ebx, ebx
jne 0x1e2894f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1e289a5
xor ecx, ecx
sub eax, 3
jb 0x1e2896b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1e289da
sar eax, 1
mov ebp, eax
jmp 0x1e28976
add ebx, ebx
jne 0x1e28976
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1e28944
inc ecx
add ebx, ebx
jne 0x1e28984
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1e28944
add ebx, ebx
jne 0x1e28991
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1e28986
jne 0x1e289a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1e28986
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1e289c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1e289b6
jmp 0x1e28906
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1e289c4
add edi, ecx
jmp 0x1e28906
pop esi
mov edi, esi
mov ecx, 0x8ad1f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1e289e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x1e289e7
lea edi, [esi + 0x1a25000]
mov eax, dword [edi]
or eax, eax
je 0x1e28a4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a2a18c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a2a2a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1e28a0d
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a2a2a8]
or eax, eax
je 0x1e28a49
mov dword [ebx], eax
add ebx, 4
jmp 0x1e28a2a
call dword [esi + 0x1a2a2b8]
mov ebp, dword [esi + 0x1a2a2ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x1e28a83
sub esp, 0xffffff80
jmp 0x189d324
Function at 0x1021278e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1021279d
pop dword [ebp - 0x30]
mov eax, 0x1021279d
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x7a119d8b
sub dword [ebp - 0x40], 0x2bbf5840
mov dword [ebp - 0x3c], 0x7ba5cda3
add dword [ebp - 0x3c], 0xb68d7ea2
mov dword [ebp - 0x38], 0x605646a
add dword [ebp - 0x38], 0x4646dfc4
mov dword [ebp - 0x34], 0xf1e9a7bb
sub dword [ebp - 0x34], 0xf1e9a7bb
lea eax, [ebp - 0x40]
push eax
mov eax, 0x34f27aed
sub eax, 0x24ba9da1
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xbf16b590
add dword [ebp - 0x40], 0xb55bb3c6
mov dword [ebp - 0x3c], 0xf3541be
sub dword [ebp - 0x3c], 0xcdc8e049
mov dword [ebp - 0x38], 0x27f11850
add dword [ebp - 0x38], 0x3b7e541c
mov dword [ebp - 0x34], 0xf6f8b6fd
add dword [ebp - 0x34], 0x9074903
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3a658
push 0
call eax
mov ecx, 0x270358bd
add ecx, 0xd8fcecdc
xor esi, esi
add esi, eax
mov edi, 0xf7fb0255
add edi, 0x1841f1ab
add edi, dword [ebp - 0x30]
mov edx, 0xf6645982
add edx, 0x746b58c6
xor dword [ebp - 0x2c], 0x8f5de33
mov ebx, dword [edi]
xor dword [ebp - 0x20], edx
sub ebx, edx
mov dword [esi], ebx
xor dword [ebp - 0x20], eax
add esi, 0xa2f2af55
add esi, 0x5d0d50af
add edi, 0x71168924
sub edi, 0x71168920
loop 0x102128b7
add eax, 0x106f99c0
add eax, 0xef916f77
mov ebx, eax
add eax, 0x69e157ca
sub eax, 0x69e157c5
mov ecx, 0xdc6f2ade
sub ecx, 0xcc6f2ade
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x10217c10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [0x1038000c]
xor edx, ebp
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
mov esi, eax
jb 0x10217c34
mov esi, dword [eax]
mov edi, 0x811c9dc5
test edx, edx
je 0x10217c50
xor ebx, ebx
movzx eax, byte [esi + ebx]
xor eax, edi
imul edi, eax, 0x1000193
inc ebx
cmp edx, ebx
jne 0x10217c3f
lea esi, [ebp - 0x18]
push edi
push dword [ebp + 8]
push esi
call fcn.10218130
xor ebx, ebx
cmp dword [esi + 4], 0
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10212780
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10218000
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, dword [ebp + 8]
mov eax, dword [0x1038000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 0x10
mov edi, esi
jb 0x10218023
mov edi, dword [esi]
mov dword [ebp - 0x2c], edx
mov ebx, 0x811c9dc5
test eax, eax
je 0x10218042
xor edx, edx
movzx esi, byte [edi + edx]
xor esi, ebx
imul ebx, esi, 0x1000193
inc edx
cmp eax, edx
jne 0x10218031
lea esi, [ebp - 0x18]
mov edi, ecx
push ebx
push dword [ebp + 8]
push esi
call fcn.10218130
mov eax, dword [esi + 4]
test eax, eax
je 0x10218075
mov esi, dword [ebp - 0x2c]
mov dword [esi], eax
mov byte [esi + 4], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10212780
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [edi + 8], 0x7ffffff
je 0x10218123
lea edx, [edi + 4]
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call fcn.102181b0
add esp, 4
mov eax, dword [edi + 8]
inc eax
movq xmm0, qword [0x102c3120]
movd xmm1, eax
por xmm1, xmm0
subsd xmm1, xmm0
cvtsd2ss xmm1, xmm1
movss xmm2, dword [edi + 0x1c]
orpd xmm2, xmm0
subsd xmm2, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm2
divss xmm1, xmm0
ucomiss xmm1, dword [edi]
jbe 0x102180f3
mov ecx, edi
call fcn.10218270
mov eax, dword [ebp - 0x1c]
add eax, 8
lea esi, [ebp - 0x28]
mov ecx, edi
push ebx
push eax
push esi
call fcn.10218130
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
jmp 0x102180f6
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
mov edx, dword [ecx + 4]
mov dword [ecx + 4], 0
mov ecx, edi
push edx
push eax
push ebx
call fcn.10218310
mov dword [esi], eax
mov byte [esi + 4], 1
lea ecx, [ebp - 0x20]
call fcn.10218360
jmp 0x10218061
push str.unordered_map_set_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
int3
Function at 0x9164e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x325000]
push edi
jmp 0x9164fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x916501
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9164f0
mov eax, 1
add ebx, ebx
jne 0x916513
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x916524
jne 0x916543
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x916543
dec eax
add ebx, ebx
jne 0x916530
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x916508
add ebx, ebx
jne 0x91653f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x916595
xor ecx, ecx
sub eax, 3
jb 0x91655b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9165ca
sar eax, 1
mov ebp, eax
jmp 0x916566
add ebx, ebx
jne 0x916566
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x916534
inc ecx
add ebx, ebx
jne 0x916574
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x916534
add ebx, ebx
jne 0x916581
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x916576
jne 0x916592
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x916576
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9165b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9165a6
jmp 0x9164f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9165b4
add edi, ecx
jmp 0x9164f6
pop esi
mov edi, esi
mov ecx, 0xe272
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9165d2
cmp byte [edi], 0x2d
jne 0x9165d2
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 0x9165d7
lea edi, [esi + 0x505000]
mov eax, dword [edi]
or eax, eax
je 0x916646
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x52d50c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x52d534]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x916604
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x52d538]
or eax, eax
je 0x916640
mov dword [ebx], eax
add ebx, 4
jmp 0x916621
call dword [esi + 0x52d548]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x916677
cmp al, 0xef
ja 0x91666a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x91664c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x916659
mov ebp, dword [esi + 0x52d53c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x25f]
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 0x9166ab
sub esp, 0xffffff80
jmp 0x59d417
Function at 0x4014f8
Capabilities:
Get file size

Disassembly:
mov eax, 0x46d830
call fcn.0045454c
sub esp, 0x134
push ebx
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4015ce
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 4
push ebx
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4015c7
push esi
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x4015bd
lea eax, [ebp + 0xb]
push 1
push eax
lea ecx, [ebp - 0x3c]
push dword [ebp + 0xc]
mov byte [ebp - 0x3d], bl
call fcn.00401889
push 0x103
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00401a19
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.004545a0
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x3c]
call fcn.00401093
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x14]
push esi
call fcn.0040149a
add esp, 0xc
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x401690
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, esi
je 0x4016ed
push edi
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x4016e5
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.004015f3
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4016f3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.0045469e
mov esi, eax
pop ecx
test esi, esi
je 0x401741
xor edx, edx
test ebx, ebx
jbe 0x401741
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x40172b
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404335
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov eax, dword [eax]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x404465
cmp byte [ebp + 0xc], bl
jne 0x4043e9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 1]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x404465
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x40445b
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00454c90
mov eax, esp
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov word [eax], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 8]
call fcn.00454574
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.0040522e
push dword [ebp + 0xc]
jmp 0x40444a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 3]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x404465
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404458
mov esi, dword [ebp + 0xc]
mov dword [ebp + 0xc], esi
cmp word [esi], 0xfeff
jne 0x404434
lea eax, [esi + 2]
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
call fcn.00454574
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0040522e
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x404467
push dword [ebp + 0xc]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40506f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x4050de
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x4050c1
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x4050c1
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x4050c1
mov byte [ebp - 1], 1
jmp 0x4050de
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x4050de
cmp byte [ebp - 1], bl
jne 0x4050de
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x4050c8
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x4096ad
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401166
mov ecx, eax
call fcn.0042b06e
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push dword [esp + 0x18]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4096ee
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.00409743
test eax, eax
jne 0x40973a
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jle 0x40970a
push esi
push edi
mov ecx, ebx
call fcn.00409743
test eax, eax
jne 0x40973a
push 0x4947d8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push esi
push 3
call fcn.00435627
add esp, 0xc
test eax, eax
jge 0x40973a
push edi
push esi
push 4
call fcn.00435627
add esp, 0xc
test eax, eax
jge 0x40973a
xor eax, eax
jmp 0x40973d
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8

Function at 0x40c857
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi + 8], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x40c880
push ebx
push ebx
call fcn.00455746
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x40c898
push ebx
push ebx
call fcn.00455746
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x40c8b0
push ebx
push ebx
call fcn.00455746
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi], eax
jne 0x40c8c6
push ebx
push ebx
call fcn.00455746
push dword [esi + 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00454f00
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x40d4b5
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
xor edi, edi
mov eax, dword [esp + 0xc]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40d4da
call esi
call esi
inc edi
cmp edi, 0x64
jl 0x40d4bf
pop edi
xor eax, eax
pop esi
ret