joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e2e8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x49e2fa
add esp, 0xfffffff0
call fcn.004052c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043ab64
mov eax, dword [0x4abf18]
mov dword [eax + 4], ebx
mov dword [eax], 0x49e744
mov eax, dword [0x4abf24]
mov dword [eax + 4], ebx
mov dword [eax], 0x49e750
mov eax, ebx
call fcn.0049e75c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x4241e8]
call fcn.00404d78
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4241e8]
call fcn.00404d78
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4241e8]
call fcn.00404d78
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4241e8]
call fcn.00404d78
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x4241e8]
call fcn.00404d78
mov dword [ebx + 0x78], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x44], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x5c]
push eax
mov eax, 0x498fdc
push eax
push 0
push 0
mov eax, dword [0x4ac0b0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x44539c]
call fcn.0044a3a4
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x44539c]
call fcn.0044a3a4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x44539c]
call fcn.0044a3a4
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x44539c]
call fcn.0044a3a4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x44539c]
call fcn.0044a3a4
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.0049ecbc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x49eb2c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x49eb2c
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x49eb2c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x49eb2c
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x49eb2c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x49e475
call fcn.0040531c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x49e8cc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49ea79
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x49ea5a
mov dl, 1
mov eax, dword [0x4267b0]
call fcn.004325dc
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.0040682c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x49ea49
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.00480f60
test al, al
je 0x49ea3c
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x49ea88
lea eax, [ebp - 0x394]
call fcn.00411910
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x49ea3c
xor eax, eax
push ebp
push 0x49ea35
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x49eaf8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x49ea1e
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406a14
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
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 + 0x40]
jne 0x49ea1e
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406a14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ea3c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x49e93f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00432518
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ea80
lea eax, [ebp - 0x3a0]
call fcn.0040681c
ret

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

Disassembly:
push ecx
mov eax, dword [0x4b2280]
cmp byte [eax + 0xad], 0
jne 0x49f64a
cmp dword [0x4b2298], 0
jne 0x49f60a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4abdf0]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4b2298], eax
cmp dword [0x4b2294], 0
jne 0x49f625
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4b2294], eax
cmp dword [0x4b229c], 0
jne 0x49f64a
push esp
push 0
push 0
mov eax, dword [0x4abdec]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b229c], eax
pop edx
ret
Function at 0x49f970
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x49f987
add esp, 0xfffffff0
call fcn.004052c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043ab64
mov eax, dword [0x4abe54]
cmp byte [eax], 0
jne 0x49f9b4
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4ac090]
cmp word [eax + 2], 0
jne 0x49f9ce
mov eax, dword [0x4ac090]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004a1a68
mov eax, dword [0x4ac164]
cmp word [eax + 2], 0
jne 0x49f9e8
mov eax, dword [0x4ac164]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004a1c78
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x44539c]
call fcn.0044a3a4
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4a2228
mov dl, 1
mov eax, dword [0x4241e8]
call fcn.00404d78
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4241e8]
call fcn.00404d78
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x448a34]
call fcn.0045119c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x49fbc8
mov eax, dword [0x4abf90]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00451630
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4a2510
mov dl, 1
mov eax, dword [0x4241e8]
call fcn.00404d78
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4abf90]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041175c
test eax, eax
je 0x49faf9
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00411540
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00411740
test eax, eax
je 0x49fb11
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406a14
push ebx
push 0x4a1438
call fcn.004955c4
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4abe54]
cmp byte [eax], 0
jne 0x49fb62
mov eax, ebx
call fcn.0049fd3c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004a273c
mov eax, ebx
call fcn.004a3370
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x49fbbf
call fcn.0040531c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a0010
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4a00b2
cmp dword [ebx + 0x94], 0
jne 0x4a00ac
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x49ff5c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4a00ac
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_GetWindowLongW
test al, 8
je 0x4a0072
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4a00ac
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.0042efb8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4a0081
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4a02d0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4b2280]
cmp dword [eax + 0x170], 0
je 0x4a0435
test bl, bl
jne 0x4a0383
cmp dword [esi + 0x9c], 0
jne 0x4a0378
mov eax, esi
call fcn.004a31c0
push eax
push 0x4a01dc
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4a0349
mov eax, dword [0x4b2280]
cmp byte [eax + 0xd3], 0
je 0x4a0349
mov eax, dword [esi + 0xd8]
call fcn.00407e30
mov edi, eax
cmp edi, 0
jl 0x4a0349
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a0332
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a0378
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042efb8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a0358
inc dword [esi + 0x9c]
jmp 0x4a0435
cmp dword [esi + 0x9c], 0
jle 0x4a0435
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4a0435
cmp dword [esi + 0x44], 0
je 0x4a03e0
mov eax, dword [0x4b2280]
cmp byte [eax + 0xd3], 0
je 0x4a03e0
mov eax, dword [esi + 0xd8]
call fcn.00407e30
mov edi, eax
cmp edi, 0
jl 0x4a03e0
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a03c9
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a040f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042efb8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a03ef
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x49349c]
call fcn.00407ff0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4a1084
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4a10ef
cmp byte [ebx + 0xd3], 0
jne 0x4a10ef
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406968
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4a10dc
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4a10fc
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040682c
jmp 0x4a10fc
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040682c
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4a2924
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4a2992
mov eax, esi
call fcn.0047b134
test al, al
je 0x4a2992
mov eax, dword [ebx + 0x84]
call fcn.0047adb4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4a2992
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4a2986
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047adb4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00471d8c
jmp 0x4a2992
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004a275c
pop esi
pop ebx
ret

Function at 0x8ccba6
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x8cc92e
push 0xfd9abd4c
pop ebx
call fcn.008ccbe0
add ebx, ebx
sub ebx, esi
xor dword [ecx], eax
dec esi
sub ebx, 0x791560e8
inc ecx
sub ebx, esi
mov esi, 0xe3a388c5
add ebx, ebx
cmp ecx, edx
jne fcn.008ccba6
add ebx, esi
ret
Function at 0x402a20
Capabilities:
Create process on windows
Create process suspended
Set current directory

Disassembly:
push ebp
mov eax, 0x325fc
mov ebp, esp
push edi
push esi
push ebx
call fcn.004f2010
mov byte [ebp - 0x128], 0
xor ebx, ebx
mov byte [ebp - 0x19128], 0
mov byte [ebp - 0x325c9], 0
call sub.msvcrt.dll___p___argc
cmp dword [eax], ebx
jle 0x402a80
cmp byte [ebp - 0x325c9], 0
jne 0x402ac0
call sub.msvcrt.dll___p___argv
cld
mov edx, dword [eax]
mov ecx, 7
mov edi, str._START
mov esi, dword [edx + ebx*4]
repe cmpsb byte [esi], byte es:[edi]
je 0x402b00
inc ebx
call sub.msvcrt.dll___p___argc
cmp dword [eax], ebx
jg 0x402a50
cmp byte [ebp - 0x325c9], 0
je 0x402ab4
xor ebx, ebx
lea edi, [ebp - 0x128]
jmp 0x402a9d
inc ebx
cmp ebx, 0x28
jge 0x402b37
mov ecx, dword [ebx*4 + section..data]
mov dword [esp], edi
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x402a93
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll___p___argv
mov esi, dword [eax]
lea eax, [ebp - 0x19128]
mov edi, dword [esi + ebx*4]
mov dword [esp], eax
inc ebx
mov dword [esp + 4], edi
call sub.msvcrt.dll_strcat
lea edx, [ebp - 0x19128]
mov dword [esp], edx
call sub.msvcrt.dll_strlen
mov ecx, 0x20
mov word [eax + ebp - 0x19128], cx
jmp 0x402a77
mov byte [ebp - 0x325c9], 1
inc ebx
call sub.msvcrt.dll___p___argc
cmp dword [eax], ebx
jle 0x402a76
call sub.msvcrt.dll___p___argv
mov esi, dword [eax]
lea eax, [ebp - 0x128]
mov edi, dword [esi + ebx*4]
mov dword [esp], eax
inc ebx
mov dword [esp + 4], edi
call sub.msvcrt.dll_strcpy
jmp 0x402a77
mov dword [esp], edi
xor edx, edx
lea esi, [ebp - 0x19348]
mov dword [esp + 0xc], edx
lea ebx, [ebp - 0x19238]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
call sub.msvcrt.dll__splitpath
mov dword [esp + 8], ebx
mov ecx, 0x5053f3
lea ebx, [ebp - 0x19458]
mov dword [esp + 4], ecx
mov dword [esp + 0xc], esi
lea esi, [ebp - 0x19128]
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
mov ebx, str.__s___s
call sub.KERNEL32.dll_SetCurrentDirectoryA
sub esp, 4
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x32568]
mov dword [esp + 0xc], esi
mov esi, 0x100
mov dword [esp + 8], edi
lea edi, [ebp - 0x325c8]
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 0x24], edi
lea eax, [ebp - 0x325b8]
xor edx, edx
mov dword [esp + 0x20], eax
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x1c], edx
xor eax, eax
xor edx, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 4], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402c10
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov eax, 0x104
mov ebp, esp
push ebx
sub esp, 0x134
lea ebx, [ebp - 0x118]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
mov ecx, ebx
mov esi, esi
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x402c40
and edx, 0x8080
jne 0x402c66
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, ebx
cmp ecx, 3
jbe 0x402d00
mov ecx, ebx
nop
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x402c80
and edx, 0x8080
jne 0x402ca6
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, ebx
xor edx, edx
mov byte [ecx + ebp - 0x11c], dl
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x402d00
mov dword [esp + 0xc], ebx
mov edx, 5
xor eax, eax
mov dword [esp + 0x14], edx
mov ecx, 0x505400
mov ebx, str.explorer
mov dword [esp + 0x10], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
lea esi, [esi]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x403190
Capabilities:
Check if file exists
Check os version
Create directory
Create process on windows
Delete file
Persist via run registry key
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1dc
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
call fcn.00403d80
mov dword [esp], eax
mov edi, eax
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x403395
mov dword [esp], edi
call sub.KERNEL32.dll_SetCurrentDirectoryA
sub esp, 4
mov ebx, 0x104
call fcn.00403ec0
mov dword [esp + 8], ebx
lea ecx, [ebp - 0x128]
mov esi, eax
mov dword [esp + 4], ecx
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
mov dword [esp], esi
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x403388
mov dword [esp + 4], esi
xor eax, eax
lea ebx, [ebp - 0x128]
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00408ee0
mov dword [esp], esi
call fcn.0040a840
mov dword [esp], esi
mov ecx, 6
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], esi
call fcn.00408fe0
mov edx, 0x94
lea eax, [ebp - 0x1c8]
mov dword [ebp - 0x1c8], edx
mov dword [esp], eax
call sub.KERNEL32.dll_GetVersionExA
sub esp, 4
cmp dword [ebp - 0x1c4], 5
jbe 0x4032c0
call fcn.00404210
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.00409800
mov dword [esp + 4], esi
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x40330f
test edi, edi
je 0x4032a7
mov dword [esp], edi
call fcn.004eff80
test esi, esi
je 0x4032b3
mov dword [esp], esi
call fcn.004eff80
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov ebx, eax
call fcn.00404210
mov dword [esp + 0xc], eax
mov ecx, 1
mov edx, 0x50547c
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp], 0x80000001
call fcn.004096d0
mov dword [esp + 4], esi
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x40329b
mov dword [esp], esi
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x40329b
mov eax, dword [0x536100]
test eax, eax
jne 0x4033cc
mov dword [esp + 8], esi
mov eax, 5
xor ebx, ebx
mov dword [esp + 0x14], eax
mov ecx, 0x5054aa
mov edx, 0x505400
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
test edi, edi
je 0x403370
mov dword [esp], edi
call fcn.004eff80
test esi, esi
je 0x40337c
mov dword [esp], esi
call fcn.004eff80
mov dword [esp], 0
call sub.msvcrt.dll_exit
mov dword [esp], esi
call sub.msvcrt.dll_remove
jmp 0x403213
mov dword [esp], edi
call sub.msvcrt.dll__mkdir
mov dword [esp], edi
mov edx, 6
mov dword [esp + 4], edx
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], edi
call fcn.00408fe0
mov dword [esp], edi
xor eax, eax
mov dword [esp + 4], eax
call fcn.00402d10
jmp 0x4031cb
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x403330
Function at 0x4033e0
Capabilities:
Check if file exists
Create directory
Create process on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x15c
mov dword [ebp - 0x13c], esp
call fcn.00403fd0
mov dword [esp], eax
mov esi, eax
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x4035a5
mov dword [esp], esi
call sub.msvcrt.dll_strlen
add eax, 0x26
and eax, 0xfffffff0
call fcn.004f2010
mov dword [esp + 8], esi
lea ebx, [esp + 0x27]
mov edx, str._s
mov dword [esp + 4], edx
and ebx, 0xfffffff0
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
call sub.msvcrt.dll__findfirst
mov dword [ebp - 0x140], eax
test eax, eax
je 0x40353d
lea edi, [ebp - 0x124]
lea esi, [esi]
lea edi, [edi]
mov dword [ebp - 0x144], esp
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov ebx, eax
mov ecx, edi
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x403490
and edx, 0x8080
jne 0x4034b6
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, edi
lea eax, [ebx + ecx + 0x26]
and eax, 0xfffffff0
call fcn.004f2010
mov dword [esp + 0xc], edi
lea ebx, [esp + 0x27]
mov edx, 0x50540e
mov dword [esp + 4], edx
and ebx, 0xfffffff0
mov dword [esp + 8], esi
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], edi
mov ecx, str..dll
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x403557
mov dword [esp], ebx
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
mov esp, dword [ebp - 0x144]
lea edx, [ebp - 0x138]
mov dword [esp + 4], edx
mov ebx, dword [ebp - 0x140]
mov dword [esp], ebx
call sub.msvcrt.dll__findnext
test eax, eax
je 0x403470
mov edi, dword [ebp - 0x140]
mov dword [esp], edi
call sub.msvcrt.dll__findclose
test esi, esi
je 0x403549
mov dword [esp], esi
call fcn.004eff80
mov esp, dword [ebp - 0x13c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
mov ecx, str..exe
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x403509
mov dword [esp + 8], ebx
mov ecx, 5
xor eax, eax
mov dword [esp + 0x14], ecx
mov edx, 0x5054aa
mov ebx, 0x505400
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
jmp 0x403509
mov dword [esp], esi
call sub.msvcrt.dll__mkdir
mov dword [esp], esi
mov ecx, 6
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], esi
call fcn.00408fe0
jmp 0x40340d