joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444010
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4798d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046c9fe
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047209d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004735fc
test eax, eax
je 0x44412c
mov ecx, dword [esp + 0x3c]
call fcn.004720ca
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4440f0
push edi
mov ecx, esi
call fcn.0046f72c
mov ecx, esi
call fcn.00444290
cmp dword [esp + 0x38], 1
jne 0x444125
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046f867
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x446b50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x446b83
push esi
call fcn.00449c50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x446b7c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x446c09
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x446bf2
mov eax, dword [esi + 8]
test eax, eax
je 0x446ba7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x446bee
cmp eax, 2
je 0x446bf2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x446b9a
cmp eax, 3
je 0x446bcd
cmp eax, 1
jne 0x446b9a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x446b9a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x446b9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00446c30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x446c18
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00446c30
add esp, 4
pop esi
ret

Function at 0x452ca0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x452d43
test eax, eax
jbe 0x452d43
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x452d43
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x452cee
xor esi, esi
jmp 0x452cf4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x452d1f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00409a60
add esi, eax
push esi
mov ebx, esi
call fcn.00409a60
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x452d00
pop ebp
test edi, edi
pop edi
jne 0x452d43
test ebx, ebx
je 0x452d43
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045b800
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x452e85
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x452f9d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x452f9d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046ce50
mov esi, eax
test esi, esi
je 0x452f9d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x452f9d
mov ecx, esi
call fcn.00452df0
cmp edi, eax
jge 0x452f9d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x452f23
mov dword [esp + 0x34], 1
jmp 0x452f7e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x452f9d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00452360
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x456880
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4568e6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4568e6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4568c7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x456cc0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x456cf8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x457920
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x457969
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x457de0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47a180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00457990
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00457a10
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00457a10
lea ecx, [esi + 0xc]
call fcn.0046b3b1
lea ecx, [esi + 0x10]
call fcn.0046b3b1
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00458fa0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00458fa0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00458fa0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046b426
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046b426
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46d7f4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46d82c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046b881
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046b859
jmp 0x46d838
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46eee9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46ef2b
call fcn.00474c9d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46ef2b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46ef22
xor eax, eax
jmp 0x46ef33
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046ef39
pop edi
pop esi
pop ebx
ret 4

Function at 0x4751cd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4751fb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475219
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00475133
jmp 0x475219
mov eax, dword [esi + 0x14]
test eax, eax
je 0x475219
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00475133
test edi, edi
mov eax, edi
jne 0x475203
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42dc98
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
push 0xa
push dword [ebp + 8]
push 0
call 0x4311f8
or eax, eax
jne 0x42dcb8
jmp 0x42dcd8
push eax
push eax
push 0
call 0x43126a
mov dword [0x406320], eax
pop eax
push eax
push 0
call 0x431234
or eax, eax
jne 0x42dcd5
jmp 0x42dcd8
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x42dce0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
pushal
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x400]
push esi
push ebx
call 0x4312a0
xor ecx, ecx
jmp 0x42dcff
inc ecx
cmp byte [ecx + ebx], 0x5c
jne 0x42dcfe
mov byte [ecx + ebx], 0
lea esi, [ecx + esi + 1]
mov edi, 0x40469a
push 0x406000
push ebx
call edi
or eax, eax
jne 0x42dd25
mov eax, 0x80000000
jmp 0x42dd86
push 0x406012
push ebx
call edi
or eax, eax
jne 0x42dd38
mov eax, 0x80000005
jmp 0x42dd86
push 0x406026
push ebx
call edi
or eax, eax
jne 0x42dd4b
mov eax, 0x80000001
jmp 0x42dd86
push 0x406038
push ebx
call edi
or eax, eax
jne 0x42dd5e
mov eax, 0x80000002
jmp 0x42dd86
push 0x40604b
push ebx
call edi
or eax, eax
jne 0x42dd71
mov eax, 0x80000003
jmp 0x42dd86
push 0x406056
push ebx
call edi
or eax, eax
jne 0x42dd84
mov eax, 0x80000006
jmp 0x42dd86
jmp 0x42ddb1
mov byte [ebx], 0
push dword [ebp + 0x10]
push esi
push eax
push ebx
call 0x431450
test dword [ebp + 0x14], 1
je 0x42dda3
push ebx
call fcn.0042de2d
cmp byte [ebx], 0
je 0x42ddb1
push ebx
push dword [ebp + 8]
call 0x431258
popal
leave
ret 0x10

Function at 0x42e790
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 8]
push 0
push 0
call 0x4311e0
push eax
call 0x4311c2
popal
leave
ret 4
Function at 0x42e98e
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7fc
pushal
mov dword [ebp - 0x804], 0
mov byte [0x406bc5], 0
push 0x400
push 0x4063ac
push dword [ebp + 8]
call 0x4311f2
mov esi, 0x4063ac
jmp 0x42e9de
lodsb al, byte [esi]
cmp al, 0x25
jne 0x42e9de
push 0x4063ac
call 0x4313f0
push eax
push 0x4063ac
call 0x4312a0
jmp 0x42e9e3
cmp byte [esi], 0
jne 0x42e9c2
push 0x4063ac
call 0x431210
mov dword [0x406bac], eax
test eax, 1
je 0x42ea07
xor eax, 1
push eax
push 0x4063ac
call 0x43125e
push 0x4063ac
call fcn.0042e857
push 0
push 0x82
push 3
push 0
push 2
push 0xc0000000
push 0x4063ac
call 0x4311ce
cmp eax, 0xffffffff
jne 0x42ebb1
cmp byte [0x406feb], 0
jne 0x42ebac
push 0x4063ac
call 0x431210
cmp eax, 0xffffffff
jne 0x42eb24
push 0x4063ac
call 0x4313f0
cmp word [eax], 0x2e2a
je 0x42eaa4
cmp word [eax], 0
je 0x42eaa4
push 0x400
push 0x407810
push 0x10
push dword [0x406342]
call 0x431150
push 0x34
push 0x4063ac
push 0x407810
push dword [0x406346]
call 0x431156
cmp eax, 6
jne 0x42ebac
lea esi, [ebp - 0x400]
mov edi, 0x4063ac
cmp byte [edi + 1], 0x3a
jne 0x42eabd
push edi
call 0x4313f0
mov edi, eax
push edi
push esi
call 0x4312a0
push esi
call 0x4312a6
cmp eax, 0
jbe 0x42ead0
inc eax
push esi
push eax
add esi, eax
push edi
push esi
call 0x4312a0
pop eax
add esi, eax
push 0x2e
push 0x4060fb
push esi
call 0x431246
pop esi
lea ebx, [ebp - 0x800]
push 0x4063ac
push ebx
call 0x4312a0
push ebx
call fcn.0042e7c0
push dword [0x406346]
push ebx
push esi
push 0x4063ac
call 0x431390
cmp eax, 1
jne 0x42eb1f
jmp 0x42e9e3
jmp 0x42ebac
test dword [ebp + 0x10], 2
je 0x42eb74
cmp byte [0x406bc5], 0
jne 0x42ebac
push 0x4063ac
call fcn.0042e93c
cmp eax, 1
jne 0x42eb72
mov byte [0x406bc5], 1
push 0x400
push 0x407c10
push 0x11
push dword [0x406342]
call 0x431150
push 0x407c10
call fcn.0042e816
jmp 0x42e9e3
jmp 0x42ebac
push 0x400
push 0x408010
push 0x12
push dword [0x406342]
call 0x431150
push 0x34
push 0x4063ac
push 0x408010
push dword [0x406346]
call 0x431156
cmp eax, 6
jne 0x42ebac
jmp 0x42e9e3
jmp 0x42ec9a
mov dword [0x406bb0], eax
push 0x400
push 0x408410
push 0x13
push dword [0x406342]
call 0x431150
push 0x408410
call fcn.0042e816
push 0x4063ac
call fcn.0042e816
push 0
push dword [0x406bb0]
call 0x431216
mov dword [0x406bb4], eax
cmp dword [ebp + 0xc], 0
jne 0x42ebfc
mov dword [ebp + 0xc], eax
test dword [ebp + 0x10], 4
je 0x42ec1e
add eax, 0x237
add eax, dword [0x406320]
push 0x100
push eax
call 0x431430
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
pop dword [0x406bc0]
push 0
push dword [0x406bc0]
push 0
push 4
push 0
push dword [0x406bb0]
call 0x4311d4
or eax, eax
jne 0x42ec67
push 0x400
push 0x408810
push 0x14
push dword [0x406342]
call 0x431150
push 0x408810
call fcn.0042e816
jmp 0x42ec9a
mov dword [0x406bbc], eax
push 0
push 0
push 0
push 2
push eax
call str.DN_bP
or eax, eax
jne 0x42ec80
jmp 0x42ec44
mov dword [0x406bb8], eax
mov dword [ebp - 0x804], eax
push 0x4063ac
push 0x406129
call 0x431258
popal
mov eax, dword [ebp - 0x804]
leave
ret 0xc
Function at 0x42ed2c
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
pushal
mov byte [ebp - 0x401], 0
push 1
push 8
call fcn.0042dc57
or eax, eax
je 0x42ed89
mov esi, eax
lea eax, [ebp - 0x400]
push eax
push 0x400
call 0x431228
push 0x406138
lea eax, [ebp - 0x400]
push eax
call 0x43128e
mov ecx, dword [esi + 1]
lea eax, [esi + 5]
push ecx
push eax
lea eax, [ebp - 0x400]
push eax
call 0x43132c
mov byte [ebp - 0x401], 1
popal
movzx eax, byte [ebp - 0x401]
leave
ret

Function at 0x42fa83
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
pushal
push 0x40621c
call 0x43121c
push 0x406227
push eax
call 0x431222
or eax, eax
je 0x42fac8
mov edi, eax
push 0xffffffffffffffec
push dword [ebp + 8]
call 0x431120
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [ebp + 8]
call 0x431198
push 2
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call edi
popal
leave
ret 8
Function at 0x402e4e
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov esi, edi
call fcn.00404c34
push str.minidump
call fcn.004057da
mov esi, 0x208
xor edi, edi
push esi
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x416]
push edi
push eax
mov word [ebp - 0x418], di
call sub.msvcrt.dll_memset
add esp, 0x1c
lea esi, [ebp - 0x20c]
call fcn.0040c348
cmp word [ebp - 0x20c], di
je 0x402ef7
push ebx
lea eax, [ebp - 0x418]
push eax
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x418]
push eax
call fcn.004050e5
test eax, eax
pop ecx
je 0x402ef7
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push eax
mov eax, ebx
call fcn.00404fb6
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40374c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
lea eax, [ecx + 0xa34]
xor ebx, ebx
cmp dword [eax], ebx
jne 0x40388d
push esi
push edi
push 0x3ef
push dword [ecx + 8]
mov dword [eax], 1
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov edi, 0x208
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x41e]
push ebx
push eax
mov word [ebp - 0x420], bx
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x420]
push eax
call fcn.00405376
lea esi, [ebp - 0x420]
call fcn.00404c34
mov eax, esi
push str.MiniDump
push eax
call sub.msvcrt.dll_wcscat
mov eax, esi
push eax
push dword [ebp - 4]
call fcn.004050b7
add esp, 0x20
push 2
pop esi
xor eax, eax
inc eax
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 8]
test ecx, eax
je 0x403881
push edi
lea eax, [ebp - 0x212]
push ebx
push eax
call sub.msvcrt.dll_memset
lea eax, [esi + 0x41]
mov word [ebp - 0x214], ax
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0x212], 0x3a
mov word [ebp - 0x210], 0x5c
mov word [ebp - 0x20e], bx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 2
je 0x403834
cmp eax, 3
jne 0x403881
lea eax, [ebp - 0x214]
push str.WindowsMiniDump
push eax
call sub.msvcrt.dll_wcscat
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x214]
push eax
call sub.msvcrt.dll__wcsicmp
add esp, 0x10
test eax, eax
je 0x403881
lea eax, [ebp - 0x214]
push eax
call fcn.004050e5
test eax, eax
pop ecx
je 0x403881
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.004050b7
pop ecx
pop ecx
inc esi
cmp esi, 0x20
jb 0x4037d7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4040b4
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
push edi
mov esi, eax
call fcn.00404120
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x404114
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
push edi
push edi
push 2
push edi
push dword [esi]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp eax, edi
mov dword [esi + 4], eax
je 0x404114
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
je 0x404114
xor eax, eax
inc eax
jmp 0x40411b
call fcn.00404120
xor eax, eax
pop edi
pop esi
ret 4

Function at 0x404c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
pop ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret

Function at 0x404dc6
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.00404bde
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x404e58
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x404e41
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x404e41
shr esi, 1
and word [edi + esi*2], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x404e4a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x404e61
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x4050e5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x405376
Capabilities:
Get common file path

Disassembly:
cmp word [0x414d58], 0
push esi
mov esi, 0x414d58
jne 0x405397
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [0x414f64], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x414f64]
pop ecx
pop ecx
pop esi
ret