joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432f30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x5c]
mov edi, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + edi + 2], 0
lea edi, [edi + 2]
jne 0x432f50
cmp edi, 0xfffffff5
jge 0x432f67
mov eax, 0xffffffff
jmp 0x432f6a
lea eax, [edi + 0xa]
push eax
call fcn.0042eb60
add esp, 4
mov esi, eax
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
mov word [eax + 8], 0
add eax, 8
movzx ecx, word [ebp]
test cx, cx
je 0x432fb2
add ebp, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x432fa0
mov word [eax], 0
and edi, 0xfffffffe
lea eax, [edi + 8]
mov word [esp + 0x18], ax
add edi, 0xa
mov word [esp + 0x1a], di
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0x40
lea eax, [esp + 0x18]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov ecx, dword [0x441654]
mov edi, 0xffffffff
test ecx, ecx
je 0x4330f4
mov eax, dword [0x441658]
add eax, 8
nop
nop
nop
nop
nop
nop
nop
cmp dword [eax - 8], 0xb1cf12ba
je 0x433034
add eax, 0xc
dec ecx
jne 0x433020
jmp 0x4330f4
mov byte [esp + 0x14], 0
mov dword [esp + 0x10], 0x900000c2
mov dword [esp + 0xc], 0xd2ff0000
mov dword [esp + 8], 0xba00
mov dword [esp + 4], 0xb8
mov eax, dword [eax]
mov dword [esp + 5], eax
mov eax, dword [0x44165c]
mov dword [esp + 0xa], eax
mov word [esp + 0x11], 0x2c
mov dword [esp], 0
mov dword [esp + 0x24], 0x10
lea eax, [esp + 0x24]
mov ebp, esp
push 0x40
push 0x3000
push eax
push 0
push ebp
push 0xffffffffffffffff
call dword [0x441660]
mov edi, dword [esp]
lea eax, [esp + 4]
mov ecx, 4
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea ecx, [esp + 0x40]
lea eax, [esp + 0x28]
push 0
push 0
push ebx
push dword [esp + 0x78]
push dword [esp + 0x78]
push 0x80
push 0
push ecx
push eax
push dword [esp + 0x88]
push dword [esp + 0x88]
call dword [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x20], 0
lea eax, [esp + 0x20]
push 0x8000
push eax
push ebp
push 0xffffffffffffffff
call dword [0x441664]
push esi
call fcn.00408c90
add esp, 4
mov eax, edi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401fca
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x20
mov ebx, dword [ecx + 4]
test byte [0x40701c], 1
jne 0x401fe7
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__d__semi_stub:_no_script_engine_clean_up_n
mov dword [esp + 8], str.Host_Quit
mov dword [esp + 4], 0x40701c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x401fde
Function at 0x405af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x405b4b
cmp byte [esi + ebx - 1], 0xa
je 0x405b1f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x414304], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x406590
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__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 sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x406600
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40669b
cmp ax, 9
je 0x406688
cmp ax, 0x20
je 0x406688
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x4066f0
cmp ax, 0x22
je 0x406700
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40669b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x406640
test edi, 1
jne 0x406640
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x406688
cmp ax, 0x20
je 0x406688
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x406718
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.wWinMain@16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x40665b
and dword [ebp - 0x6c], 1
jne 0x406654
xor edi, 1
jmp 0x40665b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x4066b4

Function at 0x1002195
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xf0
push 4
call fcn.010012b0
test eax, eax
pop ecx
je 0x10021b6
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_void___thiscall_CLASS_DESCRIPTOR::constructor_void_]
jmp 0x10021b8
xor eax, eax
test eax, eax
mov dword [0x1004004], eax
je 0x10021c9
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_CLASS_DESCRIPTOR::Initialize_void_]
lea ecx, [ebp - 0x78]
call fcn.010012ff
lea ecx, [ebp - 0x78]
call fcn.01001cd6
test al, al
je 0x10021ee
lea ecx, [ebp - 0x78]
call fcn.0100133e
test al, al
je 0x10021ee
push dword [ebp + 0x10]
jmp 0x10021f0
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x1000170c
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
mov edx, dword [esp + 0x14]
lea ecx, [esp]
call fcn.10003000
mov edx, dword [esp]
push dword [0x100086e8]
push edx
call fcn.10004a60
lea eax, [esp + 8]
push eax
call fcn.10004ac0
mov edx, dword [0x100086e8]
push edx
push edx
push dword [esp + 0xc]
call fcn.10003cba
add dword [0x100086e8], 2
lea edx, [0x10007028]
pop ecx
mov dword [0x100086e8], ecx
add ecx, dword [0x10007d90]
call fcn.10003090
je 0x1000178f
mov edx, dword [esp + 4]
push dword [0x100086e8]
push edx
call fcn.10004a60
lea edx, str..dll
push edx
call fcn.10004a60
lea eax, [esp + 8]
push eax
call fcn.10004ac0
cmp dword [esp + 0x18], 0
je 0x10001830
push dword [0x10008378]
lea edx, [0x10007028]
pop ecx
call fcn.10003090
je 0x100017fe
mov edx, dword [0x100086e8]
push edx
push edx
push 0x104
call fcn.10003220
push 0x10008378
call fcn.10004ac0
push 0x104
mov eax, dword [0x10008378]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
mov edx, dword [0x100086e8]
push edx
push edx
lea eax, [0x1000715c]
push eax
push dword [0x10008378]
call fcn.10003270
push 0x10008378
call fcn.10004ac0
mov edx, dword [0x10008378]
push dword [0x100086e8]
push edx
call fcn.10004a60
lea edx, [0x1000715c]
push edx
call fcn.10004a60
mov edx, dword [esp + 8]
push edx
call fcn.10004a60
lea eax, [esp + 8]
push eax
call fcn.10004ac0
push dword [esp + 4]
call sub.KERNEL32.dll_LoadLibraryW
mov dword [esp + 8], eax
mov ebx, dword [esp + 8]
and ebx, ebx
jne 0x100018a4
push dword [0x100086e8]
push 0x10
lea eax, str.PurePortable
push eax
push dword [0x100086e8]
lea edx, str.Failed_load_original_dll_n
push edx
call fcn.10004a60
mov edx, dword [esp + 0x10]
push edx
call fcn.10004a60
add dword [0x100086e8], 2
push 0
mov edx, dword [0x10007d90]
add dword [esp + 4], edx
call sub.USER32.dll_MessageBoxW
pop dword [0x100086e8]
push 0
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.KERNEL32.dll_TerminateProcess
mov eax, dword [esp + 8]
jmp 0x100018ac
push dword [esp + 4]
call fcn.10004b40
push dword [esp]
call fcn.10004b40
add esp, 0xc
pop ebx
ret 8

Function at 0x10001ac2
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push eax
mov edx, dword [esp + 8]
lea ecx, [esp]
call fcn.10003000
mov eax, dword [esp]
push eax
call sub.SHLWAPI.dll_PathFileExistsW
jmp 0x10001ade
push dword [esp]
call fcn.10004b40
add esp, 4
ret 4
Function at 0x10001c8d
Capabilities:
Terminate process

Disassembly:
xor eax, eax
push eax
push eax
push eax
mov edx, dword [0x100086e8]
push edx
push edx
push dword [esp + 0x18]
call fcn.10004520
add dword [0x100086e8], 2
lea eax, [esp + 4]
push eax
call fcn.10004ac0
push 1
push dword [esp + 4]
call fcn.1000170c
mov dword [esp + 4], eax
push dword [esp + 0x14]
push dword [esp + 8]
call sub.KERNEL32.dll_GetProcAddress
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x10001ce2
xor eax, eax
jmp 0x10001ce7
mov eax, 1
and eax, eax
je 0x10001d5e
push dword [0x100086e8]
push 0x10
lea eax, str.PurePortable
push eax
push dword [0x100086e8]
lea edx, str.Error_init_proxy_function
push edx
call fcn.10004a60
mov edx, dword [0x100086e8]
push edx
push edx
push 0x18
push 0xffffffff
push dword [esp + 0x34]
call fcn.10004570
pop eax
add dword [0x100086e8], 2
push 0
mov edx, dword [0x10007d90]
add dword [esp + 4], edx
call sub.USER32.dll_MessageBoxW
pop dword [0x100086e8]
push 0
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.KERNEL32.dll_TerminateProcess
jmp 0x10001d66
mov eax, dword [esp + 8]
jmp 0x10001d66
push dword [esp]
call fcn.10004b40
add esp, 0xc
ret 8
Function at 0x10001f2f
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
mov eax, dword [0x10008330]
mov dword [0x100083b0], eax
mov edx, dword [0x100086e8]
push edx
push edx
push 0x7fff
call fcn.10003220
lea eax, [esp + 4]
push eax
call fcn.10004ac0
push 0x7fff
mov eax, dword [esp + 4]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
mov edx, dword [0x100086e8]
push edx
push edx
mov eax, dword [esp + 8]
push eax
call fcn.10004520
push 0x100083fc
call fcn.10004ac0
mov edx, dword [0x100086e8]
push edx
push edx
push dword [0x100083fc]
call fcn.10003d2d
push 0x10008438
call fcn.10004ac0
mov edx, dword [0x100086e8]
push edx
push edx
lea eax, [0x1000715c]
push eax
push dword [0x10008438]
call fcn.10003270
push 0x10008380
call fcn.10004ac0
mov edx, dword [0x100086e8]
push edx
push edx
push 1
push dword [0x100083fc]
call fcn.10003dac
push 0x10008434
call fcn.10004ac0
push 0x7fff
mov eax, dword [esp + 4]
push eax
push dword [0x100083b0]
call sub.KERNEL32.dll_GetModuleFileNameW
mov edx, dword [0x100086e8]
push edx
push edx
mov eax, dword [esp + 8]
push eax
call fcn.10004520
push 0x10008334
call fcn.10004ac0
mov edx, dword [0x100086e8]
push edx
push edx
push dword [0x10008334]
call fcn.10003d2d
push 0x100083d8
call fcn.10004ac0
mov edx, dword [0x100086e8]
push edx
push edx
lea eax, [0x1000715c]
push eax
push dword [0x100083d8]
call fcn.10003270
push 0x10008404
call fcn.10004ac0
mov edx, dword [0x100086e8]
push edx
push edx
push 1
push dword [0x10008334]
call fcn.10003dac
push 0x10008358
call fcn.10004ac0
push 0x7fff
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryW
mov edx, dword [0x100086e8]
push edx
push edx
lea eax, [0x1000715c]
push eax
push dword [esp + 0xc]
call fcn.10003270
push 0x100083e8
call fcn.10004ac0
push 0x7fff
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
mov edx, dword [0x100086e8]
push edx
push edx
lea eax, [0x1000715c]
push eax
push dword [esp + 0xc]
call fcn.10003270
push 0x10008378
call fcn.10004ac0
mov eax, dword [esp]
push eax
push 0x7fff
call sub.KERNEL32.dll_GetTempPathW
mov edx, dword [0x100086e8]
push edx
push edx
lea eax, [0x1000715c]
push eax
push dword [esp + 0xc]
call fcn.10003270
push 0x100083e4
call fcn.10004ac0
xor eax, eax
push dword [esp]
call fcn.10004b40
add esp, 4
ret
Function at 0x403360
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403393
call fcn.00403340
test eax, eax
je 0x403393
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403400
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403434
call fcn.00403340
cmp eax, 7
jb 0x403434
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403440
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403473
call fcn.00403340
test eax, eax
je 0x403473
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403570
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x89a474]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4035b9
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4035b9
push 0xc00
call eax
test eax, eax
jne 0x40364e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40364e
cmp ecx, 0x104
ja 0x40364e
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x4035f2
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x40364d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x403615
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x403612
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444855
mov esp, ebp
pop ebp
ret
Function at 0x408b30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.00445fb0
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x408bc7
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0x455570]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x408c10
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x408bf4
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x408bf0
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x408c60
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x408c50
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x409c30
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x409c7b
cmp edx, 0x40
je 0x409c67
mov eax, 0x40
lea ecx, [esi + 0x40]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.00445fb0
add esp, 0xc
mov eax, dword [esi]
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov edx, edi
push 1
mov ecx, ebx
call eax
xor edx, edx
jmp 0x409c81
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.00445fb0
mov ecx, dword [esi + 8]
add esp, 0xc
mov eax, dword [esi + 0xc]
mov edx, edi
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
mov ecx, ebx
push 1
call eax
mov edi, dword [ebp + 0xc]
mov edx, ebx
mov ebx, 4
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x409cc4
pop edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret 8

Function at 0x409d30
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x89a44c]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4

Function at 0x40a4e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.00448907
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x40a50d
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40da80
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 0x10]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push 0x2002
call fcn.00411390
test al, al
jne 0x40dab3
lea ecx, [ebp - 4]
xor bl, bl
call fcn.004113c0
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40db03
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00445a30
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40db03
pop edi
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov bl, 1
call fcn.004113c0
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
lea ecx, [ebp - 4]
xor bl, bl
call fcn.004113c0
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40db20
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4519fd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x89a474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [ebp + 0xb], al
test al, al
je 0x40dc05
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40dc02
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [esi]
push 0xd
call fcn.0040da80
push 0
mov bl, al
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040cb80
mov ecx, dword [ebp - 0x14]
inc ecx
mov byte [ebp - 4], 1
push ecx
push dword [ebp - 0x18]
push 1
call fcn.0040da80
mov edi, 1
movzx ebx, bl
push edi
test al, al
lea eax, [ebp - 0x24]
push esi
push eax
cmovne ebx, edi
call fcn.0040cb80
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040b060
push dword [ebp - 0x24]
call fcn.00444a9c
mov eax, dword [ebp - 0x14]
add esp, 4
inc eax
push eax
push dword [ebp - 0x18]
push 7
call fcn.0040da80
push dword [ebp - 0x18]
test al, al
movzx ebx, bl
cmovne ebx, edi
call fcn.00444a9c
add esp, 4
jmp 0x40dc0b
mov al, byte [ebp + 0xb]
xor bl, bl
test al, al
je 0x40dc11
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ecb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x89e098], 0
jne 0x40ece8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040c750
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00444a9c
add esp, 4
test esi, esi
pop esi
jmp 0x40ecf5
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ecff
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x40ed10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040feb0
cmp eax, 0xffffffff
je 0x40ed3d
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x40ed3d
and eax, 0xfffffffe
push eax
push esi
call fcn.0040f1d0
test al, al
je 0x40ed7c
cmp byte [0x89e098], 0
push esi
jne 0x40ed69
lea eax, [ebp - 0xc]
push eax
call fcn.0040c750
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00444a9c
add esp, 4
test esi, esi
jmp 0x40ed71
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40ed7c
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4