joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452fc8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453173
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453154
mov dl, 1
mov eax, dword [0x411ef8]
call fcn.00403218
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f98
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x453143
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00440fd4
test al, al
je 0x453136
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x453184
lea eax, [ebp - 0x254]
call fcn.00408d18
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x453136
xor eax, eax
push ebp
push 0x45312f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4531bc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x453118
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404208
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x453118
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453136
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x453039
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004159d4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45317a
lea eax, [ebp - 0x260]
call fcn.00403f98
ret

Function at 0x453aa8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46ebdc]
cmp byte [eax + 0xa5], 0
jne 0x453b19
cmp dword [0x46ebf4], 0
jne 0x453ada
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x453a64
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46ebf4], eax
cmp dword [0x46ebf0], 0
jne 0x453af5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46ebf0], eax
cmp dword [0x46ebf8], 0
jne 0x453b19
push esp
push 0
push 0
push 0x453a08
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46ebf8], eax
pop edx
ret
Function at 0x453c10
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x453c27
add esp, 0xfffffff0
call fcn.0040356c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419878
mov eax, dword [0x46d9b0]
cmp word [eax + 2], 0
jne 0x453c4f
mov eax, dword [0x46d9b0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004552e8
mov eax, dword [0x46da64]
cmp word [eax + 2], 0
jne 0x453c69
mov eax, dword [0x46da64]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004554e0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411adc]
call fcn.00403218
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411adc]
call fcn.00403218
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41bdcc]
call fcn.0042364c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x453df0
mov eax, dword [0x46d8d0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423a1c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455a80
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46d8d0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c524
test eax, eax
je 0x453d5e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004086f8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c54c
test eax, eax
je 0x453d72
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404208
mov eax, dword [0x46d7a8]
cmp byte [eax], 0
jne 0x453da6
mov eax, ebx
call fcn.00453f18
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00455c5c
mov eax, ebx
call fcn.00456620
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453de6
call fcn.004035c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454198
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46ebdc]
cmp dword [eax + 0x30], 0
je 0x454242
cmp dword [ebx + 0x94], 0
jne 0x45423c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454128
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45423c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x454202
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45423c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413e44
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454211
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454da4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x454dd9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404088
jmp 0x454de6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fec
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455e38
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455e79
mov eax, esi
call fcn.0043c600
test al, al
je 0x455e79
mov eax, dword [ebx + 0x84]
call fcn.0043c2fc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455e79
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c2fc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x459540
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45956e
mov eax, ebx
call fcn.00459ff4
cmp dword [ebx + 0x40], 0
je 0x459567
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4595df
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4595d1
cmp dword [ebx + 8], 0
je 0x459590
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4595a2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4595d1
cmp dword [ebx + 8], 0
je 0x459583
cmp eax, 3
je 0x4595b5
dec eax
jne 0x459583
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 0x459583
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x459583
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4595fd
cmp dword [ebx + 0x14], 0xcc
je 0x4595fd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00459608
pop ebx
ret
Function at 0x46b014
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x46b10d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dl, 1
mov eax, dword [0x42a4b4]
call fcn.0042a620
mov esi, eax
mov edx, 0x80000002
mov eax, esi
call fcn.0042a6fc
mov cl, 1
mov edx, 0x46b124
mov eax, esi
call fcn.0042a840
mov edx, 0x46b140
mov eax, esi
call fcn.0042adcc
test al, al
je 0x46b0de
mov eax, esi
call fcn.0042a6cc
mov cl, 1
mov edx, 0x46b164
mov eax, esi
call fcn.0042a840
lea ecx, [ebp - 4]
mov edx, 0x46b198
mov eax, esi
call fcn.0042ab58
mov eax, dword [ebp - 4]
mov edx, 0x46b1b0
call fcn.004043a4
jae 0x46b098
mov bl, 1
mov eax, dword [ebp - 4]
mov edx, 0x46b1b0
call fcn.004043a4
jne 0x46b0e0
mov eax, esi
call fcn.0042a6cc
xor ecx, ecx
mov edx, 0x46b1bc
mov eax, esi
call fcn.0042a840
lea ecx, [ebp - 4]
mov edx, 0x46b1f4
mov eax, esi
call fcn.0042ab58
mov eax, dword [ebp - 4]
mov edx, 0x46b20c
call fcn.004043a4
jae 0x46b0e0
mov bl, 1
jmp 0x46b0e0
mov bl, 1
test bl, bl
je 0x46b0f0
push 5
push 0x46b210
call sub.kernel32.dll_WinExec
mov eax, esi
call fcn.0042a6cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b114
lea eax, [ebp - 4]
call fcn.00403f98
ret
Function at 0x405fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push 0
push eax
push esi
call fcn.004084e0
add esp, 4
push eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x7f
call fcn.00406010
add esp, 4
pop esi
pop ebp
ret

Function at 0x406010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x417254]
push esi
mov esi, dword [ebp + 8]
test eax, eax
je 0x406026
push esi
call eax
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x407ba0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4172e8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
jne 0x407c98
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
push 0x4172d8
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x407be9
mov byte [0x4172d8], bl
call fcn.00407ab0
test eax, eax
jge 0x407bfb
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
lea edx, [ebp - 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
jne 0x407c3c
push 0xe
call fcn.00403f50
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x407c57
push 0xe
push ebx
push esi
call fcn.0040bc50
add esp, 0xc
mov byte [esi], 1
mov byte [esi + 1], 1
jmp 0x407c57
mov eax, dword [ebp - 4]
push eax
mov esi, eax
call fcn.00407b50
add esp, 4
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov esi, dword [ebp - 4]
mov eax, dword [0x4172e8]
mov dword [eax], esi
mov ecx, dword [0x4172e8]
mov dword [ecx + 4], 5
mov edx, dword [0x4172e8]
mov dword [edx + 0xc], ebx
mov eax, dword [0x4172e8]
mov dword [eax + 0x10], 0x416eb0
mov ecx, dword [0x4172e8]
mov dword [ecx + 8], str._unavail_
mov eax, dword [0x4172ec]
inc eax
mov dword [0x4172ec], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407ed0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
mov byte [ebp - 8], 0
mov byte [ebp - 7], 0
mov byte [ebp - 6], 0
mov byte [ebp - 5], 0
mov byte [ebp - 4], 0
mov byte [ebp - 3], 5
je 0x407fa8
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x407fa8
call fcn.00407ba0
cmp eax, 0xffffffff
je 0x407fa8
push esi
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
lea ecx, [ebp - 8]
push 6
push ecx
push eax
call fcn.0040a960
add esp, 0xc
test eax, eax
je 0x407f37
xor edi, edi
jmp 0x407f3a
mov edi, dword [ebp + 8]
mov eax, dword [0x4172ec]
xor ebx, ebx
test eax, eax
jle 0x407fa8
xor esi, esi
mov edx, dword [0x4172e8]
mov eax, dword [edx + esi]
test eax, eax
je 0x407fa8
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, 1
jne 0x407f88
mov edx, dword [0x4172e8]
mov eax, dword [edx + esi + 0xc]
cmp edi, eax
je 0x407f9f
test edi, edi
je 0x407f88
test eax, eax
je 0x407f88
push eax
push edi
call fcn.00407610
add esp, 8
test eax, eax
je 0x407f9f
mov eax, dword [0x4172ec]
inc ebx
add esi, 0x14
cmp ebx, eax
jl 0x407f47
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408070
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp eax, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
je 0x4080a3
push eax
call fcn.00408250
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x4080a3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
lea ecx, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push esi
push edx
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov edi, eax
call fcn.0040bb80
cmp edi, esi
jne 0x4080da
cmp dword [0x41a920], 0x7a
je 0x4080da
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov dword [0x41a920], esi
inc ecx
push ecx
call fcn.00403f50
mov edi, eax
add esp, 4
cmp edi, esi
jne 0x4080fd
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
inc edx
push edx
call fcn.00403f50
mov esi, eax
add esp, 4
test esi, esi
jne 0x408123
push edi
call fcn.00404080
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
lea ecx, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push esi
push edx
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ecx
push esi
push ebx
push edx
push edi
call fcn.00407980
add esp, 0x14
mov ebx, eax
push esi
call fcn.00404080
add esp, 4
push edi
call fcn.00404080
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409280
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push str.SHELL
call fcn.00404d30
add esp, 4
test eax, eax
jne 0x409338
push str.shell
call fcn.00404d30
add esp, 4
test eax, eax
jne 0x409338
push str.COMSPEC
call fcn.00404d30
add esp, 4
test eax, eax
jne 0x409338
push str.ComSpec
call fcn.00404d30
add esp, 4
test eax, eax
jne 0x409338
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
push 0x104
je 0x409310
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x108]
push ecx
push str._s_command.com
push 0x41a3a8
call fcn.00404120
add esp, 0xc
jmp 0x409346
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push eax
push str._s_cmd.exe
push 0x41a3a8
call fcn.00404120
add esp, 0xc
jmp 0x409346
push eax
push 0x41a3a8
call fcn.004075e0
add esp, 8
push 0x41a3a8
call fcn.0040d7a0
add esp, 4
mov esi, eax
push 0x414820
push esi
call fcn.00407610
add esp, 8
test eax, eax
je 0x4093c8
push str.sh.exe
push esi
call fcn.00407610
add esp, 8
test eax, eax
je 0x4093c8
push 0x414814
push esi
call fcn.00407610
add esp, 8
test eax, eax
je 0x4093c8
push str.csh.exe
push esi
call fcn.00407610
add esp, 8
test eax, eax
je 0x4093c8
push 0x414808
push esi
call fcn.00407610
add esp, 8
test eax, eax
je 0x4093c8
push str.rsh.exe
push esi
call fcn.00407610
add esp, 8
mov byte [0x4147fc], 0x2f
test eax, eax
jne 0x4093cf
mov byte [0x4147fc], 0x2d
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409460
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x1400
lea eax, [ebp - 8]
push 0
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x409491
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41a920], eax
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push esi
push edx
call fcn.0040b220
mov esi, dword [ebp + 8]
add esp, 4
mov dword [esi], eax
mov eax, dword [ebp - 8]
push eax
call fcn.0040b220
add esp, 4
mov dword [esi + 4], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40baa0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40bab8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x414a14], 0xffffffff
jne 0x40bb01
lea eax, [ebp - 0x94]
mov dword [0x414a14], 0x220
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x40bb01
cmp dword [ebp - 0x90], 5
jb 0x40bb01
mov eax, dword [0x414a14]
or ah, 4
mov dword [0x414a14], eax
mov eax, dword [0x414a14]
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x10]
push 0
push 2
push esi
lea edx, [ebp + 0xc]
push 1
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x40bb2b
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40bb38
mov dword [0x41a920], 0x459
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40be90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40bf6b
cmp eax, dword [0x41a924]
jge 0x40bf6b
mov edx, dword [0x41a92c]
mov ecx, dword [edx + eax*4]
test ecx, ecx
je 0x40bf6b
cmp ecx, 0xffffffff
jne 0x40bed3
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push eax
call fcn.0040f4e0
add esp, 0xc
pop ebp
ret
lea ecx, [ebp + 0x10]
push 0
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [0x41a910], 0
mov edx, dword [edx + eax*4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [ebp + 0x10]
jne 0x40bf39
mov ecx, dword [0x41a910]
test ecx, ecx
je 0x40bf1f
mov dword [0x41a910], 0
mov dword [0x41a920], 0xfffffff6
or eax, 0xffffffff
pop ebp
ret
test eax, eax
ja 0x40bf78
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x40bf32
xor eax, eax
pop ebp
ret
call fcn.0040bb80
pop ebp
ret
test eax, eax
jne 0x40bf78
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x41a910]
test eax, eax
je 0x40bf66
mov dword [0x41a910], 0
mov dword [0x41a920], 0xfffffff6
or eax, 0xffffffff
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop ebp
ret
mov dword [0x41a920], 6
or eax, 0xffffffff
pop ebp
ret

Function at 0x40da90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
jl 0x40db07
cmp ecx, dword [0x41a924]
jge 0x40db07
mov eax, dword [0x41a92c]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x40db07
cmp eax, 0xffffffff
jne 0x40dac6
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
call fcn.0040f4f0
add esp, 0xc
pop ebp
ret
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push 0
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40db02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x40daf1
cmp eax, 0xe9
jne 0x40dafb
push 0xd
call fcn.004104a0
add esp, 4
call fcn.0040bb80
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop ebp
ret
mov dword [0x41a920], 6
or eax, 0xffffffff
pop ebp
ret
Function at 0x40f220
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x354
call fcn.00403f50
mov esi, eax
add esp, 4
test esi, esi
jne 0x40f248
mov dword [0x41a920], 8
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
call fcn.004084e0
mov edi, eax
add esp, 4
cmp edi, 0x100
jle 0x40f278
push esi
mov dword [0x41a920], 0xfffffffe
call fcn.00404080
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
lea ebx, [esi + 0x24c]
push ecx
push ebx
call fcn.004075e0
add esp, 8
push ebx
call fcn.0040a920
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x40f2b9
push esi
mov dword [0x41a920], 3
call fcn.00404080
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp edi, 2
jne 0x40f2c7
mov edx, dword [ebp + 8]
cmp byte [edx + 1], 0x3a
je 0x40f2e7
cmp byte [edi + esi + 0x24b], 0x2f
je 0x40f2e7
lea eax, [edi + esi + 0x24c]
push 0x414b14
push eax
call fcn.004075e0
add esp, 8
inc edi
mov dword [esi + 0x350], edi
mov dword [esi + 0x144], 0
mov dword [esi], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40f360
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x144]
test eax, eax
jne 0x40f3da
mov eax, dword [esi + 0x350]
push 4
push 0x414b18
lea edi, [eax + esi + 0x24c]
push edi
call fcn.004087a0
add esp, 0xc
lea eax, [esi + 4]
lea ebx, [esi + 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esi], eax
call fcn.0040bb80
mov byte [edi], 0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40f3f0
push ebx
call fcn.004107b0
and eax, 0x80
add esp, 4
mov dword [esi + 0x248], eax
mov eax, dword [esi + 0x144]
inc eax
mov dword [esi + 0x144], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [esi]
lea ecx, [esi + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f40b
call fcn.0040bb80
cmp dword [0x41a920], 0x12
jne 0x40f403
mov dword [0x41a920], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x144]
pop edi
inc eax
mov dword [esi + 0x144], eax
pop esi
xor eax, eax
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret