joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402060
Capabilities:
Check if file exists
Copy file
Create directory
Delete file
Download url
Read .ini file
Receive data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40a4eb
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x28]
lea esi, [edi + 0x24]
test eax, eax
jne 0x40208e
mov eax, 0x40b1a0
push eax
call fcn.00401f90
mov eax, dword [esi + 4]
add esp, 4
test eax, eax
jne 0x4020a3
mov eax, 0x40b1a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4020fc
mov eax, dword [esi + 4]
test eax, eax
jne 0x4020ba
mov eax, 0x40b1a0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4020fc
mov esi, dword [esi + 4]
test esi, esi
jne 0x4020d3
mov esi, 0x40b1a0
push 0
push esi
push str.create_directory_fail__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
add esp, 0x120
ret
push str.tmp.ini
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00403b00
add esp, 0xc
mov eax, dword [edi + 8]
mov dword [esp + 0x124], 0
test eax, eax
jne 0x402126
mov eax, 0x40b1a0
push eax
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push str.http:__wbini.wn51.com_update.ini
push str.UpdateURL
push str.GLOBAL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x402153
mov eax, 0x40b1a0
push 0
push 0
lea edx, [esp + 0x20]
push eax
push edx
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x40217c
lea esi, [edi + 0x14]
lea eax, [esp + 8]
push esi
push eax
mov ecx, edi
call fcn.00402cd0
test eax, eax
jne 0x4021d0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4021b7
mov al, byte [ecx - 1]
test al, al
je 0x4021ad
cmp al, 0xff
je 0x4021ad
dec al
pop edi
mov byte [ecx - 1], al
xor eax, eax
pop esi
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
add esp, 0x120
ret
dec ecx
push ecx
call fcn.00404090
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
add esp, 0x120
ret
mov eax, dword [esi + 4]
mov ecx, 0x40b1a0
test eax, eax
je 0x4021de
mov ecx, eax
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4021eb
mov eax, 0x40b1a0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x402202
mov eax, 0x40b1a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x40222d
mov al, byte [ecx - 1]
test al, al
je 0x402223
cmp al, 0xff
je 0x402223
dec al
mov byte [ecx - 1], al
jmp 0x40222d
dec ecx
push ecx
call fcn.00404090
add esp, 4
mov ecx, dword [esp + 0x11c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x402cd0
Capabilities:
Read .ini file
Timestomp file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
mov eax, dword [eax + 4]
test eax, eax
jne 0x402ce3
mov eax, 0x40b1a0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402d12
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp + 4]
test eax, eax
jne 0x402d22
mov eax, 0x40b1a0
push 0
push 0x80
push 3
push 0
push 0
push 0
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x402d51
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 8
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x402d61
mov eax, 0x40b1a0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
push eax
lea edx, [esp + 0x1c]
push 8
push edx
push str.time
push str.Total
call esi
mov eax, dword [ebp + 4]
test eax, eax
jne 0x402d87
mov eax, 0x40b1a0
push eax
lea eax, [esp + 0x14]
push 8
push eax
push str.time
push str.Total
call esi
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402db3
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
lea edx, [esp + 0x18]
push edx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
dec eax
pop edi
neg eax
sbb eax, eax
pop esi
pop ebp
inc eax
pop ebx
add esp, 0x10
ret 8

Function at 0x403fc0
Capabilities:
Check mutex on windows
Set current directory

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x14c
lea eax, [esp + 0x48]
push esi
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x4c]
push 0x5c
push edx
call fcn.00404400
add esp, 8
mov byte [eax + 1], 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str._WNUpdateMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404050
mov ecx, dword [esp + 0x15c]
push 0x40d264
push ecx
call fcn.00404f92
add esp, 8
lea ecx, [esp + 4]
push eax
call section..text
lea ecx, [esp + 4]
call fcn.00401460
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 4]
call fcn.00401360
xor eax, eax
pop esi
add esp, 0x14c
ret 0x10
Function at 0x4077f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d568
cmp edx, dword [eax]
je 0x40781a
add eax, 8
inc ecx
cmp eax, 0x40d5f8
jl 0x40780b
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d568]
jne 0x407948
mov eax, dword [0x40dfc8]
cmp eax, 1
je 0x407922
test eax, eax
jne 0x40784b
cmp dword [0x40d304], 1
je 0x407922
cmp edx, 0xfc
je 0x407948
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407882
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408530
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004052e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4078c5
lea eax, [ebp - 0x1a4]
push eax
call fcn.004052e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b628
push edi
call fcn.004092f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408530
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408540
lea eax, [ebp - 0xa0]
push 0x40b608
push eax
call fcn.00408540
push dword [esi + 0x40d56c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408540
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040925b
add esp, 0x2c
pop edi
jmp 0x407948
lea eax, [ebp + 8]
lea esi, [esi + 0x40d56c]
push 0
push eax
push dword [esi]
call fcn.004052e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x427f30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
mov edx, 2
mov ecx, 0x7c9ff0
call fcn.004117c0
movss xmm0, dword [0x7ca004]
xorps xmm5, xmm5
comiss xmm5, xmm0
movss xmm2, dword [0x7d0640]
movss xmm3, dword [0x7d0630]
movss xmm4, dword [0x7d0650]
movss xmm6, dword [0x7d0534]
movss xmm7, dword [0x7d0620]
ja 0x427fb1
movss xmm1, dword [0x7ca000]
mulss xmm0, xmm6
addss xmm0, dword [0x4fc598]
divss xmm1, xmm0
comiss xmm7, xmm1
ja 0x427fb1
comiss xmm1, xmm3
ja 0x427fb1
movss xmm1, dword [0x7c9ffc]
divss xmm1, xmm0
comiss xmm4, xmm1
ja 0x427fb1
comiss xmm1, xmm2
jbe 0x428006
movss xmm1, dword [0x7ca034]
comiss xmm5, xmm1
ja 0x428083
movss xmm0, dword [0x7ca030]
mulss xmm1, xmm6
addss xmm1, dword [0x4fc598]
divss xmm0, xmm1
comiss xmm7, xmm0
ja 0x428083
comiss xmm0, xmm3
ja 0x428083
movss xmm0, dword [0x7ca02c]
divss xmm0, xmm1
comiss xmm4, xmm0
ja 0x428083
comiss xmm0, xmm2
ja 0x428083
mov ecx, 0x7c9f90
call fcn.004117c0
movsx eax, byte [0x7ea8b0]
movzx edi, word [eax*2 + 0x4e95b8]
movsx eax, word [0x4ff8dc]
mov esi, edi
cmp esi, eax
je 0x428077
lea eax, [esi*8]
sub eax, esi
cmp byte [eax*4 + 0xb23500], 0
jne 0x42804a
mov ecx, edi
call fcn.004d14b0
test al, al
je 0x428077
cmp word [0x7eafbc], 0
je 0x428059
call fcn.0043bba0
mov eax, dword [0xa91e30]
push dword [esi*4 + 0xa91ea0]
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0x104]
mov word [0x4ff8dc], di
mov ecx, 0x7c9f90
pop edi
pop esi
jmp fcn.004441d0
pop edi
pop esi
ret

Function at 0x428090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov edx, 2
mov ecx, 0x7c9f30
call fcn.004117c0
movss xmm0, dword [0x7c9f44]
xorps xmm5, xmm5
comiss xmm5, xmm0
movss xmm2, dword [0x7d0640]
movss xmm3, dword [0x7d0630]
movss xmm4, dword [0x7d0650]
movss xmm6, dword [0x7d0534]
movss xmm7, dword [0x7d0620]
ja 0x428110
movss xmm1, dword [0x7c9f40]
mulss xmm0, xmm6
addss xmm0, dword [0x4fc598]
divss xmm1, xmm0
comiss xmm7, xmm1
ja 0x428110
comiss xmm1, xmm3
ja 0x428110
movss xmm1, dword [0x7c9f3c]
divss xmm1, xmm0
comiss xmm4, xmm1
ja 0x428110
comiss xmm1, xmm2
jbe 0x428159
movss xmm1, dword [0x7c9f74]
comiss xmm5, xmm1
ja 0x4281bc
movss xmm0, dword [0x7c9f70]
mulss xmm1, xmm6
addss xmm1, dword [0x4fc598]
divss xmm0, xmm1
comiss xmm7, xmm0
ja 0x4281bc
comiss xmm0, xmm3
ja 0x4281bc
movss xmm0, dword [0x7c9f6c]
divss xmm0, xmm1
comiss xmm4, xmm0
ja 0x4281bc
comiss xmm0, xmm2
ja 0x4281bc
mov ecx, 0x7c9ed0
call fcn.004117c0
mov esi, 0xf
cmp si, word [0x4ff8dc]
je 0x4281b1
cmp byte [0xb236a4], 0
jne 0x428185
mov ecx, esi
call fcn.004d14b0
test al, al
je 0x4281b1
cmp word [0x7eafbc], 0
je 0x428194
call fcn.0043bba0
mov eax, dword [0xa91e30]
push dword [0xa91edc]
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0x104]
mov word [0x4ff8dc], si
mov ecx, 0x7c9ed0
pop esi
jmp fcn.004441d0
pop esi
ret
Function at 0x4281c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov edx, 2
mov ecx, 0x7c9e70
call fcn.004117c0
movss xmm0, dword [0x7c9e84]
xorps xmm5, xmm5
comiss xmm5, xmm0
movss xmm2, dword [0x7d0640]
movss xmm3, dword [0x7d0630]
movss xmm4, dword [0x7d0650]
movss xmm6, dword [0x7d0534]
movss xmm7, dword [0x7d0620]
ja 0x428240
movss xmm1, dword [0x7c9e80]
mulss xmm0, xmm6
addss xmm0, dword [0x4fc598]
divss xmm1, xmm0
comiss xmm7, xmm1
ja 0x428240
comiss xmm1, xmm3
ja 0x428240
movss xmm1, dword [0x7c9e7c]
divss xmm1, xmm0
comiss xmm4, xmm1
ja 0x428240
comiss xmm1, xmm2
jbe 0x428289
movss xmm1, dword [0x7c9eb4]
comiss xmm5, xmm1
ja 0x4282ec
movss xmm0, dword [0x7c9eb0]
mulss xmm1, xmm6
addss xmm1, dword [0x4fc598]
divss xmm0, xmm1
comiss xmm7, xmm0
ja 0x4282ec
comiss xmm0, xmm3
ja 0x4282ec
movss xmm0, dword [0x7c9eac]
divss xmm0, xmm1
comiss xmm4, xmm0
ja 0x4282ec
comiss xmm0, xmm2
ja 0x4282ec
mov ecx, 0x7c9e10
call fcn.004117c0
mov esi, 0xd0
cmp si, word [0x4ff8dc]
je 0x4282e1
cmp byte [0xb24bc0], 0
jne 0x4282b5
mov ecx, esi
call fcn.004d14b0
test al, al
je 0x4282e1
cmp word [0x7eafbc], 0
je 0x4282c4
call fcn.0043bba0
mov eax, dword [0xa91e30]
push dword [0xa921e0]
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0x104]
mov word [0x4ff8dc], si
mov ecx, 0x7c9e10
pop esi
jmp fcn.004441d0
pop esi
ret

Function at 0x4282f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov edx, 2
mov ecx, 0x7c9db0
call fcn.004117c0
movss xmm0, dword [0x7c9dc4]
xorps xmm5, xmm5
comiss xmm5, xmm0
movss xmm2, dword [0x7d0640]
movss xmm3, dword [0x7d0630]
movss xmm4, dword [0x7d0650]
movss xmm6, dword [0x7d0534]
movss xmm7, dword [0x7d0620]
ja 0x428370
movss xmm1, dword [0x7c9dc0]
mulss xmm0, xmm6
addss xmm0, dword [0x4fc598]
divss xmm1, xmm0
comiss xmm7, xmm1
ja 0x428370
comiss xmm1, xmm3
ja 0x428370
movss xmm1, dword [0x7c9dbc]
divss xmm1, xmm0
comiss xmm4, xmm1
ja 0x428370
comiss xmm1, xmm2
jbe 0x4283b9
movss xmm1, dword [0x7c9df4]
comiss xmm5, xmm1
ja 0x42841c
movss xmm0, dword [0x7c9df0]
mulss xmm1, xmm6
addss xmm1, dword [0x4fc598]
divss xmm0, xmm1
comiss xmm7, xmm0
ja 0x42841c
comiss xmm0, xmm3
ja 0x42841c
movss xmm0, dword [0x7c9dec]
divss xmm0, xmm1
comiss xmm4, xmm0
ja 0x42841c
comiss xmm0, xmm2
ja 0x42841c
mov ecx, 0x7c9d50
call fcn.004117c0
mov esi, 0xd0
cmp si, word [0x4ff8dc]
je 0x428411
cmp byte [0xb24bc0], 0
jne 0x4283e5
mov ecx, esi
call fcn.004d14b0
test al, al
je 0x428411
cmp word [0x7eafbc], 0
je 0x4283f4
call fcn.0043bba0
mov eax, dword [0xa91e30]
push dword [0xa921e0]
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0x104]
mov word [0x4ff8dc], si
mov ecx, 0x7c9d50
pop esi
jmp fcn.004441d0
pop esi
ret
Function at 0x42cde0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4ff074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
push 0xa92828
push str._s_s.dat
lea eax, [ebp - 0x104]
mov edi, edx
push 0x80
push eax
call fcn.0042cda0
add esp, 0x14
lea eax, [ebp - 0x104]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42ce4e
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d66b5
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
push 0
cmova eax, dword [ebp + 8]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x108]
xor ecx, ebp
pop edi
pop esi
call fcn.004d66b5
mov esp, ebp
pop ebp
ret

Function at 0x42ce90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4ff074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push ecx
push 0xa92828
push str._s_s.dat
lea eax, [ebp - 0x108]
mov ebx, edx
push 0x80
push eax
call fcn.0042cda0
add esp, 0x14
lea eax, [ebp - 0x108]
push 0
push 0x80
push 5
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42cf39
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42cf39
lea ecx, [ebp - 0x108]
call fcn.004bfb10
mov ecx, 0x4fab34
call fcn.004bfb10
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d66b5
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.004d66b5
mov esp, ebp
pop ebp
ret

Function at 0x42cf70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4ff074]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
push 0xa92828
push str._s_s.dat
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.0042cda0
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d66b5
mov esp, ebp
pop ebp
ret
Function at 0x42cfc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4ff074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x7e8029], 3
lea eax, [ebp - 0x108]
jne 0x42cfee
push str.gamesprogress_tour
push str._sgame0
jmp 0x42cff8
push str.gamesprogressgeneral
push str._sgameA0
push 0x80
push eax
call fcn.0042cda0
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push 0xa92828
push str._s_s.dat
lea eax, [ebp - 0x208]
push 0x80
push eax
call fcn.0042cda0
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d66b5
mov esp, ebp
pop ebp
ret

Function at 0x42d590
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
test edx, edx
je 0x42d5f6
movzx eax, byte [ebp + 0xc]
push ebx
push esi
push edi
mov esi, dword [eax*4 + 0xa89020]
mov ebx, edx
mov eax, dword [eax*4 + 0xa88fe0]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push edx
push ecx
push dword [ebp + 8]
shr ebx, 2
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
test ebx, ebx
je 0x42d5f3
mov ecx, esi
mov edx, esi
shr ecx, 2
mov eax, esi
add ecx, dword [ebp - 4]
shr edx, 3
shr eax, 1
add ecx, edx
add eax, ecx
add esi, eax
mov eax, dword [ebp - 8]
xor dword [eax + edi*4], esi
inc edi
cmp edi, ebx
jb 0x42d5d1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42d600
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov eax, edx
mov edx, ecx
push esi
mov ebx, eax
mov dword [ebp - 4], eax
push edi
shr ebx, 2
xor edi, edi
mov dword [ebp - 8], edx
mov esi, 0xe694a407
test ebx, ebx
je 0x42d648
mov eax, esi
mov ecx, esi
shr eax, 3
shr ecx, 1
sub ecx, eax
mov eax, esi
shr eax, 2
add esi, 0x519b2f6c
sub ecx, eax
add esi, ecx
xor dword [edx + edi*4], esi
inc edi
cmp edi, ebx
jb 0x42d623
mov eax, dword [ebp - 4]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
mov edx, 0xe694a407
test ebx, ebx
je 0x42d689
mov edi, dword [ebp - 8]
mov eax, edx
mov ecx, edx
shr eax, 3
shr ecx, 1
sub ecx, eax
mov eax, edx
shr eax, 2
add edx, 0x519b2f6c
sub ecx, eax
add edx, ecx
xor dword [edi + esi*4], edx
inc esi
cmp esi, ebx
jb 0x42d667
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42d690
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
test edx, edx
je 0x42d6e4
push esi
push edi
push 0
lea eax, [ebp - 4]
mov esi, 0xe694a407
push eax
push edx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 4]
xor edx, edx
shr edi, 2
test edi, edi
je 0x42d6e2
nop
mov eax, esi
mov ecx, esi
shr eax, 3
shr ecx, 1
sub ecx, eax
mov eax, esi
shr eax, 2
add esi, 0x519b2f6c
sub ecx, eax
add esi, ecx
xor dword [ebx + edx*4], esi
inc edx
cmp edx, edi
jb 0x42d6c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d6f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4ff074]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
mov ebx, ecx
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42d760
push ebx
push 0xb23130
lea eax, [ebp - 0x20c]
push 0x100
push eax
call fcn.0042cda0
add esp, 0x10
lea ecx, [ebp - 0x20c]
call fcn.004bfb10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d66b5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x42d78c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d66b5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x21c]
add eax, 4
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
inc word [0xa92824]
mov edi, eax
movzx eax, byte [ebp + 8]
add esp, 4
mov dword [0x7dbdec], edi
mov edx, 1
cmp eax, 3
ja case.default.0x42d7bc
jmp dword [eax*4 + 0x42d8a8]
push 0
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x21c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x42d832
mov edx, dword [ebp - 0x21c]
mov ecx, edi
push 0xa
push esi
call fcn.0042d590
add esp, 8
jmp 0x42d832
cmp byte [0x7ea8b0], 0xff
movzx ecx, byte [0x7ea8b0]
cmove ecx, edx
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 0x244], cl
mov ecx, edi
push dword [ebp - 0x244]
push esi
call fcn.0042d590
add esp, 8
jmp 0x42d832
mov edx, dword [ebp - 0x21c]
mov ecx, edi
push esi
call fcn.0042d690
add esp, 4
mov edi, dword [0x7dbdec]
mov eax, dword [ebp - 0x21c]
xor ecx, ecx
shr eax, 1
push esi
mov word [edi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x7ea98b], 0
je 0x42d881
push dword [ebp - 0x21c]
lea eax, [ebp - 0x20c]
push ebx
push 0xb230b0
push 0x100
push eax
call fcn.0042cda0
add esp, 0x14
lea ecx, [ebp - 0x20c]
call fcn.004bfb10
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
mov word [0x7dbde8], ax
xor ecx, ebp
mov eax, dword [ebp - 0x21c]
pop esi
shr eax, 1
pop ebx
call fcn.004d66b5
mov esp, ebp
pop ebp
ret
Function at 0x434140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
push 0x2718
mov bl, cl
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
movzx ecx, bl
shl ecx, 7
mov edx, edi
push 0x2718
add ecx, 0xb0b580
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edi
call fcn.0042cde0
mov ebx, eax
mov byte [ebp - 1], 0
add esp, 8
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x4342df
mov eax, dword [edi]
cmp eax, 0xffff4a06
je 0x4341a6
cmp eax, 0xffff5c92
je 0x4342df
mov ecx, ebx
mov edx, edi
mov dword [ebp - 8], ecx
jmp 0x4341c8
movzx eax, byte [edi + 6]
lea edx, [edi + 8]
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], edx
lea ecx, [eax + eax*4]
shl ecx, 3
mov dword [ebp - 8], ecx
lea eax, [ecx + 8]
cmp eax, ebx
jne 0x4342df
push esi
test ecx, ecx
je 0x434211
mov esi, dword [0xa89048]
mov eax, ecx
shr eax, 2
xor ebx, ebx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x43420e
mov edi, eax
mov ecx, esi
mov edx, esi
shr ecx, 2
mov eax, esi
add ecx, dword [0xa89008]
shr edx, 3
add ecx, edx
shr eax, 1
mov edx, dword [ebp - 0xc]
add eax, ecx
add esi, eax
xor dword [edx + ebx*4], esi
inc ebx
cmp ebx, edi
jb 0x4341e3
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
push ecx
push edx
push 0x7eafc0
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x4342cc
xor edx, edx
xor esi, esi
mov ecx, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
cmp ebx, ecx
jbe 0x4342a2
lea eax, [ebx - 8]
cmp eax, 2
jb 0x43427b
lea eax, [ebx - 1]
mov dx, si
mov si, word [ebp - 0xc]
mov ebx, eax
mov dword [ebp - 0x18], eax
movsx eax, byte [edi + ecx]
add si, ax
movsx eax, byte [edi + ecx + 1]
add ecx, 2
add dx, ax
cmp ecx, ebx
jb 0x434254
mov ebx, dword [ebp - 0x10]
mov word [ebp - 8], dx
mov word [ebp - 0xc], si
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp ecx, ebx
jae 0x434296
movsx ax, byte [ecx + edi]
mov ecx, 0x720d
add ax, cx
movzx ecx, ax
lea eax, [esi + edx]
add ecx, eax
jmp 0x4342a7
mov ecx, 0x720d
lea eax, [esi + edx]
add ecx, eax
jmp 0x4342a7
mov ecx, 0x720d
cmp cx, word [edi + 4]
je 0x4342cc
push 0x2710
push 0
push 0x7eafc0
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
add esp, 0xc
movq qword [0x7e8148], xmm0
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov al, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret