joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497290
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, 0x4ba0d8
mov byte [0x4ba148], 0
or edx, 0xffffffff
mov eax, dword [ebx + 0x2fc]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
xor edx, edx
mov eax, dword [ebx + 0x2f8]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push 0x13
mov eax, dword [esi]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
push eax
push 1
mov eax, dword [esi]
call fcn.0045aca0
push eax
call sub.user32.dll_SetWindowPos
push 6
mov eax, dword [esi]
call fcn.0045aca0
push eax
call sub.user32.dll_ShowWindow
push 0
mov eax, dword [esi]
call fcn.0045aca0
push eax
call sub.user32.dll_ShowWindow
push 6
mov eax, dword [0x4b8cf0]
mov eax, dword [eax]
push eax
call sub.user32.dll_ShowWindow
push 0
mov eax, dword [0x4b8cf0]
mov eax, dword [eax]
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4b0c78
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe10
xor edx, edx
mov dword [ebp - 0x1f0], edx
mov dword [ebp - 0x1ec], edx
mov dword [ebp - 0x1e8], edx
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 0x1e0], edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x4b0f24
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x4ba410], 0
lea edx, [ebp - 0x1d8]
mov eax, dword [0x4b8c5c]
mov eax, dword [eax]
call fcn.00475340
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.004096bc
mov edx, dword [ebp - 0x1d4]
mov eax, 0x4ba40c
mov ecx, 0x4b0f38
call fcn.00404c44
cmp byte [0x4ba423], 1
jne 0x4b0ecb
mov eax, dword [0x4ba40c]
call fcn.00409444
cmp al, 1
jne 0x4b0d63
push 0
lea eax, [ebp - 0x1dc]
call fcn.00479a10
lea eax, [ebp - 0x1dc]
mov edx, 0x4b0f50
call fcn.00404c00
mov eax, dword [ebp - 0x1dc]
call fcn.00404df8
push eax
mov eax, dword [0x4ba40c]
call fcn.00404df8
push eax
call sub.kernel32.dll_CopyFileA
push 0x3a
call sub.kernel32.dll_Sleep_1
jmp 0x4b0ecb
lea eax, [ebp - 0x1e0]
call fcn.00479a10
lea eax, [ebp - 0x1e0]
mov edx, 0x4b0f50
call fcn.00404c00
mov eax, dword [ebp - 0x1e0]
call fcn.00409444
test al, al
jne 0x4b0ecb
push 0
push 0x4b0f60
call sub.kernel32.dll_CreateDirectoryA_1
mov eax, 0x4b0f70
call fcn.00409454
cmp al, 1
jne 0x4b0ecb
lea eax, [ebp - 0x1e4]
call fcn.00479a10
lea eax, [ebp - 0x1e4]
mov edx, 0x4b0f50
call fcn.00404c00
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1d0]
call fcn.00402f44
lea eax, [ebp - 0x1d0]
call fcn.00402ce0
call fcn.00402894
lea eax, [ebp - 4]
mov edx, 0x4b0f80
call fcn.004049d0
lea eax, [ebp - 4]
mov edx, 0x4b0fc8
call fcn.00404c00
lea edx, [ebp - 0x1e8]
mov eax, dword [ebp - 4]
call fcn.00478a44
mov edx, dword [ebp - 0x1e8]
lea eax, [ebp - 4]
call fcn.004049d0
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00405014
call fcn.004035c0
call fcn.00402894
lea eax, [ebp - 4]
mov edx, 0x4b1010
call fcn.004049d0
lea eax, [ebp - 4]
mov edx, 0x4b1060
call fcn.00404c00
lea edx, [ebp - 0x1ec]
mov eax, dword [ebp - 4]
call fcn.00478a44
mov edx, dword [ebp - 0x1ec]
lea eax, [ebp - 4]
call fcn.004049d0
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00405014
call fcn.004035c0
call fcn.00402894
mov edx, 0x4b10a0
lea eax, [ebp - 0x1d0]
call fcn.00405014
call fcn.004035c0
call fcn.00402894
mov edx, 0x4b10b4
lea eax, [ebp - 0x1d0]
call fcn.00405014
call fcn.004035c0
call fcn.00402894
lea eax, [ebp - 0x1d0]
call fcn.0040300c
call fcn.00402894
mov eax, dword [0x4ba40c]
call fcn.00409444
test al, al
jne 0x4b0ef9
lea eax, [ebp - 0x1f0]
call fcn.00479a10
mov edx, dword [ebp - 0x1f0]
mov eax, 0x4ba40c
mov ecx, 0x4b0f50
call fcn.00404c44
call fcn.004afc38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0f2b
lea eax, [ebp - 0x1f0]
mov edx, 8
call fcn.0040495c
lea eax, [ebp - 4]
call fcn.00404938
ret
Function at 0x4b1884
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404de8
lea edi, [ebp - 0x14]
xor eax, eax
push ebp
push 0x4b1a4b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004049d0
mov eax, 0xff
call fcn.00408b34
mov esi, eax
mov eax, 0x1388
call fcn.00408b34
mov ebx, eax
mov dword [ebp - 0x64], 0xc
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xffffffff
push 0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_CreatePipe
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4b1a28
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.004031e8
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 0x101
mov word [ebp - 0x28], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004099e4
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push esi
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4b1983
mov edx, 0x4b1a64
mov eax, dword [0x4ba400]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call fcn.0040274c
mov eax, esi
call fcn.0040274c
jmp 0x4b1a28
push 0
push 0
push edi
push 1
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x4b19f0
cmp dword [edi], 0
je 0x4b19d8
push 0
push edi
push 0x1000
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4b19f0
mov eax, dword [edi]
mov byte [ebx + eax], 0
lea eax, [ebp - 0x78]
mov edx, ebx
call fcn.00404b30
mov edx, dword [ebp - 0x78]
mov eax, dword [0x4ba400]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4b19e7
push 0
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x4b19f0
push 0x64
call sub.kernel32.dll_Sleep_1
jmp 0x4b1983
mov eax, dword [edi]
mov byte [ebx + eax], 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
call fcn.0040274c
mov eax, esi
call fcn.0040274c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1a52
lea eax, [ebp - 0x78]
call fcn.00404938
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040495c
ret
Function at 0x4b1a70
Capabilities:
Copy file
Create process on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x4b1a78
xor eax, eax
push ebp
push 0x4b1cd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4b1cec
call fcn.00409444
test al, al
je 0x4b1cb3
push 0
lea eax, [ebp - 0x5c]
call fcn.00479a10
lea eax, [ebp - 0x5c]
mov edx, 0x4b1d24
call fcn.00404c00
mov eax, dword [ebp - 0x5c]
call fcn.00404df8
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x4b1d34
call sub.kernel32.dll_SetFileAttributesA
lea edx, [ebp - 0x64]
xor eax, eax
call fcn.00402b1c
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.00408bf4
mov eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x6c]
call fcn.00479a10
lea eax, [ebp - 0x6c]
mov edx, 0x4b1d6c
call fcn.00404c00
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
call fcn.00408bf4
mov edx, dword [ebp - 0x68]
pop eax
call fcn.00404d44
jne 0x4b1b43
mov eax, 0x4b1d84
call fcn.0040956c
push 0x64
call sub.kernel32.dll_Sleep_1
push 0
push 0x4b1d34
push 0x4b1db4
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 4]
mov edx, 0x4b1d84
call fcn.004049d0
lea edx, [ebp - 0x74]
xor eax, eax
call fcn.00402b1c
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
call fcn.00408bf4
mov eax, dword [ebp - 0x70]
mov edx, 0x4b1dec
call fcn.00404d44
jne 0x4b1bcd
lea eax, [ebp - 0x78]
call fcn.00479a10
lea eax, [ebp - 0x78]
mov edx, 0x4b1d24
call fcn.00404c00
mov eax, dword [ebp - 0x78]
call fcn.0040956c
push 0x64
call sub.kernel32.dll_Sleep_1
push 0
lea eax, [ebp - 0x7c]
call fcn.00479a10
lea eax, [ebp - 0x7c]
mov edx, 0x4b1d24
call fcn.00404c00
mov eax, dword [ebp - 0x7c]
call fcn.00404df8
push eax
push 0x4b1db4
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x80]
call fcn.00479a10
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 4]
mov ecx, 0x4b1d24
call fcn.00404c44
cmp dword [ebp - 4], 0
jne 0x4b1c58
push 0
lea edx, [ebp - 0x88]
mov eax, dword [0x4b8c5c]
mov eax, dword [eax]
call fcn.00475340
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.004096bc
lea eax, [ebp - 0x84]
mov edx, 0x4b1e24
call fcn.00404c00
mov eax, dword [ebp - 0x84]
call fcn.00404df8
push eax
push 0x4b1db4
call sub.kernel32.dll_CopyFileA
lea edx, [ebp - 0x90]
mov eax, dword [0x4b8c5c]
mov eax, dword [eax]
call fcn.00475340
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.004096bc
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 4]
mov ecx, 0x4b1e24
call fcn.00404c44
mov eax, dword [0x4b8c5c]
mov eax, dword [eax]
mov edx, 0x4b1e3c
call fcn.00474890
push 0x64
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004031e8
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 8
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404df8
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4b1cb3
call fcn.004047c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1ce0
lea eax, [ebp - 0x90]
mov edx, 0xe
call fcn.0040495c
lea eax, [ebp - 4]
call fcn.00404938
ret
Function at 0x4b5138
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0x4b51bc
push 0
mov eax, edi
call fcn.00404df8
push eax
push esi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x4b519f
mov eax, ebx
call fcn.00404bf8
push eax
mov eax, ebx
call fcn.00404df8
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404df8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4b51a3
xor eax, eax
jmp 0x4b51a5
mov al, 1
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b51c4
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 2
push 0
mov eax, dword [ebp + 0xc]
call fcn.00404df8
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4b5209
mov eax, dword [ebp + 0x10]
call fcn.00404df8
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete bl
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4b5438
Capabilities:
Log keystrokes

Disassembly:
mov eax, dword [0x4b8c94]
cmp word [eax], 1
jbe 0x4b54d9
mov eax, dword [0x4b8c1c]
cmp word [eax], 1
jbe 0x4b54d9
mov eax, dword [0x4b8c1c]
movzx eax, word [eax]
push eax
mov eax, dword [0x4b8c94]
movzx eax, word [eax]
push eax
call sub.user32.dll_SetCursorPos
push 0x21
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x4b8978]
cmp byte [eax], 0
jne 0x4b549e
push 0
push 0
push 0
push 0
push 2
call sub.user32.dll_mouse_event
push 0
push 0
push 0
push 0
push 4
call sub.user32.dll_mouse_event
jmp 0x4b54bd
mov dx, 0x2e
mov ax, 3
call fcn.00407894
push eax
push 0
push 0x312
push 0xffff
call sub.user32.dll_PostMessageA
mov eax, dword [0x4b8c94]
mov word [eax], 0
mov eax, dword [0x4b8c1c]
mov word [eax], 0
mov eax, dword [0x4b8978]
mov byte [eax], 0
mov eax, dword [0x4b8978]
cmp byte [eax], 1
jbe 0x4b5588
mov eax, dword [0x4b8c94]
cmp word [eax], 1
jne 0x4b550e
push 0
push 0
push 0
push 0x10
call sub.user32.dll_MapVirtualKeyA
push eax
push 0x10
call sub.user32.dll_keybd_event
push 0x58
call sub.kernel32.dll_Sleep_1
push 0
push 0
push 0
mov eax, dword [0x4b8978]
movzx eax, byte [eax]
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
mov eax, dword [0x4b8978]
mov al, byte [eax]
push eax
call sub.user32.dll_keybd_event
push 0x1c
call sub.kernel32.dll_Sleep_1
push 0
push 2
push 0
mov eax, dword [0x4b8978]
movzx eax, byte [eax]
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
mov eax, dword [0x4b8978]
mov al, byte [eax]
push eax
call sub.user32.dll_keybd_event
push 0x26
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x4b8c94]
cmp word [eax], 1
jne 0x4b5580
push 0
push 2
push 0
push 0x10
call sub.user32.dll_MapVirtualKeyA
push eax
push 0x10
call sub.user32.dll_keybd_event
mov eax, dword [0x4b8978]
mov byte [eax], 0
ret
Function at 0x4b5964
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 0x4b56b4
call fcn.00406ad8
xor eax, eax
push ebp
push 0x4b5bba
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004794ac
cmp al, 1
jne 0x4b599c
call fcn.004047c4
mov eax, dword [0x4b8c5c]
mov eax, dword [eax]
mov edx, 0x4b5bd0
call fcn.00474890
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00402b1c
mov eax, dword [ebp - 0x14]
mov edx, 0x4b5be4
call fcn.00404d44
jne 0x4b59ef
push 0x4b5be8
push 0
call sub.user32.dll_FindWindowA
test eax, eax
jbe 0x4b59e5
push 0
push 0
push 0x10
push eax
call sub.user32.dll_SendMessageA
push 0x378
call sub.kernel32.dll_Sleep
mov eax, 0x4b5bfc
call fcn.00409444
test al, al
jne 0x4b5a71
lea edx, [ebp - 0x18]
mov eax, 1
call fcn.00402b1c
mov eax, dword [ebp - 0x18]
mov edx, 0x4b5c34
call fcn.00404d44
je 0x4b5a71
push 1
push 0x4ba438
call sub.advapi32.dll_InitializeSecurityDescriptor
push 0
push 0
push 0xffffffffffffffff
push 0x4ba438
call sub.advapi32.dll_SetSecurityDescriptorDacl
mov dword [0x4ba42c], 0xc
mov dword [0x4ba430], 0x4ba438
xor eax, eax
mov dword [0x4ba434], eax
push 0x4b5c38
push 0
push 0x4ba42c
call fcn.00406dac
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
je 0x4b5b9f
push 0
push 0x4b5c5c
call sub.kernel32.dll_CreateDirectoryA_1
push 0
push 0x4b5c70
call sub.kernel32.dll_CreateDirectoryA_1
push 0
push 0x4b5c94
call sub.kernel32.dll_CreateDirectoryA_1
push 0
push 0x4b5cb0
call sub.kernel32.dll_CreateDirectoryA_1
push 0
push 0x4b5cd4
call sub.kernel32.dll_CreateDirectoryA_1
mov dl, 1
mov eax, 0x4b5d08
call fcn.0040e070
test al, al
jne 0x4b5add
mov dl, 1
mov eax, 0x4b5d14
call fcn.0040e070
test al, al
jne 0x4b5add
mov dl, 1
mov eax, 0x4b5d24
call fcn.0040e070
test al, al
je 0x4b5b12
mov eax, dword [0x4b8c50]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x34]
mov ecx, dword [0x4b89e0]
mov eax, dword [0x4b8c50]
mov eax, dword [eax]
mov edx, dword [0x4b4ffc]
mov ebx, dword [eax]
call dword [ebx + 0x30]
mov eax, dword [0x4b8c50]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x38]
jmp 0x4b5b9f
mov eax, dword [0x4b8c5c]
mov eax, dword [eax]
call fcn.00474c98
mov eax, dword [0x4b8c5c]
mov eax, dword [eax]
mov edx, 0x4b5d38
call fcn.00474890
lea edx, [ebp - 0x1c]
mov eax, 1
call fcn.00402b1c
mov eax, dword [ebp - 0x1c]
mov edx, 0x4b5d4c
call fcn.00404d44
je 0x4b5b70
mov ecx, dword [0x4b8b34]
mov eax, dword [0x4b8c5c]
mov eax, dword [eax]
mov edx, dword [0x4aef64]
call fcn.00474cb0
mov eax, dword [0x4b8c5c]
mov eax, dword [eax]
mov byte [eax + 0x5b], 0
jmp 0x4b5b93
mov ecx, dword [0x4b8a24]
mov eax, dword [0x4b8c5c]
mov eax, dword [eax]
mov edx, dword [0x496df0]
call fcn.00474cb0
mov eax, dword [0x4b8c5c]
mov eax, dword [eax]
mov byte [eax + 0x5b], 0
mov eax, dword [0x4b8c5c]
mov eax, dword [eax]
call fcn.00474d30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5bc1
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040495c
ret
Function at 0x4021f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x148
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
mov ebp, dword [esp + 0x154]
push esi
push edi
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00404c50
mov eax, dword [esp + 0x164]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
sub eax, 1
je 0x4022b0
sub eax, 1
je 0x40229e
sub eax, 1
jne 0x402300
lea ecx, [esp + 0x4c]
push ecx
push eax
push eax
push 0x23
push eax
call fcn.00403140
add esp, 0x14
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x40226c
mov byte [esp + eax + 0x4c], 0x5c
mov byte [esp + eax + 0x4d], 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402300
mov byte [ebp], 0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404c23
add esp, 0x148
ret
lea ecx, [esp + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402254
push 0x104
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x4022d4
mov byte [esp + eax + 0x4c], 0x5c
inc eax
lea esi, [esp + eax + 0x4c]
push str.Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402280
push 0x40b28c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.2406202008151773892657920
call edi
dec eax
cmp eax, 8
jl 0x402284
mov al, byte [eax + str.2406202008151773892657920]
cmp al, 0x30
jl 0x402284
cmp al, 0x39
jg 0x402284
movsx esi, al
sub esi, 0x30
and esi, reloc.WS2_32.dll_closesocket
jns 0x40233a
dec esi
or esi, 0xfffffffc
inc esi
push str.2406202008151773892657920
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea eax, [eax + str.2406202008151773892657920]
nop
mov dl, byte [eax]
test dl, dl
je 0x4023b5
test esi, esi
jle 0x4023b5
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xc], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023aa
test esi, esi
jle 0x4023aa
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xd], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023ad
test esi, esi
jle 0x4023ad
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xe], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023b2
test esi, esi
jle 0x4023b2
add dl, dl
inc dl
mov byte [esp + ecx + 0xf], dl
add ecx, 4
dec esi
inc eax
cmp ecx, 0x40
jb 0x402350
jmp 0x4023b5
inc ecx
jmp 0x4023b5
add ecx, 2
jmp 0x4023b5
add ecx, 3
mov byte [esp + ecx + 0xc], 0x2e
push 0x40b288
lea ecx, [esp + ecx + 0x11]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4c]
push edx
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + eax + 0x54]
push ecx
call esi
push 0x103
lea edx, [esp + 0x50]
push edx
push ebp
call esi
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00404c23
add esp, 0x148
ret
Function at 0x412082
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x418680], 0
push ebx
push esi
mov esi, 0x418688
jne 0x4120ae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4186a0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x418680], 1
push dword [0x4186a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x41214b
push 0x14
push 8
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412175
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x418684]
test eax, eax
je 0x4120f0
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x418684], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41217a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4186a0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412175
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x10003ebf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x10003ece
pop dword [ebp - 0x3c]
mov eax, 0x10003ece
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xb7ec504a
sub dword [ebp - 0x4c], 0x699a0aff
mov dword [ebp - 0x48], 0x5186c827
add dword [ebp - 0x48], 0xe0ac841e
mov dword [ebp - 0x44], 0xb1ed6788
sub dword [ebp - 0x44], 0x65a1235a
mov dword [ebp - 0x40], 0x9ac0825a
sub dword [ebp - 0x40], 0x9ac0825a
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xbe70290e
add dword [ebp - 0x4c], 0xb6024048
mov dword [ebp - 0x48], 0xca8b7d96
sub dword [ebp - 0x48], 0x891f1c21
mov dword [ebp - 0x44], 0xa6bf3b04
add dword [ebp - 0x44], 0xbcb03168
mov dword [ebp - 0x40], 0xcd9e0885
sub dword [ebp - 0x40], 0xcd9e0885
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xe607ab93
add eax, 0x29f8a4ad
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x355ee
push 0
call eax
mov ecx, 0x18607194
sub ecx, 0x18602ea1
xor edi, edi
add edi, eax
mov esi, 0x655e2889
sub esi, 0x555d7289
add esi, dword [ebp - 0x3c]
mov ebx, 0xa25ba584
sub ebx, 0xf8094578
mov dword [ebp - 0x38], 0x8a983318
mov edx, dword [esi]
xor dword [ebp - 0x1c], ebx
xor edx, ebx
xor dword [ebp - 0x20], 0xd354a86b
mov dword [edi], edx
mov dword [ebp - 0x2c], 0x3a7d73d4
add edi, 4
add esi, 4
loop 0x10003fe8
add eax, 0x36f0fddb
sub eax, 0x36efff3c
xor ebx, ebx
add ebx, eax
add eax, 0x6044881d
sub eax, 0x60448818
mov ecx, 0xab6a85d1
sub ecx, 0x9b6a85d1
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x930338
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x93033e
pop ebp
sub ebp, 6
sub ebp, 0x530338
jmp 0x93039c
jmp 0x9303a5
mov eax, 0x530338
add eax, ebp
add eax, 0x93
mov ecx, 0x621
mov edx, 0x69826594
xor byte [eax], dl
inc eax
dec ecx
jne 0x9303bc
jmp 0x9303cf
invalid