joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032b0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4032ec
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x40330c
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040529c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4035a4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040502c
test esi, esi
jne 0x4035da
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040511c
jmp 0x4035f8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403448
mov edi, eax
test esi, esi
je 0x4035f8
cmp dword [ebx], 0
je 0x4035f8
dec esi
jmp 0x4035e1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403608
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x553008], 0x8088405
inc edx
mov dword [ebx + 0x553008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403e0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x553024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403ea4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403e84
xor eax, eax
push ebp
push 0x403e7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403ec0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403e84
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x553024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x553024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404dd8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55d04c], 0
je 0x404e39
cmp word [0x55d220], 0xd7b2
jne 0x404e01
cmp dword [0x55d228], 0
jbe 0x404e01
mov eax, 0x55d21c
call dword [0x55d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x404e60
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x553030], 0
jne 0x404e55
push 0
push 0x55375c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404fb0
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 [0x553034], 0
je 0x404fd6
mov edx, esi
mov eax, ebx
call dword [0x553034]
jmp 0x404fe5
mov eax, 8
call fcn.0040309c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x55d04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404f78
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 0x406c6c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406e9c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406cef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406e9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406cef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406eb8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406d78
xor eax, eax
push ebp
push 0x406d71
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406aa8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406d56
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406ed8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406d56
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d78
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406e92
cmp byte [ebp - 0xd], 0
jne 0x406dbf
cmp byte [ebp - 0x12], 0
je 0x406e92
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406dd8
dec ebx
cmp byte [ebx], 0x2e
je 0x406de7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406dd7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406e92
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406e24
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406e92
cmp byte [ebp - 0xd], 0
je 0x406e92
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406e92
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d8b4
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40da0f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40da20
call fcn.0040daf4
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
push 0x40da30
call fcn.0040daf4
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x40d97f
cmp dword [ebp - 0x10], 0
je 0x40d97f
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0040d87c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.00405a08
mov eax, dword [ebp - 0x18]
call fcn.00405a18
push eax
call ebx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40d97f
xor eax, eax
push ebp
push 0x40d978
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x400
push 0
mov eax, dword [ebp - 8]
call fcn.0040550c
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [ebp - 0xc], eax
call fcn.00404a30
jmp 0x40d9e4
lea edx, [ebp - 4]
xor eax, eax
call fcn.004032b0
xor eax, eax
push ebp
push 0x40d9dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.0040d87c
mov eax, dword [ebp - 0x20]
call fcn.0040550c
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
mov eax, dword [ebp - 8]
call fcn.0040550c
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9e4
mov eax, dword [ebp - 4]
call fcn.0040550c
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da16
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00405050
lea eax, [ebp - 0x18]
call fcn.00405854
lea eax, [ebp - 4]
call fcn.0040502c
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call fcn.0040550c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e7b8
and ebx, 0xfffffff8
push ebx
push edi
call sub.kernel32.dll_SetFileAttributesA
push edi
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40ee20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40efaf
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x55f9e0], 0
je 0x40ee56
mov eax, ebx
call dword [0x55f9e0]
movzx eax, byte [edi]
sub al, 2
jae 0x40eefc
mov eax, ebx
call fcn.00405308
mov edx, eax
lea eax, [ebp - 8]
call fcn.00405794
mov eax, ebx
call fcn.00405308
test eax, eax
jns 0x40ee82
call fcn.00403edc
push eax
mov eax, dword [ebp - 8]
call fcn.0040550c
push eax
mov eax, ebx
call fcn.0040550c
push eax
call sub.user32.dll_CharToOemBuffA
test eax, eax
jne 0x40eea7
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004050c4
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00405308
test eax, eax
jns 0x40eebe
call fcn.00403edc
push eax
mov eax, dword [ebp - 8]
call fcn.0040550c
push eax
push esi
call sub.kernel32.dll_WriteConsoleA
test eax, eax
je 0x40eed8
cmp dword [ebp - 0x10], 0
jne 0x40eef0
mov eax, 0x40efcc
call fcn.0040ed44
test al, al
je 0x40eeeb
mov byte [edi], 3
jmp 0x40eefc
mov byte [edi], 2
jmp 0x40eefc
mov byte [ebp - 9], 0
mov byte [edi], 1
jmp 0x40ef94
mov byte [ebp - 9], 1
cmp byte [edi], 3
jne 0x40ef44
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, ebx
call fcn.00405308
test eax, eax
jns 0x40ef1b
call fcn.00403edc
push eax
mov eax, 1
dec eax
test ebx, ebx
je 0x40ef2b
cmp eax, dword [ebx - 4]
jb 0x40ef30
call fcn.00403edc
inc eax
lea eax, [ebx + eax - 1]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_FlushFileBuffers
jmp 0x40ef94
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004050c4
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00405308
test eax, eax
jns 0x40ef65
call fcn.00403edc
push eax
lea eax, [ebp - 4]
call fcn.00405564
mov edx, 1
dec edx
test eax, eax
je 0x40ef7d
cmp edx, dword [eax - 4]
jb 0x40ef82
call fcn.00403edc
inc edx
lea eax, [eax + edx - 1]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_FlushFileBuffers
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40efb6
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405050
ret
Function at 0x40f0a4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004069d8
test eax, eax
jne 0x40f0c8
push 0x57
call sub.kernel32.dll_SetLastError
jmp 0x40f147
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40f147
xor eax, eax
push ebp
push 0x40f139
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 8]
test ecx, ecx
jns 0x40f0f9
call fcn.00403edc
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00403348
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f140
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4145ac
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
call fcn.00414460
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.004038b8
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
push 0x10
push 0x3000
mov eax, dword [ebp - 0x24]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41460d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
mov eax, ebx
call fcn.004145a8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414619
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualFree_1
test bl, bl
je 0x414635
mov eax, dword [0x55c63c]
or dword [eax], 0x10
xor ebx, ebx
xor eax, eax
test al, al
je 0x4146b9
push 4
push 0x3000
mov eax, dword [ebp - 0x24]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
mov esi, fcn.004145a8
mov eax, esi
mov edx, 0x32
call fcn.0041418c
mov ebx, eax
test ebx, ebx
jns 0x41466e
call fcn.00403edc
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, ebx
call fcn.00403348
mov eax, dword [ebp - 4]
xor edx, edx
push ebp
push 0x41469d
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, eax
mov eax, ebx
call esi
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4146a9
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualFree_1
test bl, bl
je 0x4146d2
mov eax, dword [0x55c784]
mov eax, dword [eax]
or eax, 2
or eax, 4
mov edx, dword [0x55c784]
mov dword [edx], eax
call fcn.00414554
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415db4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov edi, eax
mov ebx, dword [ebp + 8]
test bl, bl
je 0x415ed4
mov eax, ebx
cmp al, 7
ja 0x415de0
and eax, 0x7f
bt dword [0x555130], eax
jb 0x415ed4
mov esi, 0xcc
movzx eax, bl
cmp eax, 6
ja case.0x415df7.0
jmp dword [eax*4 + 0x415dfe]
push 0x415ee0
call sub.kernel32.dll_OutputDebugStringA
jmp 0x415e98
push 0x415ef8
call sub.kernel32.dll_OutputDebugStringA
jmp 0x415e98
push 0x415f10
call sub.kernel32.dll_OutputDebugStringA
jmp 0x415e98
push 0x415f2c
call sub.kernel32.dll_OutputDebugStringA
jmp 0x415e98
push 0x415f40
call sub.kernel32.dll_OutputDebugStringA
jmp 0x415e98
push 0x415f5c
call sub.kernel32.dll_OutputDebugStringA
mov esi, 0xcb
mov eax, dword [0x65ff48]
call fcn.0040e418
test al, al
je 0x415e98
push 0x8000
push 0
mov eax, dword [0x65ff48]
push eax
call sub.kernel32.dll_VirtualFree_1
xor eax, eax
mov dword [0x65ff48], eax
jmp 0x415e98
push 0x415f78
call sub.kernel32.dll_OutputDebugStringA
cmp dword [0x555134], 0
jne 0x415eb6
mov eax, esi
cmp eax, 0xff
jbe 0x415eaf
call fcn.00403edc
call fcn.00404f4c
jmp 0x415ed4
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp - 1]
mov eax, edi
call dword [0x555134]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0x14

Function at 0x419e24
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call fcn.00419b90
pop ecx
lea eax, [ebp - 0x2c]
call fcn.00402c98
cmp dword [ebp - 0x20], 0
je 0x419e5d
mov ecx, 0x242010
mov edx, 0x419f24
mov eax, 0x419f58
call fcn.00415d00
jmp 0x419f14
xor eax, eax
push ebp
push 0x419f0d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x419eec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov esi, eax
mov edi, 0x555188
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x5551a0
mov esi, eax
mov edi, edx
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
call fcn.004199dc
mov eax, 0x555188
call fcn.00403134
mov byte [0x65ff0e], 1
mov byte [0x65ff0f], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419ef3
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a068
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call fcn.00419b90
pop ecx
lea eax, [ebp - 0x2c]
call fcn.00402c98
cmp dword [ebp - 0x20], 0
je 0x41a0a2
mov ecx, 0x242010
mov edx, 0x41a25c
mov eax, 0x41a290
call fcn.00415d00
jmp 0x41a24a
xor eax, eax
push ebp
push 0x41a239
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41a218
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.0040e950
test al, al
je 0x41a0f9
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0xc
call fcn.0040e950
test al, al
jne 0x41a108
mov eax, 0x5551a0
call fcn.00403120
jmp 0x41a1e9
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x18
call fcn.0040e950
test al, al
je 0x41a1a0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov esi, eax
mov edi, 0x555188
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [0x555194]
test ebx, ebx
je 0x41a14c
mov edx, 1
mov eax, ebx
call fcn.0040e99c
test al, al
jne 0x41a156
mov dword [0x555194], 0x418054
mov ebx, dword [0x555198]
test ebx, ebx
je 0x41a170
mov edx, 1
mov eax, ebx
call fcn.0040e99c
test al, al
jne 0x41a17a
mov dword [0x555198], 0x418078
mov ebx, dword [0x55519c]
test ebx, ebx
je 0x41a194
mov edx, 1
mov eax, ebx
call fcn.0040e99c
test al, al
jne 0x41a1d8
mov dword [0x55519c], 0x4180c4
jmp 0x41a1d8
mov eax, 0x555188
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov dword [0x555194], 0x418054
mov dword [0x555198], 0x418078
mov dword [0x55519c], 0x4180c4
mov esi, 0x555188
mov edi, 0x5551a0
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, 0x555188
call fcn.00403134
mov byte [0x65ff0e], 1
mov byte [0x65ff0f], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a21f
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41bca0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, eax
test esi, esi
jne 0x41bcb6
call fcn.0040f500
mov esi, eax
xor ebx, ebx
xor ecx, ecx
push ebp
push 0x41bd36
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov edx, esi
cmp word [edx], 0x5a4d
jne 0x41bd2c
mov eax, edx
add eax, 0x3c
mov eax, dword [eax]
test eax, eax
je 0x41bd2c
mov edi, edx
add edi, eax
mov edx, dword [edi]
cmp edx, 0x4550
jne 0x41bd2c
lea edx, [ebp - 0x14]
add edi, 4
mov eax, edi
mov ecx, 0x14
call fcn.00403348
test byte [ebp - 1], 0x20
je 0x41bd2a
push 0xa
push 0x41bd4c
push esi
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x41bd26
push 0xa
push 0x41bd58
push esi
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x41bd26
mov bl, 3
jmp 0x41bd2c
mov bl, 2
jmp 0x41bd2c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41bd42
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41bf10
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
test eax, eax
jns 0x41bf2a
call fcn.00403edc
push eax
push 0x41bed0
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret
Function at 0x41d588
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
xor esi, esi
mov edx, 0x40
mov eax, ebx
call fcn.0041c554
test al, al
je 0x41d5cf
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x41d5cf
cmp dword [eax + 0x3c], 0
je 0x41d5cf
mov esi, dword [eax + 0x3c]
add esi, ebx
mov edx, 0xf8
mov eax, esi
call fcn.0041c554
test al, al
je 0x41d5cd
cmp dword [esi], 0x4550
je 0x41d5cf
xor esi, esi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x427b58
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x427be8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x427be8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x427b9b
test edx, 3
jne 0x427b8a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x427b95
jmp 0x427b9b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x427b9b
cmp dword [ecx - 8], 1
je 0x427ba5
mov edx, ebx
or edx, 3
call fcn.00405794
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x427bb7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040502c

Function at 0x427bf4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x427c84
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x427c84
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x427c37
test edx, 3
jne 0x427c26
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x427c31
jmp 0x427c37
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x427c37
cmp dword [ecx - 8], 1
je 0x427c41
mov edx, ebx
or edx, 3
call fcn.00405794
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x427c53
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040502c

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040550c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x428af1
test al, 0x10
je 0x428af5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x42bcfc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x42bd35
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040511c
jmp 0x42bd3e
mov eax, ebx
mov edx, esi
call fcn.00405080
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4