joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a80
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
push ebp
push section..sdata
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esp + 0x34]
cmp eax, 1
sbb edi, edi
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x12]
push 2
push ecx
mov dword [0x40f4e4], esi
push 0xc4f
mov dword [0x40f170], eax
neg edi
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
mov al, byte [esp + 0x12]
sub al, 0x31
cmp al, 1
sbb eax, eax
neg eax
mov dword [0x40f228], eax
test edi, edi
jne 0x402aff
call fcn.00402dd0
cmp dword [0x40f610], 0
je 0x402ae8
call dword [sym.imp.ole32.dll_OleUninitialize]
push section..sdata
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret 0x10
mov edi, 7
call fcn.00402ee0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.004069b0
add esp, 4
test eax, eax
jne 0x402b20
mov edi, dword [esp + 0x40]
push 0x76
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, eax
push edi
mov eax, dword [0x40f230]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x40f230]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0x14]
push 0
push 0
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push ecx
call edi
test eax, eax
je 0x402bbe
mov ecx, dword [0x40f230]
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
test esi, esi
je 0x402b89
lea eax, [esp + 0x14]
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov ecx, dword [0x40f230]
test eax, eax
jne 0x402ba7
lea eax, [esp + 0x14]
push eax
push ecx
call ebx
test eax, eax
jne 0x402ba7
lea eax, [esp + 0x14]
push eax
call ebp
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x14]
push 0
push 0
push 0
push eax
call edi
mov ecx, dword [0x40f230]
test eax, eax
jne 0x402b6e
cmp dword [0x40f610], 0
je 0x402bcd
call dword [sym.imp.ole32.dll_OleUninitialize]
push section..sdata
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret 0x10
Function at 0x402bf0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x28
push esi
push edi
push 0xc41
call fcn.00405390
add esp, 4
mov edi, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, 0x40f180
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0xc43
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00405390
add esp, 4
mov edi, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, 0x40f260
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0xc44
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00405390
add esp, 4
mov edi, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, 0x40f1d0
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0xc42
call fcn.00405390
add esp, 4
mov edi, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, 0x40f490
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0xa
and ecx, 3
push 0x40f1c0
rep movsb byte es:[edi], byte [esi]
mov al, byte [0x401260]
push 0x1e
mov byte [0x40f1c0], 0x3a
mov byte [0x40f1c1], al
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, dword [esp + 0x34]
push 0x6b
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x6c
mov dword [0x40f3a4], eax
push esi
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov dword [0x40f20c], eax
call fcn.00401340
mov dword [0x40f53c], 1
mov eax, dword [0x40f4e4]
push eax
call fcn.0040b170
add esp, 4
mov eax, dword [0x40f4e4]
push eax
call fcn.0040b9c0
mov dword [esp + 0x30], 0x401110
add esp, 4
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0x10
mov eax, dword [0x40f3a4]
mov dword [esp + 0x1c], eax
mov dword [esp + 8], 8
mov ecx, dword [sym.imp.USER32.dll_DefDlgProcA]
lea edx, [esp + 8]
mov dword [esp + 0xc], ecx
push edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x1e
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x402d9b
xor eax, eax
pop edi
pop esi
add esp, 0x28
ret
push 0
mov eax, dword [0x40f4e4]
push 0x403170
push 0
push 0x68
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
jne 0x402dbe
xor eax, eax
pop edi
pop esi
add esp, 0x28
ret
pop edi
mov dword [0x40f230], eax
mov eax, 1
pop esi
add esp, 0x28
ret
Function at 0x402dd0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push ebp
push esi
push 0x401110
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x402dff
push esi
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call ebp
mov esi, eax
jmp 0x402e05
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test ebx, ebx
je 0x402ecb
push ebx
mov edi, dword [sym.imp.USER32.dll_IsIconic]
call edi
test eax, eax
jne 0x402e27
push 0
push ebx
call ebp
cmp eax, esi
je 0x402ecb
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
call esi
push eax
call fcn.004069b0
add esp, 4
test eax, eax
jne 0x402e63
push ebx
call dword [sym.imp.USER32.dll_GetLastActivePopup]
push eax
mov ebx, eax
call edi
test eax, eax
je 0x402e55
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esp + 0x10], 0
call esi
mov edi, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x14], ecx
push ecx
call fcn.00405d90
mov dword [esp + 0x1c], eax
add esp, 4
call esi
mov edi, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x4a
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x402ee0
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call sub.CRTDLL.dll_srand
add esp, 4
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.0040c140
mov dword [0x40f4e0], eax
test eax, eax
jne 0x402fb0
push 0xff
call fcn.00405d90
add esp, 4
mov ebx, eax
push 0xff
call fcn.00405d90
add esp, 4
mov ebp, eax
push 0xc20
call fcn.00405390
add esp, 4
mov edi, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0xc1d
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00405390
add esp, 4
mov edi, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x10040
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
push ebp
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebp
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push ebx
call esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x40f4e4]
push eax
call fcn.00402bf0
add esp, 4
test eax, eax
jne 0x402fcf
push 0xc1e
call fcn.004052b0
add esp, 4
call fcn.004053f0
xor ecx, ecx
lea eax, [esp + 0x10]
lea edx, [esp + 0x14]
push eax
push edx
mov dword [0x40f164], ecx
push 8
mov dword [0x40f234], ecx
push ecx
push 0x401128
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
pop ebp
cmp eax, 1
sbb eax, eax
pop edi
inc eax
pop esi
pop ebx
mov dword [0x40f480], eax
add esp, 0xc
ret
Function at 0x403010
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 4
lea eax, [esp]
push esi
mov dword [esp + 4], 0xffffffff
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00406a90
add esp, 0xc
mov dword [0x40f164], eax
mov dword [0x40f234], eax
cmp eax, 0xffffffff
jne 0x40305a
mov dword [0x40f2a4], 0
call fcn.00407100
mov dword [0x40f164], eax
mov dword [0x40f234], eax
cmp dword [0x40f170], 0
je 0x403085
mov eax, dword [0x40f170]
cmp byte [eax], 0
jne 0x403085
cmp dword [0x40f4e0], 1
jle 0x403085
call fcn.00407100
mov dword [0x40f164], eax
mov dword [0x40f234], eax
xor esi, esi
cmp dword [0x40f4e0], esi
jle 0x4030a1
push esi
call fcn.0040cda0
add esp, 4
inc esi
cmp esi, dword [0x40f4e0]
jl 0x40308f
cmp dword [esp + 4], 0xffffffff
je 0x4030de
mov eax, dword [0x40f234]
mov ecx, dword [eax*4 + 0x40f3b0]
mov eax, dword [ecx + 0x39d]
test eax, eax
je 0x4030de
cmp dword [esp + 4], 0
jle 0x4030cf
mov ecx, dword [esp + 4]
mov eax, dword [eax + 4]
dec ecx
jne 0x4030c9
push eax
mov eax, dword [0x40f234]
push eax
call fcn.0040d5a0
add esp, 8
cmp dword [0x40f3a0], 0
jne 0x4030ec
call fcn.0040ca10
call fcn.00405dc0
push 0x405f10
mov eax, dword [0x40f230]
push 0x1f4
push 0x3243
push eax
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x40f2a4], 0
je 0x40311a
call fcn.00407410
mov eax, dword [0x40f234]
mov ecx, dword [eax*4 + 0x40f3b0]
mov eax, dword [ecx + 0xd]
test ah, 3
je 0x40313f
mov eax, dword [0x40f50c]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop esi
add esp, 4
ret
test ah, 0x40
jne 0x403165
test al, 5
je 0x403159
mov eax, dword [0x40f4f4]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop esi
add esp, 4
ret
mov eax, dword [0x40f4f0]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop esi
add esp, 4
ret

Function at 0x4038a0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x10
push esi
push edi
push 4
call fcn.004029b0
mov esi, eax
push 0xf
call fcn.004029b0
add esi, eax
cmp esi, dword [0x40f530]
je 0x403902
lea eax, [esp + 8]
mov edi, dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, esi
push 0x16
sub ecx, dword [0x40f530]
add dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [0x40f530], esi
push 0xa
push 0x40f1c0
push 0x1e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x19
call fcn.00406180
add esp, 4
pop edi
pop esi
add esp, 0x10
ret
Function at 0x404c40
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
mov ecx, dword [0x40f230]
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [0x40f52c], 0
je 0x404c9f
push 0
mov eax, dword [0x40f538]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x40f4dc]
push 0x16
sub dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
push eax
mov ecx, dword [0x40f230]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x404cde
mov eax, dword [0x40f4dc]
push 0x16
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
push eax
mov ecx, dword [0x40f230]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
mov ecx, dword [0x40f538]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x40f52c], 1
sbb eax, eax
add esp, 0x10
neg eax
mov dword [0x40f52c], eax
ret

Function at 0x404d00
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
mov ecx, dword [0x40f230]
lea eax, [esp]
push ebx
push esi
push edi
push ebp
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [0x40f2a0], 0
mov esi, dword [0x40f24c]
je 0x404d38
push 0
mov eax, dword [0x40f254]
neg esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
add dword [esp + 0x1c], esi
push 0x16
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
push eax
mov ecx, dword [0x40f230]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
push eax
push 0
push 0
push 0
push ecx
mov edi, 0x40f4f0
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x14
mov ebp, dword [sym.imp.USER32.dll_BeginDeferWindowPos]
call ebp
mov ebp, 0x40f2b4
mov ebx, dword [sym.imp.USER32.dll_DeferWindowPos]
mov ecx, dword [ebp]
push 0x15
add ecx, esi
push 0
mov dword [ebp], ecx
push 0
mov edx, dword [ebp - 4]
push ecx
mov ecx, dword [edi]
push edx
push 0
add edi, 4
push ecx
add ebp, 0x10
push eax
call ebx
cmp ebp, 0x40f3a4
jb 0x404d7d
push eax
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
cmp dword [0x40f2a0], 0
jne 0x404dc4
push 5
mov eax, dword [0x40f254]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x40f2a0], 1
sbb eax, eax
pop ebp
neg eax
pop edi
mov dword [0x40f2a0], eax
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x404de0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
mov ecx, dword [0x40f230]
lea eax, [esp]
push esi
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [0x40f60c], 0
je 0x404e4f
mov esi, 0x40f514
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
push 0
push eax
add esi, 4
call edi
cmp esi, 0x40f52c
jb 0x404e0b
mov eax, dword [0x40f534]
push 0x16
sub dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
push eax
mov ecx, dword [0x40f230]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x404e9c
mov eax, dword [0x40f534]
push 0x16
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
push eax
mov ecx, dword [0x40f230]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov esi, 0x40f514
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
push 5
push eax
add esi, 4
call edi
cmp esi, 0x40f52c
jb 0x404e8a
cmp dword [0x40f60c], 1
sbb eax, eax
pop edi
neg eax
pop esi
mov dword [0x40f60c], eax
add esp, 0x10
ret

Function at 0x4052b0
Capabilities:
Terminate process

Disassembly:
lea eax, [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x200
push esi
push edi
push eax
push ecx
call fcn.00405390
lea ecx, [esp + 0x10]
add esp, 4
push eax
push ecx
call dword [sym.imp.USER32.dll_wvsprintfA]
push 0xc21
call fcn.00405390
add esp, 4
mov edi, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x40f230]
test eax, eax
je 0x405358
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ecx, dword [0x40f230]
test eax, eax
je 0x405330
push ecx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [0x40f230]
lea eax, [esp + 0x108]
push 0x10010
lea edx, [esp + 0xc]
push eax
push edx
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x40f230]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x405372
lea eax, [esp + 0x108]
push 0x10010
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407180
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x308
lea ecx, [esp]
push ebx
push esi
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push ebp
push eax
push 0x40fc54
push ecx
call ebx
lea ecx, [esp + 0x48]
add esp, 0xc
lea eax, [esp + 0x10]
push str.cdplayer.ini
push 0x32
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
push 0x401198
push str.title
push eax
call ebp
lea eax, [esp + 0x3c]
mov edx, 0x401198
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x4071f0
or cl, cl
je 0x4071ec
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4071f0
add eax, 2
add edx, 2
or cl, cl
jne 0x4071d0
xor eax, eax
jmp 0x4071f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4072a4
push 0xc4e
call fcn.00405390
add esp, 4
mov edi, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0xa4]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push str.cdplayer.ini
and ecx, 3
push 0x32
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
lea eax, [esp + 0xac]
lea edx, [esp + 0x18]
push ecx
push eax
push str.artist
push edx
call ebp
push 0xc4c
call fcn.00405390
add esp, 4
mov edi, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0xe4]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x70]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0xe4]
push eax
lea eax, [esp + 0x1e8]
push ecx
push edx
push eax
call ebx
add esp, 0x10
jmp 0x4072d7
push 0xc4d
call fcn.00405390
add esp, 4
mov edi, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x1e4]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x40f230]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x407326
lea eax, [esp + 0xa4]
mov ecx, dword [0x40f230]
mov dword [esp + 0xa4], 0x2c
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowPlacement]
lea ecx, [esp + 0xa4]
mov eax, dword [0x40f230]
mov dword [esp + 0xac], 9
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowPlacement]
push 0xc1d
call fcn.00405390
add esp, 4
mov edi, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x10040
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
lea eax, [esp + 0x1e8]
push ecx
mov edx, dword [0x40f230]
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x308
ret
Function at 0x407b40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
xor eax, eax
mov ecx, dword [esp + 8]
push esi
push edi
push ebp
mov edx, dword [ecx*4 + 0x40f3b0]
xor ecx, ecx
movzx esi, byte [edx + 0x14]
mov cl, byte [edx + 0x13]
sub esi, ecx
xor ecx, ecx
inc esi
test esi, esi
jle 0x407b9d
add edx, 0x16
mov ebx, dword [edx]
mov ebp, ecx
shl ebp, 8
mov edi, ebx
and edi, 0xff
add eax, eax
add edi, ebp
add edx, 9
shl edi, 8
inc ecx
movzx ebp, bh
shr ebx, 0x10
add edi, ebp
shl edi, 8
mov ebp, ebx
and ebp, 0xff
add edi, ebp
xor edi, eax
cmp ecx, esi
mov eax, edi
jl 0x407b66
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40b330
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x84
lea eax, [esp + 0x44]
push esi
mov esi, dword [esp + 0x8c]
push edi
push eax
push esi
call dword [sym.imp.USER32.dll_BeginPaint]
mov edi, eax
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x18]
push 0x32
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
call fcn.0040b7a0
lea ecx, [esp + 0x14]
add esp, 0xc
push 0xf
push 0xa
push ecx
push edi
call dword [sym.imp.USER32.dll_DrawEdge]
lea ecx, [esp + 0x4c]
push ecx
push esi
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
add esp, 0x84
ret
Function at 0x40ba90
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xd0
lea eax, [esp + 0x10]
push ebx
push esi
push edi
mov esi, dword [esp + 0xe0]
push ebp
push eax
push esi
call dword [sym.imp.USER32.dll_BeginPaint]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0xfffffffffffffff0
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push esi
call ebx
test al, 5
je 0x40bb19
mov eax, dword [0x40f550]
mov ecx, dword [esp + 0x18]
push eax
push 1
push ecx
push 0
push 0
push edi
call fcn.004012e0
mov edx, dword [esp + 0x30]
add esp, 0x18
mov ecx, dword [0x40f54c]
push ecx
push 1
push edx
push 1
push 0
push edi
call fcn.004012e0
add esp, 0x18
jmp 0x40bbab
lea eax, [esp + 0x60]
push pe_nt_image_headers32
push eax
mov ebp, dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
call ebp
mov ebp, eax
push 0xffffffffffffffeb
push esi
call ebx
test eax, eax
je 0x40bb43
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
jmp 0x40bb47
mov ebx, dword [esp + 0x60]
lea eax, [esp + 0x10]
push 0xf
push 0xa
push eax
push edi
call dword [sym.imp.USER32.dll_DrawEdge]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 5
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, eax
push 0x924
inc eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ebp
push ecx
mov ebp, dword [sym.imp.USER32.dll_DrawTextA]
push edi
call ebp
test ebx, ebx
je 0x40bbab
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_EndPaint]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xd0
ret

Function at 0x40c140
Capabilities:
Get disk information

Disassembly:
sub esp, 4
mov eax, dword [0x40fc58]
mov dword [esp], eax
push ebx
push esi
xor ebx, ebx
push edi
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
call ebp
cmp eax, ebx
mov edi, eax
je 0x40c1b2
mov esi, 0x40f3b0
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test edi, 1
je 0x40c1a7
lea eax, [esp + 0x10]
push eax
call ebp
cmp eax, 5
jne 0x40c1a7
push 0x451
add esi, 4
inc ebx
call fcn.00405d90
add esp, 4
mov dword [esi - 4], eax
mov ecx, dword [esi - 4]
mov al, byte [esp + 0x10]
mov byte [ecx + 0xc], al
mov ecx, dword [esi - 4]
mov dword [ecx + 0xd], 0x8000
shr edi, 1
inc byte [esp + 0x10]
test edi, edi
jne 0x40c16b
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret