joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010243
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001bce0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000b13f
and dword [ebp - 0x14], 0
cmp dword [0x1001e584], 0
mov dword [ebp - 0x18], eax
jne 0x100102f6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001039e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001039e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001e584], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1001e588], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1001e58c], eax
call edi
push eax
call esi
mov dword [0x1001e594], eax
test eax, eax
je 0x100102f6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1001e590], eax
mov eax, dword [0x1001e590]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1001034f
cmp dword [0x1001e594], ecx
je 0x1001034f
push eax
call esi
push dword [0x1001e594]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001034f
test ebx, ebx
je 0x1001034f
call edi
test eax, eax
je 0x10010346
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10010346
test byte [ebp - 8], 1
jne 0x1001034f
or dword [ebp + 0x10], 0x200000
jmp 0x10010382
mov eax, dword [0x1001e588]
cmp eax, dword [ebp - 0x18]
je 0x10010382
push eax
call esi
test eax, eax
je 0x10010382
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10010382
mov eax, dword [0x1001e58c]
cmp eax, dword [ebp - 0x18]
je 0x10010382
push eax
call esi
test eax, eax
je 0x10010382
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001e584]
call esi
test eax, eax
je 0x1001039e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100103a0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b130
leave
ret
Function at 0x41b530
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x808
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x804], eax
mov eax, dword [0x4222a4]
imul eax, eax, 0x343fd
cmp dword [0x22c4e8c], 0x139e
mov dword [0x4222a4], eax
jne 0x41b583
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTapePosition]
mov eax, dword [esp]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [0x4222a4]
add eax, 0x269ec3
push esi
mov dword [0x4222a4], eax
movzx esi, word [0x4222a6]
and esi, 0x7fff
cmp dword [0x22c4e8c], 0x8e7
jne 0x41b5b8
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401000
add esp, 0x808
ret

Function at 0x41b640
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x4201f0]
push ebx
mov ebx, dword [0x22c4830]
push edi
mov edi, dword [0x22c4e8c]
call fcn.0041b5d0
cmp dword [0x22c4e8c], 0x2f
jne 0x41b6a5
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.0041b600
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.00401000
add esp, 0x24
ret
Function at 0x41b9f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00409150
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
jmp 0x41ba19
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xbbe2aa2
jge 0x41bac1
cmp dword [0x22c4e8c], 0xa5f
jne 0x41ba65
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x818]
push edx
push str.kilibugerenegupezocezicuberusog
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp dword [ebp - 4], 0x84526b
jne 0x41ba8a
mov eax, dword [0x421010]
mov dword [0x22c4e8c], eax
mov ecx, dword [0x22c4e8c]
add ecx, 0xa231
mov dword [0x22c4e8c], ecx
cmp dword [0x22c4e8c], 0x141
jne 0x41babc
push str.renej_luwoyisawopab_dadabayegutenecisufoba_wozonotuwugewiropoxu_vogiwipeladoxakanahotucucuwi
lea edx, [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x4222a8], 0xec58acac
mov dword [0x4222ac], 0xffffffff
jmp 0x41ba10
call fcn.0041b6c0
jmp dword [0x22c4830]
Function at 0x401059
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x401061
mov dword [ecx*4 + 0x415bc0], eax
inc ecx
cmp ecx, 0x100
jb 0x40105c
mov edx, 0x800
jmp 0x4010ae
mov eax, dword [ecx*4 + 0x4157c0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x415bc0]
inc ecx
mov dword [ecx*4 + 0x415bbc], eax
cmp ecx, edx
jb 0x40108d
mov dword [0x414a28], 0x4010d1
call fcn.00403de8
test eax, eax
jne 0x4010cf
mov dword [0x414a28], 0x401167
pop esi
ret

Function at 0x4019d6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x401a1e
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x4019ef
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x401a23
test ecx, ecx
je 0x401a1e
test edi, edi
ja 0x4019e4
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401a20

Function at 0x401a2b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x401a73
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x401a44
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x401a78
test ecx, ecx
je 0x401a73
test edi, edi
ja 0x401a39
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401a75
Function at 0x403bd5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x403bec
leave
ret
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 8], ecx
lea esi, [eax + edi]
jmp 0x403c0f
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x403c14
inc esi
cmp esi, dword [ebp - 8]
jb 0x403c06
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jae 0x403d09
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x403c68
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x403c3f
cmp cl, 0xff
jne 0x403c93
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x14], 0
je 0x403ca1
lea ebx, [edi + eax]
add ebx, dword [ebp + 0xc]
jmp 0x403ca8
dec ecx
shl edx, cl
and edx, 7
je 0x403c30
movzx ecx, byte [edx + 0x411580]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x411578], 0
mov cl, byte [ebx + 4]
je 0x403c90
test cl, cl
je 0x403c90
cmp cl, 0xff
jne 0x403c30
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x403c01
sub edi, eax
sub edi, dword [ebp + 0xc]
mov ebx, edi
test edx, edx
je 0x403cdc
movzx edi, byte [edx + 0x411580]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x403cc7
cmp al, 0xff
jne 0x403cd9
mov eax, dword [ebp - 0xc]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x403c5a
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x403c01
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x405a37
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x40c]
sub esp, 0x48c
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp + 0x408], eax
push ebx
push esi
xor ebx, ebx
push 0x3fe
lea eax, [ebp - 0x76]
push ebx
push eax
mov esi, ecx
mov word [ebp - 0x78], bx
call fcn.00406d20
push str.SmartPlayer.7z
push esi
push str._s_s
lea eax, [ebp - 0x78]
push 0x1ff
push eax
call fcn.0040594d
add esp, 0x20
push 0x4115ac
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x405ab1
push str.find_resource_failed_
call fcn.0040597f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x405b7b
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [ebp - 0x80], eax
jne 0x405ac7
push str.resource_is_empty_
jmp 0x405aa0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x405ada
push str.load_resource_failed_
jmp 0x405aa0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
or dword [ebp - 0x7c], 0xffffffff
mov edi, eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
xor eax, eax
inc eax
call fcn.00401976
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x405b4d
push 0x7f
lea eax, [ebp + 0x389]
push ebx
push eax
mov byte [ebp + 0x388], bl
call fcn.00406d20
push esi
lea eax, [ebp + 0x388]
push str.lastError_d
push eax
call fcn.00406e12
lea eax, [ebp + 0x388]
push eax
call fcn.0040597f
lea eax, [ebp - 0x78]
push eax
call fcn.00405969
push str.can_not_create_file
call fcn.0040597f
add esp, 0x24
push 0xb
jmp 0x405b6d
lea eax, [ebp - 0x7c]
push edi
push eax
lea esi, [ebp - 0x80]
call fcn.00401a2b
test eax, eax
pop ecx
pop ecx
je 0x405b70
push str.can_not_open_write_file
call fcn.0040597f
pop ecx
push 9
pop eax
jmp 0x405b7a
lea esi, [ebp - 0x7c]
call fcn.004019b8
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x408]
pop esi
xor ecx, ebp
pop ebx
call fcn.00406488
add ebp, 0x40c
leave
ret
Function at 0x40605d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa5c
mov eax, dword [0x413004]
xor eax, esp
mov dword [esp + 0xa58], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x3fe
xor edi, edi
push esi
lea eax, [esp + 0x666]
push edi
push eax
mov word [esp + 0x66c], di
call fcn.00406d20
push esi
lea eax, [esp + 0x272]
push edi
push eax
mov word [esp + 0x278], di
call fcn.00406d20
push ebx
push str._s.
mov esi, 0x1ff
lea eax, [esp + 0x680]
push esi
push eax
call fcn.00406e8d
add esp, 0x28
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4060ef
xor eax, eax
jmp 0x406173
lea eax, [esp + 0x3c]
push 0x411744
push eax
call fcn.00406d9a
test eax, eax
pop ecx
pop ecx
je 0x406152
lea eax, [esp + 0x3c]
push 0x411748
push eax
call fcn.00406d9a
test eax, eax
pop ecx
pop ecx
je 0x406152
lea eax, [esp + 0x3c]
push eax
push ebx
push str._s_s
lea eax, [esp + 0x26c]
push esi
push eax
call fcn.0040594d
add esp, 0x14
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x260]
push eax
je 0x40614c
call fcn.0040605d
pop ecx
jmp 0x406152
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4060ef
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
inc eax
mov ecx, dword [esp + 0xa64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406488
mov esp, ebp
pop ebp
ret

Function at 0x406188
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3c4]
sub esp, 0x444
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp + 0x3c0], eax
mov eax, dword [ebp + 0x3cc]
and word [ebp - 0x40], 0
push edi
push 0x3fe
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x3e]
push 0
push eax
mov edi, ecx
call fcn.00406d20
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push edi
push str._s_s
push 0x1ff
push eax
call fcn.0040594d
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00406d20
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x70], eax
add esp, 0x2c
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x74], str.open
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x7c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop edi
je 0x406230
push str.ShellExecute_succeed_
call fcn.0040597f
mov eax, dword [ebp - 0x48]
jmp 0x40623c
push str.ShellExecute_failed_
call fcn.0040597f
xor eax, eax
pop ecx
mov ecx, dword [ebp + 0x3c0]
xor ecx, ebp
call fcn.00406488
add ebp, 0x3c4
leave
ret
Function at 0x406252
Capabilities:
Check mutex on windows
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc84
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x3fe
lea eax, [ebp - 0x482]
push ebx
push eax
mov word [ebp - 0x484], bx
call fcn.00406d20
push 8
pop ecx
mov esi, str.Smart_Player.exe
lea edi, [ebp - 0xc84]
rep movsd dword es:[edi], dword [esi]
push 0x3de
lea eax, [ebp - 0xc62]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.00406d20
push 0x3fe
lea eax, [ebp - 0x882]
push ebx
push eax
mov word [ebp - 0x884], bx
call fcn.00406d20
push 0x7f
lea eax, [ebp - 0x83]
push ebx
push eax
mov byte [ebp - 0x84], bl
call fcn.00406d20
push str.start_7zUnzip_main_
call fcn.0040597f
add esp, 0x34
push 1
push 0x1a
lea eax, [ebp - 0x484]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov esi, 0x1ff
jne 0x406312
push 0x4117e8
lea eax, [ebp - 0x484]
push esi
push eax
call fcn.0040594d
add esp, 0xc
push str.SPTemp
lea eax, [ebp - 0x484]
push eax
push str._s_s
push esi
push eax
call fcn.0040594d
add esp, 0x14
push str.smartplayerclient
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, 0xb7
cmp eax, edi
jne 0x40635d
push str.app_running_
call fcn.0040597f
xor eax, eax
jmp 0x406478
lea ebx, [ebp - 0x884]
call fcn.00405995
test eax, eax
je 0x406373
push str.can_not_get_module_path_
jmp 0x406351
lea eax, [ebp - 0x884]
push eax
push str.7zDecode_start______s_n
call fcn.00406f9b
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x484]
push eax
call ebx
test eax, eax
jne 0x406409
call esi
cmp eax, edi
jne 0x406409
lea eax, [ebp - 0x484]
push eax
call fcn.0040605d
test eax, eax
pop ecx
je 0x4063fe
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x484]
push eax
call ebx
test eax, eax
jne 0x406409
lea eax, [ebp - 0x484]
push eax
call fcn.00405969
pop ecx
call esi
push eax
lea eax, [ebp - 0x84]
push str.CreateDirectory_failed__lastError_d
push eax
call fcn.00406e12
lea eax, [ebp - 0x84]
push eax
call fcn.0040597f
add esp, 0x10
jmp 0x406409
push str.Remove_directory_failed_
call fcn.0040597f
pop ecx
lea ecx, [ebp - 0x484]
call fcn.00405a37
test eax, eax
je 0x406422
push str.load_zip_resource_failed_
jmp 0x406351
lea ecx, [ebp - 0x484]
call fcn.00405b92
test eax, eax
jne 0x40646b
push str.Extract7zZip_succeed_
call fcn.0040597f
lea eax, [ebp - 0xc84]
push eax
lea esi, [ebp - 0x884]
lea ecx, [ebp - 0x484]
call fcn.00406188
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x406464
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.exit_main_
call fcn.0040597f
xor eax, eax
inc eax
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406488
leave
ret

Function at 0x406488
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413004]
jne 0x406492
repz ret
jmp fcn.00407482
Function at 0x408872
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4132b0]
je 0x40888d
inc edi
cmp edi, 0x17
jb 0x40887e
cmp edi, 0x17
jae 0x408a0d
push ebp
push 3
call fcn.0040c0f0
cmp eax, 1
pop ecx
je 0x4089d9
push 3
call fcn.0040c0f0
test eax, eax
pop ecx
jne 0x4088c1
cmp dword [section..data], 1
je 0x4089d9
cmp ebx, 0xfc
je 0x408a0c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x414498
push ebp
call fcn.0040c08b
add esp, 0xc
test eax, eax
je 0x4088f7
push esi
push esi
push esi
push esi
push esi
call fcn.00409617
add esp, 0x14
push 0x104
mov esi, 0x4144b1
push esi
push 0
mov byte [0x4145b5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40893b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040c08b
add esp, 0xc
test eax, eax
je 0x40893b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00409617
add esp, 0x14
push esi
call fcn.0040c000
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408980
push esi
call fcn.0040c000
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4147ac
push 0x41075c
sub ecx, eax
push ecx
push eax
call fcn.0040bf4a
add esp, 0x14
test eax, eax
je 0x408980
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00409617
add esp, 0x14
jmp 0x408982
xor esi, esi
push 0x410758
push ebx
push ebp
call fcn.0040bed9
add esp, 0xc
test eax, eax
je 0x4089a2
push esi
push esi
push esi
push esi
push esi
call fcn.00409617
add esp, 0x14
push dword [edi*8 + 0x4132b4]
push ebx
push ebp
call fcn.0040bed9
add esp, 0xc
test eax, eax
je 0x4089c4
push esi
push esi
push esi
push esi
push esi
call fcn.00409617
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040bd1c
add esp, 0xc
jmp 0x408a0c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x408a0c
cmp ebp, 0xffffffff
je 0x408a0c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4132b4]
push dword [esi]
call fcn.0040c000
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40bd1c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00408db5
xor ebx, ebx
cmp dword [0x414910], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40bdf2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40bed2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40bed2
push eax
call fcn.00408d47
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414910], eax
call esi
push eax
call fcn.00408d47
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414914], eax
call esi
push eax
call fcn.00408d47
mov dword [0x414918], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004085ff
test eax, eax
pop ecx
pop ecx
je 0x40bdc0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409617
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40bdf2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00408d47
cmp eax, ebx
pop ecx
mov dword [0x414920], eax
je 0x40bdf2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00408d47
pop ecx
mov dword [0x41491c], eax
mov eax, dword [0x41491c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40be77
cmp dword [0x414920], ecx
je 0x40be77
push eax
call fcn.00408dbe
push dword [0x414920]
mov esi, eax
call fcn.00408dbe
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40be77
cmp edi, ebx
je 0x40be77
call esi
cmp eax, ebx
je 0x40be44
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40be44
test byte [ebp - 0x18], 1
jne 0x40be77
lea eax, [ebp - 0x10]
push eax
call fcn.00408636
test eax, eax
pop ecx
je 0x40be5f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409617
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40be6e
or dword [ebp + 0x10], 0x200000
jmp 0x40beb2
or dword [ebp + 0x10], 0x40000
jmp 0x40beb2
mov eax, dword [0x414914]
cmp eax, dword [ebp - 8]
je 0x40beb2
push eax
call fcn.00408dbe
cmp eax, ebx
pop ecx
je 0x40beb2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40beb2
mov eax, dword [0x414918]
cmp eax, dword [ebp - 8]
je 0x40beb2
push eax
call fcn.00408dbe
cmp eax, ebx
pop ecx
je 0x40beb2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x414910]
call fcn.00408dbe
cmp eax, ebx
pop ecx
je 0x40bed2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bed4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40673a
pop dword [ebp - 0x28]
mov eax, 0x748117dc
add eax, 0x8bbf4f5e
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x65a01f7d
sub dword [ebp - 0x38], 0x174dda32
mov dword [ebp - 0x34], 0x40d58a9b
add dword [ebp - 0x34], 0xf15dc1aa
mov dword [ebp - 0x30], 0x3658faa1
sub dword [ebp - 0x30], 0xea0cb673
mov dword [ebp - 0x2c], 0xf5772e1e
sub dword [ebp - 0x2c], 0xf5772e1e
lea eax, [ebp - 0x38]
push eax
mov eax, 0xe1648307
sub eax, 0xe1240203
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x1a2982a8
add dword [ebp - 0x38], 0x5a48e6ae
mov dword [ebp - 0x34], 0x53287321
add dword [ebp - 0x34], 0xee43ee54
mov dword [ebp - 0x30], 0xdf8b26cc
add dword [ebp - 0x30], 0x83e445a0
mov dword [ebp - 0x2c], 0x2d6bae28
sub dword [ebp - 0x2c], 0x2d6bae28
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x58a96754
sub eax, 0x5868e654
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3a485
push 0
call eax
mov ecx, 0xd986b688
add ecx, 0x26799c89
mov ebx, eax
mov esi, str.cbvfO_
add esi, dword [ebp - 0x28]
mov edi, 0xed23c1a3
xor dword [ebp - 0x20], 0xf2a89840
mov edx, dword [esi]
mov dword [ebp - 0x24], 0x685c23f6
xor edx, edi
xor dword [ebp - 0x24], ebx
mov dword [ebx], edx
add dword [ebp - 0x14], 0xba4c9e02
add ebx, 4
add esi, 0x5bc42c7
sub esi, 0x5bc42c3
loop 0x406850
add eax, 0xbafc0591
add eax, 0x45053986
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret