joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406bd3
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x41093c
call fcn.0040fdb0
sub esp, 0x158
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_2
push 1
lea ecx, [ebp - 0x10]
pop eax
mov byte [ebp - 4], 2
push dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.0040fbf2
push 0x416078
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x406c60
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 8]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040fb86
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
and dword [ebp - 0x1c], 0
push ebx
push esi
push dword [ebp + 8]
mov esi, 0x416ca0
lea eax, [ebp - 0x18]
push esi
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406d87
push edi
mov edi, 0x41615c
cmp dword [ebp - 0x20], 0
je 0x406d86
test byte [ebp - 0x164], 0x10
jne 0x406cd0
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push edi
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x406d70
lea eax, [ebp - 0x138]
push 0x416c9c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x406d70
lea eax, [ebp - 0x138]
push 0x416c98
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x406d70
cmp dword [ebp - 0x1c], 0
je 0x406d2c
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str._s.
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x18]
push dword [ebp - 0x10]
push esi
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x406d5e
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push str._s_s.
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x18]
push dword [ebp - 0x10]
push edi
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push dword [ebp - 0x14]
call fcn.00406bd3
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [ebp - 0x164]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x20], eax
jmp 0x406c98
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x407a95
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push 5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x407b19
push esi
mov esi, 0x104
push esi
push eax
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push str._sWININIT.INI
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop esi
push 1
pop eax
leave
ret
Function at 0x407b1e
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
lea eax, [ebp - 0x184]
push ebx
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x1c]
push edi
xor ebx, ebx
push eax
push 8
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x407b76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_Error__u_n
jmp 0x407cc5
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push dword [ebp - 4]
push ebx
push 2
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x407ba5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x407ba5
push eax
push str.GetTokenInformation_Error__u_n
jmp 0x407cc5
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 2
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x407bcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407b9a
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x10]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x407bff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AllocateAndInitializeSid_Error__u_n
jmp 0x407cc5
cmp dword [edi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x407c98
lea esi, [edi + 4]
push dword [esi]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x407c87
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0x100
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x120]
push eax
push dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
jne 0x407c6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x534
jne 0x407cb9
lea eax, [ebp - 0x120]
push str.NONE_MAPPED
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x120]
push str.Administrator
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jl 0x407c87
mov dword [ebp - 0x18], 1
inc dword [ebp - 0x14]
add esi, 8
mov eax, dword [ebp - 0x14]
cmp eax, dword [edi]
jb 0x407c0d
cmp dword [ebp - 8], ebx
je 0x407ca6
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp edi, ebx
je 0x407cb1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupAccountSid_Error__u_n
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
xor eax, eax
pop ecx
jmp 0x407cb4
Function at 0x4091c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4091eb
xor eax, eax
pop esi
pop ecx
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 8
jae 0x409205
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret
push edi
push 2
push 0
push 0xfffffffffffffff8
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
push 4
push edx
push esi
call edi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push 0
push eax
push 4
push ecx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ecx
ret

Function at 0x409250
Capabilities:
Create directory

Disassembly:
sub esp, 0x110
mov ecx, 0x44
xor eax, eax
push ebx
mov ebx, dword [esp + 0x118]
push ebp
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
lea edi, [esp + 0x10]
mov esi, ebx
rep stosd dword es:[edi], eax
cmp byte [ebx], 0
je 0x4092a5
lea edi, [esp + 0x10]
sub edi, ebx
mov al, byte [esi]
cmp al, 0xa
je 0x4092a5
cmp al, 0xd
je 0x4092a5
cmp al, 0x5c
jne 0x409298
lea eax, [esp + 0x10]
push 0
push eax
call ebp
mov cl, byte [esi]
mov al, byte [esi + 1]
mov byte [edi + esi], cl
inc esi
test al, al
jne 0x409281
push 0
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret

Function at 0x409410
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
push edi
mov esi, dword [edx + 4]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [ecx*4 + 0x4123b0]
xor ecx, esi
mov esi, dword [edx + 8]
mov dword [edx + 4], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 0xc]
imul ecx, ecx, 0x8088405
inc ecx
mov edi, esi
mov dword [edx + 8], ecx
and edi, 0xff
shr ecx, 0x18
xor ecx, edi
pop edi
shr esi, 8
mov ecx, dword [ecx*4 + 0x4123b0]
xor ecx, esi
pop esi
mov dword [edx + 0xc], ecx
ret
Function at 0x409780
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x409791
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x4097f8
push edi
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0xa
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, dword [esp + 0x20]
mov dword [esi + 4], eax
push edi
call fcn.00409470
mov edx, dword [esi + 0x44]
push edi
push 0xa
push edx
call fcn.00409ad0
mov eax, dword [esi + 4]
add esp, 0x20
test eax, eax
pop edi
jne 0x4097f3
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
or eax, 0xffffffff
test byte [ecx + 0xc], 0x20
je 0x4097fd
mov dword [esi + 0x38], eax
pop esi
ret
mov edx, dword [esi + 0x44]
mov dword [esi], edx
mov eax, 1
pop esi
ret

Function at 0x409950
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x409961
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x4099b0
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x4099ab
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
or eax, 0xffffffff
test byte [edx + 0xc], 0x20
je 0x4099c2
mov dword [esi + 0x38], eax
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi + 4]
xor ecx, ecx
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
mov eax, ecx
pop esi
ret

Function at 0x409a80
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
test eax, eax
jle 0x409ac4
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
push edi
mov bl, byte [esi + ebp]
call fcn.004093f0
push edi
push ebx
mov dword [esp + 0x28], eax
call fcn.00409410
mov al, byte [esp + 0x28]
add esp, 0xc
xor al, bl
mov byte [esi + ebp], al
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x409a96
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x409ad0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
test eax, eax
jle 0x409b0c
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
push edi
mov bl, byte [esi + ebp]
call fcn.004093f0
xor ebx, eax
push edi
push ebx
call fcn.00409410
mov eax, dword [esp + 0x24]
add esp, 0xc
mov byte [esi + ebp], bl
inc esi
cmp esi, eax
jl 0x409ae6
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x409d70
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4000
call fcn.0040ffb0
push ebx
mov ebx, dword [esp + 0x4008]
test ebx, ebx
je 0x409e56
cmp byte [ebx + 0x5c], 0x77
jne 0x409e56
mov eax, dword [esp + 0x400c]
push ebp
mov dword [ebx], eax
mov eax, dword [esp + 0x4014]
push esi
push edi
test eax, eax
mov dword [ebx + 4], eax
je 0x409e25
mov ebp, dword [esp + 0x4020]
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x409e03
mov esi, dword [ebx + 0x48]
mov ecx, 0x1000
lea edi, [esp + 0x10]
push ebp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
push 0x4000
push ecx
call fcn.00409a80
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x48]
push eax
push 0x4000
lea ecx, [esp + 0x24]
push 1
push ecx
mov dword [ebx + 0xc], edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
cmp eax, 0x4000
jne 0x409e1e
mov dword [ebx + 0x10], eax
push 0
push ebx
call fcn.0040a990
add esp, 8
mov dword [ebx + 0x38], eax
test eax, eax
jne 0x409e25
mov eax, dword [ebx + 4]
test eax, eax
jne 0x409db5
jmp 0x409e25
mov dword [ebx + 0x38], 0xffffffff
mov esi, dword [esp + 0x401c]
mov edx, dword [esp + 0x4018]
mov eax, dword [ebx + 0x4c]
push esi
push edx
push eax
call fcn.0040ba20
mov ecx, dword [ebx + 4]
add esp, 0xc
mov dword [ebx + 0x4c], eax
mov eax, esi
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x4000
ret
mov eax, 0xfffffffe
pop ebx
add esp, 0x4000
ret

Function at 0x409e70
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
test esi, esi
push edi
je 0x409f1e
cmp byte [esi + 0x5c], 0x77
jne 0x409f1e
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x10]
mov edi, 0x4000
sub edi, eax
je 0x409ebf
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, edi
jne 0x409f04
mov edx, dword [esi + 0x48]
mov dword [esi + 0x10], 0x4000
mov dword [esi + 0xc], edx
test ebx, ebx
jne 0x409f0e
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0040a990
add esp, 8
mov dword [esi + 0x38], eax
test edi, edi
jne 0x409ee0
cmp eax, 0xfffffffb
jne 0x409ee0
mov dword [esi + 0x38], edi
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x409ef1
cmp dword [esi + 0x38], 1
je 0x409ef1
xor ebx, ebx
jmp 0x409ef6
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x409e8e
cmp eax, 1
jne 0x409f0e
jmp 0x409e8e
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebx
ret
mov esi, dword [esi + 0x38]
pop edi
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x40a060
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
test esi, esi
push edi
je 0x40a120
cmp byte [esi + 0x5c], 0x77
jne 0x40a120
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x10]
mov edi, 0x4000
sub edi, eax
je 0x40a0be
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x48]
push eax
push edi
push ecx
call fcn.00409a80
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push edx
push edi
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
cmp eax, edi
jne 0x40a106
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x10], 0x4000
mov dword [esi + 0xc], ecx
test ebx, ebx
jne 0x40a110
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.0040a990
add esp, 8
mov dword [esi + 0x38], eax
test edi, edi
jne 0x40a0df
cmp eax, 0xfffffffb
jne 0x40a0df
mov dword [esi + 0x38], edi
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40a0f0
cmp dword [esi + 0x38], 1
je 0x40a0f0
xor ebx, ebx
jmp 0x40a0f5
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40a07e
cmp eax, 1
jne 0x40a110
jmp 0x40a07e
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebx
ret
mov esi, dword [esi + 0x38]
pop edi
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret

Function at 0x40ba20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40ba2b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x40bb2e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x412868]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x412868]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x412868]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x412868]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x412868]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x412868]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x412868]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x412868]
xor eax, edx
inc ecx
dec edi
jne 0x40ba46
pop edi
test esi, esi
je 0x40bb50
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x412868]
xor eax, edx
inc ecx
dec esi
jne 0x40bb32
pop esi
pop ebx
not eax
ret
Function at 0x42204070
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
call fcn.4220403c
push str.LocalFastMM_PID_________
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov ebx, eax
test ebx, ebx
jne 0x4220408f
xor esi, esi
jmp 0x422040ab
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov esi, dword [eax]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, esi
pop esi
pop ebx
ret

Function at 0x42204114
Capabilities:
Read file via mapping

Disassembly:
call fcn.42204474
test al, al
jne 0x4220416e
cmp dword [0x422bbae8], 0
jne 0x4220416e
call fcn.42204070
test eax, eax
jne 0x4220416b
push str.LocalFastMM_PID_________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x422bbae8], eax
push 0
push 0
push 0
push 2
mov eax, dword [0x422bbae8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [eax], fcn.42202d98
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov al, 1
jmp 0x42204170
xor eax, eax
ret
xor eax, eax
ret

Function at 0x4220480c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.42206b70
test esi, esi
jne 0x42204844
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.42206cac
jmp 0x42204862
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.422046f0
mov edi, eax
test esi, esi
je 0x42204862
cmp dword [ebx], 0
je 0x42204862
dec esi
jmp 0x4220484b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x422060a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x422b9054], 0
je 0x42206109
cmp word [0x422b9330], 0xd7b2
jne 0x422060d1
cmp dword [0x422b9338], 0
jbe 0x422060d1
mov eax, 0x422b932c
call dword [0x422b9348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x42206134
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x422b6030], 0
jne 0x42206125
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x42206294
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x422b6034], 0
je 0x422062ba
mov edx, esi
mov eax, ebx
call dword [0x422b6034]
jmp 0x422062c9
mov eax, 8
call fcn.422043dc
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x422b9055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4220625c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x42208b80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x42208ce7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.42206b70
cmp si, word [0x422b6828]
jb 0x42208c1a
cmp si, word [0x422b6a28]
ja 0x42208c1a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x42208c1a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x422b6828]
jae 0x42208bf4
mov edi, ebx
dec edi
jmp 0x42208c15
cmp si, word [ebx*8 + 0x422b6828]
jbe 0x42208c04
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x42208c15
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x422b682c]
call fcn.42208a90
jmp 0x42208c1a
cmp edi, dword [ebp - 0xc]
jae 0x42208bde
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x42208cc9
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x42208cc9
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.42206d58
push dword [ebp - 0x164]
push 0x42208d04
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.42206d58
push dword [ebp - 0x168]
push 0x42208d14
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.42206d58
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.42207110
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42208cee
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.42206b68
ret
Function at 0x42208ea0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42208fa5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x422bbb5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x422bbb74]
jne 0x42208eec
mov eax, esi
mov edx, 0x422bbb78
mov ecx, 0x55
call fcn.42206d58
push 0x422bbb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x42208f8f
push 0x422bbb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.42206b70
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x42208f5d
cmp byte [0x422bbb58], 0
je 0x42208f22
mov edx, esi
mov eax, ebx
call fcn.42208d80
jmp 0x42208f5d
mov edx, esi
mov eax, ebx
call fcn.42208b80
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x42208f5d
cmp dword [esi], 0
je 0x42208f46
mov eax, esi
mov edx, 0x42208fc0
call fcn.42206f6c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.42208b80
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.42206f6c
push 0x422bbb5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x422bbb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.42206bfc
push eax
push 0x422bbb78
call sub.kernel32.dll_lstrcpynW
push 0x422bbb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42208fac
lea eax, [ebp - 4]
call fcn.42206b60
ret