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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x114
push ebx
push esi
push edi
test edx, edx
je 0x42c782
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x42c782
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42c782
mov ecx, dword [edx + 0x2c]
shr ecx, 3
cmp dword [ebp + 0x18], ecx
jge 0x42c76b
mov eax, dword [edx + 0x30]
shr eax, 3
cmp dword [ebp + 0x1c], eax
jge 0x42c76b
imul ecx, dword [ebp + 0x1c]
mov eax, dword [edx + 0x38]
add ecx, dword [ebp + 0x18]
movzx ecx, word [eax + ecx*2]
mov eax, dword [ebp + 0x24]
mov ebx, ecx
mov edx, ecx
shr ebx, 0xa
and ebx, 3
shr ecx, 0xc
and edx, 0x3ff
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x42c62e
mov dword [eax], edx
mov esi, dword [esi + 0x44]
mov eax, ecx
mov ecx, dword [edi + 0x40]
sub edx, dword [ebp + 0x14]
shl eax, cl
lea eax, [esi + eax*2]
mov dword [ebp - 4], eax
cmp edx, dword [edi + 0x2c]
jge 0x42c732
test edx, edx
js 0x42c732
mov eax, dword [edi + 0x4c]
xor esi, esi
mov ebx, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
mov eax, esi
mov dword [ebp - 8], ecx
mov dword [ebp + 8], eax
mov cl, byte [eax + ecx]
test cl, cl
jne 0x42c67a
cmp dword [ebp + 0x28], esi
je 0x42c67a
mov dword [ebp + eax*4 - 0x114], esi
jmp 0x42c6dc
movzx eax, cl
mov edx, esi
mov ecx, dword [edi + 0x40]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0xc]
add eax, ecx
cmp eax, dword [ebx + 0x30]
jge 0x42c69b
mov eax, dword [ebp - 4]
movzx edx, word [eax + ecx*2]
test ecx, ecx
jne 0x42c6aa
cmp dword [ebp + 0x28], esi
jne 0x42c6aa
mov eax, dword [ebx + 0x44]
movzx edx, word [eax]
mov ecx, edx
mov eax, edx
shr ecx, 0xa
and eax, 0x1f
and ecx, 0x1f
shl eax, 0xa
or ecx, eax
and edx, 0x83e0
or ecx, edx
push ecx
call fcn.00405a06
pop ecx
mov ecx, dword [ebp + 8]
or eax, 0xff000000
mov dword [ebp + ecx*4 - 0x114], eax
mov eax, ecx
mov ecx, dword [ebp - 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, 0x40
jl 0x42c665
mov ebx, dword [ebp - 0x10]
test ebx, ebx
jne 0x42c706
mov edi, dword [ebp + 0x20]
lea esi, [ebp - 0x114]
push 0x40
pop ecx
rep movsd dword es:[edi], dword [esi]
jmp 0x42c794
test bl, 1
mov ecx, esi
push 7
pop eax
cmovne ecx, eax
test bl, 2
je 0x42c719
xor ecx, 0x38
mov edx, dword [ebp + 0x20]
mov eax, esi
xor eax, ecx
mov eax, dword [ebp + eax*4 - 0x114]
mov dword [edx + esi*4], eax
inc esi
cmp esi, 0x40
jl 0x42c71c
jmp 0x42c794
cmp dword [ebp + 0x28], 0
jne 0x42c782
movzx edx, word [esi]
mov ecx, edx
mov eax, edx
shr ecx, 0xa
and eax, 0x1f
and ecx, 0x1f
shl eax, 0xa
or ecx, eax
and edx, 0x83e0
or ecx, edx
push ecx
call fcn.00405a06
mov edi, dword [ebp + 0x20]
or eax, 0xff000000
pop ecx
push 0x40
pop ecx
rep stosd dword es:[edi], eax
jmp 0x42c794
push 0x100
push 0
push dword [ebp + 0x20]
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
inc eax
jmp 0x42c796
push 0x100
push 0
push dword [ebp + 0x20]
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42fabc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push 0x42fad5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x430be5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
xor eax, eax
mov esi, 0x208
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call sub.msvcrt.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push str.__NITROVIEWER_ROOT__lib_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
lea eax, [ebp - 0x418]
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
cmp eax, 0xffffffff
pop esi
cmove eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x431297
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
cmp dword [0x444404], 0
jne 0x4312b0
xor eax, eax
jmp 0x43144b
push ebx
push esi
push 2
pop ebx
cmp dword [0x444410], ebx
je 0x4312c8
mov dword [0x444410], ebx
call fcn.00430db2
push edi
lea eax, [ebp - 0x458]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x660]
push eax
push 1
push 0x441768
lea eax, [ebp - 0x458]
push eax
call esi
lea eax, [ebp - 0x250]
push eax
push ebx
push 0x441770
lea eax, [ebp - 0x458]
push eax
call esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x660]
push eax
push ebx
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0x30]
and dword [ebx + 0x30], 0
mov dword [ebx + 8], 1
call fcn.00415aab
mov eax, dword [ebx + 0x34]
mov dword [ebx + 8], edi
mov edi, dword [ebp + 0xc]
mov dword [ebx + 0x30], esi
xor ebx, ebx
pop ecx
inc ebx
mov dword [0x444414], eax
pop ecx
test edi, edi
jne 0x4313f6
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0041226e
mov esi, dword [sym.imp.msvcrt.dll_calloc]
push 0x10
push ebx
mov dword [ebp - 0x1c], ebx
call esi
mov dword [ebp - 0x18], eax
xor ecx, ecx
push 2
pop edi
mov word [eax], bx
mov eax, dword [ebp - 0x18]
push 8
push ebx
mov dword [eax + 8], edi
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0x10000
mov eax, dword [ebp - 0x18]
mov word [eax + 2], cx
call esi
mov ecx, dword [ebp - 0x18]
push 4
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x18]
pop ecx
push edi
push ebx
mov eax, dword [eax + 0xc]
mov word [eax + 4], cx
mov ecx, 0xbeef
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov word [eax + 6], cx
call esi
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0xc]
mov dword [ecx], eax
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov word [eax], cx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov ax, word [ebp + 0x10]
mov word [ecx], ax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0041295d
lea eax, [ebp - 0x48]
push eax
call fcn.004121a4
add esp, 0x2c
xor esi, esi
jmp 0x431411
mov esi, dword [edi + 8]
lea eax, [ebp - 0x250]
push eax
push edi
mov dword [edi + 8], ebx
call fcn.0041295d
pop ecx
mov dword [edi + 8], esi
mov esi, dword [ebp + 0x10]
pop ecx
push 0
push 0
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x660]
push eax
call fcn.004309c3
add esp, 0x10
pop edi
test eax, eax
je 0x431445
push dword [0x444414]
push 0
push esi
call fcn.00430eac
add esp, 0xc
test eax, eax
jne 0x431447
xor ebx, ebx
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43147d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push edi
xor edi, edi
jmp 0x4314a3
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x34]
push eax
call esi
test eax, eax
jne 0x43148f
mov dword [ebp - 0x18], edi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test edi, edi
jne 0x431564
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x431564
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x43152e
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x34]
push eax
call esi
test eax, eax
jne 0x431509
push 0x4ff
push 0xffffffffffffffff
push 1
lea eax, [ebp - 8]
push eax
push 1
call edi
test eax, eax
jne 0x43151d
push 1
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x431577
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp - 8]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x434384
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
push edi
call fcn.0043432a
push edi
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435d92
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
lea eax, [ebp - 0x214]
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x435e33
push esi
push edi
push 1
call dword [sym.imp.msvcrt.dll_calloc]
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x214]
push esi
push edi
push dword [ebp - 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x435e2a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x4417e8
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x435e2a
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
push edx
push str._d._d._d._d
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x18
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x436072
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x436097
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x436097
xor eax, eax
jmp 0x4360c0
push 0
push 0x4360c3
push 0x435e67
push 0x436126
push dword [ebp + 8]
mov dword [0x444434], esi
call fcn.00437d58
add esp, 0x14
and dword [0x444434], 0
pop esi
pop ebp
ret
Function at 0x437d58
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push esi
mov esi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 8], edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x437d6d
xor eax, eax
sub esi, ecx
push 0x20a
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push edx
push eax
sar esi, 1
call sub.msvcrt.dll_memset
lea eax, [esi*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x18
push 0x5c
pop eax
test esi, esi
je 0x437dc2
cmp word [ebp + esi*2 - 0x216], ax
je 0x437dcb
mov word [ebp + esi*2 - 0x214], ax
inc esi
push 0x2a
pop eax
mov word [ebp + esi*2 - 0x214], ax
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x437dfa
xor eax, eax
inc eax
jmp 0x437f35
push edi
xor edi, edi
inc edi
lea eax, [ebp - 0x640]
push 0x441ee4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x437f04
lea eax, [ebp - 0x640]
push 0x441ee8
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x437f04
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
lea eax, [esi*2]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call sub.msvcrt.dll_memcpy
lea ecx, [ebp - 0x640]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0x437e78
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x41c]
lea eax, [eax + esi*2]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
test byte [ebp - 0x66c], 0x10
je 0x437ee6
cmp dword [ebp + 0x14], 0
je 0x437ec9
push dword [ebp + 0x18]
lea eax, [ebp - 0x41c]
push eax
call dword [ebp + 0x14]
test eax, eax
je 0x437f04
push dword [ebp + 0x18]
lea eax, [ebp - 0x41c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00437d58
add esp, 0x14
jmp 0x437ef3
push dword [ebp + 0x18]
lea eax, [ebp - 0x41c]
push eax
call dword [ebp + 0xc]
test eax, eax
je 0x437f00
test edi, edi
je 0x437f00
xor edi, edi
inc edi
jmp 0x437f04
xor eax, eax
mov edi, eax
lea eax, [ebp - 0x66c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x437dfe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x437f32
push dword [ebp + 0x18]
push dword [ebp + 8]
call dword [ebp + 0x10]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43acf1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x58
push 1
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
movss xmm0, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
xor edi, edi
mov dword [0x44442c], edi
pop ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x34]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x38]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x3c]
pop ecx
mov ecx, dword [ebp + 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x44]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x48]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 0x4c]
mov dword [esi + 0xc], ecx
xor ecx, ecx
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x28]
test eax, eax
movss dword [esi + 0x14], xmm0
cmovne ecx, dword [ebp + 0x2c]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0x40]
mov dword [esi + 0x20], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43ad80
sub ecx, edx
lea eax, [ecx + 1]
push eax
push dword [ebp + 0x40]
lea eax, [esi + 0x44]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
push edi
push esi
push 0x43adb0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebp
ret
Function at 0x43c42e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 0x40]
push eax
push 0x20
push 0xd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x7813480f
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
xor ebx, ebx
push ebx
push ebx
mov ebp, str.__MSVCRT_HEAP_SELECT
push ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x78134961
push esi
push ebx
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x7813495f
push esi
push ebx
push ebp
call edi
test eax, eax
mov ebp, dword [sym.imp.kernel32.dll_HeapFree]
jbe 0x78134953
cmp eax, esi
ja 0x78134953
cmp byte [ebx], 0
mov ecx, ebx
je 0x78134889
mov al, byte [ecx]
cmp al, 0x61
jl 0x78134883
cmp al, 0x7a
jg 0x78134883
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x78134875
push 0x16
push ebx
push str.__GLOBAL_HEAP_SELECTED
call fcn.7815064b
add esp, 0xc
test eax, eax
jne 0x781348a1
mov edi, ebx
jmp 0x781348fc
push 0x105
push 8
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x78134953
push 3
push esi
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
cmp byte [esi], 0
mov ecx, esi
je 0x781348e5
mov al, byte [ecx]
cmp al, 0x61
jl 0x781348df
cmp al, 0x7a
jg 0x781348df
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x781348d1
push esi
push ebx
call sym.MSVCR80.dll_strstr
pop ecx
pop ecx
push esi
push 0
mov edi, eax
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
test edi, edi
je 0x78134953
push 0x2c
push edi
call sym.MSVCR80.dll_strchr
test eax, eax
pop ecx
pop ecx
je 0x78134953
inc eax
cmp byte [eax], 0x20
je 0x7813490e
mov cl, byte [eax]
xor esi, esi
cmp cl, 0x30
jl 0x78134953
cmp cl, 0x39
jg 0x78134934
imul esi, esi, 0xa
movsx ecx, cl
inc eax
lea esi, [esi + ecx - 0x30]
mov cl, byte [eax]
cmp cl, 0x30
jge 0x7813491d
cmp esi, 2
je 0x78134943
cmp esi, 3
je 0x78134943
cmp esi, 1
jne 0x78134953
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
mov eax, esi
jmp 0x781349c1
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
call sym.MSVCR80.dll__get_osplatform
test eax, eax
pop ecx
je 0x7813497d
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
lea eax, [esp + 0x14]
push eax
call sym.MSVCR80.dll__get_winmajor
test eax, eax
pop ecx
je 0x78134999
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
cmp dword [esp + 0x10], 2
jne 0x781349ac
cmp dword [esp + 0x14], 5
jb 0x781349ac
xor eax, eax
inc eax
jmp 0x781349c1
lea eax, [esp + 0x18]
push eax
call fcn.781347e2
cmp byte [esp + 0x1c], 6
pop ecx
sbb eax, eax
add eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x78138894
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.MSVCR80.dll__invalid_parameter

Function at 0x78139847
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x781c19c8]
jne 0x78139851
repz ret
jmp sym.MSVCR80.dll___report_gsfailure
Function at 0x7815064b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x7815065a
pop dword [ebp - 8]
mov eax, 0xcc6a2225
add eax, 0xabaae435
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3f179
push 0
mov eax, 0x378b094
add eax, 0x74a0902c
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x6105abfe
sub ecx, 0x610571af
xor edi, edi
add edi, eax
mov edx, 0x781cb000
add edx, dword [ebp - 8]
mov esi, 0xc3e3f344
add esi, 0xcc28a40e
xor dword [ebp - 4], esi
mov ebx, dword [edx]
mov dword [ebp - 4], 0xf34ec38e
add ebx, esi
xor dword [ebp - 4], ebx
mov dword [edi], ebx
mov dword [ebp - 4], 0x74c836a2
add edi, 4
add edx, 0x42133b44
sub edx, 0x42133b40
loop 0x781506b5
add eax, 0xdb6081bf
sub eax, 0xdb5fa5b0
mov ebx, eax
add eax, 0x2dc6af6
sub eax, 0x2dc6af1
mov ecx, 0xc1e083b0
add ecx, 0xb6327c50
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x7815472c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78154759
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.7815064b
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x78154735
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78154788
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
call sym.MSVCR80.dll__errno
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x781547af
test al, 1
je 0x781547af
test byte [esp + 0xc], 2
je 0x781547af
call sym.MSVCR80.dll___doserrno
mov dword [eax], 5
call sym.MSVCR80.dll__errno
mov dword [eax], 0xd
jmp 0x7815477f
xor eax, eax
pop esi
ret

Function at 0x78154a51
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78154a7e
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.7815064b
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78154a9c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
jmp 0x78154a79
test byte [esp + 0xc], 0x80
je 0x78154aa8
and eax, 0xfffffffe
jmp 0x78154aab
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x78154a8d
xor eax, eax
pop esi
ret
Function at 0x78155c9d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78155cca
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.7815064b
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x78155ca6
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78155cf9
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
call sym.MSVCR80.dll__errno
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x78155d20
test al, 1
je 0x78155d20
test byte [esp + 0xc], 2
je 0x78155d20
call sym.MSVCR80.dll___doserrno
mov dword [eax], 5
call sym.MSVCR80.dll__errno
mov dword [eax], 0xd
jmp 0x78155cf0
xor eax, eax
pop esi
ret

Function at 0x78155e6a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78155e97
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.7815064b
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78155eb5
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
jmp 0x78155e92
test byte [esp + 0xc], 0x80
je 0x78155ec1
and eax, 0xfffffffe
jmp 0x78155ec4
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x78155ea6
xor eax, eax
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx