joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x4013e6
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 8], edx
jge 0x4014f4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jne 0x401409
jmp 0x4013d4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x20000000
je 0x40141f
mov dword [ebp - 0x10], 1
jmp 0x401426
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x40000000
je 0x401442
mov dword [ebp - 0x14], 1
jmp 0x401449
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x80000000
je 0x401465
mov dword [ebp - 0x18], 1
jmp 0x40146c
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x20
je 0x40148b
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0x1c]
shl ecx, 4
mov edx, dword [ebp - 0x20]
lea eax, [ecx + edx*8 + section..data]
mov ecx, dword [ebp - 0x28]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x4000000
je 0x4014be
mov edx, dword [ebp - 0xc]
or edx, 0x200
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0xc]
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4014ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4014f6
jmp 0x4013d4
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x401e80
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x401e98
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x401eea
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x401eb9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x401edb
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
xor edx, edx
sub edx, ecx
and edx, 0xedb88320
xor eax, edx
mov dword [ebp - 8], eax
jmp 0x401eb0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax*4 + 0x484340], ecx
jmp 0x401e8f
mov dword [ebp - 4], 0x100
jmp 0x401efc
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x800
jae 0x401f34
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x483f40]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov eax, dword [ebp - 0x10]
shr eax, 8
xor eax, dword [edx*4 + 0x484340]
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x484340], eax
jmp 0x401ef3
mov dword [0x484334], 0x401f80
mov dword [0x484330], 0x401f80
mov esp, ebp
pop ebp
ret
Function at 0x4023d0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 8]
shr eax, 2
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
shr ecx, 1
add ecx, 3
mov edx, 4
imul edx, edx, 0
mov eax, dword [ebp - 8]
mov dword [eax + edx], ecx
mov ecx, dword [ebp - 8]
add ecx, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], 0
jmp 0x402426
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 8]
jae 0x40243e
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx]
mov dword [eax + edx*4], ecx
jmp 0x402414
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx*4 - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
imul edx, edx, 3
mov eax, dword [ebp - 8]
lea ecx, [eax + edx*4 + 0x70]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x4024e2
mov edx, dword [ebp - 4]
shr edx, 8
and edx, 0xff
movzx eax, byte [edx + str.cw]
xor eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
shl edx, 8
or eax, edx
mov ecx, dword [ebp - 4]
shr ecx, 0x18
movzx edx, byte [ecx + str.cw]
shl edx, 0x10
or eax, edx
mov ecx, dword [ebp - 4]
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
shl edx, 0x18
or eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
shl eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0x100
je 0x4024da
mov dword [ebp - 0xc], 0x1b
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
jmp 0x402542
cmp dword [ebp - 0x10], 4
jne 0x402542
cmp dword [ebp + 8], 6
jbe 0x402542
mov eax, dword [ebp - 4]
and eax, 0xff
movzx ecx, byte [eax + str.cw]
mov edx, dword [ebp - 4]
shr edx, 8
and edx, 0xff
movzx eax, byte [edx + str.cw]
shl eax, 8
or ecx, eax
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + str.cw]
shl eax, 0x10
or ecx, eax
mov edx, dword [ebp - 4]
shr edx, 0x18
movzx eax, byte [edx + str.cw]
shl eax, 0x18
or ecx, eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, 4
imul edx, edx, 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax + edx]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x1c]
jne 0x402462
mov esp, ebp
pop ebp
ret 4
Function at 0x404860
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
mov eax, dword [0x480090]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
cmp eax, 6
je 0x4048bb
push str.SetDefaultDllDirectories
push 0x46f558
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2e8], eax
cmp dword [ebp - 0x2e8], 0
je 0x4048bb
push 0xc00
call dword [ebp - 0x2e8]
test eax, eax
je 0x4048bb
jmp 0x404a23
push 0x106
lea ecx, [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
je 0x4048e8
cmp dword [ebp - 0x2e0], 0x104
jbe 0x4048ed
jmp 0x404a23
mov edx, dword [ebp - 0x2e0]
movzx eax, word [ebp + edx*2 - 0x2d6]
cmp eax, 0x5c
je 0x404922
mov ecx, 0x5c
mov edx, dword [ebp - 0x2e0]
mov word [ebp + edx*2 - 0x2d4], cx
mov eax, dword [ebp - 0x2e0]
add eax, 1
mov dword [ebp - 0x2e0], eax
mov ecx, dword [str.userenv]
mov dword [ebp - 0x2e4], ecx
mov edx, dword [ebp - 0x2e4]
movsx eax, byte [edx]
test eax, eax
je 0x404a23
mov ecx, dword [ebp - 0x2e0]
lea edx, [ebp + ecx*2 - 0x2d4]
mov dword [ebp - 0x2dc], edx
mov eax, dword [ebp - 0x2e4]
mov cl, byte [eax]
mov byte [ebp - 0x2d5], cl
mov edx, dword [ebp - 0x2e4]
add edx, 1
mov dword [ebp - 0x2e4], edx
movsx eax, byte [ebp - 0x2d5]
test eax, eax
jne 0x40497c
jmp 0x40499e
movzx cx, byte [ebp - 0x2d5]
mov edx, dword [ebp - 0x2dc]
mov word [edx], cx
mov eax, dword [ebp - 0x2dc]
add eax, 2
mov dword [ebp - 0x2dc], eax
jmp 0x404952
mov ecx, 2
imul ecx, ecx, 0
mov edx, 0x2e
mov eax, dword [ebp - 0x2dc]
mov word [eax + ecx], dx
mov ecx, 2
shl ecx, 0
mov edx, 0x64
mov eax, dword [ebp - 0x2dc]
mov word [eax + ecx], dx
mov ecx, 2
shl ecx, 1
mov edx, 0x6c
mov eax, dword [ebp - 0x2dc]
mov word [eax + ecx], dx
mov ecx, 2
imul ecx, ecx, 3
mov edx, 0x6c
mov eax, dword [ebp - 0x2dc]
mov word [eax + ecx], dx
mov ecx, 2
shl ecx, 2
xor edx, edx
mov eax, dword [ebp - 0x2dc]
mov word [eax + ecx], dx
push 8
push 0
lea ecx, [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40492e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045dacb
mov esp, ebp
pop ebp
ret
Function at 0x40ede0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov ecx, 4
imul ecx, ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x20], 0x6a09e667
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x20], 0xbb67ae85
mov edx, 4
shl edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x3c6ef372
mov ecx, 4
imul ecx, ecx, 3
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x20], 0xa54ff53a
mov eax, 4
shl eax, 2
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x20], 0x510e527f
mov edx, 4
imul edx, edx, 5
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x9b05688c
mov ecx, 4
imul ecx, ecx, 6
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x20], 0x1f83d9ab
mov eax, 4
imul eax, eax, 7
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x20], 0x5be0cd19
pop ebp
ret 4

Function at 0x40f340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call fcn.0045dc0f
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0040f040
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4135d0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea ecx, [ebp - 8]
call fcn.004327d0
mov eax, dword [ebp + 0x10]
push eax
push 0x2002
lea ecx, [ebp - 8]
call fcn.00418da0
movzx ecx, al
test ecx, ecx
jne 0x41360a
mov byte [ebp - 1], 0
lea ecx, [ebp - 8]
call fcn.00413560
mov al, byte [ebp - 1]
jmp 0x4136a0
lea ecx, [ebp - 8]
call fcn.00437500
push eax
lea ecx, [ebp - 0x14]
call fcn.00413510
lea ecx, [ebp - 0x14]
call fcn.0040f700
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x413645
mov byte [ebp - 2], 0
lea ecx, [ebp - 0x14]
call fcn.00413580
lea ecx, [ebp - 8]
call fcn.00413560
mov al, byte [ebp - 2]
jmp 0x4136a0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0045d360
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00413580
lea ecx, [ebp - 8]
call fcn.00437500
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x413689
mov byte [ebp - 3], 0
lea ecx, [ebp - 8]
call fcn.00413560
mov al, byte [ebp - 3]
jmp 0x4136a0
lea ecx, [ebp - 8]
call fcn.00434270
mov byte [ebp - 4], 1
lea ecx, [ebp - 8]
call fcn.00413560
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415350
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46aad0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x480090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x483528]
test eax, eax
jne 0x4153cf
push 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00411a10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
call fcn.00437500
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0041b0a0
cmp dword [ebp - 0x1c], 0
je 0x4153cd
mov al, 1
jmp 0x41544d
jmp 0x4153e3
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4153e3
mov al, 1
jmp 0x41544d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4153f4
xor al, al
jmp 0x41544d
lea ecx, [ebp - 0x60]
call fcn.00414f90
mov dword [ebp - 4], 1
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x60]
call fcn.00416400
movzx eax, al
test eax, eax
jne 0x415430
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00415020
mov al, byte [ebp - 0xd]
jmp 0x41544d
lea ecx, [ebp - 0x60]
call fcn.00415a10
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00415020
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x415540
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a9e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x480090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00416dd0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4155a2
mov ecx, dword [ebp - 0x10]
and ecx, 0x10
jne 0x4155a2
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x4155a2
mov eax, dword [ebp - 0x10]
and eax, 0xfffffffe
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415c80
movzx edx, al
test edx, edx
jne 0x4155a2
xor al, al
jmp 0x41560b
movzx eax, byte [0x483528]
test eax, eax
jne 0x4155f7
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00411a10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
call fcn.00437500
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0041b0a0
cmp dword [ebp - 0x1c], 0
je 0x4155f5
mov al, 1
jmp 0x41560b
jmp 0x415609
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x415609
mov al, 1
jmp 0x41560b
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x415c80
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ab98
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x480090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x483528]
test eax, eax
jne 0x415cfe
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00411a10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
call fcn.00437500
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041b0a0
cmp dword [ebp - 0x18], 0
je 0x415cfc
mov al, 1
jmp 0x415d16
jmp 0x415d14
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x415d14
mov al, 1
jmp 0x415d16
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a9e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x480090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x483528]
test eax, eax
jne 0x416e45
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00411a10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
call fcn.00437500
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0041b0a0
mov eax, dword [ebp - 0x1c]
jmp 0x416e60
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x416e5d
mov eax, dword [ebp - 0x10]
jmp 0x416e60
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x417700
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x417737
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x417737
xor al, al
jmp 0x417754
xor edx, edx
mov eax, dword [ebp - 4]
mov cl, 0x20
call fcn.0045dbd0
xor ecx, ecx
add eax, dword [ebp - 8]
adc edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x417c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], 0x400000
jbe 0x417ca9
mov dword [ebp + 0xc], 0x400000
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.004135a0
mov byte [ebp - 1], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41a3e0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x480090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [eax], SysReAllocStringLen
mov dword [eax + 4], 0
mov dword [ebp - 0x64], 0x40
push str.GlobalMemoryStatusEx
push 0x46f558
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x41a453
lea ecx, [ebp - 0x64]
push ecx
call dword [ebp - 0x68]
test eax, eax
je 0x41a453
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0041a2c0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
jmp 0x41a47d
mov dword [ebp - 0x24], 0x20
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041a290
xor edx, edx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045dacb
mov esp, ebp
pop ebp
ret 4
Function at 0x41a5f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46af98
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x480090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
movzx eax, byte [0x483528]
test eax, eax
je 0x41a6d2
mov ecx, dword [ebp + 8]
call fcn.0040f680
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41a666
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41a657
mov dword [ebp - 0x1c], 1
jmp 0x41a65e
mov dword [ebp - 0x1c], 0
mov al, byte [ebp - 0x1c]
jmp 0x41a717
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.00411b20
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x20]
jbe 0x41a69d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00413a70
cmp dword [ebp - 0x14], 0
jne 0x41a6ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41a6c2
mov dword [ebp - 0x24], 1
jmp 0x41a6c9
mov dword [ebp - 0x24], 0
mov al, byte [ebp - 0x24]
jmp 0x41a717
mov al, 1
jmp 0x41a717
lea ecx, [ebp - 0x34]
call fcn.0040fd70
mov dword [ebp - 4], 0
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.0041a540
mov byte [ebp - 0xd], al
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411b50
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xe], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0041b0a0
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x41f830
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b523
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x480090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0041f9c0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.0041b0a0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.0041b0a0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.0041b0a0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0041b0a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.0041b0a0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.0041b0a0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.0041b0a0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00445e50
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.0041b0a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x42a820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jbe 0x42a83b
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x14], 0
je 0x42a869
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
cmp dword [ebp - 0xc], 0
jne 0x42a87e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x42a87e
xor eax, eax
jmp 0x42a898
cmp dword [ebp - 0xc], 0
je 0x42a88a
mov byte [ebp - 1], 1
jmp 0x42a88e
mov byte [ebp - 1], 0
movzx ecx, byte [ebp - 1]
push ecx
call fcn.0042a120
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42ab30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x42ab45
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp + 0x10], 0
jbe 0x42abc3
mov dword [ebp - 0xc], 0x8000
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jbe 0x42ab67
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp + 8]
add eax, dword [edx + 8]
adc ecx, dword [edx + 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 8]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x14], 0
je 0x42abc3
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
add eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 0x10], 0
je 0x42abcf
mov byte [ebp - 1], 1
jmp 0x42abd3
mov byte [ebp - 1], 0
movzx edx, byte [ebp - 1]
push edx
call fcn.0042a120
mov esp, ebp
pop ebp
ret 0x10