joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435d80
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x268]
sub esp, 0x2e8
mov eax, dword [0x482008]
xor eax, ebp
mov dword [ebp + 0x264], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
cmp eax, 6
je 0x435dda
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x435dda
push 0xc00
call dword [ebp - 0x80]
test eax, eax
je 0x435dda
jmp 0x435ee8
push 0x106
lea ecx, [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x435dfb
cmp dword [ebp - 0x78], 0x104
jbe 0x435e00
jmp 0x435ee8
mov edx, dword [ebp - 0x78]
movzx eax, word [ebp + edx*2 - 0x6e]
cmp eax, 0x5c
je 0x435e23
mov ecx, 0x5c
mov edx, dword [ebp - 0x78]
mov word [ebp + edx*2 - 0x6c], cx
mov eax, dword [ebp - 0x78]
add eax, 1
mov dword [ebp - 0x78], eax
mov ecx, dword [str.userenv]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
movsx eax, byte [edx]
test eax, eax
je 0x435ee8
mov ecx, dword [ebp - 0x78]
lea edx, [ebp + ecx*2 - 0x6c]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x7c]
mov cl, byte [eax]
mov byte [ebp - 0x6d], cl
mov edx, dword [ebp - 0x7c]
add edx, 1
mov dword [ebp - 0x7c], edx
movsx eax, byte [ebp - 0x6d]
test eax, eax
jne 0x435e5f
jmp 0x435e75
movzx cx, byte [ebp - 0x6d]
mov edx, dword [ebp - 0x74]
mov word [edx], cx
mov eax, dword [ebp - 0x74]
add eax, 2
mov dword [ebp - 0x74], eax
jmp 0x435e44
mov ecx, 2
imul edx, ecx, 0
mov eax, 0x2e
mov ecx, dword [ebp - 0x74]
mov word [ecx + edx], ax
mov edx, 2
shl edx, 0
mov eax, 0x64
mov ecx, dword [ebp - 0x74]
mov word [ecx + edx], ax
mov edx, 2
shl edx, 1
mov eax, 0x6c
mov ecx, dword [ebp - 0x74]
mov word [ecx + edx], ax
mov edx, 2
imul eax, edx, 3
mov ecx, 0x6c
mov edx, dword [ebp - 0x74]
mov word [edx + eax], cx
mov eax, 2
shl eax, 2
xor ecx, ecx
mov edx, dword [ebp - 0x74]
mov word [edx + eax], cx
push 8
push 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x435e2c
mov ecx, dword [ebp + 0x264]
xor ecx, ebp
call fcn.004243f3
add ebp, 0x268
mov esp, ebp
pop ebp
ret
Function at 0x43fdf0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, 4
imul ecx, eax, 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 edx, ecx, 3
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0xa54ff53a
mov ecx, 4
shl ecx, 2
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x20], 0x510e527f
mov eax, 4
imul ecx, eax, 5
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x20], 0x9b05688c
mov eax, 4
imul ecx, eax, 6
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x20], 0x1f83d9ab
mov eax, 4
imul ecx, eax, 7
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x20], 0x5be0cd19
pop ebp
ret 4

Function at 0x440b90
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.00429873
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.00440a90
mov esp, ebp
pop ebp
ret 0xc

Function at 0x443ed0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea ecx, [ebp - 8]
call fcn.00402600
mov eax, dword [ebp + 0x10]
push eax
push 0x2002
lea ecx, [ebp - 8]
call fcn.004489c0
movzx ecx, al
test ecx, ecx
jne 0x443f0a
mov byte [ebp - 1], 0
lea ecx, [ebp - 8]
call fcn.00402620
mov al, byte [ebp - 1]
jmp 0x443fa0
lea ecx, [ebp - 8]
call fcn.004012b0
push eax
lea ecx, [ebp - 0x14]
call fcn.00402670
lea ecx, [ebp - 0x14]
call fcn.00401230
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x443f45
mov byte [ebp - 2], 0
lea ecx, [ebp - 0x14]
call fcn.004026a0
lea ecx, [ebp - 8]
call fcn.00402620
mov al, byte [ebp - 2]
jmp 0x443fa0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00425380
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.004026a0
lea ecx, [ebp - 8]
call fcn.004012b0
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x443f89
mov byte [ebp - 3], 0
lea ecx, [ebp - 8]
call fcn.00402620
mov al, byte [ebp - 3]
jmp 0x443fa0
lea ecx, [ebp - 8]
call fcn.00402640
mov byte [ebp - 4], 1
lea ecx, [ebp - 8]
call fcn.00402620
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4454c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f336
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x482008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00446f80
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x445522
mov ecx, dword [ebp - 0x10]
and ecx, 0x10
jne 0x445522
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x445522
mov eax, dword [ebp - 0x10]
and eax, 0xfffffffe
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00445c00
movzx edx, al
test edx, edx
jne 0x445522
xor al, al
jmp 0x44558b
movzx eax, byte [0x4842c9]
test eax, eax
jne 0x445577
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00441430
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.004012b0
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.004011d0
cmp dword [ebp - 0x1c], 0
je 0x445575
mov al, 1
jmp 0x44558b
jmp 0x445589
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x445589
mov al, 1
jmp 0x44558b
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x445890
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f39a
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x482008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x4842c9]
test eax, eax
jne 0x44590f
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00441430
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.004012b0
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.004011d0
cmp dword [ebp - 0x1c], 0
je 0x44590d
mov al, 1
jmp 0x44598d
jmp 0x445923
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x445923
mov al, 1
jmp 0x44598d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x445934
xor al, al
jmp 0x44598d
lea ecx, [ebp - 0x60]
call fcn.00402df0
mov dword [ebp - 4], 1
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x60]
call fcn.004468a0
movzx eax, al
test eax, eax
jne 0x445970
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00402e20
mov al, byte [ebp - 0xd]
jmp 0x44598d
lea ecx, [ebp - 0x60]
call fcn.00402d70
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00402e20
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 0x445c00
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f44a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x482008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x4842c9]
test eax, eax
jne 0x445c7e
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00441430
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004012b0
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.004011d0
cmp dword [ebp - 0x18], 0
je 0x445c7c
mov al, 1
jmp 0x445c96
jmp 0x445c94
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 0x445c94
mov al, 1
jmp 0x445c96
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x446f80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f5a4
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x482008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x4842c9]
test eax, eax
jne 0x446ff5
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00441430
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.004012b0
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.004011d0
mov eax, dword [ebp - 0x1c]
jmp 0x447010
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 0x44700d
mov eax, dword [ebp - 0x10]
jmp 0x447010
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x447340
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 0x447359
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.004025d0
mov byte [ebp - 1], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x447740
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 0x447777
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x447777
xor al, al
jmp 0x447794
xor edx, edx
mov eax, dword [ebp - 4]
mov cl, 0x20
call fcn.004320d0
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 0x449d50
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x482008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], SysReAllocStringLen
mov dword [eax + 4], ecx
mov dword [ebp - 0x64], 0x40
push str.GlobalMemoryStatusEx
push str.kernel32.dll
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 0x449dc1
lea edx, [ebp - 0x64]
push edx
call dword [ebp - 0x68]
test eax, eax
je 0x449dc1
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004034b0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
jmp 0x449deb
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.004034f0
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.004243f3
mov esp, ebp
pop ebp
ret 4
Function at 0x449ec0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f84d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x482008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
movzx eax, byte [0x4842c9]
test eax, eax
je 0x449fa2
mov ecx, dword [ebp + 8]
call fcn.00401280
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 0x449f36
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x449f27
mov dword [ebp - 0x1c], 1
jmp 0x449f2e
mov dword [ebp - 0x1c], 0
mov al, byte [ebp - 0x1c]
jmp 0x449fe7
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401b80
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 0x449f6d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004026f0
cmp dword [ebp - 0x14], 0
jne 0x449f9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x449f92
mov dword [ebp - 0x24], 1
jmp 0x449f99
mov dword [ebp - 0x24], 0
mov al, byte [ebp - 0x24]
jmp 0x449fe7
mov al, 1
jmp 0x449fe7
lea ecx, [ebp - 0x34]
call fcn.00442910
mov dword [ebp - 4], 0
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.0044a000
mov byte [ebp - 0xd], al
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00442f80
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xe], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004011d0
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 0x4547f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x454805
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp + 0x10], 0
jbe 0x454883
mov dword [ebp - 0xc], 0x8000
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jbe 0x454827
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 0x454883
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 0x45488f
mov byte [ebp - 1], 1
jmp 0x454893
mov byte [ebp - 1], 0
movzx edx, byte [ebp - 1]
push edx
call fcn.00455030
mov esp, ebp
pop ebp
ret 0x10

Function at 0x454dd0
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 0x454deb
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 0x454e19
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
cmp dword [ebp - 0xc], 0
jne 0x454e2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x454e2e
xor eax, eax
jmp 0x454e48
cmp dword [ebp - 0xc], 0
je 0x454e3a
mov byte [ebp - 1], 1
jmp 0x454e3e
mov byte [ebp - 1], 0
movzx ecx, byte [ebp - 1]
push ecx
call fcn.00455030
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46bab0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471c9c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x482008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 1], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 2], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 3], 0
mov ecx, dword [ebp - 0x10]
or edx, 0xffffffff
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
xor edx, edx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
mov dword [eax + 0x18], 0xffffffff
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 0x10]
xor eax, eax
xor ecx, ecx
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [edx + 0x28], 0xffffffff
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp - 0x10]
or edx, 0xffffffff
mov dword [ecx + 0x30], 0xffffffff
mov dword [ecx + 0x34], edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.00442b50
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00442b50
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00442b50
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.004015a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.00410790
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x98
call fcn.004039b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x46c110
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x482008]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 8]
test eax, eax
je 0x46c137
mov dword [ebp - 0x168], 1
jmp 0x46c141
mov dword [ebp - 0x168], pe_nt_image_headers32
mov ecx, dword [ebp - 0x168]
or ecx, 0x4010
push ecx
push 0x160
lea edx, [ebp - 0x164]
push edx
push 0x90
push 0x477a94
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004243f3
mov esp, ebp
pop ebp
ret 4
Function at 0x46c180
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xffffffffffffffff
push 0x471d6d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x482008]
xor eax, ebp
mov dword [ebp + 0x414], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x4842c9]
test eax, eax
jne 0x46c235
mov ecx, dword [ebp + 0x420]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00441430
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
push 0x4010
push 0x160
lea ecx, [ebp + 0x2b4]
push ecx
mov edx, dword [ebp + 0x424]
or edx, 0x80
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004012b0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004011d0
mov eax, dword [ebp + 0x428]
mov ecx, dword [ebp + 0x2b8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
jmp 0x46c26c
push 0x4010
push 0x2b4
lea edx, [ebp]
push edx
mov eax, dword [ebp + 0x424]
or eax, 0x80
push eax
mov ecx, dword [ebp + 0x420]
push ecx
call fcn.0046c0e0
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp + 0x428]
mov eax, dword [ebp + 4]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.004243f3
add ebp, 0x418
mov esp, ebp
pop ebp
ret 0xc

Function at 0x46c4b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471ddd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x482008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0xd66
mov ecx, dword [ebp - 0x10]
call fcn.00410150
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x30], al
lea ecx, [ebp - 0x1c]
call fcn.00442b50
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00449ec0
lea ecx, [ebp - 0x1c]
call fcn.00401370
lea eax, [ebp - 0x1c]
push eax
call fcn.00448930
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00442c90
mov ecx, dword [ebp - 0x10]
call fcn.0040ecf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004011d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x46cd20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x46cd52
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46cd52
xor al, al
jmp 0x46cd6f
xor edx, edx
mov eax, dword [ebp - 4]
mov cl, 0x20
call fcn.004320d0
xor ecx, ecx
add eax, dword [ebp - 8]
adc edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219