joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003ab00
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100560b4], eax
je 0x1003ab1d
mov eax, 0x10dd
jmp 0x1003ac00
mov eax, dword [0x100560c4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003ab9c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1003ab78
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1003ab78
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.100399a0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1003c055
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1003ab25
mov dword [0x100560c4], 0
call fcn.1003a280
mov ecx, dword [0x100560c0]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1003abea
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1003c055
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1003abb4
mov dword [0x100560c0], 0
mov dword [0x100560b4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003b0e0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100560b8], 0
je 0x1003b0f9
mov eax, dword [0x100560b8]
jmp 0x1003b198
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1003b10a
xor eax, eax
jmp 0x1003b198
push 8
call fcn.1003c002
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003b162
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1003b14b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1003c055
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100560b8], eax
mov dword [0x100560bc], 0
mov eax, dword [ebp - 8]
jmp 0x1003b198
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1003b17a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003b12a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100560c0]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100560c0], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4073a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4073b9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4073f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4073f0
lea ebx, [ebx]
cmp esi, edx
jae 0x4073f4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4073e0
cmp esi, edx
jb 0x4073fb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40a070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429748
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x43481c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
mov edx, 0x435c18
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0040a580
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
je 0x40a17d
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040a2d0
mov edi, dword [ebp - 0x28]
test eax, eax
jne 0x40a16d
test edi, edi
je 0x40a17d
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
push 0x430cd8
push eax
mov byte [ebp - 4], 3
call fcn.004071c0
mov esi, dword [ebp - 0x14]
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a120
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 2
push 0
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
lea edx, [esi - 0x10]
or esi, 0xffffffff
inc ebx
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40a170
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40a170
or esi, 0xffffffff
test edi, edi
je 0x40a180
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a180
or esi, 0xffffffff
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40a1c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425d1e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00418afb
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x425d56
xor eax, eax
jmp 0x425d82
cmp esi, dword [ebp - 4]
je 0x425d7f
cmp dword [ebp + 0xc], 0
je 0x425d7f
push dword [edi + 0x9c]
call fcn.0042592c
push dword [edi + 0x9c]
mov esi, eax
call fcn.00416a15
pop ecx
pop ecx
cmp esi, eax
je 0x425d52
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x5b3b0987
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x79f4e07
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x44788f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042f26a
and dword [ebp - 4], 0
cmp dword [0x45bde4], 0
mov ebx, eax
jne 0x447940
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4479f1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4479f1
push eax
call fcn.0042f1f8
mov dword [esp], 0x4520ac
push edi
mov dword [0x45bde4], eax
call esi
push eax
call fcn.0042f1f8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45bde8], eax
call esi
push eax
call fcn.0042f1f8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45bdec], eax
call esi
push eax
call fcn.0042f1f8
pop ecx
mov dword [0x45bdf4], eax
test eax, eax
je 0x447940
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042f1f8
pop ecx
mov dword [0x45bdf0], eax
mov eax, dword [0x45bdf0]
cmp eax, ebx
je 0x447998
cmp dword [0x45bdf4], ebx
je 0x447998
push eax
call fcn.0042f273
push dword [0x45bdf4]
mov esi, eax
call fcn.0042f273
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x447998
test edi, edi
je 0x447998
call esi
test eax, eax
je 0x44798f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44798f
test byte [ebp - 0xc], 1
jne 0x447998
or dword [ebp + 0x10], 0x200000
jmp 0x4479d1
mov eax, dword [0x45bde8]
cmp eax, ebx
je 0x4479d1
push eax
call fcn.0042f273
pop ecx
test eax, eax
je 0x4479d1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4479d1
mov eax, dword [0x45bdec]
cmp eax, ebx
je 0x4479d1
push eax
call fcn.0042f273
pop ecx
test eax, eax
je 0x4479d1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45bde4]
call fcn.0042f273
pop ecx
test eax, eax
je 0x4479f1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4479f3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401a6a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401aa9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401aa9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401aa9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401aa9
cmp dword [ecx + 0x74], 0xe
jbe 0x401aa9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40ab80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40abad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40abad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4027c0
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [ebp - 0x14], esp
mov dword [esp], 0x424393
call sub.msvcrt.dll_getenv
mov dword [esp], str.SYSTEMDRIVE
mov edi, eax
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x10], eax
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov edx, dword [ebp - 0x10]
mov esi, eax
mov dword [esp], edx
call sub.msvcrt.dll_strlen
lea ebx, [esi + eax + 0x9e]
and ebx, 0xfffffff0
mov eax, ebx
call fcn.00421960
lea esi, [esp + 0x1f]
xor ebx, ebx
and esi, 0xfffffff0
nop
lea esi, [esi]
mov eax, dword [ebx*4 + 0x423020]
mov ecx, 0x4243ac
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov dword [esp], esi
call sub.msvcrt.dll_sprintf
mov dword [esp], esi
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x40289c
inc ebx
cmp ebx, 0xd
jl 0x402820
xor ebx, ebx
mov ecx, dword [ebx*4 + section..data]
mov edi, 0x4243ac
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], edx
call sub.msvcrt.dll_sprintf
mov dword [esp], esi
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x4028a5
inc ebx
cmp ebx, 3
jl 0x402858
mov esp, dword [ebp - 0x14]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [0x428010], 1
jmp 0x402856
mov dword [esp], 0
call sub.msvcrt.dll_exit
nop
lea esi, [esi]
lea edi, [edi]
Function at 0x4028c0
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.00421960
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 0x402920
cmp byte [ebp - 0x325c9], 0
jne 0x402960
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 0x4029a0
inc ebx
call sub.msvcrt.dll___p___argc
cmp dword [eax], ebx
jg 0x4028f0
cmp byte [ebp - 0x325c9], 0
je 0x402954
xor ebx, ebx
lea edi, [ebp - 0x128]
jmp 0x40293d
inc ebx
cmp ebx, 0x26
jge 0x4029d7
mov ecx, dword [ebx*4 + 0x423060]
mov dword [esp], edi
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x402933
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 0x402917
mov byte [ebp - 0x325c9], 1
inc ebx
call sub.msvcrt.dll___p___argc
cmp dword [eax], ebx
jle 0x402916
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 0x402917
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, 0x4243b9
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 0x402ab0
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 0x402ae0
and edx, 0x8080
jne 0x402b06
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, ebx
cmp ecx, 3
jbe 0x402ba0
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 0x402b20
and edx, 0x8080
jne 0x402b46
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 0x402ba0
mov dword [esp + 0xc], ebx
mov edx, 5
xor eax, eax
mov dword [esp + 0x14], edx
mov ecx, str.explorer
mov ebx, 0x4243cf
mov dword [esp + 0x10], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
lea esi, [esi]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x402ed0
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.00404290
mov dword [esp], eax
mov edi, eax
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x4030d5
mov dword [esp], edi
call sub.KERNEL32.dll_SetCurrentDirectoryA
sub esp, 4
call fcn.004043d0
mov dword [esp], 0
mov ecx, 0x104
mov esi, eax
mov dword [esp + 8], ecx
lea eax, [ebp - 0x128]
mov dword [esp + 4], eax
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 0x4030c8
mov dword [esp + 4], esi
xor edx, edx
lea ecx, [ebp - 0x128]
mov dword [esp + 8], edx
mov ebx, 0x94
mov dword [esp], ecx
call fcn.00408220
mov dword [esp], esi
call fcn.00409db0
mov dword [esp], esi
mov eax, 6
mov dword [esp + 4], eax
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], esi
call fcn.00408320
mov dword [ebp - 0x1c8], ebx
lea edx, [ebp - 0x1c8]
mov dword [esp], edx
call sub.KERNEL32.dll_GetVersionExA
sub esp, 4
cmp dword [ebp - 0x1c4], 5
jbe 0x403000
call fcn.00404720
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.00408d70
mov dword [esp + 4], esi
lea ecx, [ebp - 0x128]
mov dword [esp], ecx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x40304f
test edi, edi
je 0x402fe7
mov dword [esp], edi
call fcn.0041f8d0
test esi, esi
je 0x402ff3
mov dword [esp], esi
call fcn.0041f8d0
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.00404720
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 0x14], ebx
mov ebx, 0x424470
mov dword [esp + 0x10], esi
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
call fcn.00408c40
mov dword [esp + 4], esi
lea ecx, [ebp - 0x128]
mov dword [esp], ecx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x402fdb
mov dword [esp], esi
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x402fdb
mov eax, dword [0x428100]
test eax, eax
jne 0x40310c
mov dword [esp + 8], esi
mov ecx, 5
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov eax, 0x42449e
mov edx, 0x4243cf
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
test edi, edi
je 0x4030b0
mov dword [esp], edi
call fcn.0041f8d0
test esi, esi
je 0x4030bc
mov dword [esp], esi
call fcn.0041f8d0
mov dword [esp], 0
call sub.msvcrt.dll_exit
mov dword [esp], esi
call sub.msvcrt.dll_remove
jmp 0x402f53
mov dword [esp], edi
mov esi, 6
call sub.msvcrt.dll__mkdir
mov dword [esp + 4], esi
xor ebx, ebx
mov dword [esp], edi
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], edi
call fcn.00408320
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00402bb0
jmp 0x402f0b
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x403070
Function at 0x403120
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.004044e0
mov dword [esp], eax
mov esi, eax
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x4032e5
mov dword [esp], esi
call sub.msvcrt.dll_strlen
add eax, 0x26
and eax, 0xfffffff0
call fcn.00421960
mov dword [esp + 8], esi
lea edi, [esp + 0x27]
mov ecx, str._s
mov dword [esp + 4], ecx
and edi, 0xfffffff0
mov dword [esp], edi
call sub.msvcrt.dll_sprintf
mov dword [esp], edi
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
call sub.msvcrt.dll__findfirst
mov dword [ebp - 0x140], eax
test eax, eax
je 0x40327d
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 0x4031d0
and edx, 0x8080
jne 0x4031f6
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.00421960
mov dword [esp + 0xc], edi
lea ebx, [esp + 0x27]
mov ecx, 0x4243ac
mov dword [esp + 4], ecx
and ebx, 0xfffffff0
mov dword [esp + 8], esi
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], edi
mov edx, str..dll
mov dword [esp + 4], edx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x403297
mov dword [esp], ebx
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
mov esp, dword [ebp - 0x144]
lea ecx, [ebp - 0x138]
mov dword [esp + 4], ecx
mov ebx, dword [ebp - 0x140]
mov dword [esp], ebx
call sub.msvcrt.dll__findnext
test eax, eax
je 0x4031b0
mov edi, dword [ebp - 0x140]
mov dword [esp], edi
call sub.msvcrt.dll__findclose
test esi, esi
je 0x403289
mov dword [esp], esi
call fcn.0041f8d0
mov esp, dword [ebp - 0x13c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
mov edx, str..exe
mov dword [esp + 4], edx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x403249
mov dword [esp + 8], ebx
mov edx, 5
xor eax, eax
mov dword [esp + 0x14], edx
mov ecx, 0x42449e
mov ebx, 0x4243cf
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
jmp 0x403249
mov dword [esp], esi
mov ebx, 6
call sub.msvcrt.dll__mkdir
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], esi
call fcn.00408320
jmp 0x40314d
Function at 0x404290
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
xor esi, esi
jmp 0x4042c0
mov eax, dword [edi*4 + 0x4280dc]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ecx, dword [esi*4 + 0x4280c0]
mov ebx, eax
mov dword [esp], ecx
call sub.msvcrt.dll_strlen
lea edx, [ebx + eax + 8]
mov dword [esp], edx
call fcn.0041f830
mov ebx, eax
mov eax, dword [edi*4 + 0x4280dc]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov dword [esp + 8], eax
mov ecx, dword [esi*4 + 0x4280c0]
mov edx, 0x424590
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0xc], ecx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x4043c4
test ebx, ebx
je 0x404345
mov dword [esp], ebx
call fcn.0041f8d0
inc esi
cmp esi, 7
jl 0x4042c0
inc edi
cmp edi, 1
jl 0x4042af
call sub.msvcrt.dll_rand
mov edi, 1
cdq
idiv edi
mov eax, dword [edx*4 + 0x4280dc]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov edi, eax
call sub.msvcrt.dll_rand
mov dword [esp], edi
mov ecx, 7
cdq
idiv ecx
mov esi, dword [edx*4 + 0x4280c0]
call sub.msvcrt.dll_strlen
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_strlen
lea edx, [ebx + eax + 8]
mov dword [esp], edx
call fcn.0041f830
mov dword [esp + 0xc], esi
mov esi, 0x424590
mov ebx, eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret