joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100044f2
Capabilities:
Create directory

Disassembly:
test ecx, ecx
je 0x100046a8
cmp byte [ecx], 0
je 0x100046a8
push esi
push edi
push ecx
call fcn.1002657b
mov edi, eax
push 0x2f
lea ecx, [edi + 1]
push ecx
call fcn.10022120
add esp, 0xc
jmp 0x10004546
push edi
mov byte [esi], 0
call fcn.1002bd33
pop ecx
cmp eax, 0xffffffff
jne 0x10004536
call fcn.10025739
cmp dword [eax], 0x11
jne 0x10004558
lea eax, [esi + 1]
mov byte [esi], 0x2f
push 0x2f
push eax
call fcn.10022120
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x1000451d
push edi
call fcn.1002bd18
pop ecx
mov al, 1
pop edi
pop esi
ret
mov ecx, dword [0x10057cfc]
mov eax, ecx
mov edx, dword [0x10059780]
cmp edx, ecx
push ebx
push ebp
push 0xfffffffffffffffe
cmovg eax, edx
mov ebp, str.E:ChenYinMapYART3pLoguruloguru.cpp
pop ebx
cmp eax, ebx
jl 0x1000459a
push edi
push str.Failed_to_create_directory__s
push 0x287
push ebp
push ebx
call fcn.10005149
add esp, 0x14
mov edx, dword [0x10059780]
mov ecx, dword [0x10057cfc]
cmp edx, ecx
mov eax, ecx
cmovg eax, edx
cmp eax, ebx
jl 0x100045cf
call fcn.10025739
cmp dword [eax], 0xd
jne 0x100045c3
push str.EACCES
push 0x288
push ebp
push ebx
call fcn.10005149
add esp, 0x10
mov ecx, dword [0x10057cfc]
mov edx, dword [0x10059780]
cmp edx, ecx
mov eax, ecx
cmovg eax, edx
cmp eax, ebx
jl 0x10004604
call fcn.10025739
cmp dword [eax], 0x26
jne 0x100045f8
push str.ENAMETOOLONG
push 0x289
push ebp
push ebx
call fcn.10005149
add esp, 0x10
mov ecx, dword [0x10057cfc]
mov edx, dword [0x10059780]
cmp edx, ecx
mov eax, ecx
cmovg eax, edx
cmp eax, ebx
jl 0x10004639
call fcn.10025739
cmp dword [eax], 2
jne 0x1000462d
push str.ENOENT
push 0x28a
push ebp
push ebx
call fcn.10005149
add esp, 0x10
mov ecx, dword [0x10057cfc]
mov edx, dword [0x10059780]
cmp edx, ecx
mov eax, ecx
cmovg eax, edx
cmp eax, ebx
jl 0x1000466e
call fcn.10025739
cmp dword [eax], 0x14
jne 0x10004662
push str.ENOTDIR
push 0x28b
push ebp
push ebx
call fcn.10005149
add esp, 0x10
mov ecx, dword [0x10057cfc]
mov edx, dword [0x10059780]
cmp edx, ecx
cmovg ecx, edx
cmp ecx, ebx
jl 0x10004695
call fcn.10025739
cmp dword [eax], 0x72
jne 0x10004695
push str.ELOOP
push 0x28c
push ebp
push ebx
call fcn.10005149
add esp, 0x10
push edi
mov byte [esi], 0x2f
call fcn.1002bd18
pop ecx
pop ebp
xor al, al
pop ebx
jmp 0x10004555
push ecx
push ecx
call fcn.1000529c
int3
Function at 0x1000545d
Capabilities:
Set console window title

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x10057040]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_AttachConsole]
xor ebx, ebx
test eax, eax
jne 0x10005491
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x100054f8
push esi
push edi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x7c]
push str.YartLog__u
push eax
call fcn.10008b49
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0xfde9
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push 1
call fcn.10025984
push eax
mov edi, 0x1004f3bc
lea eax, [ebp - 0x80]
push edi
mov esi, str.CONOUT_
push esi
push eax
call fcn.1002bea5
push 2
call fcn.10025984
push eax
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.1002bea5
add esp, 0x28
pop edi
pop esi
sub esp, 0xc
mov byte [0x10057ad1], bl
mov byte [0x10057ad0], bl
mov byte [0x10057ad2], bl
mov dword [0x10059780], ebx
call fcn.100046b0
mov ecx, dword [ebp + 0x88]
add esp, 0xc
xor ecx, ebp
pop ebx
call fcn.10020674
add ebp, 0x8c
leave
ret

Function at 0x10008af5
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, 0x811c9dc5
xor edx, edx
movzx eax, byte [ecx + edx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, 4
jb 0x10008afd
mov eax, esi
pop esi
ret

Function at 0x10009ace
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
cmp dword [eax + 0x14], 0xf
mov esi, eax
push edi
jbe 0x10009ae0
mov esi, dword [eax]
mov ebp, dword [eax + 0x10]
xor ebx, ebx
mov edi, 0x811c9dc5
test ebp, ebp
je 0x10009b06
movzx eax, byte [esi + ebx]
push eax
call fcn.1002652a
xor eax, edi
imul edi, eax, 0x1000193
inc ebx
pop ecx
cmp ebx, ebp
jb 0x10009aee
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x1000d983
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor ebx, ebx
mov ebp, str.Game.dll
push ebx
push ebp
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
je 0x1000da49
cmp esi, 0x7fffffff
ja 0x1000da53
push edi
push esi
call fcn.1000266e
push esi
mov edi, eax
push ebx
push edi
call fcn.10022850
add esp, 0x10
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x1c]
call fcn.1000e39f
push edi
push dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
push ebx
push ebp
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1000da12
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x34
push eax
lea eax, [esp + 0x18]
push eax
push 0x1005083c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1000da12
mov eax, dword [esp + 0x14]
movzx ebx, word [eax + 0xc]
test edi, edi
je 0x1000da48
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
cmp esi, 0x1000
jb 0x1000da3f
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.10001900
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
pop ecx
pop ecx
push esi
push edi
call fcn.1002070c
pop ecx
pop ecx
pop edi
pop esi
pop ebp
mov ax, bx
pop ebx
add esp, 0x10
ret
call fcn.1000a1e2
int3

Function at 0x1000dcfe
Capabilities:
Enumerate process modules

Disassembly:
push ebp
lea ebp, [esp - 0x1f88]
mov eax, 0x2008
call fcn.100218d0
mov eax, dword [0x10057040]
xor eax, ebp
mov dword [ebp + 0x1f84], eax
lea eax, [ebp - 0x80]
push eax
push 0x2000
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x1000dd78
push esi
xor esi, esi
test dword [ebp - 0x80], 0xfffffffc
jbe 0x1000dd77
push edi
mov edi, dword [ebp + esi*4 - 0x7c]
push 0x10050898
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000dd6b
cmp edi, dword [0x1005a1d0]
je 0x1000dd6b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x80]
inc esi
shr eax, 2
cmp esi, eax
jb 0x1000dd48
pop edi
pop esi
mov ecx, dword [ebp + 0x1f84]
xor ecx, ebp
call fcn.10020674
add ebp, 0x1f88
leave
ret
Function at 0x1000dd8d
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa78
mov eax, dword [0x10057040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call fcn.1000dcfe
lea eax, [ebp - 0x210]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov esi, 0x208
lea eax, [ebp - 0x418]
push esi
push 0
push eax
call fcn.10022850
add esp, 0xc
lea eax, [ebp - 0x828]
push ebx
push eax
lea eax, [ebp - 0x418]
push ebx
push eax
call fcn.1002c211
push ebx
push str.yart.dll
lea eax, [ebp - 0x418]
push ebx
push eax
call fcn.1002c211
push esi
lea eax, [ebp - 0x620]
push 0
push eax
call fcn.10022850
add esp, 0x2c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.yart_d.dll
lea eax, [ebp - 0x620]
push ebx
push eax
call fcn.1000d8f8
add esp, 0x10
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000df27
test byte [ebp - 0xa78], 0x10
jne 0x1000df0a
lea ecx, [ebp - 0xa4c]
lea eax, [ebp - 0x620]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000de9a
test dx, dx
je 0x1000de96
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000de9a
add eax, 4
add ecx, 4
test dx, dx
jne 0x1000de74
xor eax, eax
jmp 0x1000de9f
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000df0a
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x828]
push eax
push str._ls_ls
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.1000d8f8
mov ecx, dword [0x10057cfc]
add esp, 0x14
cmp dword [0x10059780], ecx
cmovg ecx, dword [0x10059780]
test ecx, ecx
js 0x1000defd
lea eax, [ebp - 0x210]
push eax
push str.DeleteFileW:__ls
push 0xb4
push str.E:ChenYinMapYARTEngineExpvtDllHelper.cpp
push 0
call fcn.10005149
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xa78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000de5b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10020674
leave
ret

Function at 0x1000fac4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebp
push esi
push edi
lea eax, [esp + 0xc]
xor esi, esi
push eax
push 0x40
inc esi
mov edi, ecx
push esi
push edi
mov ebp, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000fb11
push esi
push ebp
mov edx, esi
mov ecx, edi
call fcn.1000fa51
pop ecx
pop ecx
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
jmp 0x1000fb13
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret
Function at 0x1000fba2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x1005a1e4], eax
call fcn.1001f9ed
mov dword [0x1005a1f0], eax
test eax, eax
jne 0x1000fbd4
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
mov dword [0x1005a1f0], eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 8
pop esi
lea eax, [ebp - 8]
mov edx, esi
push esi
push eax
mov ecx, 0x1005a200
call fcn.1000fa51
pop ecx
pop ecx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push eax
push dword [0x1005a1e4]
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea eax, [ebp - 0x10]
mov edx, esi
push esi
push eax
mov ecx, 0x1005a1e8
call fcn.1000fa51
lea eax, [ebp - 0x18]
mov edx, esi
push esi
push eax
mov ecx, 0x1005a1f8
call fcn.1000fa51
add esp, 0x10
pop esi
leave
ret

Function at 0x1000ff48
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0x40
push 4
push esi
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000ff8c
lea eax, [ebp - 4]
mov dword [esi], ebx
push eax
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
xor eax, eax
inc eax
jmp 0x1000ff8e
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x1000ff96
Capabilities:
Execute shellcode via indirect call

Disassembly:
mov eax, dword [0x100598a0]
xor edx, edx
push ebx
mov bl, cl
mov ecx, str.SaveGameFileEditBox
call eax
test eax, eax
je 0x1001007b
mov edx, dword [0x10057cfc]
cmp dword [0x10059780], edx
push ebp
cmovg edx, dword [0x10059780]
lea ebp, [eax + 0x1d4]
push esi
lea esi, [eax + 0x108]
push edi
lea edi, [eax + 0x1e8]
test edx, edx
js 0x1000fff8
push dword [edi]
push dword [esi]
push dword [ebp]
push str.111__X___X___X
push 0x42
push str.E:ChenYinMapYARTEngineExpvtxMinorFixups.cpp
push 0
call fcn.10005149
add esp, 0x1c
movzx edx, bl
mov ecx, ebp
xor edx, 1
call fcn.1000ff48
xor edx, edx
mov ecx, esi
call fcn.1000ff48
xor edx, edx
mov ecx, edi
call fcn.1000ff48
mov eax, dword [0x100598a0]
xor edx, edx
mov ecx, str.FileListFrame
call eax
test eax, eax
je 0x10010078
mov ecx, dword [0x10057cfc]
lea esi, [eax + 0x10c]
cmp dword [0x10059780], ecx
cmovg ecx, dword [0x10059780]
test ecx, ecx
js 0x1001005e
push dword [esi]
push str.222__X
push 0x48
push str.E:ChenYinMapYARTEngineExpvtxMinorFixups.cpp
push 0
call fcn.10005149
add esp, 0x14
pop edi
mov ecx, esi
test bl, bl
pop esi
mov edx, 0x1058b93e
mov eax, 0x3b03123e
pop ebp
cmovne edx, eax
pop ebx
jmp fcn.1000ff48
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1001139c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, dword [esp + 4]
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x100113aa
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [eax + 0x10]
xor esi, esi
mov edx, 0x811c9dc5
test edi, edi
je 0x100113cb
movzx eax, byte [ecx + esi]
xor eax, edx
imul edx, eax, 0x1000193
inc esi
cmp esi, edi
jb 0x100113ba
pop edi
mov eax, edx
pop esi
ret 4

Function at 0x1001b4a2
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042f2a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10057040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x10]
mov dword [esi], 0x10051d48
push eax
mov dword [ebp - 0x10], esi
call fcn.10003673
mov ecx, dword [esi + 0xc]
call fcn.1001da8f
lea ecx, [esi + 0x30]
call fcn.10003128
lea ecx, [esi + 0x18]
call fcn.10003128
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret

Function at 0x1001e51d
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10057040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x1001e628
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1001e621
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0x1001e5e5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1001e5e5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1001e5e5
mov edx, dword [esi]
test edx, edx
jne 0x1001e5ae
push 0x200
push edx
push dword [0x10059a00]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1001e60a
lea ebx, [esi + 8]
jmp 0x1001e5d8
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x1001e5d8
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x10059a00]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1001e639
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1001e566
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1001e621
xor edi, edi
cmp dword [esi], edi
je 0x1001e621
push dword [esi]
push edi
push dword [0x10059a00]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10020674
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0x1001e60a
Function at 0x1001e63e
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.1001e51d
test eax, eax
jne 0x1001e662
push 9
pop esi
jmp 0x1001e6a9
cmp dword [edi], esi
je 0x1001e6a9
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x1001e6a8
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x1001e6a2
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.1001e3ca
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x1001e66e
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x1001e6af
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x1001e6fb
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1001e6ea
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1001e6e3
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1001e6c0
pop ebx
push dword [esi]
push 0
push dword [0x10059a00]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0x1001e6fd
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
imul esi, ecx, 0x2c
push edi
mov edi, edx
mov dword [ebp - 0x10], edi
add esi, dword [0x1005ab30]
mov dword [ebp - 8], esi
mov al, byte [esi + 0x14]
mov ebx, dword [esi]
and al, 1
je 0x1001e723
sub ebx, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1001e74a
push 0xa
pop eax
jmp 0x1001e7ca
test edi, edi
je 0x1001e76b
mov byte [ebx], 0xe9
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [esi + 0x14], 1
je 0x1001e78a
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1001e78a
test byte [esi + 0x14], 1
je 0x1001e77f
lea esi, [esi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
jmp 0x1001e78a
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [esi + 0x14], dl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001ee7e
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x1005ab28]
push esi
xor esi, esi
jmp 0x1001ee90
cmp dword [edx + 4], esi
jne 0x1001eee4
mov edx, dword [edx]
test edx, edx
jne 0x1001ee89
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x1001eee0
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x1001eeb7
mov eax, dword [0x1005ab28]
mov dword [edx], eax
mov dword [0x1005ab28], edx
pop edi
test edx, edx
jne 0x1001eee4
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret

Function at 0x100202ad
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100202d4
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100202d7
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10020289
pop esi
leave
ret 8

Function at 0x10036be9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10036b6b

Function at 0x10039618
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10039295

Function at 0x100411c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100411ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100411ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405d57
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
lea eax, [ebp - 0x214]
push 0x104
xor esi, esi
push eax
push esi
jmp loc.0045239b

Function at 0x405fcc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x40b0d8]
xor esi, esi
mov dword [ebp - 4], esi
call fcn.004027a1
test eax, eax
je 0x4060d9
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [0x40b058]
mov edi, dword [0x40b05c]
lea eax, [ebp - 0x20c]
push 0x4046f8
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call fcn.00403c0f
mov ebx, eax
cmp ebx, esi
je 0x4060d4
push 9
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, esi
je 0x4060cd
lea ecx, [ebp - 0xa0c]
push 0x400
push ecx
mov word [ebp - 0xa0c], si
call eax
cmp word [ebp - 0xa0c], si
je 0x4060cd
push dword [ebp + 8]
push 2
call fcn.00406ad4
test eax, eax
je 0x4060cd
push 0x4046d8
push dword [ebp + 8]
call edi
test eax, eax
je 0x4060cd
push esi
push 0x100
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call fcn.004036cd
mov edi, eax
cmp edi, 0xffffffff
je 0x4060cd
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
shl eax, 1
push eax
lea eax, [ebp - 0xa0c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret 8

Function at 0x406165
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
mov esi, ecx
push dword [esi + 4]
mov dword [esi], 0x40470c
call dword [sym.imp.USER32.DLL_IsWindow]
test eax, eax
je 0x4061e0
push 0xffffffffffffffeb
push dword [esi + 4]
call fcn.0040198f
cmp esi, eax
jne 0x4061e0
push 0
push 0xffffffffffffffeb
push dword [esi + 4]
call fcn.00403b6e
and byte [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push 0x100
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
lea ecx, [ebp - 0x10c]
push 1
mov dword [ebp - 8], ecx
pop eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
push ecx
push eax
push 0x4000000
push 0x30357864
call fcn.00403379
add esp, 0x10
pop esi
leave
ret

Function at 0x406474
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp eax, 0x205
mov esi, ecx
jne 0x406499
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
test eax, eax
je 0x4064db
mov ecx, esi
call fcn.00406348
jmp 0x4064db
cmp eax, 0x202
jne 0x4064c4
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
test eax, eax
je 0x4064db
call dword [sym.imp.USER32.DLL_GetDoubleClickTime]
push 0
push eax
push 0x64
push dword [esi + 4]
call dword [sym.imp.USER32.DLL_SetTimer]
jmp 0x4064db
cmp eax, 0x203
jne 0x4064db
push 0
mov ecx, esi
mov dword [esi + 0x18], 1
call fcn.004062e5
pop esi
ret 4