joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404430
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x4a0ef2
push 2
call fcn.0041a880
add esp, 8
push 0
call fcn.0040c090
add esp, 4
mov dword [0x4a0ee4], eax
push 1
call fcn.0040c090
add esp, 4
mov dword [0x4a0ee0], eax
mov dword [0x4a0eec], 0
mov dword [0x4a0ee8], 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404220
add esp, 0xc
mov edx, dword [section..data]
push edx
call fcn.00405420
add esp, 4
push 1
call dword [0x45f008]
add esp, 4
push 0x49ff4c
call fcn.00405660
add esp, 4
mov eax, dword [section..data]
push eax
push 0x49ff54
call fcn.00417660
add esp, 8
test eax, eax
je 0x4044d6
mov ecx, dword [section..data]
push ecx
call fcn.00405660
add esp, 4
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404220
add esp, 0xc
mov dword [ebp - 4], eax
mov ecx, 4
imul edx, ecx, 0x6b
cmp dword [edx + 0x4a20e0], 0
jne 0x404505
mov dword [ebp - 8], 1
jmp 0x40450c
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov dword [0x4a24e0], eax
cmp dword [0x4a24e0], 0
je 0x40455d
mov ecx, dword [0x4a24e4]
push ecx
push 0x49ff5c
call fcn.00417660
add esp, 8
test eax, eax
je 0x40455d
mov edx, dword [0x4a24e4]
push edx
mov eax, dword [section..data]
push eax
call fcn.00417660
add esp, 8
test eax, eax
je 0x40455d
mov ecx, dword [0x4a24e4]
push ecx
call fcn.00405660
add esp, 4
mov edx, dword [0x4a24e4]
push edx
call fcn.00404e20
add esp, 4
push 0
call dword [0x45f008]
add esp, 4
mov eax, 4
imul ecx, eax, 0x71
cmp dword [ecx + 0x4a20e0], 0
jne 0x404599
mov edx, 4
imul eax, edx, 0x51
cmp dword [eax + 0x4a20e0], 0
je 0x4045fa
mov dword [ebp - 0xc], 0x49ff64
push str.rr_:.
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004185b0
add esp, 8
mov dword [0x4a0ee4], eax
cmp dword [0x4a0ee4], 0
je 0x4045dd
mov edx, dword [0x4a0ee4]
push edx
call dword [0x45f00c]
add esp, 4
mov eax, dword [0x4a0ee4]
push eax
call fcn.00417a00
add esp, 4
mov ecx, 4
imul edx, ecx, 0x51
cmp dword [edx + 0x4a20e0], 0
je 0x4045f8
push 0
call fcn.00405120
add esp, 4
jmp 0x404670
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jge 0x404661
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jge 0x40465f
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
push 0x49ff6c
mov eax, dword [ebp - 0x10]
push eax
call fcn.004185b0
add esp, 8
mov dword [0x4a0ee4], eax
cmp dword [0x4a0ee4], 0
je 0x40465d
mov ecx, dword [0x4a0ee4]
push ecx
call dword [0x45f00c]
add esp, 4
mov edx, dword [0x4a0ee4]
push edx
call fcn.00417a00
add esp, 4
jmp 0x404602
jmp 0x404670
mov eax, dword [0x4a0ee4]
push eax
call dword [0x45f00c]
add esp, 4
mov ecx, dword [0x4a0ee0]
push ecx
call fcn.00418290
add esp, 4
mov edx, dword [0x4a0ee0]
push edx
call fcn.00417a00
add esp, 4
push 0
call fcn.00417640
mov esp, ebp
pop ebp
ret
Function at 0x409600
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00409220
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409632
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x44914c]
call dword [ebp - 8]
jmp 0x40963c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret

Function at 0x433353
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x447e50
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x4a13a0], 1
jge 0x447ebf
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x447e95
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x447e95
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x447e72
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x447eab
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x447eb2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x447faf
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x447f80
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x447f75
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x447f69
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x447f70
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x447faf
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x447faa
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x447f93
mov eax, dword [ebx + 8]
jmp 0x447faf
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x447fa1
xor eax, eax
jmp 0x447faf
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x447edf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x401360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40137b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013b2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4013ae
jmp 0x4013a0
cmp esi, eax
jae 0x4013b2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4013a0
cmp esi, eax
jb 0x4013b9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4019d2
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4019a1
cmp eax, 2
jne 0x4019bc
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x4019cc
test eax, eax
je 0x4019c7
test al, 1
jne 0x4019bc
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4019cc
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4041d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581476
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x5fd7c0]
push edi
push 0xf0
push eax
mov edi, 1
push esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x404397
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404397
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404397
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x404247
mov edi, dword [ebp - 0x10]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x404382
mov edx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov ecx, 0x403
add esi, 8
mov dword [ebp + 8], edx
cmp cx, ax
jne 0x4042dc
push 3
lea edx, [ebp - 0x138]
push esi
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x13c], edx
call fcn.00404070
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x14]
push eax
mov eax, dword [edx + 4]
push 0
push 0x143
push edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4042b3
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x13c]
lea ecx, [ebp - 0x138]
cmp eax, ecx
je 0x40435f
push eax
call fcn.00554c82
add esp, 4
jmp 0x40435f
mov edx, 0x1234
cmp dx, ax
jne 0x40435f
push 3
lea eax, [ebp - 0x23c]
push esi
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x240], eax
call fcn.00404070
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x23c]
cmp eax, edx
je 0x40433e
push eax
call fcn.00554c82
add esp, 4
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [edx + 4]
push 0
push 0x40b
push edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x40435f
mov dword [ebp - 0x10], 0
add esi, dword [ebp + 8]
cmp dword [ebp - 0x10], 0
jne 0x404244
mov eax, dword [ebp - 0x10]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4043b0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call fcn.00402f20
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], bl
lea ecx, [ebp - 0x28]
call fcn.00401660
mov byte [ebp - 4], 1
cmp dword [0x5f6e20], ebx
jne 0x404450
push 0xf0000000
push 1
push ebx
push ebx
push 0x5f6e20
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call esi
cmp eax, ebx
jne 0x404450
push 8
push 1
push ebx
push ebx
push 0x5f6e20
call esi
neg eax
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40443b
and eax, 0xffff
or eax, 0x80070000
cmp esi, ebx
jne 0x404450
mov dword [ebp - 0x18], eax
push 0x5c694c
lea eax, [ebp - 0x18]
push eax
call fcn.00554cbc
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x24], bl
push edi
push 4
mov edx, dword [0x5f6e20]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
jne 0x40448d
mov dword [ebp - 0x1c], 0x80004005
push 0x5c694c
lea eax, [ebp - 0x1c]
push eax
call fcn.00554cbc
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.004124b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4044e0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5814a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call fcn.00402f90
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], bl
lea ecx, [ebp - 0x28]
call fcn.00401660
mov byte [ebp - 4], 1
cmp dword [0x5f6e24], ebx
jne 0x404580
push 0xf0000000
push 1
push ebx
push ebx
push 0x5f6e24
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call esi
cmp eax, ebx
jne 0x404580
push 8
push 1
push ebx
push ebx
push 0x5f6e24
call esi
neg eax
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40456b
and eax, 0xffff
or eax, 0x80070000
cmp esi, ebx
jne 0x404580
mov dword [ebp - 0x18], eax
push 0x5c694c
lea eax, [ebp - 0x18]
push eax
call fcn.00554cbc
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x24], bl
push edi
push 2
mov edx, dword [0x5f6e24]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
jne 0x4045bd
mov dword [ebp - 0x1c], 0x80004005
push 0x5c694c
lea eax, [ebp - 0x1c]
push eax
call fcn.00554cbc
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.004124b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404610
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5814c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call fcn.00403000
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], bl
lea ecx, [ebp - 0x28]
call fcn.00401660
mov byte [ebp - 4], 1
cmp dword [0x5f6e28], ebx
jne 0x4046b0
push 0xf0000000
push 1
push ebx
push ebx
push 0x5f6e28
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call esi
cmp eax, ebx
jne 0x4046b0
push 8
push 1
push ebx
push ebx
push 0x5f6e28
call esi
neg eax
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40469b
and eax, 0xffff
or eax, 0x80070000
cmp esi, ebx
jne 0x4046b0
mov dword [ebp - 0x18], eax
push 0x5c694c
lea eax, [ebp - 0x18]
push eax
call fcn.00554cbc
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x24], bl
push edi
push 1
mov edx, dword [0x5f6e28]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
jne 0x4046ed
mov dword [ebp - 0x1c], 0x80004005
push 0x5c694c
lea eax, [ebp - 0x1c]
push eax
call fcn.00554cbc
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.004124b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4051e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5914ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
xor eax, eax
lea ecx, [esi + 8]
mov dword [esi + 4], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
mov dword [ecx + 0xc], eax
mov dword [ebp - 4], 1
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [ebp - 4], 2
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], ecx
mov dword [ebp - 4], 4
mov edx, dword [ebp + 8]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x48], eax
mov al, byte [esi + 0x58]
and al, 0xf1
lea ecx, [esi + 0x38]
or al, 1
push ecx
mov dword [esi + 0x4c], 0xff0000
mov dword [esi + 0x50], 0x800080
mov dword [esi + 0x54], edx
mov byte [esi + 0x58], al
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4060f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push 0x103
lea eax, [ebp - 0x10b]
push 0
push eax
mov dword [ebp - 8], 0
mov byte [ebp - 0x10c], 0
call fcn.00555020
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 4]
push edx
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0x59bf4c
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x406159
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push eax
push 0x59bf44
push ecx
call fcn.004060d0
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x406740
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
push edi
mov bl, 1
cmp cl, 0xc
jne 0x40679c
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0xc], eax
call edi
mov edx, dword [esi + 4]
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call edi
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push edi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
shr eax, 2
test al, 1
je 0x4067d6
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esi + 4]
push ecx
movzx edx, di
push edx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x28]
push 1
push 0
push 0
push eax
push 0x59bf70
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x406809
mov ecx, dword [esi + 4]
or byte [esi + 0x58], 2
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582423
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
lea eax, [esi + 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], edx
call fcn.0040c160
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x30], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x40f770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582833
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x408
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
call fcn.0040f600
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x414], edi
cmp eax, edi
ja 0x40f7ae
cmp ebx, 0xffffffff
jbe 0x40f7b8
push 0x80070057
call fcn.00401150
cmp ebx, 0x400
jbe 0x40f7ce
push ebx
lea ecx, [ebp - 0x414]
call fcn.004cb1b0
jmp 0x40f7da
lea eax, [ebp - 0x410]
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x414]
push edx
mov ecx, esi
call fcn.0040f600
mov esi, dword [ebp - 0x414]
lea edi, [ebx - 0x14]
xor eax, eax
xor ecx, ecx
test edi, edi
je 0x40f827
jmp 0x40f810
mov dl, byte [eax + str.N_Ie]
xor byte [ecx + esi + 0x14], dl
inc eax
cmp eax, 0xe
jb 0x40f822
xor eax, eax
inc ecx
cmp ecx, edi
jb 0x40f810
mov ecx, dword [ebp - 0x414]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp + 8]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, esi
jne 0x40f857
call fcn.00401490
cmp eax, esi
jge 0x40f857
push eax
mov dword [ebp - 0x10], esi
call fcn.00401150
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
pop edi
lea eax, [ebp - 0x410]
pop esi
pop ebx
cmp dword [ebp - 0x414], eax
je 0x40f87d
lea ecx, [ebp - 0x414]
call fcn.004021b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40f890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582855
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x14], edi
call fcn.00403e90
xor esi, esi
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x418], ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp + 8]
push esi
lea edx, [ebp - 0x10]
push edx
push 0x14
push eax
push ecx
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x40f903
call fcn.00401490
jmp 0x40f912
mov eax, dword [ebp - 0x10]
sub eax, 0x14
neg eax
sbb eax, eax
and eax, 0x80070026
xor ecx, ecx
cmp eax, esi
setge cl
cmp ecx, esi
jne 0x40f92e
push 0x5c694c
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], eax
call fcn.00554cbc
mov eax, dword [edi]
mov edx, dword [eax]
mov esi, dword [ebp - 0x418]
mov ecx, edi
call edx
mov ebx, eax
mov edi, 3
lea ecx, [esi + 0xc]
sub ebx, esi
mov eax, dword [ecx]
mov edx, dword [ebx + ecx]
cmp eax, edx
jb 0x40f9c4
ja 0x40f9c4
sub ecx, 4
dec edi
jns 0x40f948
mov eax, dword [esi + 0x10]
add eax, 0x14
push eax
lea ecx, [ebp - 0x418]
call fcn.00404140
mov edi, dword [esi + 0x10]
mov edx, dword [ebp - 0x418]
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x10]
push ecx
push edi
add edx, 0x14
push edx
push eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40fa04
call fcn.00401490
test eax, eax
js 0x40f9c4
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x418]
push 0
push ecx
add edx, 0x14
push edx
call fcn.00401450
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push eax
call fcn.0040f410
mov byte [ebp - 4], 0
pop edi
lea ecx, [ebp - 0x414]
pop esi
pop ebx
cmp dword [ebp - 0x418], ecx
je 0x40f9e4
lea ecx, [ebp - 0x418]
call fcn.004021b0
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp + 8]
push edx
call fcn.00403ed0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x10], edi
jne 0x40f9c4
jmp 0x40f99d