joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f00f
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
and dword [ebp + 8], 0
push edi
mov edi, dword [eax + 4]
mov dword [ebp - 0xc], edi
mov edi, dword [eax]
mov dword [ebp - 8], edi
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0x20
sub dword [ebp + 8], 0x61c88647
mov eax, edx
shl eax, 4
add eax, dword [ebp - 8]
mov edi, edx
shr edi, 5
add edi, dword [ebp - 0xc]
xor eax, edi
mov edi, dword [ebp + 8]
add edi, edx
xor eax, edi
add ecx, eax
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
mov edi, ecx
shr edi, 5
add edi, dword [ebp - 0x14]
xor eax, edi
mov edi, dword [ebp + 8]
add edi, ecx
xor eax, edi
add edx, eax
dec dword [ebp - 4]
jne 0x44f044
pop edi
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
leave
ret

Function at 0x450947
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push edi
mov dword [0x496644], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov dword [0x492538], eax
call fcn.00404438
mov dword [0x492538], eax
call fcn.0044f3f3
call fcn.0040547e
call fcn.00410635
mov dword [esp], 0x492540
push 0x49253c
push dword [0x492538]
call fcn.0040472d
add esp, 0xc
mov dword [0x492538], eax
call fcn.004067e5
xor edi, edi
test byte [0x496198], 0x80
jne 0x4509d7
push dword [0x492538]
call fcn.004502db
cmp eax, edi
pop ecx
je 0x4509d7
push dword [0x492540]
push dword [0x49253c]
push eax
push dword [0x492538]
call fcn.0044f4b9
add esp, 0x10
jmp 0x450a36
push esi
push edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x14]
push 0x45049d
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [ebp + 8], eax
push 6
push 0xff
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
cmp eax, 1
je 0x450a4b
cmp eax, edi
jne 0x4509fe
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
pop esi
pop edi
leave
ret 0x10
cmp dword [ebp - 0x1c], 0x12
je 0x450a5c
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
lea eax, [ebp - 0x20]
push edi
push eax
call esi
test eax, eax
jne 0x450a3b
jmp 0x4509fe
mov eax, dword [ebp - 0x18]
jmp 0x450a35
Function at 0x4528c6
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadIconA]
push esi
mov esi, dword [ebp + 8]
push edi
push 9
pop ecx
xor eax, eax
push 0x66
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
push esi
mov dword [ebp - 0x50], 8
mov dword [ebp - 0x40], esi
call ebx
mov edi, dword [sym.imp.USER32.dll_RegisterClassA]
and dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x4c], 0x4299b9
mov dword [ebp - 0x2c], 0x47a264
call edi
test ax, ax
je 0x4529ac
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x4c], 0x41b621
mov dword [ebp - 0x2c], str.Winamp_Video
call edi
test ax, ax
je 0x4529ac
push 9
pop ecx
xor eax, eax
push 0x66
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
push esi
mov dword [ebp - 0x28], 8
mov dword [ebp - 0x18], esi
call ebx
mov esi, dword [sym.imp.USER32.dll_RegisterClassW]
mov dword [ebp - 0x14], eax
mov edi, eax
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], 0x409acd
mov dword [ebp - 4], 0x474000
call esi
test ax, ax
je 0x4529ac
or dword [ebp - 0x28], 3
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x24], 0x42ccbd
mov dword [ebp - 4], str.Winamp_EQ
call esi
test ax, ax
je 0x4529ac
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x24], 0x435640
mov dword [ebp - 4], 0x47a22c
call esi
test ax, ax
jne 0x4529b0
xor eax, eax
jmp 0x4529de
push ebx
push 0x4528c1
push ebx
push 0xb0
push dword [0x496644]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push edi
mov esi, eax
push 0xfffffffffffffff2
push esi
call dword [sym.imp.USER32.dll_SetClassLongA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x453c01
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
sub eax, 0x202
je 0x453c49
sub eax, 3
jne 0x453caa
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push dword [ebp + 8]
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push 2
push dword [0x496720]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
jmp 0x453caa
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call esi
test ah, ah
jns 0x453c6f
push 0
push 0x9cf9
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x453ca9
push 0x10
call esi
test ah, ah
jns 0x453c80
push 0
push 0x9c5d
jmp 0x453c5f
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x453ca1
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 9
push edi
call esi
push 5
push edi
call esi
jmp 0x453ca8
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
xor eax, eax
inc eax
leave
ret
Function at 0x453caf
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [esp + 8], 1
push ebx
push esi
push edi
jne 0x453d4a
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
movsx esi, ax
xor ebx, ebx
sar esi, 0xf
cmp byte [0x4861ad], bl
jne 0x453ce7
cmp esi, ebx
jne 0x453ce7
cmp dword [0x48b128], ebx
je 0x453cfa
push ebx
push dword [esp + 0x14]
call edi
cmp esi, ebx
jne 0x453d03
cmp dword [0x48b128], ebx
jne 0x453d03
mov byte [0x485231], 1
jmp 0x453d15
push 0x496740
call fcn.00414d30
pop ecx
mov byte [0x485231], 2
cmp dword [0x482cb4], ebx
je 0x453d2a
mov eax, dword [0x496560]
cmp eax, ebx
je 0x453d2a
push ebx
push eax
call edi
cmp dword [0x482ca4], ebx
je 0x453d3f
mov eax, dword [0x496654]
cmp eax, ebx
je 0x453d3f
push ebx
push eax
call edi
mov dword [0x48b128], ebx
jmp 0x453e31
xor ebx, ebx
cmp dword [esp + 0x14], ebx
jne 0x453e31
cmp byte [0x485231], 2
jne 0x453d71
mov al, byte [0x4861ad]
cmp al, 1
je 0x453d71
cmp al, 2
je 0x453d71
call fcn.00414db8
cmp dword [0x490348], ebx
je 0x453d84
mov dword [0x490348], ebx
call fcn.00411582
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
jne 0x453da6
cmp dword [0x492544], ebx
jne 0x453da6
push 8
push edi
call esi
cmp byte [0x485231], bl
je 0x453db5
push ebx
call fcn.00411dca
pop ecx
cmp dword [0x482ca8], ebx
jne 0x453dc4
push edi
call fcn.0044ee19
pop ecx
push ebx
push 0x2a
push 0x113
push edi
mov byte [0x485231], bl
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x492544], ebx
jne 0x453de8
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [0x482cb4], ebx
je 0x453dfe
mov eax, dword [0x496560]
cmp eax, ebx
je 0x453dfe
push 8
push eax
call esi
cmp dword [0x482ca4], ebx
je 0x453e14
mov eax, dword [0x496654]
cmp eax, ebx
je 0x453e14
push 8
push eax
call esi
cmp dword [0x487328], ebx
je 0x453e2a
mov eax, dword [0x497280]
cmp eax, ebx
je 0x453e2a
push 8
push eax
call esi
push ebx
call fcn.00411dca
pop ecx
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
ret
Function at 0x453ed7
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc30
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
mov eax, 0x83
cmp ecx, eax
push edi
ja 0x45402d
je 0x453fe2
sub ecx, 0x64
je 0x453fcf
sub ecx, 3
je 0x453fc1
sub ecx, 6
je 0x453f60
sub ecx, 0x14
jne 0x454044
xor edi, edi
push edi
push dword [esi + 8]
lea ecx, [ebp - 0x10]
call fcn.00402d5b
mov eax, dword [eax]
push edi
push edi
push 1
push eax
call fcn.00432ed7
pop ecx
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00402b8d
push dword [eax]
push dword [esi + 8]
call fcn.0045e76d
push dword [ebp - 4]
mov esi, dword [sym.imp.NSCRT.dll_free]
call esi
push dword [ebp - 0x10]
mov dword [ebp - 4], edi
jmp 0x454023
push 0x200
lea eax, [ebp - 0x210]
push eax
push dword [0x496644]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, 0x1ff
push ebx
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [esi + 8]
call edi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.NSCRT.dll__stricmp]
pop ecx
pop ecx
mov dword [0x4838e0], eax
jmp 0x45411d
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x45411d
push dword [esi + 8]
lea ecx, [ebp - 0xc30]
call fcn.004084cb
push 0
push eax
jmp 0x454050
xor edi, edi
push edi
push edi
push 1
push dword [esi + 8]
call fcn.00432ed7
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.00402b8d
mov ebx, dword [eax]
push edi
push edi
push dword [esi + 8]
lea ecx, [ebp - 8]
call fcn.00402b8d
push ebx
push dword [eax]
call fcn.0045e76d
push dword [ebp - 8]
mov esi, dword [sym.imp.NSCRT.dll_free]
call esi
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
call esi
add esp, 0x10
jmp 0x45411d
sub ecx, 0xc7
je 0x4540cf
dec ecx
je 0x454061
sub ecx, 0x384
je 0x45404b
xor eax, eax
jmp 0x454120
push 0
push dword [esi + 8]
call fcn.00434713
pop ecx
pop ecx
call fcn.00434aa8
jmp 0x45411d
mov eax, dword [esi + 8]
xor edi, edi
cmp eax, edi
je 0x45411d
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x45411d
push edi
push dword [esi + 8]
lea ecx, [ebp + 0xc]
call fcn.00402d5b
push dword [ebp + 0xc]
mov ebx, 0x4868d8
push ebx
call dword [sym.imp.NSCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x4540c3
push dword [ebp + 0xc]
push 0x104
push ebx
call fcn.00467521
push edi
push 0x9d63
push 0x111
push dword [0x4924ec]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp + 0xc]
call dword [sym.imp.NSCRT.dll_free]
pop ecx
jmp 0x45411d
mov eax, dword [esi + 8]
xor edi, edi
cmp eax, edi
je 0x45411d
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x45411d
push dword [esi + 8]
mov ebx, 0x4868d8
push ebx
call dword [sym.imp.NSCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x45411d
push dword [esi + 8]
push 0x104
push ebx
call fcn.00467521
push edi
push 0x9d63
push 0x111
push dword [0x4924ec]
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x455030
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x470db9
call fcn.00470310
push ecx
push esi
mov esi, ecx
push 0x492574
mov dword [ebp - 0x10], esi
call fcn.004548ed
and dword [ebp - 4], 0
push 0x492578
lea ecx, [esi + 0xc]
call fcn.0045492f
push 0x49257c
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.0045496b
push 1
push 0x4925a4
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.004549a7
push 0x492580
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00454e71
push 0x49258c
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 4
call fcn.00454a2d
push 0x492584
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 5
call fcn.00454a6d
push 0x492588
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 6
call fcn.00454ea7
mov eax, dword [0x49258c]
mov ecx, dword [ebp - 0xc]
mov dword [0x49255c], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x455208
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x470db9
call fcn.00470310
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x54]
mov dword [ebp - 4], 6
mov dword [ecx], 0x47a998
call fcn.00454c72
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 5
mov dword [ecx], 0x47a828
call fcn.00454bdd
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 4
mov dword [ecx], 0x47a7c8
call fcn.00454b9c
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
mov dword [ecx], 0x47a768
call fcn.0045475b
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
mov dword [ecx], 0x47a700
call fcn.0045471a
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
mov dword [ecx], 0x47a6a0
call fcn.00454f7a
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0
mov dword [ecx], 0x47a640
call fcn.00454b19
or dword [ebp - 4], 0xffffffff
mov ecx, esi
mov dword [esi], 0x47a5e0
call fcn.00454ae1
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x458b97
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x458bdc
mov ecx, dword [0x492570]
lea eax, [ebp - 1]
push eax
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
push 0xa
push 0x75726c
call fcn.00455ab1
cmp byte [ebp - 1], bl
jne 0x458bdc
push ebx
push 0x4740fc
push ebx
push dword [ebp + 0xc]
push str.open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebx
leave
ret

Function at 0x458d33
Capabilities:
Get geographical location

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
push 0x5a
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x458d5f
push dword [esp + 8]
push 0x47b030
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
ret

Function at 0x458d9b
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
push ebx
xor edi, edi
push edi
push edi
push 0xd
push edi
call esi
test eax, eax
jge 0x458e40
push ebx
push edi
push edi
push 5
push edi
call esi
test eax, eax
jge 0x458e33
push str.Plugins
push 0x486ef8
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push str.gen_ml.ini
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x104]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x208]
push eax
push str.C:My_Music
push str.extractpath
push 0x47b04c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x208]
push eax
push edi
push edi
call fcn.00405193
add esp, 0x18
jmp 0x458e40
push str.My_Music
push ebx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
pop edi
pop esi
leave
ret
Function at 0x45a604
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x470f2f
call fcn.00470310
sub esp, 0x468
push ebx
push esi
push edi
push 0x47b5dc
push dword [ebp + 8]
call dword [sym.imp.NSCRT.dll__wfopen]
mov esi, dword [sym.imp.NSCRT.dll_fputs]
mov edi, eax
push edi
push str.__xml_version_1.0__encoding_utf_8___
mov dword [ebp - 0x10], edi
call esi
push edi
push str._skins__n
call esi
push edi
mov ebx, str._skin_filename_
push ebx
call esi
push 0x47b584
push edi
call fcn.0045e51a
push edi
mov edi, str.____n
push edi
call esi
add esp, 0x30
push 0x473e14
push 0x484e20
lea eax, [ebp - 0x474]
push eax
mov dword [ebp - 0x14], 1
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x45a7ce
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x45a6ae
cmp dword [ebp - 0x14], eax
jge 0x45a7c5
test byte [ebp - 0x26c], 0x10
lea eax, [ebp - 0x240]
je 0x45a711
push 0x4740fc
push eax
call dword [sym.imp.NSCRT.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x45a7ad
lea eax, [ebp - 0x240]
push 0x4740f4
push eax
call dword [sym.imp.NSCRT.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x45a7ad
push dword [ebp - 0x10]
push ebx
call esi
push 0
lea eax, [ebp - 0x240]
push 0xfde9
push eax
call fcn.00402b25
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
jmp 0x45a78b
push 0x475e44
push eax
call fcn.00417162
pop ecx
push eax
call dword [sym.imp.NSCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x45a768
lea eax, [ebp - 0x240]
push 0x4731d4
push eax
call fcn.00417162
pop ecx
push eax
call dword [sym.imp.NSCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x45a768
lea eax, [ebp - 0x240]
push 0x4731cc
push eax
call fcn.00417162
pop ecx
push eax
call dword [sym.imp.NSCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x45a7ad
push dword [ebp - 0x10]
push ebx
call esi
push 0
lea eax, [ebp - 0x240]
push 0xfde9
push eax
call fcn.00402b25
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
push eax
push dword [ebp - 0x10]
call fcn.0045e51a
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.NSCRT.dll_free]
push dword [ebp - 0x10]
push edi
call esi
add esp, 0x28
inc dword [ebp - 0x14]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45a69e
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x10]
push str.__skins_
call esi
push dword [ebp - 0x10]
call dword [sym.imp.NSCRT.dll_fclose]
mov ecx, dword [ebp - 0xc]
add esp, 0xc
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45ae9f
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
push ebx
push esi
push edi
lea eax, [ebp - 0x1f4]
mov esi, ecx
push eax
push 0xf6
mov dword [esi], 0x47b74c
mov dword [esi + 0x210], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edi, [esi + 8]
push edi
xor ebx, ebx
push ebx
push 0x47b744
lea eax, [ebp - 0x1f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp dword [ebp + 8], ebx
je 0x45aefe
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
push ebx
push 0x100
push 2
push ebx
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
lea ecx, [ebp - 8]
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [esi + 4], eax
mov dword [ebp - 4], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x45b25e
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x258], bx
mov ecx, 0x81
lea edi, [ebp - 0x256]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x460]
push eax
mov edi, 0x104
push edi
lea esi, [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [0x493fb8], ebx
jne 0x45b403
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x496644]
mov dword [ebp - 0x48], eax
push edi
mov eax, esi
push eax
push 0x134
mov dword [0x493fb8], 1
mov dword [ebp - 0x50], 0x4c
call fcn.0045ede1
add esp, 0xc
mov dword [ebp - 0x44], eax
mov ax, word [esi]
cmp ax, bx
je 0x45b307
cmp ax, 0x7c
mov dword [ebp - 4], ebx
jne 0x45b2f0
mov dword [ebp - 4], esi
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x45b303
mov word [eax], bx
cmp esi, ebx
jne 0x45b2dc
push ebx
push ebx
mov esi, 0x493db0
push 0x133
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0x103
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.0045ede1
mov dword [ebp - 0x20], eax
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x14], 0x47b8e8
mov dword [ebp - 0x1c], 0x80006
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
test eax, eax
je 0x45b3f0
lea eax, [ebp - 0x668]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [0x49257c]
lea eax, [ebp - 0x668]
push eax
call fcn.0045645e
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, dword [sym.imp.NSCRT.dll__waccess]
push ebx
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x45b3b0
push 2
push esi
call edi
test eax, eax
pop ecx
pop ecx
je 0x45b3b0
push 0x180
push esi
call dword [sym.imp.NSCRT.dll__wchmod]
pop ecx
pop ecx
push 0x47b8e0
push esi
mov dword [0x493fb8], ebx
call fcn.00417162
pop ecx
push eax
call dword [sym.imp.NSCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x45b3df
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.0045b103
pop ecx
jmp 0x45b3eb
push ebx
push 1
push esi
call fcn.0045af3a
add esp, 0xc
xor eax, eax
inc eax
jmp 0x45b405
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x493fb8], ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45b40a
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d80
call fcn.00470240
mov ecx, dword [0x492558]
push ebx
xor ebx, ebx
cmp ecx, ebx
jne 0x45b441
push ebx
push 0x130
push 0x12f
push dword [ebp + 8]
call fcn.0045f0db
add esp, 0x10
xor eax, eax
jmp 0x45b596
push esi
push edi
push 0x800
lea eax, [ebp - 0x1d80]
push eax
call fcn.00427a75
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x560]
push eax
mov edi, 0x104
push edi
call esi
cmp dword [0x493fbc], ebx
mov dword [ebp - 4], ebx
je 0x45b47b
xor eax, eax
jmp 0x45b594
mov eax, dword [0x4924f4]
cmp eax, ebx
mov dword [0x493fbc], 1
mov dword [ebp - 0x50], 0x4c
jne 0x45b49a
mov eax, dword [0x4924ec]
mov ecx, dword [0x49257c]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x496644]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x1d80]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0xd80]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov word [ebp - 0xd80], bx
mov dword [ebp - 0x30], 0x410
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.004560af
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x24], eax
je 0x45b500
cmp dword [ebp + 0xc], 1
jne 0x45b500
push 0x80
lea eax, [ebp - 0x150]
push eax
push 0x132
jmp 0x45b511
push 0x80
lea eax, [ebp - 0x150]
push eax
push 0x131
call fcn.0045ede1
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0x47b8e0
mov dword [ebp - 0x1c], SetBkColor
call fcn.0040f82f
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
test eax, eax
je 0x45b579
lea eax, [ebp - 0x358]
push eax
push edi
call esi
mov ecx, dword [0x49257c]
lea eax, [ebp - 0x358]
push eax
call fcn.0045645e
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0xd80]
push eax
mov dword [0x493fbc], ebx
call fcn.00434671
add esp, 0xc
mov dword [ebp - 4], 1
lea eax, [ebp - 0x560]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x493fbc], ebx
call fcn.0040f78a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [0x493fd8], eax
inc ecx
mov eax, 0x493fd8
push esi
mov edx, dword [eax]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, ecx
mov dword [eax + 4], esi
add eax, 4
inc ecx
cmp eax, 0x494994
jl 0x45b5ab
mov dword [0x48393c], ecx
pop esi
ret