joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6256cbd0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x6256cbe7
add esp, 0xfffffff0
call fcn.62513cd8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.6252a498
mov eax, dword [0x6257f8bc]
cmp word [eax + 2], 0
jne 0x6256cc0f
mov eax, dword [0x6257f8bc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.6256e710
mov eax, dword [0x6257f988]
cmp word [eax + 2], 0
jne 0x6256cc29
mov eax, dword [0x6257f988]
mov dword [eax + 4], ebx
mov dword [eax], fcn.6256e91c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x62522294]
call fcn.62513984
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x62522294]
call fcn.62513984
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x62522294]
call fcn.62513984
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x6252eb1c]
call fcn.62536270
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x6256cde0
mov eax, dword [0x6257f7bc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.62536644
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x6256efdc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x6257f7bc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.6251cdac
test eax, eax
je 0x6256cd30
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.62518f28
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.6251cde0
test eax, eax
je 0x6256cd44
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.62514a50
mov byte [ebx + 0xd4], 0
push ebx
push 0x6256e270
call fcn.6252b614
mov dword [ebx + 0xc8], eax
mov eax, dword [0x6257f638]
cmp byte [eax], 0
jne 0x6256cd95
mov eax, ebx
call fcn.6256cf24
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.6256f1b8
mov eax, ebx
call fcn.6256fd18
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x6256cdd5
call fcn.62513d30
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6256d1a4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x6258357c]
cmp dword [eax + 0x30], 0
je 0x6256d24e
cmp dword [ebx + 0x94], 0
jne 0x6256d248
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x6256d134
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x6256d248
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x6256d20e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x6256d248
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.62524640
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x6256d21d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x6256df68
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x6256df9d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.625148d0
jmp 0x6256dfaa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.62514834
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x6256f39c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x6256f40a
mov eax, esi
call fcn.62559aa4
test al, al
je 0x6256f40a
mov eax, dword [ebx + 0x84]
call fcn.62559704
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x6256f40a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x6256f3fe
push 0
mov eax, dword [ebx + 0x84]
call fcn.62559704
push eax
call main
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.62551af0
jmp 0x6256f40a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.6256f1d8
pop esi
pop ebx
ret
Function at 0x6257958c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
call fcn.62514c94
xor eax, eax
push ebp
push 0x625796ac
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.user32.dll_OpenIcon
push esi
push eax
push esi
pop esi
nop
nop
nop
nop
nop
xor eax, 0x182
add esi, 0x14
dec esi
nop
nop
nop
nop
nop
nop
and esi, 0xcd
inc esi
xchg esi, eax
dec eax
xor eax, 0x11
mov eax, 0x81
pop eax
pop esi
push 0x625796b8
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x14], eax
push eax
push esi
xchg esi, eax
add esi, 0x6b
nop
nop
nop
xchg esi, eax
or eax, 0x5d
add eax, 0x72
xchg esi, eax
xchg esi, eax
dec eax
mov eax, 0xaa
or eax, 0xb6
xchg esi, eax
pop esi
pop eax
call sub.kernel32.dll_GetCurrentThreadId_1
push edx
push esi
inc edx
sub esi, 0xc7
or esi, 0xca
inc esi
push edx
pop edx
nop
nop
nop
nop
or esi, 0x5d
inc esi
or esi, 0x157
push esi
pop esi
sub esi, 0x68
pop esi
pop edx
lea eax, [ebp - 0x10]
mov dl, byte [ebp - 1]
add dl, byte [ebp - 0x14]
not dl
call fcn.625149c8
push 1
call sub.kernel32.dll_CancelWaitableTimer
push ebx
push ebx
pop ebx
push ebx
pop ebx
add ebx, 0x42
xor ebx, 0x184
sub ebx, 0x37
and ebx, 0x72
sub ebx, 0x196
inc ebx
push ebx
pop ebx
xor ebx, 0x32
xor ebx, 0x81
pop ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.62514af0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x625796b3
lea eax, [ebp - 0x10]
call fcn.625147e0
lea eax, [ebp - 8]
call fcn.625147e0
ret
Function at 0x6257b80c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
call fcn.62514c94
xor eax, eax
push ebp
push 0x6257b880
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6257b88c
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov dl, byte [ebp - 1]
add dl, byte [ebp - 0x14]
not dl
call fcn.625149c8
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.62514af0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6257b887
lea eax, [ebp - 0x10]
call fcn.625147e0
lea eax, [ebp - 8]
call fcn.625147e0
ret
Function at 0x20001000
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x20008b4c]
sub esp, 0x24
test eax, eax
push esi
mov esi, ecx
jne 0x20001024
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x10]
mov dword [0x20008b4c], ecx
mov edx, dword [0x20008b50]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov dword [esi], edx
mov edx, dword [esp + 0x34]
mov dword [0x20008b50], esi
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x38]
push ecx
push eax
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.200010f0
mov dword [esi + 0xc], eax
mov ecx, dword [0x20008b4c]
cmp eax, ecx
jbe 0x20001074
cmp byte [eax], 0x68
jne 0x20001074
mov eax, dword [eax + 1]
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.20001110
mov eax, esi
pop esi
add esp, 0x24
ret 0x10

Function at 0x20001110
Capabilities:
Enumerate process modules

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x2000601b
push eax
mov eax, dword [esp + 0x1c]
mov dword fs:[0], esp
sub esp, 0x22c
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x2000114b
push fcn.20001110
call fcn.200011f0
add esp, 4
mov dword [esp + 0xc], eax
jmp 0x2000114f
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
mov dword [esp + 0x10], ebp
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0x224
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x240], esi
push eax
push ebp
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x200011c9
mov esi, dword [esp + 0x250]
mov edi, dword [esp + 0x24c]
push ebx
mov ebx, dword [esp + 0x24c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x200011b9
push eax
push esi
push edi
push ebx
call fcn.20001220
lea ecx, [esp + 0x18]
push ecx
push ebp
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x200011a4
pop ebx
cmp ebp, 0xffffffff
je 0x200011d5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x238
ret 0x10

Function at 0x200016f0
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 8], 1
jne 0x2000172a
push str.dromed.exe
call fcn.200016b0
add esp, 4
test eax, eax
je 0x2000172a
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x20001690
push 0
push 0
call fcn.20001c07
add esp, 0x18
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
Function at 0x2000379a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x20008320
cmp edx, dword [eax]
je 0x200037bc
add eax, 8
inc ecx
cmp eax, 0x200083b0
jl 0x200037ad
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x20008320]
jne 0x200038ea
mov eax, dword [0x20008b68]
cmp eax, 1
je 0x200038c4
test eax, eax
jne 0x200037ed
cmp dword [0x20008b6c], 1
je 0x200038c4
cmp edx, 0xfc
je 0x200038ea
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x20003824
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.20004da0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.20004e90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x20003867
lea eax, [ebp - 0x1a4]
push eax
call fcn.20004e90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x20007484
push edi
call fcn.20005390
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.20004da0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.20004db0
lea eax, [ebp - 0xa0]
push 0x20007464
push eax
call fcn.20004db0
push dword [esi + 0x20008324]
lea eax, [ebp - 0xa0]
push eax
call fcn.20004db0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.200052ff
add esp, 0x2c
pop edi
jmp 0x200038ea
lea eax, [ebp + 8]
lea esi, [esi + 0x20008324]
push 0
push eax
push dword [esi]
call fcn.20004e90
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 0x438cb9
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop edi
or ecx, esi
sub esi, esi
or esi, ecx
call fcn.00438cf9
or esi, ecx
xor dword [eax], edi
sub ecx, esi
and ecx, ecx
and esi, esi
inc eax
add ecx, 0x8f8e8ab9
add esi, esi
cmp eax, ebx
jne fcn.00438cb9
dec ecx
add esi, esi
or ecx, esi
ret
Function at 0x401550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
push edi
xor edi, edi
push esi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401598
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x104
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x14]
add esi, edi
xor eax, eax
test edi, edi
pop edi
mov dword [ecx], esi
pop esi
setg al
pop ebx
pop ecx
ret
cmp byte [esi], 0x20
jne 0x4015a8
lea ecx, [ecx]
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x4015a0
cmp byte [esi], 0x22
jne 0x4015b7
mov edi, 1
inc esi
mov ecx, edi
jmp 0x4015bb
mov ecx, dword [esp + 0xc]
mov al, byte [esi]
test al, al
je 0x4015e0
inc esi
test ecx, ecx
je 0x4015ca
cmp al, 0x22
jmp 0x4015cc
cmp al, 0x20
je 0x4015e1
inc edi
cmp edi, 0x104
jge 0x4015e1
mov byte [ebx], al
mov al, byte [esi]
inc ebx
test al, al
jne 0x4015c1
inc esi
mov ecx, dword [esp + 0x14]
xor eax, eax
test edi, edi
mov byte [ebx], 0
pop edi
mov dword [ecx], esi
pop esi
setg al
pop ebx
pop ecx
ret
Function at 0x402350
Capabilities:
Get file version info
Identify system language via api

Disassembly:
sub esp, 0x118
push ebp
push esi
push edi
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
xor ebp, ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4024a2
push ebx
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
push ebx
push esi
push ebp
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402498
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402498
mov eax, dword [esp + 0x18]
mov cx, word [eax]
mov dx, word [eax + 2]
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [esp + 0x10], cx
mov word [esp + 0x12], dx
call edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
shr ecx, 2
xor esi, esi
test ecx, ecx
jbe 0x4023f1
lea ebx, [ebx]
cmp word [edx], ax
je 0x4024ae
inc esi
add edx, 4
cmp esi, ecx
jb 0x4023e0
push 1
lea edx, [esp + 0x14]
push edx
call edi
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
call fcn.004024d0
add esp, 0xc
test eax, eax
jne 0x402445
mov ecx, dword [esp + 0x14]
push 1
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push 0
call fcn.004024d0
add esp, 0xc
test eax, eax
jne 0x402445
mov eax, dword [esp + 0x18]
push 1
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push 9
call fcn.004024d0
add esp, 0xc
movzx edx, word [esp + 0x12]
movzx eax, word [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x2c]
push str.StringFileInfo_04x_04xFileVersion
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402498
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x12c]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x118
ret
mov ax, word [edx]
mov cx, word [edx + 2]
mov word [esp + 0x10], ax
mov word [esp + 0x12], cx
jmp 0x402445
Function at 0x4026d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x25c
push ebx
push ebp
push esi
mov esi, eax
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, eax
lea eax, [esp + 0x68]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov al, byte [esi]
xor ebx, ebx
cmp al, bl
mov byte [esp + 0x168], bl
je 0x402735
push ebx
push ebx
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.MSVCRT.dll__splitpath]
push ebx
push ebx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x18c]
push edx
call dword [sym.imp.MSVCRT.dll__makepath]
add esp, 0x28
mov ecx, dword [0x407194]
mov eax, dword [esp + 0x26c]
mov edx, dword [esp + 0x270]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x168]
push ecx
mov byte [esi], bl
mov dword [esp + 0x14], 0x4c
mov dword [esp + 0x20], 0x406648
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0x40662c
mov dword [esp + 0x48], 0x80204
mov word [esp + 0x4c], bx
mov word [esp + 0x4e], bx
mov dword [esp + 0x50], 0x406628
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
cmp edi, ebx
mov esi, eax
je 0x4027d1
mov dx, word [esp + 0x48]
mov word [edi], dx
push ebp
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret

Function at 0x4027f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x25c
push ebx
push esi
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
lea eax, [esp + 0x68]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov al, byte [esi]
xor ebx, ebx
cmp al, bl
mov byte [esp + 0x168], bl
je 0x402855
push ebx
push ebx
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.MSVCRT.dll__splitpath]
push ebx
push ebx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x18c]
push edx
call dword [sym.imp.MSVCRT.dll__makepath]
add esp, 0x28
mov ecx, dword [0x407194]
mov eax, dword [esp + 0x26c]
mov edx, dword [esp + 0x270]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x68]
push ecx
mov byte [esi], bl
mov dword [esp + 0x14], 0x4c
mov dword [esp + 0x20], 0x4065f8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0x4065e4
mov dword [esp + 0x48], 6
mov word [esp + 0x4c], bx
mov word [esp + 0x4e], bx
mov dword [esp + 0x50], 0x4065dc
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x25c
ret
Function at 0x402900
Capabilities:
Get graphical window text
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [0x40f1a8]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xe
push eax
call edi
mov esi, eax
test esi, esi
jle 0x402994
push ebx
push ebp
inc esi
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [0x40f1a8]
add esp, 4
mov ebx, eax
push ebx
push esi
push 0xd
push ecx
call edi
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov edi, eax
mov eax, dword [0x40f1a8]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x402982
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebp
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x4029a0
Capabilities:
Get graphical window text
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x40f1a8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
xor ebp, ebp
push ebp
push ebp
push 0xe
push eax
call ebx
mov esi, eax
test esi, esi
jle 0x402a24
push edi
inc esi
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [0x40f1a8]
add esp, 4
mov edi, eax
push edi
push esi
push 0xd
push ecx
call ebx
mov edx, dword [esp + 0x18]
push ebp
push 0x80
push 2
push ebp
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402a1a
push ebp
lea eax, [esp + 0x14]
push eax
dec esi
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402a13
mov ebp, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret

Function at 0x4738ad
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4735cc
dec eax
dec eax
dec esi
call fcn.004738db
add esi, 0x93e8084
xor dword [ebx], edi
or esi, esi
mov eax, 0x437c14e8
mov eax, eax
add ebx, 2
add esi, eax
cmp ebx, edx
jl fcn.004738ad
sub esi, eax
ret
Function at 0x1000caa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000cacd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000cacd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403ff0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
pop ebp
ret

Function at 0x405dc0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov dword [ebp - 0x438], 0
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftPowerShell
push 0x80000002
call dword [0x411008]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x405e16
push 0x41121c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040f620
add esp, 8
jmp 0x405fb2
mov edx, 1
test edx, edx
je 0x405e90
mov dword [ebp - 0x434], 0x104
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [0x411004]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x405e69
jmp 0x405e90
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.0040f620
add esp, 8
mov ecx, dword [ebp - 0x438]
add ecx, 1
mov dword [ebp - 0x438], ecx
jmp 0x405e16
mov edx, dword [ebp - 0x118]
push edx
call dword [section..rdata]
push str.SOFTWAREMicrosoftPowerShell_
lea eax, [ebp - 0x108]
push eax
call fcn.0040f620
add esp, 8
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0040f960
add esp, 8
push str.ShellIdsMicrosoft.PowerShell
lea eax, [ebp - 0x108]
push eax
call fcn.0040f960
add esp, 8
lea ecx, [ebp - 0x118]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x108]
push edx
push 0x80000002
call dword [0x411008]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x405f20
push 0x41126c
mov eax, dword [ebp + 8]
push eax
call fcn.0040f620
add esp, 8
jmp 0x405fb2
mov dword [ebp - 0x224], 0x208
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x430]
push edx
push 0
push 0
push str.Path
mov eax, dword [ebp - 0x118]
push eax
call dword [0x411010]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [section..rdata]
cmp dword [ebp - 0x114], 0
je 0x405f7d
push str.powershell.exe
mov edx, dword [ebp + 8]
push edx
call fcn.0040f620
add esp, 8
jmp 0x405fb2
push 0x411294
mov eax, dword [ebp + 8]
push eax
call fcn.0040f620
add esp, 8
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040f960
add esp, 8
push 0x411298
mov eax, dword [ebp + 8]
push eax
call fcn.0040f960
add esp, 8
mov esp, ebp
pop ebp
ret