joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b9b4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b9d5
mov al, byte [esp]
jmp 0x40b9d7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x417a4c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x417a52
ret

Function at 0x41a290
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41a2e1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41a2c8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41a2b8
jmp 0x41a2e1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41a2c9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435848
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x435879
je 0x4358d3
sub eax, 7
je 0x43589a
dec eax
je 0x4358c4
sub eax, 0x17
je 0x435978
jmp 0x4359b6
add eax, 0xffffff00
sub eax, 9
jb 0x435964
add eax, 0xffffff09
sub eax, 0xb
jb 0x43592c
jmp 0x4359b6
mov eax, ebx
call fcn.00447ce4
mov edi, eax
test edi, edi
je 0x435a16
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x435a1f
jmp 0x435a16
test byte [ebx + 0x44], 0x20
jne 0x435a1f
jmp 0x435a16
mov edx, esi
mov eax, ebx
call fcn.00432e48
cmp dword [esi + 0xc], 0xffffffff
jne 0x435a1f
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00407da8
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0043196c
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00435720
test eax, eax
je 0x435a1f
mov dword [esi + 0xc], 1
jmp 0x435a1f
mov edx, esi
mov eax, ebx
call fcn.004357b4
test al, al
je 0x435a16
cmp dword [esi + 0xc], 0
jne 0x435a1f
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.00437ee8
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x435a1f
mov eax, ebx
call fcn.004324e4
test al, al
jne 0x435a1f
jmp 0x435a16
mov eax, ebx
call fcn.00437ee8
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x435a16
cmp dword [0x4cd858], 0
je 0x435a16
mov eax, dword [0x4cd858]
cmp ebx, dword [eax + 0x24]
jne 0x435a16
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4cd858]
call fcn.00432d7c
jmp 0x435a16
mov eax, dword [0x4d074c]
cmp byte [eax + 0x20], 0
je 0x435a16
mov eax, dword [0x4d074c]
cmp dword [eax + 0x1c], 0
je 0x435a16
mov eax, dword [esi]
mov edx, dword [0x4d074c]
cmp eax, dword [edx + 0x1c]
jne 0x435a16
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00447c28
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00403138
jmp 0x435a1f
mov edx, esi
mov eax, ebx
call fcn.00432e48
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43fd88
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403be4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43fdd7
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403e14
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4781cc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4781fa
mov eax, ebx
call fcn.00478c70
cmp dword [ebx + 0x3c], 0
je 0x4781f3
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x47826b
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x47825d
cmp dword [ebx + 8], 0
je 0x47821c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x47822e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47825d
cmp dword [ebx + 8], 0
je 0x47820f
cmp eax, 3
je 0x478241
dec eax
jne 0x47820f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47820f
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x47820f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x478289
cmp dword [ebx + 0x10], 0xcc
je 0x478289
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00478294
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404028
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x488dad
test al, 0x10
jne 0x488db1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4b6554
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa09
push 0
push 0
dec ecx
jne 0x4b655d
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404018
mov eax, dword [ebp - 8]
call fcn.00404018
xor eax, eax
push ebp
push 0x4b6cfd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040948c
cmp eax, 0xffffffff
je 0x4b65c8
and eax, 1
dec eax
jne 0x4b65c8
push 0
mov ecx, 0x4b6d0c
mov edx, 0x4b6d14
mov eax, dword [0x4cf264]
mov eax, dword [eax]
call fcn.0045043c
mov edx, esi
mov eax, ebx
call fcn.004b6178
jmp 0x4b6cc2
mov eax, dword [ebp - 4]
call fcn.0040947c
test al, al
jne 0x4b65e3
lea edx, [ebp - 4]
mov eax, dword [0x4cf264]
dec esp
add byte [ebx - 0x5e361800], cl
stc
invalid
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xae6c]

Function at 0x4b8dbc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4b8dc4
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b8f64
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x4ffc4], 0
je 0x4b8df6
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x4ffc4]
call fcn.00409058
jmp 0x4b8e4d
call fcn.0042ce70
lea edx, [ebp - 0x10]
call fcn.0042ca90
mov eax, dword [ebx + 0x6e4]
call fcn.00428ab4
call fcn.0042ce70
lea edx, [ebp - 0x14]
call fcn.0042ca90
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
call fcn.00409058
call fcn.0042ce70
mov edx, dword [ebp - 0x10]
call fcn.0042cb10
mov eax, dword [ebx + 0x6e4]
mov edx, dword [eax]
call dword [edx + 0xb8]
test eax, eax
jne 0x4b8e4d
lea eax, [ebp - 4]
call fcn.00403be4
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00409058
cmp dword [ebp - 0x18], 0
jne 0x4b8e6b
lea eax, [ebp - 4]
mov edx, 0x4b8f78
call fcn.00403c7c
lea eax, [ebp - 8]
push eax
mov ecx, 7
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040406c
lea eax, [ebp - 0xc]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040406c
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00408ebc
mov eax, dword [ebp - 0x1c]
mov edx, 0x4b8fa0
call fcn.00403f74
jne 0x4b8ed4
push 3
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404028
push eax
push 0
mov eax, dword [0x4d23b8]
call fcn.00437ee8
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x4b8f3e
mov eax, dword [ebx + 0x3e8]
cmp byte [eax + 0x2c], 0
jne 0x4b8f34
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.00408ebc
mov eax, dword [ebp - 0x20]
mov edx, 0x4b8fb0
call fcn.00403f74
je 0x4b8f14
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00408ebc
mov eax, dword [ebp - 0x24]
mov edx, 0x4b8fc0
call fcn.00403f74
jne 0x4b8f34
push 3
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404028
push eax
push 0
mov eax, ebx
call fcn.00437ee8
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x4b8f3e
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004b8fc8
lea eax, [ebx + 0x4ffc4]
call fcn.00403be4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8f6b
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.00403c08
ret
Function at 0x402035
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x470074]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x368]
mov dword [ebp - 0x368], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402075
cmp dword [ebp - 0x364], 6
jne 0x402075
cmp dword [ebp - 0x360], 0
je 0x40209f
push str.SetDefaultDllDirectories
push 0x45f470
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40209f
push 0xc00
call eax
test eax, eax
jne 0x402139
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402139
cmp eax, 0x104
ja 0x402139
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x4020e3
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.UXTHEME], 0
push esi
mov esi, str.UXTHEME
je 0x402138
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov edx, edi
mov cl, byte [esi]
inc esi
movsx ax, cl
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x4020fe
push str..dll
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push 0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x4020fc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fd1f
mov esp, ebp
pop ebp
ret
Function at 0x404b57
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.0042dd1e
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.00404ab8
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4099e8
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x45c8c1
call fcn.0041ff5f
cmp byte [0x4716e8], 0
mov edi, dword [ebp + 8]
jne 0x409a28
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00406f94
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0041ff15
pop ecx
test esi, esi
je 0x409a36
mov al, 1
jmp 0x409a7b
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x409a22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409a47
xor al, al
jmp 0x409a7b
lea ecx, [ebp - 0x50]
call fcn.0040a588
lea ecx, [ebp - 0x28]
call fcn.004058b4
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040a7ba
test al, al
je 0x409a70
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0041ff15
pop ecx
mov al, bl
call fcn.0041ff28
ret 4

Function at 0x409a83
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4716e8], 0
jne 0x409abd
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00406f94
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041ff15
pop ecx
test esi, esi
pop esi
je 0x409acc
mov al, 1
jmp 0x409ace
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x409ab7
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x409cbe
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040ade3
cmp eax, 0xffffffff
je 0x409ceb
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x409ceb
and eax, 0xfffffffe
push eax
push esi
call fcn.0040a494
test al, al
je 0x409d23
cmp byte [0x4716e8], 0
push esi
jne 0x409d19
lea eax, [ebp - 0xc]
push eax
call fcn.00406f94
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041ff15
pop ecx
test esi, esi
je 0x409d23
mov al, 1
jmp 0x409d25
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x409d13
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40a213
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4716e8], 0
jne 0x40a24b
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00406f94
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041ff15
pop ecx
test esi, esi
pop esi
je 0x40a258
mov al, 1
jmp 0x40a25a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40a245
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x40a3e8
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4716e8], 0
jne 0x40a41f
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00406f94
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041ff15
test esi, esi
pop ecx
setne al
pop esi
jmp 0x40a42e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40a494
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4716e8], 0
jne 0x40a4cf
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00406f94
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041ff15
pop ecx
test esi, esi
pop esi
je 0x40a4df
mov al, 1
jmp 0x40a4e1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x40a4c9
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x40ade3
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4716e8], 0
jne 0x40ae17
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00406f94
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041ff15
pop ecx
mov eax, esi
pop esi
jmp 0x40ae2a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b1e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b206
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b206
xor al, al
jmp 0x40b21a
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x427979
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x460c6c
push str.FlsAlloc
push 0
call fcn.00427827
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4279ab
push dword [ebp + 8]
mov ecx, esi
call fcn.00420769
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x4279ed
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x460c90
push str.FlsGetValue
push 2
call fcn.00427827
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x427a1e
mov ecx, esi
call fcn.00420769
call esi
jmp 0x427a24
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x427a27
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x460ca4
push str.FlsSetValue
push 3
call fcn.00427827
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x427a5b
mov ecx, esi
call fcn.00420769
call esi
jmp 0x427a61
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x4012ef
Capabilities:
Create thread

Disassembly:
push 8
push 0x448c98
call fcn.0041f4c0
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xfffffffe
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x401356
push ebx
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x401356
push ebx
push ebx
push dword [ebp + 8]
push 0x401410
push ebx
push ebx
call fcn.0042291c
add esp, 0x18
mov dword [esi + 0x34], eax
test eax, eax
je 0x401356
mov al, 1
jmp 0x401390
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x40138e
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401c63
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x54
mov eax, 0x437c5c
call fcn.0041ef0f
mov esi, ecx
push ecx
push str._cleanup_
call fcn.00404ce0
mov edi, eax
cmp edi, 0xffffffff
jne 0x401c8a
xor al, al
jmp 0x401dc8
push 8
pop ebx
add edi, 0xa
mov ecx, esi
cmp dword [esi + 0x14], ebx
jb 0x401c99
mov ecx, dword [esi]
push dword [ebp - 0x18]
mov edx, dword [esi + 0x10]
push 2
push ecx
push edi
call fcn.00405473
add esp, 0x10
cmp eax, 0xffffffff
je 0x401dc6
mov ecx, esi
cmp dword [esi + 0x14], ebx
jb 0x401cbd
mov ecx, dword [esi]
cmp word [ecx + eax*2], 0x3d
je 0x401dc6
sub eax, edi
mov ecx, esi
push eax
push edi
lea eax, [ebp - 0x30]
push eax
call fcn.00404c8a
and dword [ebp - 4], 0
lea edi, [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jb 0x401ce6
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
push 0x3b
pop eax
mov word [ebp - 0x18], ax
test edx, edx
je 0x401d0c
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004057ea
mov esi, eax
pop ecx
test esi, esi
je 0x401d0c
sub esi, edi
sar esi, 1
jmp 0x401d0f
or esi, 0xffffffff
push esi
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404c8a
push 0xffffffffffffffff
lea eax, [esi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404c8a
cmp dword [eax + 0x14], ebx
jb 0x401d3b
mov eax, dword [eax]
push eax
call fcn.004235e0
pop ecx
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.0040812b
cmp dword [ebp - 0x38], 0
je 0x401db6
test esi, esi
je 0x401db6
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401d7d
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x446bd8
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.0040513b
pop ecx
cmp dword [eax + 0x14], ebx
jb 0x401d95
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x60]
call fcn.0040812b
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jb 0x401daf
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x48]
call fcn.0040812b
lea ecx, [ebp - 0x30]
call fcn.0040812b
mov al, 1
call fcn.0041eebe
ret
Function at 0x4027ee
Capabilities:
Get common file path

Disassembly:
push 0x24
mov eax, 0x437d7b
call fcn.0041ef0f
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x18], 7
push ebx
mov byte [ebp - 0x14], bl
xor eax, eax
push dword [ebp - 0x14]
mov edi, 0x104
mov dword [ebp - 0x2c], ebx
push edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.004067fa
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push 8
pop ebx
cmp dword [ebp - 0x18], ebx
jb 0x40283d
mov eax, dword [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4028a1
push 6
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [esi + 0x14], 7
mov dword [esi], edi
mov word [esi], ax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], edi
cmp eax, ebx
jb 0x40295a
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x402951
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040129b
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
jmp 0x402951
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x4028ac
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4028b1
sub ecx, edx
sar ecx, 1
cmp ecx, dword [ebp - 0x1c]
ja 0x4028db
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x4028d0
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov word [eax + ecx*2], dx
jmp 0x4028e8
sub ecx, dword [ebp - 0x1c]
push edi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00406751
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x4028f3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x402913
dec ecx
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x40290a
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00404a3f
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jb 0x40295a
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x402951
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040129b
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041e5b9
pop ecx
pop ecx
mov eax, esi
call fcn.0041eebe
ret