joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x3ee924f4
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
jne 0x431024
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x641529fd
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748
Function at 0x423e60
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
mov eax, dword [0x644904]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov esi, ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x108], bl
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.shlwapi.dll_PathRemoveFileSpecA]
xor eax, eax
mov byte [ebp - 0x20c], bl
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea edx, [ebp - 0x108]
stosb byte es:[edi], al
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
push 0x5f033c
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.shlwapi.dll_PathAppendA]
mov byte [ebp - 0x310], bl
xor eax, eax
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x30f]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.msvcp71.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Myptr_void_]
push eax
lea ecx, [esi + 0x34]
call dword [sym.imp.msvcp71.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Myptr_void_]
push eax
lea edx, [ebp - 0x20c]
push edx
push 0x5f0328
lea eax, [ebp - 0x310]
push 0x104
push eax
call dword [sym.imp.msvcr71.dll__snprintf]
add esp, 0x18
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x320], edx
mov ecx, 0x11
lea edi, [ebp - 0x364]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x31c], edx
mov dword [ebp - 0x318], edx
lea eax, [ebp - 0x320]
mov dword [esi + 0x50], ebx
mov dword [ebp - 0x314], edx
mov dword [ebp - 0x364], 0x44
mov dword [ebp - 0x338], 1
mov word [ebp - 0x334], 5
push eax
lea ecx, [ebp - 0x364]
push ecx
lea edx, [ebp - 0x108]
push edx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea eax, [ebp - 0x310]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x423fd7
mov ecx, dword [ebp - 0x320]
mov dword [esi + 0x50], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.005c8895
mov esp, ebp
pop ebp
ret 4
Function at 0x42e7d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x644904]
mov ecx, dword [0x64546c]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.shlwapi.dll_PathRemoveFileSpecA]
push 0x5f18cc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.shlwapi.dll_PathAppendA]
lea ecx, [ebp - 0x108]
push 4
push ecx
call dword [sym.imp.msvcr71.dll__access]
add esp, 8
test eax, eax
je 0x42e840
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.005c8895
mov esp, ebp
pop ebp
ret
push esi
push edi
xor eax, eax
mov byte [ebp - 0x20c], 0
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [ebp - 0x108]
push edx
push 0x5f18c4
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.msvcr71.dll__snprintf]
add esp, 0x10
xor eax, eax
mov ecx, 0x11
lea edi, [ebp - 0x264]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
lea edx, [ebp - 0x21c]
push edx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
lea eax, [ebp - 0x264]
push eax
push ecx
push ecx
push 0x4000000
push ecx
push ecx
push ecx
mov dword [ebp - 0x210], ecx
lea ecx, [ebp - 0x20c]
push ecx
mov esi, 1
push 0
mov dword [ebp - 0x264], 0x44
mov dword [ebp - 0x238], esi
mov word [ebp - 0x234], si
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x42e8fc
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
call fcn.005c8895
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x21c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov edx, dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x218]
push eax
call esi
mov ecx, dword [ebp - 0x220]
xor eax, eax
cmp ecx, 0xc0de
mov ecx, dword [ebp - 4]
pop edi
setne al
pop esi
call fcn.005c8895
mov esp, ebp
pop ebp
ret
Function at 0x42e960
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x644904]
push ebx
mov ebx, dword [sym.imp.msvcr71.dll__snprintf]
push esi
mov dword [ebp - 4], eax
push edi
xor esi, esi
lea esp, [esp]
xor eax, eax
mov byte [ebp - 0x44], 0
mov ecx, 0xf
lea edi, [ebp - 0x43]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
push 0x5f1904
push 0x5f18f4
stosb byte es:[edi], al
lea eax, [ebp - 0x44]
push pe_nt_image_headers32
push eax
call ebx
add esp, 0x14
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
mov dword [0x645218], eax
je 0x42ea23
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x42ea48
mov edx, dword [0x645218]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc esi
cmp esi, 2
mov dword [0x645218], 0
jl 0x42e980
push pe_nt_image_headers32
push 0
call fcn.0048cf40
add esp, 4
push eax
push 3
call fcn.0048cf40
add esp, 4
push eax
call dword [sym.imp.user32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.tengine.dll_int___cdecl_TD_MessageBoxW_struct_HWND_____wchar_t_const___wchar_t_const___unsigned_int_]
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
call fcn.005c8895
mov esp, ebp
pop ebp
ret
push 0x10
push 0x5f18ec
push 0x5f18d8
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
call fcn.005c8895
mov esp, ebp
pop ebp
ret
mov eax, dword [0x645218]
test eax, eax
je 0x42e9ea
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, 1
pop ebx
call fcn.005c8895
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x42eac4
cmp byte [esi], 0
je 0x42eac4
mov ecx, esi
push edi
mov eax, 0xffffffff
lea edi, [ecx + 1]
jmp 0x42ea90
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x42ea90
sub ecx, edi
xor edx, edx
test ecx, ecx
jle 0x42eac0
push ebx
movzx edi, byte [edx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
mov ebx, dword [edi*4 + 0x63e4b0]
shr eax, 8
xor eax, ebx
inc edx
cmp edx, ecx
jl 0x42eaa0
pop ebx
pop edi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x42f180
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.msvcr71.dll_strstr]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x5f1a70
push edi
call ebx
mov esi, eax
neg esi
sbb esi, esi
push 0x5f1a68
push edi
neg esi
call ebx
test eax, eax
setne al
push 0x5f1a60
push edi
mov byte [0x645474], al
call ebx
add esp, 0x18
test eax, eax
setne cl
pop edi
test esi, esi
pop esi
mov byte [0x645475], cl
pop ebx
jne 0x42f1f2
mov al, byte [0x645474]
test al, al
je 0x42f1f4
mov edx, dword [0x64546c]
push 0
push 0x42ead0
push 0
push 0x83
push edx
call dword [sym.imp.user32.dll_DialogBoxParamA]
pop ebp
ret
push 0x10
push 0
call fcn.0048cf40
add esp, 4
push eax
push 2
call fcn.0048cf40
add esp, 4
push eax
push 0
call dword [sym.imp.tengine.dll_int___cdecl_TD_MessageBoxW_struct_HWND_____wchar_t_const___wchar_t_const___unsigned_int_]
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x42f220
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f1a78
push 0x5c8ae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x5f18b4
push 0x3a8
push 0x5f18a4
push 0x5f1898
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [0x63ea74], eax
call fcn.0042e960
test eax, eax
je 0x42f31b
mov esi, dword [ebp + 0x10]
push esi
call fcn.0042f180
add esp, 4
mov al, byte [0x645475]
test al, al
je 0x42f2b3
mov eax, dword [ebp + 8]
mov dword [0x64546c], eax
call fcn.0042e7d0
test eax, eax
je 0x42f305
call fcn.004931c0
mov ecx, dword [0x645814]
push ecx
call fcn.004915e0
add esp, 4
call fcn.004920d0
jmp 0x42f305
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x14]
push edx
push esi
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042f0c0
add esp, 0x10
jmp 0x42f2fe
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x645218]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x645218], 0
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x480910
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
push edi
mov esi, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x10]
push ecx
push 0x5fbd14
push 0x5fbce4
push 0x80000002
xor esi, esi
call dword [sym.imp.shlwapi.dll_SHGetValueA]
test eax, eax
mov eax, 1
je 0x48095a
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x480960
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x48
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], pe_nt_image_headers32
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
shrd ecx, eax, 0xa
mov dword [esp], ecx
shr eax, 0xa
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 4], eax
and ecx, 0x80000000
fild qword [esp]
mov dword [esp + 4], ecx
mov dword [esp], 0
fild qword [esp]
fchs
faddp st(1)
fmul dword [0x5fbd28]
add esp, 0x48
ret

Function at 0x486d90
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov ecx, dword [esi + 8]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x486dc6
mov edx, dword [esi + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
ret

Function at 0x486ec1
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x18]
mov dword [esi], 0x5fcb24
call dword [sym.imp.msvcp71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateEventA]
push 0
push 0
push 1
lea edi, [esi + 4]
push 0
mov dword [edi], 0
mov dword [esi + 8], 0
call ebx
push 0
push 0
push 0
push 0
mov dword [esi + 0xc], eax
call ebx
push edi
push 0
push esi
push 0x486dd0
push 0
push 0
mov dword [esi + 0x10], eax
call dword [sym.imp.msvcr71.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x48e6f0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
push edi
push ebx
push eax
push 0x5fd5fc
mov esi, ecx
call dword [sym.imp.tengine.dll_void___cdecl_TDU_Log_char_const__]
mov eax, dword [esi + 0xbc]
add esp, 0x10
test eax, eax
je 0x48e737
mov ecx, dword [ebp + 8]
push edi
push ebx
push ecx
push 0x5fd5e4
call dword [sym.imp.tengine.dll_void___cdecl_TDU_Log_char_const__]
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov edx, dword [ebp + 8]
push edx
lea ecx, [esi + 0xc8]
call dword [sym.imp.msvcp71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea eax, [ebp + 0x10]
push eax
push 0x44
push esi
push 0x48df60
push 0
push 0
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], edi
call dword [sym.imp.msvcr71.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 0xbc], eax
jne 0x48e784
push 0x5fd5a8
call dword [sym.imp.tengine.dll_void___cdecl_tThrowStringException_char_const__]
add esp, 4
mov ecx, dword [0x64585c]
mov eax, dword [ecx + 0x30]
push eax
push 0x5fd580
mov dword [esi + 0xc0], eax
call dword [sym.imp.tengine.dll_void___cdecl_TDU_Log_char_const__]
add esp, 8
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov edx, dword [esi + 0xbc]
push edx
mov dword [esi + 0xc4], eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x492d20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x644904]
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov dword [0x645790], eax
mov byte [ebp - 0x50], al
mov dword [0x645794], eax
mov ecx, 0xe
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x25
lea edi, [ebp - 0xe4]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0xe4]
push ecx
mov dword [ebp - 0xe4], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov eax, dword [ebp - 0xd4]
cmp eax, 1
je 0x492db3
cmp eax, 2
jne 0x492db3
push 0x5fdc80
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0x492e5d
push 0x5fdc68
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x492e5d
lea ecx, [ebp - 0x14]
push ecx
call eax
jmp 0x492dbd
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.rpcrt4.dll_UuidCreate]
test eax, eax
jne 0x492e5d
movzx ecx, byte [ebp - 0xa]
push esi
mov esi, dword [sym.imp.msvcr71.dll__itoa]
push 0x10
lea eax, [ebp - 0x50]
push eax
push ecx
call esi
movzx eax, byte [ebp - 9]
push 0x10
lea edx, [ebp - 0x46]
push edx
push eax
call esi
movzx edx, byte [ebp - 8]
push 0x10
lea ecx, [ebp - 0x3c]
push ecx
push edx
call esi
movzx ecx, byte [ebp - 7]
push 0x10
lea eax, [ebp - 0x32]
push eax
push ecx
call esi
movzx eax, byte [ebp - 6]
push 0x10
lea edx, [ebp - 0x28]
push edx
push eax
call esi
movzx edx, byte [ebp - 5]
push 0x10
lea ecx, [ebp - 0x1e]
push ecx
push edx
call esi
add esp, 0x48
xor esi, esi
lea edi, [ebp - 0x50]
push edi
call fcn.00492b80
add esp, 4
mov byte [esi + 0x645790], al
inc esi
add edi, 0xa
cmp esi, 6
jl 0x492e22
mov eax, dword [ebp + 8]
mov ecx, dword [0x645790]
mov edx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [0x645794]
pop esi
mov dword [edx], eax
pop edi
mov ecx, dword [ebp - 4]
call fcn.005c8895
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx], 0
mov ecx, dword [ebp - 4]
mov dword [edx], 0
pop edi
call fcn.005c8895
mov esp, ebp
pop ebp
ret
Function at 0x4d9fc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [0x6461b4]
mov eax, dword [ecx]
push 0
push 0x5fcea0
call dword [eax + 0x58]
cmp eax, 1
je 0x4da18b
mov ecx, dword [0x645864]
mov edx, dword [ecx]
push esi
push 0
push 0x5fce90
call dword [edx + 0x58]
mov esi, dword [ebp + 8]
cmp esi, 0x500
jl 0x4da18a
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x2d0
jl 0x4da189
mov ecx, dword [0x645468]
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.user32.dll_GetClientRect]
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x34]
cmp esi, edx
jne 0x4da03c
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
cmp edi, eax
je 0x4da189
push ebx
push edi
push esi
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.user32.dll_SetRect]
mov edx, dword [0x645468]
push 0
push 0xfffffffffffffff0
push edx
call dword [sym.imp.user32.dll_GetWindowLongA]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.user32.dll_AdjustWindowRect]
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0x30
call dword [sym.imp.user32.dll_SystemParametersInfoA]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x24]
mov ecx, edx
mov edi, esi
sub ecx, eax
sub edi, ebx
cmp edi, ecx
jl 0x4da160
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
sub edi, ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x18]
sub edi, ebx
mov ebx, dword [ebp - 4]
cmp edi, ebx
jl 0x4da160
sub eax, edx
sub eax, dword [ebp - 0x24]
add eax, esi
cdq
sub eax, edx
mov edi, dword [ebp - 0x20]
sar eax, 1
xor edx, edx
test eax, eax
setl dl
mov dword [ebp - 4], ecx
dec edx
and edx, eax
mov eax, dword [ebp - 0x10]
mov esi, edx
sub eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
sub eax, edi
add eax, edx
cdq
sub eax, edx
sar eax, 1
xor edx, edx
test eax, eax
setl dl
dec edx
and edx, eax
cmp ecx, 0x400
mov edi, edx
jg 0x4da0fe
mov dword [ebp - 4], 0x400
cmp ebx, 0x2d0
jg 0x4da10b
mov ebx, 0x2d0
mov eax, dword [0x645468]
push 9
push eax
call dword [sym.imp.user32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
mov edx, dword [0x645468]
push 1
push ebx
push ecx
push edi
push esi
push edx
call dword [sym.imp.user32.dll_MoveWindow]
mov ecx, dword [0x645864]
mov eax, dword [ecx]
push 0
push 0
push 0x5ef398
push 0x5fce90
call dword [eax + 0x3c]
push 0
push 0
push 0x232
call fcn.004917d0
add esp, 0xc
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x645468]
push 3
push ecx
call dword [sym.imp.user32.dll_ShowWindow]
mov ecx, dword [0x645864]
mov edx, dword [ecx]
push 0
push 0
push 0x5eb400
push 0x5fce90
call dword [edx + 0x3c]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x513640
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x513663
test al, 1
je 0x513663
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov esi, dword [eax]
cmp esi, eax
je 0x5136a4
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x513699
push edi
lea ecx, [esi + 0x24]
call dword [sym.imp.msvcp71.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Myptr_void_]
push eax
lea ecx, [esi + 8]
call dword [sym.imp.msvcp71.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Myptr_void_]
push eax
push 0x5f1898
call ebx
mov ecx, dword [ebp + 0xc]
mov esi, dword [esi]
cmp esi, dword [ecx + 8]
jne 0x513676
pop ebx
pop edi
pop esi
pop ebp
ret 8