joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003970
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov edx, 1
mov dword [0x1000ccb0], eax
mov eax, 0x1000ccb0
push esi
mov ecx, dword [eax]
add eax, 4
mov esi, ecx
shr esi, 0x1e
xor esi, ecx
imul esi, esi, 0x6c078965
add esi, edx
inc edx
mov dword [eax], esi
cmp eax, 0x1000d66c
jl 0x10003984
mov dword [0x1000bbe0], edx
pop esi
ret

Function at 0x100039b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x1000bbe0]
cmp eax, 0x270
jl 0x10003a8e
cmp eax, 0x271
jne 0x100039d4
push 0x1571
call sym.core.dll_void___cdecl_mt_srand_unsigned_int_
add esp, 4
xor ecx, ecx
mov edx, dword [ecx*4 + 0x1000ccb0]
mov eax, dword [ecx*4 + 0x1000ccb4]
xor eax, edx
and eax, 0x7fffffff
xor eax, edx
mov edx, eax
and edx, 1
shr eax, 1
mov edx, dword [edx*4 + 0x1000bbe4]
xor edx, eax
mov eax, dword [ecx*4 + 0x1000d2e4]
xor edx, eax
mov dword [ecx*4 + 0x1000ccb0], edx
inc ecx
cmp ecx, 0xe3
jl 0x100039d6
cmp ecx, 0x26f
jge 0x10003a5b
lea ecx, [ecx*4 + 0x1000ccb0]
push esi
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
xor eax, edx
mov esi, dword [ecx - 0x38c]
and eax, 0x7fffffff
add ecx, 4
xor eax, edx
mov edx, eax
and edx, 1
shr eax, 1
mov edx, dword [edx*4 + 0x1000bbe4]
xor edx, esi
xor edx, eax
cmp ecx, 0x1000d66c
mov dword [ecx - 4], edx
jl 0x10003a26
pop esi
mov eax, dword [0x1000ccb0]
mov ecx, dword [0x1000d66c]
xor eax, ecx
and eax, 0x7fffffff
xor eax, ecx
mov ecx, eax
and ecx, 1
shr eax, 1
mov edx, dword [ecx*4 + 0x1000bbe4]
xor edx, eax
mov eax, dword [0x1000d2e0]
xor edx, eax
xor eax, eax
mov dword [0x1000d66c], edx
mov ecx, dword [eax*4 + 0x1000ccb0]
inc eax
mov dword [0x1000bbe0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov edx, ecx
and edx, 0xff3a58ad
shl edx, 7
xor ecx, edx
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x10004ef0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x10004ff1
mov eax, dword [esp + 0x10]
xor edx, edx
sub eax, edx
je 0x10004f3d
dec eax
je 0x10004fa4
dec eax
jne 0x10004ff1
mov eax, dword [esp + 4]
cmp eax, 3
jne 0x10004f4c
mov dword [0x1000bdf0], edx
xor al, al
add esp, 0x94
ret
cmp eax, 4
jne 0x10004f64
mov dword [0x1000bdf0], 3
mov al, 1
add esp, 0x94
ret
mov ecx, 5
cmp eax, ecx
jne 0x10004f95
mov eax, dword [esp + 8]
cmp eax, edx
mov al, 1
jne 0x10004f88
mov dword [0x1000bdf0], 4
add esp, 0x94
ret
mov dword [0x1000bdf0], ecx
add esp, 0x94
ret
mov dword [0x1000bdf0], ecx
mov al, 1
add esp, 0x94
ret
cmp dword [esp + 4], 4
jb 0x10004fe7
mov eax, dword [esp + 8]
cmp eax, 0xa
jae 0x10004fc3
mov dword [0x1000bdf0], edx
xor al, al
add esp, 0x94
ret
cmp eax, 0x5a
jae 0x10004fe7
cmp dword [esp + 0xc], 0x887
jb 0x10004f3d
mov eax, 1
mov dword [0x1000bdf0], eax
add esp, 0x94
ret
mov dword [0x1000bdf0], 2
mov al, 1
add esp, 0x94
ret
Function at 0x10005040
Capabilities:
Get file version info

Disassembly:
mov al, byte [0x1000d9ec]
sub esp, 0x110
test al, al
push esi
push edi
jne 0x100050e3
lea eax, [esp + 0x14]
push 0x104
push eax
push 0
mov byte [0x1000d9ec], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x100050e3
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x100050e3
push esi
push edi
lea eax, [esp + 0x1c]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push str.StringFileInfo040904B0InternalName
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 8]
push 0x104
push eax
push str.game
call dword [sym.imp.MSVCRT.dll_strncpy]
push esi
mov byte [0x1000c003], 0
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x10
pop edi
mov eax, str.game
pop esi
add esp, 0x110
ret

Function at 0x10005100
Capabilities:
Get file version info

Disassembly:
mov al, byte [0x1000d9ed]
sub esp, 0x110
test al, al
push esi
push edi
jne 0x100051f9
lea eax, [esp + 0x14]
push 0x104
push eax
push 0
mov byte [0x1000d9ed], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x100051f9
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x100051f9
push esi
push edi
lea eax, [esp + 0x1c]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push str.StringFileInfo040904B0FileVersion
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 8]
push 0x104
push eax
push str.x.x.x.x
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
mov byte [0x1000c10b], 0
push ecx
push edx
push str.StringFileInfo040904B0SpecialBuild
push esi
call sub.VERSION.dll_VerQueryValueA
mov edi, dword [sym.imp.MSVCRT.dll_strncat]
push 0x104
push str._
push str.x.x.x.x
call edi
mov eax, dword [esp + 0x14]
push 0x104
push eax
push str.x.x.x.x
mov byte [0x1000c10b], 0
call edi
push esi
mov byte [0x1000c10b], 0
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x1c
pop edi
mov eax, str.x.x.x.x
pop esi
add esp, 0x110
ret
Function at 0x10005210
Capabilities:
Get file version info

Disassembly:
mov al, byte [0x1000d9ee]
sub esp, 0x110
test al, al
push esi
push edi
jne 0x100052b3
lea eax, [esp + 0x14]
push 0x104
push eax
push 0
mov byte [0x1000d9ee], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x100052b3
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x100052b3
push esi
push edi
lea eax, [esp + 0x1c]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push str.StringFileInfo040904B0ProductName
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 8]
push 0x104
push eax
push str.Game
call dword [sym.imp.MSVCRT.dll_strncpy]
push esi
mov byte [0x1000c213], 0
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x10
pop edi
mov eax, str.Game
pop esi
add esp, 0x110
ret

Function at 0x10005730
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [0x1000d8a4]
test al, al
je 0x10005751
mov eax, dword [0x1000d9bc]
push 6
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
ret

Function at 0x10005df0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jae 0x10005e1f
push esi
push str.Failed_to_execute_URL:__s_f
push 2
call dword [sym.imp.logger.dll_public:_static_void___cdecl_udLogger::log_int__char_const__]
add esp, 0xc
pop esi
ret
Function at 0x10005e40
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x350
lea ecx, [esp + 0x148]
push ebp
push esi
push edi
push eax
push str._s_
push ecx
xor ebp, ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x154]
push edx
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10005e8e
pop edi
pop esi
or eax, eax
pop ebp
add esp, 0x350
ret
lea ecx, [esp + 0x14]
inc ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10005e8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x10005e8e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebp, ebp
jne 0x10005ec1
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x350
ret
lea edx, [esp + 0x14]
lea eax, [esp + 0x154]
push edx
push eax
call edi
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x10005ee5
pop edi
pop esi
or eax, eax
pop ebp
add esp, 0x350
ret
mov ecx, ebp
push 0x49a
shl ecx, 6
add ecx, ebp
push str.win32_platform.cpp
shl ecx, 2
push ecx
mov ecx, dword [sym.core.dll_class_MemoryMgr__g_MemoryPtr]
push 0
call sym.core.dll_public:_void____thiscall_MemoryMgr::alloc_int__unsigned_int__char_const___unsigned_int_
mov edi, dword [esp + 0x364]
test eax, eax
mov dword [edi], eax
jne 0x10005f21
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x350
ret
push ebx
xor esi, esi
xor ebx, ebx
cmp ebp, esi
mov dword [esp + 0x14], esi
jbe 0x10005ffa
mov eax, dword [esp + 0x364]
lea edx, [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x264]
push str._s__s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x37c]
add esp, 0x10
test eax, eax
je 0x10005f71
lea edx, [esp + 0x25c]
push edx
call eax
add esp, 4
test eax, eax
jle 0x10005f9d
mov ecx, dword [edi]
lea eax, [esp + 0x25c]
push 0x104
add ecx, esi
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edx, dword [edi]
add esp, 0xc
inc ebx
mov byte [edx + esi + 0x103], 0
add esi, 0x104
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10005fbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10005fcf
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ebp
mov dword [esp + 0x14], eax
jb 0x10005f32
jmp 0x10005fda
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 1
jbe 0x10005ffa
mov eax, dword [esp + 0x370]
test eax, eax
je 0x10005ffa
push eax
mov eax, dword [edi]
push 4
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x350
ret

Function at 0x10006050
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 1
ret
Function at 0x10006060
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1104
call fcn.100072a0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push 0x104
push eax
lea esi, [esp + 0x11c]
call fcn.100061f0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov cx, word [0x1000c564]
mov edx, dword [str.MumboJumbo]
mov word [edi - 1], cx
lea edi, [esp + 0x10]
or ecx, 0xffffffff
mov ebp, dword [esp + 0x111c]
repne scasb al, byte es:[edi]
mov eax, dword [0x1000c55c]
mov cx, word [0x1000c560]
dec edi
mov dword [edi], edx
mov dl, byte [0x1000c562]
mov dword [edi + 4], eax
xor eax, eax
mov word [edi + 8], cx
or ecx, 0xffffffff
mov byte [edi + 0xa], dl
lea edi, [esp + 0x10]
repne scasb al, byte es:[edi]
mov eax, dword [str..ini]
mov cl, byte [0x1000c554]
dec edi
lea edx, [esp + 0x10]
push edx
push 0x1000
mov dword [edi], eax
lea eax, [esp + 0x11c]
push eax
mov byte [ebp], 0
mov byte [edi + 4], cl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
cmp eax, 0xffe
jne 0x10006124
call dword [sym.imp.logger.dll_void___cdecl_ReportLastError_void_]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1104
ret
mov al, byte [esp + 0x114]
test al, al
je 0x10006166
mov ebx, dword [sym.imp.MSVCRT.dll__stricmp]
mov ecx, dword [esp + 0x1118]
push ecx
push esi
call ebx
add esp, 8
test eax, eax
je 0x10006161
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x10006135
jmp 0x10006166
cmp byte [esi], 0
jne 0x100061d6
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
lea edx, [esp + 0x10]
push 0x1000c54c
push edx
mov byte [ebp], 1
call esi
add esp, 8
test eax, eax
jne 0x100061a3
lea eax, [esp + 0x10]
push 0x1000bdac
push eax
call esi
add esp, 8
test eax, eax
jne 0x100061a3
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1104
ret
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [esp + 0x111c]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0x1000d9f0
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
test eax, eax
jne 0x100061d6
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1104
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1104
ret

Function at 0x100061f0
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push 1
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x10006212
mov eax, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
pop esi
ret
Function at 0x10006220
Capabilities:
Read .ini file
Set file attributes

Disassembly:
mov eax, 0x1104
call fcn.100072a0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push 0x104
push eax
lea esi, [esp + 0x11c]
call fcn.100061f0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov cx, word [0x1000c564]
mov edx, dword [str.ud_soundmanager]
mov word [edi - 1], cx
lea edi, [esp + 0x10]
or ecx, 0xffffffff
mov ebp, dword [esp + 0x111c]
repne scasb al, byte es:[edi]
mov eax, dword [0x1000c56c]
mov ecx, dword [0x1000c570]
dec edi
mov dword [edi], edx
mov edx, dword [0x1000c574]
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 8], ecx
or ecx, 0xffffffff
mov dword [edi + 0xc], edx
lea edi, [esp + 0x10]
repne scasb al, byte es:[edi]
mov eax, dword [str..ini]
mov cl, byte [0x1000c554]
dec edi
lea edx, [esp + 0x10]
push edx
push 0x1000
mov dword [edi], eax
lea eax, [esp + 0x11c]
push eax
mov byte [ebp], 0
mov byte [edi + 4], cl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
cmp eax, 0xffe
jne 0x100062e2
call dword [sym.imp.logger.dll_void___cdecl_ReportLastError_void_]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1104
ret
mov al, byte [esp + 0x114]
test al, al
je 0x10006328
mov ebx, dword [sym.imp.MSVCRT.dll__stricmp]
mov ecx, dword [esp + 0x1118]
push ecx
push esi
call ebx
add esp, 8
test eax, eax
je 0x1000631f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x100062f3
jmp 0x10006328
cmp byte [esi], 0
jne 0x100063a9
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
lea edx, [esp + 0x10]
push 0x1000c54c
push edx
mov byte [ebp], 1
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x10006376
lea eax, [esp + 0x10]
push 0x1000bdac
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x10006369
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1104
ret
lea ecx, [esp + 0x10]
push 2
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x111c]
add esp, 4
lea edx, [esp + 0x10]
push edx
push 0x1000d9f0
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
test eax, eax
jne 0x100063a9
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1104
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1104
ret
Function at 0x10006540
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push edi
push 0x104
push eax
call fcn.100061f0
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov cx, word [0x1000c564]
mov edx, dword [str.MumboJumbo]
mov word [edi - 1], cx
lea edi, [esp + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x1000c55c]
mov cx, word [0x1000c560]
dec edi
mov dword [edi], edx
mov dl, byte [0x1000c562]
mov dword [edi + 4], eax
xor eax, eax
mov word [edi + 8], cx
or ecx, 0xffffffff
mov byte [edi + 0xa], dl
lea edi, [esp + 4]
repne scasb al, byte es:[edi]
mov eax, dword [str..ini]
mov cl, byte [0x1000c554]
dec edi
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x110]
mov dword [edi], eax
mov eax, dword [esp + 0x118]
push eax
mov byte [edi + 4], cl
mov ecx, dword [esp + 0x118]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
add esp, 0x104
ret

Function at 0x100065f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push edi
push 0x104
push eax
call fcn.100061f0
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov cx, word [0x1000c564]
mov edx, dword [str.MumboJumbo]
mov word [edi - 1], cx
lea edi, [esp + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x1000c55c]
mov cx, word [0x1000c560]
dec edi
mov dword [edi], edx
mov dl, byte [0x1000c562]
mov dword [edi + 4], eax
xor eax, eax
mov word [edi + 8], cx
or ecx, 0xffffffff
mov byte [edi + 0xa], dl
lea edi, [esp + 4]
repne scasb al, byte es:[edi]
mov eax, dword [str..ini]
mov cl, byte [0x1000c554]
dec edi
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x114]
mov dword [edi], eax
mov eax, dword [esp + 0x11c]
push 0x1000
push eax
mov eax, dword [esp + 0x118]
mov byte [edi + 4], cl
mov ecx, dword [esp + 0x120]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
add esp, 0x104
ret
Function at 0x10006b40
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword [esp + 4]
test al, 1
je 0x10006b4f
or byte [0x1000d9fc], 2
test al, 2
je 0x10006b5a
or byte [0x1000d9fc], 4
test al, 4
je 0x10006b65
or byte [0x1000d9fc], 8
test al, 8
je 0x10006b70
or byte [0x1000d9fc], 0x10
push ebx
mov bl, 0x20
test al, 0x10
je 0x10006b7d
or byte [0x1000d9fc], bl
test bl, al
mov cl, 0x40
je 0x10006b89
or byte [0x1000d9fc], cl
test cl, al
mov dl, 0x80
je 0x10006b95
or byte [0x1000d9fc], dl
test dl, al
je 0x10006ba0
or byte [0x1000d9fd], 1
test ah, 1
je 0x10006bac
or byte [0x1000d9fd], 2
test ah, 2
je 0x10006bb8
or byte [0x1000d9fd], 4
test ah, 8
je 0x10006bc4
or byte [0x1000d9fd], 8
test ah, 0x10
je 0x10006bd0
or byte [0x1000d9fd], 0x10
test ah, 0x20
je 0x10006bdb
or byte [0x1000d9fd], bl
test ah, 0x40
je 0x10006be6
or byte [0x1000d9fd], cl
test ah, ah
jns 0x10006bf0
or byte [0x1000d9fd], dl
test eax, 0x10000
je 0x10006bfe
or byte [0x1000d9fe], 1
test eax, 0x20000
je 0x10006c0c
or byte [0x1000d9fe], 2
test eax, 0x40000
je 0x10006c1a
or byte [0x1000d9fe], 4
test eax, 0x80000
je 0x10006c28
or byte [0x1000d9fe], 8
test eax, 0x200000
je 0x10006c36
or byte [0x1000d9fe], 0x10
test eax, 0x400000
je 0x10006c43
or byte [0x1000d9fe], bl
test eax, 0x800000
je 0x10006c50
or byte [0x1000d9fe], cl
test eax, 0x1000000
je 0x10006c5d
or byte [0x1000d9fe], dl
test eax, 0x2000000
je 0x10006c6b
or byte [0x1000d9ff], 1
test eax, 0x4000000
je 0x10006c79
or byte [0x1000d9ff], 2
test eax, 0x8000000
je 0x10006c87
or byte [0x1000d9ff], 4
test eax, 0x10000000
je 0x10006c95
or byte [0x1000d9ff], 8
test eax, 0x20000000
je 0x10006ca3
or byte [0x1000d9ff], 0x10
test eax, eax
jns 0x10006cad
or byte [0x1000d9ff], bl
mov eax, dword [esp + 0xc]
test eax, 0x400000
je 0x10006cd5
mov bl, byte [0x1000d9ff]
mov cl, byte [0x1000da00]
or bl, dl
or cl, 1
mov byte [0x1000d9ff], bl
mov byte [0x1000da00], cl
test eax, 0x40000000
pop ebx
je 0x10006ce4
or byte [0x1000da00], 2
test eax, eax
jns 0x10006cef
or byte [0x1000da00], 4
ret
Function at 0x411db0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x411dbf
jmp dword [ecx*4 + 0x411e14]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
Function at 0x425320
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x6c6f60]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esi + 0x158]
push ebp
mov ebp, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x425374
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.0040f080
add esp, 8
cmp edi, 0xffffffff
jne 0x4253a8
push str.Error_accept__ing_server_connect
push ebp
call fcn.0040c610
add esp, 8
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005c950e
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.0040c580
push 1
push edi
mov dword [esi + 0x158], edi
call fcn.004330a0
mov dword [esi + 0x168], 1
mov eax, dword [ebp + 0x1b0]
add esp, 0x10
test eax, eax
je 0x425416
mov ecx, dword [ebp + 0x1b4]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x425416
push edi
push esi
call fcn.0040f080
add esp, 8
pop edi
pop ebp
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005c950e
add esp, 0x18
ret
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.005c950e
add esp, 0x18
ret
Function at 0x433280
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x433299
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.0040c150
push edx
push eax
call fcn.0040c180
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x4332e6
mov eax, dword [ebx + 0x148]
mov ecx, dword [ebx + 0x144]
push eax
push ecx
call fcn.0040c150
push edx
push eax
call fcn.0040c180
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x4332e8
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4356a0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x4356d2
push 0x2e
push esi
call fcn.005e48f0
add esp, 8
test eax, eax
je 0x4356d0
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret