joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x471280
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [esp + 0x60]
call sub.MFC80U.DLL_Ordinal_501
mov dword [esp + 0xc8], 0
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4154fc
mov edi, edi
test eax, eax
mov ecx, eax
je 0x4156a2
mov edi, dword [ecx + 8]
cmp dword [edi + 0x90], 0
mov eax, dword [eax]
jne 0x4154fe
test eax, eax
jne 0x4154e0
xor edi, edi
mov eax, dword [edi]
mov edx, dword [eax + 0x194]
mov ecx, edi
call edx
test eax, eax
jne 0x41566a
mov eax, dword [edi]
mov edx, dword [eax + 0x190]
mov ecx, edi
call edx
test eax, eax
jne 0x41566a
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x3eb
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_2651
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_5609
mov edx, dword [esp + 0x58]
push 0xb3592d
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x30], edx
call sub.MFC80U.DLL_Ordinal_2255
lea esi, [esp + 0x10]
mov eax, edi
call fcn.00415890
lea esi, [esp + 0x14]
mov eax, edi
mov byte [esp + 0xc8], 1
call fcn.00415910
mov byte [esp + 0xc8], 2
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov ebx, eax
sub eax, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], edx
cdq
sub eax, edx
sar eax, 1
lea edx, [eax - 2]
sub esp, 0x10
mov dword [esp + 0x40], ecx
add eax, 2
mov dword [esp + 0x58], edx
mov dword [esp + 0x40], eax
mov eax, esp
push 0x28
mov edx, 0xc
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x5c]
push 1
push 0x10
push ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov edi, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
push 0xffffff
lea esi, [esp + 0x80]
call fcn.00403850
add esp, 0x14
mov eax, esp
mov ecx, 0x1a
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
push 0x20
push 0
push 0xf
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
push 0xffffff
call fcn.00403850
add esp, 0x24
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x5c]
mov dword [esp + 0xc8], 0xffffffff
call sub.MFC80U.DLL_Ordinal_709
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0046d6fd
mov esp, ebp
pop ebp
ret
jmp fcn.0046d28c
Function at 0x415990
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47122c
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x464], eax
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0x470]
mov dword fs:[0], eax
mov eax, dword [0x4fa6c4]
cmp eax, 0xffffffff
je 0x4159e0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
push 0x44
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x69]
push 0
push ecx
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x54], 1
mov word [esp + 0x58], 5
mov byte [esp + 0x70], 0
call sub.ntdll.dll_memset
add esp, 0xc
push esi
push str.Help.exe__s
lea edx, [esp + 0x6c]
push 0x400
push edx
call dword [sym.imp.MSVCR80.dll_sprintf_s]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x84]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x415ae7
push 0x474c4c
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov dword [esp + 0x478], 0
test byte [0x504e60], 1
jne 0x415ab1
or dword [0x504e60], 1
call fcn.0042a470
push 0x473340
call fcn.0046d920
add esp, 4
mov eax, dword [0x50350c]
mov edx, dword [eax]
push str.3111
mov ecx, 0x50350c
call edx
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, dword [esp + 8]
push 0
push 0
push eax
call sub.MFC80U.DLL_Ordinal_1118
lea ecx, [esp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
mov dword [0x4fa6c4], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x470]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x464]
xor ecx, esp
call fcn.0046d6fd
mov esp, ebp
pop ebp
ret
Function at 0x415c10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46f018
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_572
xor edi, edi
mov dword [esp + 0x20], edi
lea ecx, [esi + 0x60]
mov dword [esi], vtable.CXHTMLStatic.0
call sub.MFC80U.DLL_Ordinal_563
lea ebp, [esi + 0x170]
mov ecx, ebp
mov byte [esp + 0x20], 1
call sub.MFC80U.DLL_Ordinal_530
lea ebx, [esi + 0x184]
mov ecx, ebx
mov byte [esp + 0x20], 2
call sub.MFC80U.DLL_Ordinal_557
push 0x5c
lea eax, [esi + 0xd8]
push edi
push eax
mov byte [esp + 0x2c], 3
call sub.ntdll.dll_memset
add esp, 0xc
push 0xffffffffffffffff
push edi
mov ecx, ebp
mov dword [esi + 0x134], 1
mov dword [esi + 0x13c], edi
mov dword [esi + 0x198], edi
mov dword [esi + 0x1b0], edi
mov dword [esi + 0x1ac], edi
mov dword [esi + 0x1a0], edi
mov dword [esi + 0x1a4], edi
mov dword [esi + 0x138], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
call sub.MFC80U.DLL_Ordinal_6001
push 0xffffffffffffffff
push edi
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_6002
call sub.MFC80U.DLL_Ordinal_1079
mov ebp, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f89
push edi
call ebp
cmp eax, edi
mov dword [esi + 0x198], eax
jne 0x415d83
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 0x104
push 0x104
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
push 0x4796e8
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x415d6d
push 0x6a
push ebx
call ebp
cmp eax, edi
je 0x415d6d
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [esi + 0x198], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
xor ecx, ecx
cmp dword [str.amp_], edi
je 0x415dac
xor eax, eax
nop
lea edx, [ecx + 2]
add ecx, 1
mov word [eax + 0x4fa6cc], dx
lea eax, [ecx*8]
cmp dword [eax + 0x4fa6c8], edi
jne 0x415d90
call fcn.00415f00
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x418520
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4f8028]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll__wcsnicmp]
push edi
push 4
mov ebx, edx
push str.APP:
push ebx
mov edi, ecx
mov dword [ebp - 0x80], ebx
call esi
add esp, 0xc
test eax, eax
jne 0x41856f
mov eax, 4
lea eax, [ebx + eax*2]
push eax
call fcn.00418760
jmp 0x41873e
push 5
push str._APP:
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x418593
mov eax, 5
lea eax, [ebx + eax*2]
push eax
call fcn.00418760
jmp 0x41873e
push 5
xor esi, esi
push esi
push esi
push ebx
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
mov dword [ebp - 0x7c], eax
ja 0x418732
push 0x40e
lea ecx, [ebp - 0x72]
push esi
push ecx
mov word [ebp - 0x74], si
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x78]
push edx
push 1
push esi
push str..htm
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
mov word [ebp - 0x74], si
jne 0x418732
lea eax, [ebp - 0x78]
push eax
lea ebx, [ebp - 0x74]
call fcn.004188e0
cmp eax, esi
jne 0x418732
mov edi, ebx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x418604
mov ecx, 0xa
mov esi, str._shellopencommand
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x78]
push ecx
push 1
push 0
lea edx, [ebp - 0x74]
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov word [ebp - 0x74], 0
jne 0x418732
lea eax, [ebp - 0x78]
push eax
lea ebx, [ebp - 0x74]
call fcn.004188e0
test eax, eax
jne 0x418732
mov esi, dword [sym.imp.ntdll.dll_wcsstr]
mov ecx, ebx
push str.__1_
push ecx
call esi
add esp, 8
test eax, eax
jne 0x418697
mov edx, ebx
push 0x479944
push edx
call esi
add esp, 8
test eax, eax
jne 0x418697
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418682
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x76]
jmp 0x41869c
mov word [eax], 0
mov edi, eax
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4186a1
mov ecx, dword [0x478788]
mov dword [edi], ecx
mov ecx, dword [ebp - 0x80]
mov esi, ecx
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4186c0
sub ecx, esi
mov edx, ecx
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4186d2
mov ecx, edx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [0x4f8030]
lea edx, [ebp - 0x74]
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x41870e
xor eax, eax
jmp 0x418726
lea edi, [eax + eax]
mov eax, edi
call fcn.0046e580
mov esi, esp
mov edx, ebx
mov ecx, edi
lea eax, [ebp - 0x74]
call fcn.00418a90
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x7c], eax
mov eax, 0x20
cmp eax, dword [ebp - 0x7c]
sbb eax, eax
neg eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
call fcn.0046d6fd
add ebp, 0x3a0
mov esp, ebp
pop ebp
ret
Function at 0x4188e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
push esi
push edi
mov edi, dword [eax]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov esi, eax
test esi, esi
jne 0x418935
lea edx, [esp + 0xc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.0046d6fd
add esp, 0x210
ret 4

Function at 0x419250
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x46fd68
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push edi
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
call edi
push 0x10
call edi
push 0xa0a0a0
push 1
push 0
lea ecx, [esp + 0x1c]
call sub.MFC80U.DLL_Ordinal_502
mov eax, dword [esp + 0x34]
push 0
push 0
mov dword [esp + 0x34], 0
mov ecx, dword [eax + 0x20]
push 0x31
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call sub.MFC80U.DLL_Ordinal_2362
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov ebx, eax
call sub.MFC80U.DLL_Ordinal_5637
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
push edx
add edi, 0xffffffff
push edi
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_4117
mov ecx, dword [esp + 0x44]
push ecx
push edi
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_3995
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
push ebx
mov ecx, esi
call eax
lea ecx, [esp + 0x10]
call sub.MFC80U.DLL_Ordinal_1925
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CPen.0
call fcn.00401090
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x24
ret 0x14
Function at 0x420e85
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x404], eax
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0x1ff
lea ecx, [esp + 0x15]
push 0
push ecx
mov byte [esp + 0x1c], 0
call sub.ntdll.dll_memset
add esp, 0xc
push 0x200
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0x1ff
lea eax, [esp + 0x215]
push 0
push eax
mov byte [esp + 0x21c], 0
call sub.ntdll.dll_memset
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x220]
push str._sddclog.txt
push edx
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x100000
mov ebp, eax
call sub.MFC80U.DLL_Ordinal_762
push 0x100000
mov edi, eax
push 0
push edi
call sub.ntdll.dll_memset
mov ecx, dword [esi + 4]
add esp, 0x10
push 0
push 0
push 0
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 4]
push 0
lea edx, [esp + 0x10]
push edx
push 0x100000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
mov eax, dword [esi + 4]
push eax
call edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.0046d6fd
add esp, 0x408
ret

Function at 0x4213c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
push 0
lea eax, [esp + 0x10]
push eax
push 0xc00
push esi
mov dword [esp + 0x18], 0xc00
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x42145c
call fcn.00421360
test eax, eax
jne 0x42145c
mov eax, 1
test byte [0x503544], al
jne 0x42142b
or dword [0x503544], eax
push 0x4732e0
mov dword [0x503520], 0x4e7bc8
mov dword [0x503524], 0xffffffff
call fcn.0046d920
add esp, 4
mov esi, dword [0x503520]
push 0x76
mov ecx, str.d:workDDCDDCIncludeDiskIO.h
add esi, 8
call fcn.00421290
mov ecx, dword [esi]
add esp, 4
push eax
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push 0x503520
call ecx
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 8]
push edx
push 0x200
push eax
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x421455
test eax, eax
je 0x421455
test ecx, 0x1ff
jne 0x421455
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x429f70
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov ebx, eax
push ebx
push 0
push edi
call sub.ntdll.dll_memset
add esp, 0xc
xor ebp, ebp
shr ebx, 1
mov esi, edi
je 0x429fd3
lea ebx, [ebx]
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
push 2
push esi
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42a045
cmp dword [esp + 0xc], 0
je 0x42a045
mov dx, word [esi]
add ebp, 1
add esi, 2
cmp dx, 0xa
je 0x429fd3
cmp ebp, ebx
jb 0x429f90
mov word [esi], 0
cmp byte [edi], 0xff
jne 0x42a009
cmp byte [edi + 1], 0xfe
jne 0x42a009
movzx eax, word [edi + 2]
lea ecx, [edi + 2]
xor edx, edx
test ax, ax
je 0x42a003
add ecx, 2
mov word [edi + edx*2], ax
movzx eax, word [ecx]
add edx, 1
test ax, ax
jne 0x429ff1
mov word [edi + edx*2], 0
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a010
sub eax, edx
sar eax, 1
cmp eax, 2
jl 0x42a040
cmp word [edi + eax*2 - 4], 0xd
jne 0x42a040
cmp word [edi + eax*2 - 2], 0xa
jne 0x42a040
xor ecx, ecx
mov word [edi + eax*2 - 4], cx
mov word [edi + eax*2 - 2], cx
pop esi
pop ebp
pop ebx
pop ecx
ret
mov word [esi + ebp*2], 0
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x42a890
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1008
call sub.ntdll.dll__chkstk
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x1004], eax
push 0x3fe
lea eax, [esp + 0x40a]
push 0
push eax
mov word [esp + 0x410], 0
call sub.ntdll.dll_memset
push 0x3fe
lea ecx, [esp + 0x16]
push 0
push ecx
mov word [esp + 0x1c], 0
call sub.ntdll.dll_memset
add esp, 0x18
push 0x400
lea edx, [esp + 0x408]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x404]
push 0x5c
push eax
call dword [sym.imp.ntdll.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x42a912
mov word [eax], 0
xor eax, eax
jmp 0x42a920
movzx ecx, word [esp + eax + 0x404]
mov word [esp + eax + 4], cx
add eax, 2
test cx, cx
jne 0x42a920
lea eax, [esp + 4]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x42a940
mov ecx, dword [0x4e8704]
mov edx, dword [0x4e8708]
mov dword [eax], ecx
mov ecx, dword [0x4e870c]
mov dword [eax + 4], edx
mov edx, dword [0x4e8710]
mov dword [eax + 8], ecx
mov cx, word [0x4e8714]
mov dword [eax + 0xc], edx
push 0x7fe
lea edx, [esp + 0x80a]
push 0
push edx
mov word [eax + 0x10], cx
mov word [esp + 0x810], 0
call sub.ntdll.dll_memset
lea eax, [esp + 0x810]
push eax
lea ecx, [esp + 0x14]
call fcn.0042a060
add esp, 0x10
test eax, eax
jne 0x42a9c7
movzx ecx, word [eax + str.langen.txt]
mov word [esp + eax + 0x804], cx
add eax, 2
test cx, cx
jne 0x42a9b0
lea eax, [esp + 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a9d1
sub eax, edx
sar eax, 1
jne 0x42aa07
xor eax, eax
jmp 0x42a9f0
movzx ecx, word [eax + str.langen.txt]
mov word [esp + eax + 0x804], cx
add eax, 2
test cx, cx
jne 0x42a9f0
lea ecx, [esp + 0x804]
push 0x3b
push ecx
call dword [sym.imp.ntdll.dll_wcschr]
add esp, 8
test eax, eax
je 0x42aa23
mov word [eax], 0
push esi
push 0x400
lea edx, [esp + 0xc]
push 0
push edx
call sub.ntdll.dll_memset
mov esi, dword [sym.imp.MSVCR80.dll__swprintf]
lea eax, [esp + 0x814]
push eax
lea ecx, [esp + 0x418]
push ecx
lea edx, [esp + 0x1c]
push str._s_s
push edx
call esi
add esp, 0x1c
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42aa81
lea ecx, [esp + 0x408]
push ecx
lea edx, [esp + 0xc]
push str._slangen.txt
push edx
call esi
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esp + 0x1008]
pop esi
xor ecx, esp
call fcn.0046d6fd
add esp, 0x1008
ret
Function at 0x42b130
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0x200
push eax
push ecx
call sub.ntdll.dll__allmul
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x42b1d4
call fcn.0042b0d0
test eax, eax
jne 0x42b1d4
mov eax, 1
test byte [0x503544], al
jne 0x42b1a3
or dword [0x503544], eax
push 0x4732e0
mov dword [0x503520], 0x4e7bc8
mov dword [0x503524], 0xffffffff
call fcn.0046d920
add esp, 4
mov esi, dword [0x503520]
push 0x76
mov ecx, str.d:workDDCDDCIncludeDiskIO.h
add esi, 8
call fcn.0042b000
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push 0x503520
call eax
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov edx, esi
shl edx, 9
push edx
push eax
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
or esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
je 0x42b207
test ecx, ecx
je 0x42b1cd
test eax, eax
je 0x42b1cd
test ecx, 0x1ff
jne 0x42b1cd
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x42b7b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x54
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x58]
cmp ecx, 0xe3c9e316
mov eax, dword [esp + 0x5c]
push esi
mov esi, dword [esp + 0x64]
mov dl, 0x68
push edi
mov edi, dword [esp + 0x6c]
mov byte [esp + 0x20], 0x81
mov byte [esp + 0x21], 0x7d
mov byte [esp + 0x22], 0xf9
mov byte [esp + 0x23], 0x2d
mov byte [esp + 0x24], 0xf0
mov byte [esp + 0x25], 2
mov byte [esp + 0x26], 0x15
mov byte [esp + 0x27], 0xae
mov byte [esp + 0x40], 0x85
mov byte [esp + 0x41], 0xd2
mov byte [esp + 0x42], 0xe1
mov byte [esp + 0x43], 0xe9
mov byte [esp + 0x44], 4
mov byte [esp + 0x45], 0x34
mov byte [esp + 0x46], 0xcf
mov byte [esp + 0x47], 0xb3
mov byte [esp + 0x10], 0xbc
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], 0x33
mov byte [esp + 0x13], 0x11
mov byte [esp + 0x14], 0x71
mov byte [esp + 0x15], 0x4a
mov byte [esp + 0x16], 0x69
mov byte [esp + 0x17], 0xad
mov byte [esp + 0x30], 0x87
mov byte [esp + 0x31], 0xc0
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], 0xb6
mov byte [esp + 0x34], 0xb7
mov byte [esp + 0x35], 0x26
mov byte [esp + 0x36], 0x99
mov byte [esp + 0x37], 0xc7
mov byte [esp + 0x50], 0xa1
mov byte [esp + 0x51], 0x6a
mov byte [esp + 0x52], 0xbf
mov byte [esp + 0x53], 0xd5
mov byte [esp + 0x54], 1
mov byte [esp + 0x55], 0x79
mov byte [esp + 0x56], 0xd6
mov byte [esp + 0x57], 0xac
jne 0x42b8e7
cmp ax, 0xb5c
jne 0x42ba03
shr eax, 0x10
cmp ax, 0x4db8
jne 0x42ba03
mov eax, dword [esp + 0x20]
cmp eax, esi
jne 0x42ba03
mov ecx, dword [esp + 0x24]
cmp ecx, edi
jne 0x42ba03
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0046d6fd
add esp, 0x54
ret 0x10
cmp ecx, 0x5808c8aa
jne 0x42b936
cmp ax, 0x7e8f
jne 0x42ba03
shr eax, 0x10
cmp ax, 0x42e0
jne 0x42ba03
mov edx, dword [esp + 0x40]
cmp edx, esi
jne 0x42ba03
mov eax, dword [esp + 0x44]
cmp eax, edi
jne 0x42ba03
mov eax, 2
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0046d6fd
add esp, 0x54
ret 0x10
cmp ecx, 0xaf9b60a0
jne 0x42b985
cmp ax, 0x1431
jne 0x42ba03
shr eax, 0x10
cmp ax, 0x4f62
jne 0x42ba03
mov ecx, dword [esp + 0x10]
cmp ecx, esi
jne 0x42ba03
mov edx, dword [esp + 0x14]
cmp edx, edi
jne 0x42ba03
mov eax, 3
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0046d6fd
add esp, 0x54
ret 0x10
cmp ecx, 0xebd0a0a2
jne 0x42b9c4
cmp ax, 0xb9e5
jne 0x42ba03
shr eax, 0x10
cmp ax, 0x4433
jne 0x42ba03
mov eax, dword [esp + 0x30]
cmp eax, esi
jne 0x42ba03
mov ecx, dword [esp + 0x34]
cmp ecx, edi
jne 0x42ba03
mov eax, 4
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0046d6fd
add esp, 0x54
ret 0x10
cmp ecx, 0xde94bba4
jne 0x42ba03
cmp ax, 0x6d1
jne 0x42ba03
shr eax, 0x10
cmp ax, 0x4d40
jne 0x42ba03
mov edx, dword [esp + 0x50]
cmp edx, esi
jne 0x42ba03
mov eax, dword [esp + 0x54]
cmp eax, edi
jne 0x42ba03
mov eax, 5
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0046d6fd
add esp, 0x54
ret 0x10
mov ecx, dword [esp + 0x58]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0046d6fd
add esp, 0x54
ret 0x10