joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401290
Capabilities:
Extract cabinet on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
lea eax, [ebp - 0x18]
sub esp, 0x3c
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x401150
mov dword [esp + 0x14], 0x401000
mov dword [esp + 0x10], 0x401180
mov dword [esp + 0xc], 0x4011c0
mov dword [esp + 8], 0x401200
mov dword [esp + 4], 0x401020
mov dword [esp], 0x401030
call sub.cabinet.dll_FDICreate
test eax, eax
je 0x4013f0
mov ebx, eax
test esi, esi
je 0x401400
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x24], ecx
call ecx
sub esp, 0x20
mov dword [esp], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x401400
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov edx, dword [ebp - 0x20]
mov dword [esp + 8], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], edx
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, dword [ebp - 0x24]
call ecx
mov eax, dword [ebp - 0x1c]
sub esp, 0x20
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x402680
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.cabinet.dll_FDICopy
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
call sub.cabinet.dll_FDIDestroy
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
xor esi, esi
jmp 0x4013d6
Function at 0x401b30
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Get common file path
Terminate process

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x10
mov ebp, esp
push edi
lea edx, [ebp - 0x254]
push esi
push ebx
lea ebx, [ebp - 0x214]
mov edi, edx
lea esi, [ebp - 0x258]
sub esp, 0x28c
mov dword [ebp - 0x270], 1
rep stosd dword es:[edi], eax
mov dword [esp], ebx
mov dword [ebp - 0x258], 0x44
mov dword [esp + 4], 0x104
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
sub esp, 8
mov dword [esp + 4], str.wusa.exe
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscat]
lea eax, [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0x268]
mov dword [esp], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x401c80
test byte [section..data], 8
jne 0x401cca
mov eax, dword [ebp - 0x268]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push eax
push eax
lea eax, [ebp - 0x270]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x268]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x268]
push edx
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
push edx
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x264]
push ecx
mov dword [esp], eax
call ebx
push ebx
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
mov eax, dword [ebp - 0x270]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
test byte [section..data], 2
je 0x401c5f
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
or edx, 0xffffffff
mov eax, ebx
call fcn.00401920
mov dword [esp + 0xc], str.Failed_to_restart_64_bit__s__err__lu_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.restart_as_x86_64
mov dword [esp + 0x14], esi
mov dword [esp + 4], 0x408000
mov dword [esp], 1
call fcn.00401ae0
jmp 0x401c5f
or edx, 0xffffffff
mov eax, ebx
call fcn.00401920
mov dword [esp + 0xc], str.Restarting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.restart_as_x86_64
mov dword [esp + 4], 0x408000
mov dword [esp], 3
call fcn.00401ae0
jmp 0x401c0d

Function at 0x401d10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x401d40
test al, 0x10
je 0x401d40
mov ebx, dword [ebp - 4]
mov eax, 1
leave
ret
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x401d2e
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
mov ebx, dword [ebp - 4]
leave
sete al
movzx eax, al
ret
Function at 0x401d70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
test eax, eax
je 0x401e24
mov esi, eax
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_PathRemoveFileSpecW]
sub esp, 4
test eax, eax
jne 0x401db0
xor ebx, ebx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x401dca
mov ebx, 1
test al, 0x10
jne 0x401d9d
movzx eax, word [esi]
test ax, ax
je 0x401e16
mov ebx, esi
jmp 0x401dec
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x401e16
cmp ax, 0x5c
jne 0x401de0
xor edx, edx
mov eax, esi
mov word [ebx], dx
call fcn.00401d10
test eax, eax
je 0x401d9b
mov eax, 0x5c
add ebx, 2
mov word [ebx - 2], ax
movzx eax, word [ebx]
test ax, ax
jne 0x401dec
mov eax, esi
call fcn.00401d10
mov ebx, eax
jmp 0x401d9d
xor ebx, ebx
jmp 0x401da6

Function at 0x401f60
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov edx, 0x40a06e
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x264
mov dword [ebp - 0x260], eax
call fcn.00401e30
test eax, eax
je 0x40204f
lea edi, [ebp - 0x25c]
mov esi, eax
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov ebx, eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
sub esp, 8
mov dword [esp], esi
mov dword [ebp - 0x264], eax
call eax
cmp ebx, 0xffffffff
je 0x40203d
lea esi, [ebp - 0x230]
mov dword [esp + 4], 0x40a072
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x40201d
mov dword [esp + 4], 0x40a076
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x40201d
mov eax, dword [ebp - 0x260]
mov edx, esi
call fcn.00401e30
test eax, eax
je 0x40201d
test byte [ebp - 0x25c], 0x10
je 0x402060
mov dword [ebp - 0x268], eax
call fcn.00401f60
mov edx, dword [ebp - 0x268]
mov dword [esp], edx
mov eax, dword [ebp - 0x264]
call eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x401fbd
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov eax, dword [ebp - 0x260]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov dword [ebp - 0x268], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov edx, dword [ebp - 0x268]
sub esp, 4
jmp 0x402012
Function at 0x402080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x21c
mov esi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp + 4], 0x40a07c
mov dword [esp], eax
call esi
test eax, eax
jne 0x402150
mov eax, 0x25
lea edi, [ebp - 0x214]
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], 0
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathW]
sub esp, 0x10
test eax, eax
je 0x4021a0
mov dword [esp + 4], str.runtime.inf
mov dword [esp], ebx
call esi
test eax, eax
jne 0x402110
mov dword [esp + 4], str.inf
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscat]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsdup]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.runtime.drivers
mov dword [esp], ebx
call esi
test eax, eax
je 0x4021b0
mov dword [esp + 4], str.runtime.wbem
mov dword [esp], ebx
call esi
test eax, eax
jne 0x4020fe
mov dword [esp + 4], str.wbem
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscat]
jmp 0x4020fe
mov dword [esp + 4], str.runtime.drivers
mov dword [esp], ebx
call esi
test eax, eax
je 0x4020a9
mov dword [esp + 4], str.runtime.wbem
mov dword [esp], ebx
call esi
test eax, eax
je 0x4020a9
mov dword [esp + 4], str.runtime.windows
mov dword [esp], ebx
call esi
test eax, eax
jne 0x402260
mov eax, 0x24
jmp 0x4020ae
test byte [section..data], 2
jne 0x4021d0
xor eax, eax
jmp 0x402107
mov dword [esp + 4], str.drivers
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscat]
jmp 0x4020fe
test ebx, ebx
je 0x402258
mov eax, ebx
shr eax, 0x10
test eax, eax
je 0x402240
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x40a015
test edx, edx
jne 0x40220c
mov edx, 0xffffffff
mov eax, ebx
call fcn.004014a0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_get_folder_path_for__s_n
mov dword [esp + 8], str.lookup_expression
mov dword [esp + 4], 0x408000
mov dword [esp], 1
call fcn.00401ae0
xor eax, eax
jmp 0x402107
mov dword [esp + 4], ebx
mov dword [esp], 0x40a008
call fcn.004016c0
jmp 0x40220c
mov eax, 0x40a00e
jmp 0x40220c
mov dword [esp + 4], str.runtime.inf
mov dword [esp], ebx
call esi
test eax, eax
je 0x40218f
mov dword [esp + 4], str.runtime.programfiles
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x26
test edx, edx
je 0x4020ae
mov dword [esp + 4], str.runtime.commonfiles
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x2b
test edx, edx
je 0x4020ae
mov dword [esp + 4], str.runtime.programdata
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x23
test edx, edx
je 0x4020ae
mov dword [esp + 4], str.runtime.fonts
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x14
test edx, edx
je 0x4020ae
test byte [section..data], 1
je 0x4021a9
or edx, 0xffffffff
mov eax, ebx
call fcn.00401920
mov dword [esp + 0xc], str.Unknown_expression__s_n
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], str.lookup_expression
mov dword [esp + 4], 0x408000
mov dword [esp], eax
call fcn.00401ae0
xor eax, eax
jmp 0x402107
Function at 0x402530
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
sub esp, 0x1c
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x10]
call fcn.00402330
mov ecx, dword [esi + 0x10]
mov ebx, eax
test ecx, ecx
je 0x402598
test eax, eax
je 0x4025e0
cmp word [ebx], 0
je 0x4025f0
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402568
sub eax, ebx
add eax, 2
mov edx, dword [ebp + 8]
test edx, edx
je 0x4025a5
mov esi, 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
test ebx, ebx
jne 0x402559
mov edx, dword [ebp + 8]
test edx, edx
jne 0x40257d
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
je 0x40257d
test byte [section..data], 2
jne 0x4025fa
xor esi, esi
jmp 0x402582
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x402576
mov esi, dword [esi + 8]
test esi, esi
je 0x402676
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x402664
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x40a015
test edx, edx
jne 0x402635
mov edx, 0xffffffff
mov eax, esi
call fcn.004014a0
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0xc], str.Failed_to_set_registry_key__s_n
mov dword [esp + 8], str.install_registry_string
mov dword [esp + 4], 0x408000
mov dword [esp], 1
call fcn.00401ae0
jmp 0x402582
mov dword [esp + 4], esi
mov dword [esp], 0x40a008
call fcn.004016c0
jmp 0x402635
mov eax, 0x40a00e
jmp 0x402635
Function at 0x407c10
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x407c80
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00405230
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x4063c0
Capabilities:
Access peb ldr_data

Disassembly:
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov eax, dword [0x46d17c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0x5cecfd0d
mov eax, dword [ebp - 0x10]
mov ecx, eax
sub ecx, 0x1e499c55
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jg 0x40640d
jmp 0x4063f7
mov eax, dword [ebp - 0x14]
sub eax, 0xe84a34d4
mov dword [ebp - 0x1c], eax
je 0x4064b2
jmp 0x40644f
mov eax, dword [ebp - 0x14]
sub eax, 0x1e499c56
mov dword [ebp - 0x20], eax
je 0x406472
jmp 0x406423
mov eax, dword [ebp - 0x14]
sub eax, 0x3478250c
mov dword [ebp - 0x24], eax
je 0x406486
jmp 0x406439
mov eax, dword [ebp - 0x14]
sub eax, 0x5cecfd0d
mov dword [ebp - 0x28], eax
je 0x406454
jmp 0x40644f
jmp 0x4064ba
mov eax, 0x3478250c
mov ecx, 0x1e499c56
mov edx, dword [ebp - 4]
cmp edx, 0
cmovne eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x4064ba
mov eax, dword [0x46d17c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0xe84a34d4
jmp 0x4064ba
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [0x46d17c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0xe84a34d4
jmp 0x4064ba
mov eax, dword [ebp - 8]
add esp, 0x28
pop ebp
ret
invalid
sbb al, 0xff
Function at 0x4419fb
Capabilities:
Parse pe header

Disassembly:
add byte [eax], al
add byte [eax], al
push 0x14
push 0x44c280
call fcn.0044320a
call fcn.00442ec3
movzx esi, ax
push 2
call fcn.00442c93
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x441a2d
xor ebx, ebx
jmp 0x441a60
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x441a29
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x441a29
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x441a60
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.00441c90
test eax, eax
jne 0x441a74
push 0x1c
call fcn.00441b4f
pop ecx
call fcn.0044213a
test eax, eax
jne 0x441a85
push 0x10
call fcn.00441b4f
pop ecx
call fcn.00442d7a
and dword [ebp - 4], 0
call fcn.004426d7
test eax, eax
jns 0x441a9f
push 0x1b
call fcn.00441b4f
pop ecx
call dword [0x44801c]
mov dword [0x46fc70], eax
call fcn.00442dba
mov dword [0x46d798], eax
call fcn.00442985
test eax, eax
jns 0x441ac5
push 8
call fcn.00442215
pop ecx
call fcn.00442bb2
test eax, eax
jns 0x441ad6
push 9
call fcn.00442215
pop ecx
push 1
call fcn.0044224f
pop ecx
test eax, eax
je 0x441ae9
push eax
call fcn.00442215
pop ecx
call fcn.0044319d
push esi
push eax
push 0
push 0x400000
call fcn.0040314a
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x441b0b
push esi
call fcn.004424ab
call fcn.00442240
jmp 0x441b40
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.0044324f
ret
Function at 0x44bad0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [esi], 0
mov al, byte [0x66304a]
mov cl, byte [0x66304d]
mov edx, dword [0x663030]
and cl, al
mov eax, dword [0x663034]
mov byte [0x66304d], cl
mov ecx, eax
shr ecx, 2
sub edx, ecx
xor ecx, ecx
mov cl, byte [0x663043]
mov dword [0x663030], edx
mov edx, dword [0x663038]
or edx, 7
imul edx, ecx
and eax, edx
mov dword [0x663034], eax
call fcn.0044ba10
mov edx, dword [0x666aac]
push edx
call dword [sym.imp.GDI32.dll_SaveDC]
mov dword [esi], eax
mov eax, dword [0x666aac]
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
push 0
call sub.comdlg32.dll_FindTextW
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x44bb5b
or dword [esi], 0x2000000
mov eax, esi
pop edi
pop esi
ret

Function at 0x659ded
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x663398
cmp edx, dword [eax]
je 0x659e0f
add eax, 8
inc ecx
cmp eax, 0x663428
jl 0x659e00
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x663398]
jne 0x659f3d
mov eax, dword [0xa600f4]
cmp eax, 1
je 0x659f17
test eax, eax
jne 0x659e40
cmp dword [0x6632c4], 1
je 0x659f17
cmp edx, 0xfc
je 0x659f3d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x659e77
lea eax, [ebp - 0x1a4]
push 0x65fc60
push eax
call fcn.0065a7d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065ac60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x659eba
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065ac60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65fc5c
push edi
call fcn.0065cb30
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65fc40
push eax
call fcn.0065a7d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065a7e0
lea eax, [ebp - 0xa0]
push 0x65fc3c
push eax
call fcn.0065a7e0
push dword [esi + 0x66339c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065a7e0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65fc14
push eax
call fcn.0065caa4
add esp, 0x2c
pop edi
jmp 0x659f3d
lea eax, [ebp + 8]
lea esi, [esi + 0x66339c]
push 0
push eax
push dword [esi]
call fcn.0065ac60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x43b64e
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop ecx
add eax, edx
call fcn.0043b67f
inc eax
xor dword [esi], ecx
or edx, eax
add esi, 1
sub eax, eax
mov edx, 0xa6d6298
cmp esi, ebx
jne fcn.0043b64e
dec eax
inc edx
sub eax, 0xa2385156
ret