joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e3e3
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x6cc]
test byte [eax + 2], 1
push esi
je 0x43e473
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 8]
push eax
push dword [ebx + 0xccc]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
call fcn.00431e0d
mov eax, dword [ebx + 0xccc]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0xcd4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x834
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x34]
push ecx
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
push eax
push 0x4e
push dword [ebx + 0xcd0]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
call fcn.0043d4c4
add esp, 0x2c
test eax, eax
pop edi
je 0x43e503
mov eax, dword [ebx + 0x6cc]
test byte [eax + 6], 0x10
je 0x43e4fe
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 8]
push eax
push dword [ebx + 0xccc]
call dword [sym.imp.USER32.dll_ScreenToClient]
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
call fcn.00431e0d
mov eax, dword [ebx + 0xccc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0xcd4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
push eax
push ebx
mov dword [ebp - 0x28], 0x703
call fcn.0042fe82
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 0xcd4]
mov dword [ebp - 0x1c], esi
push 0x4e
push dword [ebx + 0xcd0]
push ebx
call fcn.0043d4c4
add esp, 0x34
cmp eax, esi
je 0x43e503
xor eax, eax
inc eax
jmp 0x43e505
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x443edb
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetCursorPos]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0xdac], edi
je 0x44404c
lea eax, [ebp - 8]
push eax
call ebx
lea eax, [ebp - 8]
push eax
push dword [esi + 0xccc]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi + 0xdb0]
cmp eax, 5
je 0x44404c
cmp eax, 6
jne 0x443f47
mov eax, dword [esi + 0xca8]
sub eax, dword [esi + 0xdb4]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx + 5]
push eax
push edi
push esi
call fcn.0043ece7
add esp, 0xc
jmp 0x44404c
cmp eax, 7
jne 0x443f61
mov eax, dword [esi + 0xca8]
sub eax, dword [esi + 0xdb4]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx + 5]
jmp 0x443f96
cmp eax, 8
jne 0x443f7e
mov eax, dword [esi + 0xcac]
sub eax, dword [esi + 0xdb8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx + 5]
jmp 0x444005
cmp eax, 9
jne 0x443fb6
mov eax, dword [esi + 0xca8]
sub eax, dword [esi + 0xdb4]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx - 5]
push eax
push edi
push esi
call fcn.0043ece7
mov eax, dword [esi + 0xcac]
sub eax, dword [esi + 0xdb8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx + 5]
jmp 0x444040
cmp eax, 0xa
jne 0x443fd3
mov eax, dword [esi + 0xca8]
sub eax, dword [esi + 0xdb4]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx - 5]
jmp 0x443f37
cmp eax, 0xb
jne 0x443fed
mov eax, dword [esi + 0xca8]
sub eax, dword [esi + 0xdb4]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx - 5]
jmp 0x444025
cmp eax, 0xc
jne 0x44400d
mov eax, dword [esi + 0xcac]
sub eax, dword [esi + 0xdb8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx - 5]
push eax
push 1
jmp 0x443f39
cmp eax, 0xd
jne 0x44404c
mov eax, dword [esi + 0xca8]
sub eax, dword [esi + 0xdb4]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx + 5]
push eax
push edi
push esi
call fcn.0043ece7
mov eax, dword [esi + 0xcac]
sub eax, dword [esi + 0xdb8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx - 5]
push eax
push 1
push esi
call fcn.0043ece7
add esp, 0x18
cmp dword [esi + 0xda8], edi
je 0x4440da
lea eax, [ebp - 8]
push eax
call ebx
lea eax, [ebp - 8]
push eax
push dword [esi + 0xccc]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [esi + 0xdb0], 4
jne 0x4440c5
mov eax, dword [esi + 0xca8]
sub eax, dword [esi + 0xcf4]
mov ecx, dword [esi + 0x6cc]
mov edi, dword [ecx + 0xec]
add eax, dword [ebp - 8]
cmp edi, 1
jne 0x4440b9
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 0xd0]
cdq
idiv ecx
mov dword [ebp + 8], eax
mov ebx, edx
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, ebx
cdq
sar ecx, 1
idiv ecx
add eax, dword [ebp + 8]
push 1
push eax
push edi
push esi
call fcn.00440dca
jmp 0x4440d7
push 1
push dword [esi + 0xcc4]
lea eax, [ebp - 8]
push eax
push esi
call fcn.0043ab16
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4827e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x482805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x482878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x48283a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x48286d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x48286b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x482831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4827fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x401207
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [0x4182e8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [0x4182ec]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0xc], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], 0x9e3779b9
mov dword [ebp - 0x18], eax
call fcn.00401200
add dword [ebp - 0xc], 0x23f
cmp dword [0xb04084], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x84c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ecx, dword [0x4182f0]
mov edx, dword [0x4182f4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, esi
mov dword [ebp - 8], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xb04084], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0xb04080]
cmove eax, dword [ebp - 8]
and dword [ebp - 8], 0
cmp dword [0xb04084], 0x3eb
mov dword [0xb04080], eax
mov eax, dword [0xb03fd8]
cmove eax, dword [ebp - 8]
mov dword [0xb03fd8], eax
mov eax, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x10], eax
add dword [ebp - 0x10], edx
xor edx, edx
mov eax, dword [ebp - 4]
mov dword [0xb0407c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor ecx, eax
cmp dword [0xb04084], 0x213
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jne 0x40135a
push edx
push edx
push edx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov ecx, dword [ebp - 0x10]
sub ebx, ecx
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0xc]
shr edx, cl
add eax, ebx
mov ecx, dword [ebp - 4]
add edx, edi
xor ecx, eax
mov dword [ebp - 0x10], edx
cmp dword [0xb04084], 0xb03
mov dword [ebp - 4], ecx
jne 0x40139d
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, edx
sub esi, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
dec dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
jne 0x40127f
mov edi, dword [ebp - 0x28]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b744
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417594]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004072a5
mov dword [ebp - 0x14], eax
cmp dword [0x45f86c], esi
jne 0x40b837
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40b7c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40b917
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40b917
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b917
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x45f86c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x45f870], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45f874], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45f87c], eax
test eax, eax
je 0x40b834
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45f878], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40b85c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40b84f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40b871
push 4
pop eax
jmp 0x40b919
cmp dword [ebp - 0x14], esi
je 0x40b871
push dword [0x45f86c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40b856
mov eax, dword [0x45f878]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40b8cf
cmp dword [0x45f87c], edi
je 0x40b8cf
push eax
call ebx
push dword [0x45f87c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40b8cf
test eax, eax
je 0x40b8cf
call ecx
test eax, eax
je 0x40b8c4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40b8c4
test byte [ebp - 8], 1
jne 0x40b8cf
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40b8ff
mov eax, dword [0x45f870]
cmp eax, edi
je 0x40b8fc
push eax
call ebx
test eax, eax
je 0x40b8fc
call eax
mov esi, eax
test esi, esi
je 0x40b8fc
mov eax, dword [0x45f874]
cmp eax, edi
je 0x40b8fc
push eax
call ebx
test eax, eax
je 0x40b8fc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x45f86c]
call ebx
test eax, eax
je 0x40b917
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40b919
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403773
mov esp, ebp
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5b8222cc
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x432060
nop
nop
nop
nop
mov eax, section..text_1
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x333411e0
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Function at 0x5012cc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [esp + 0x2c], 1
je 0x5012e5
movzx esi, word [esp + 0x30]
xor eax, eax
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x4c], 0x30
call fcn.005012c4
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x501134
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Jungo
mov dword [ebp - 0x20], eax
call fcn.005012b7
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x5013b0
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0
push str.180000
push str.Jungo
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x503758], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x503758]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x5013b0
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x501395
mov esp, ebp
pop ebp
ret
Function at 0x30a2c20
Capabilities:
Encode data using xor

Disassembly:
xor al, al
cmp dword [esp + 8], 0
push ebp
mov ebp, dword [esp + 8]
je 0x30a2cb7
test ebp, ebp
je 0x30a2cb7
mov eax, ebp
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x30a2c40
sub eax, edx
push ebx
sar eax, 1
shr eax, 1
push esi
mov ebx, eax
push edi
lea edi, [ebx + 2]
push edi
call fcn.030a374f
mov esi, eax
add esp, 4
test esi, esi
je 0x30a2cb2
push edi
push 0
push esi
call fcn.030a6370
push esi
push ebp
mov eax, ebx
call fcn.030a20d0
add esp, 0x14
xor eax, eax
test ebx, ebx
jbe 0x30a2c8b
xor byte [eax + esi], bl
inc eax
cmp eax, ebx
jb 0x30a2c83
mov ecx, dword [esp + 0x18]
lea eax, [ebx + ebx]
push eax
push ecx
push ebx
push esi
push 0
push 0
call dword [0x30af018]
push esi
mov bl, 1
call fcn.030a574e
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
Function at 0x401761
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x401775
shr eax, 1
xor eax, 0xedb88320
jmp 0x401777
shr eax, 1
dec edx
jne 0x401768
mov dword [ecx*4 + 0x4110d0], eax
mov dword [ecx*4 + 0x4130d0], eax
inc ecx
cmp ecx, 0x100
jb 0x401763
push ebx
push esi
push edi
mov ecx, 0x4114d0
mov edi, 0x101
mov eax, dword [ecx - 0x400]
push 7
mov edx, ecx
pop esi
movzx ebx, al
shr eax, 8
xor eax, dword [ebx*4 + 0x4110d0]
mov dword [edx], eax
add edx, 0x400
dec esi
jne 0x4017a9
add ecx, 4
dec edi
jne 0x40179e
pop edi
pop esi
pop ebx
ret

Function at 0x4017cb
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4130d4], 0
jne 0x4017d9
call fcn.00401761
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x401806
test cl, 7
je 0x401806
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4110d0]
dec esi
inc ecx
jmp 0x4017e7
cmp esi, 8
jb 0x401899
mov edi, esi
shr edi, 3
push ebx
xor eax, dword [ecx]
sub esi, 8
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov edx, eax
shr edx, 0x18
mov edx, dword [edx*4 + 0x4120d0]
xor edx, dword [ebx*4 + 0x4124d0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edx, dword [ebx*4 + 0x4128d0]
movzx ebx, byte [ecx + 6]
xor edx, dword [ebx*4 + 0x4114d0]
movzx ebx, byte [ecx + 5]
xor edx, dword [ebx*4 + 0x4118d0]
movzx ebx, byte [ecx + 4]
xor edx, dword [ebx*4 + 0x411cd0]
movzx ebx, byte [ecx + 7]
xor edx, dword [ebx*4 + 0x4110d0]
movzx eax, al
xor edx, dword [eax*4 + 0x412cd0]
add ecx, 8
dec edi
mov eax, edx
jne 0x401815
pop ebx
jmp 0x401899
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4110d0]
dec esi
inc ecx
test esi, esi
ja 0x401885
pop edi
pop esi
ret 0xc

Function at 0x40194b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004012c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x4019dd
push esi
push edi
mov edi, 0x400
push edi
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406cad
lea eax, [ebp - 0x800]
push eax
call fcn.0040918a
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.00407143
test al, al
jne 0x4019b9
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040918a
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x4019dd
push eax
push 0xaf
call fcn.00408cd2
push eax
push 0x40f2c0
call fcn.0040a184
add esp, 0xc
leave
ret 8
Function at 0x403810
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc20], ebx
cmp byte [esi + 0x1c], bl
jne 0x403830
test byte [ebp + 0x10], 4
jne 0x403830
xor al, al
jmp 0x403832
mov al, 1
mov ecx, dword [ebp + 0x10]
shr ecx, 1
and cl, 1
movzx edi, cl
neg edi
sbb edi, edi
and edi, 0xc0000000
add edi, 0x80000000
test byte [ebp + 0x10], 1
je 0x403859
or edi, 0x40000000
mov dword [ebp + 0x10], 1
cmp al, bl
je 0x40386b
mov dword [ebp + 0x10], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov dword [ebp - 4], eax
call fcn.00406605
test eax, eax
je 0x4038a5
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4038a5
cmp word [eax], bx
je 0x4038a5
push ebx
push dword [ebp - 4]
push 3
push ebx
push dword [ebp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4038b9
push ebx
push dword [ebp - 4]
push 3
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4038d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4038d5
mov dword [esi + 0xc20], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x40394d
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x40390e
push edi
call fcn.0040918a
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x41e]
push eax
call fcn.00408f0b
jmp 0x403917
xor eax, eax
mov word [esi + 0x41e], ax
cmp dword [ebp + 8], ebx
je 0x403934
push dword [ebp + 8]
call fcn.00408f56
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x1d]
push eax
call fcn.00408f0b
jmp 0x403943
push 0x1000000
lea eax, [esi + 0x1d]
push eax
push edi
call fcn.0040d192
push dword [esi + 4]
mov ecx, esi
call fcn.0040364f
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403a3d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x403a63
cmp dword [ebp + 0xc], esi
jbe 0x403a58
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403ab3
mov ecx, edi
call fcn.004037ca
test al, al
je 0x403a99
cmp dword [ebp + 0xc], esi
jbe 0x403a99
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00403a3d
jmp 0x403ab6
cmp dword [edi + 0xc], 1
jne 0x403aae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x403aae
xor eax, eax
jmp 0x403ab6
or eax, 0xffffffff
jmp 0x403ab6
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8