joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402415
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push 0x4151f8
call fcn.00404223
mov esi, dword [esp + 0x14]
add esp, 4
movzx edi, byte [esi + ebx]
inc ebx
call fcn.004041a1
xor edi, eax
push edi
call fcn.004041ba
add esp, 4
cmp ebx, 0xc
jl 0x40242b
test byte [0x412c66], 8
je 0x40245d
mov ax, word [0x412c6a]
shr ax, 8
movzx eax, ax
jmp 0x402468
mov eax, dword [0x40a750]
shr eax, 0x10
movzx eax, ah
movzx ecx, di
cmp ecx, eax
je 0x402476
mov eax, 0xffffffff
jmp 0x4024bf
mov eax, dword [0x412b1c]
cmp dword [0x40a8e4], eax
jge 0x40248b
mov esi, dword [0x40a8e4]
jmp 0x402491
mov esi, dword [0x412b1c]
mov edi, dword [0x412eb0]
mov eax, esi
dec esi
test eax, eax
je 0x4024bd
call fcn.004041a1
mov ebx, eax
movzx eax, byte [edi]
xor ebx, eax
push ebx
call fcn.004041ba
add esp, 4
mov eax, esi
dec esi
mov byte [edi], bl
inc edi
test eax, eax
jne 0x40249e
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x40251d
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov eax, dword [0x412c72]
mov ebp, esp
mov dword [0x40a8e4], eax
sub esp, 4
mov eax, dword [0x412c76]
mov dword [0x415264], 0
push esi
mov dword [0x40a894], eax
test byte [0x412c66], 8
push edi
je 0x402568
mov eax, dword [0x40a750]
mov ecx, dword [0x40a754]
mov dword [0x412c6e], eax
mov dword [0x412c72], ecx
mov dword [0x40a8e4], ecx
movsx ecx, word [0x412c7a]
movsx eax, word [0x412c7c]
add ecx, eax
mov edx, dword [0x40a76a]
lea edi, [ecx + edx + 0x1e]
mov ecx, 0x7530
mov eax, edi
cdq
idiv ecx
mov esi, edx
mov eax, edi
sub eax, esi
test edi, edi
jl 0x4026b9
push 0
push 0
push eax
push dword [0x412b48]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
mov dword [0x413010], eax
push 0x7530
mov eax, dword [0x412b18]
push eax
push dword [0x412b48]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4026af
cmp dword [ebp - 4], 0
je 0x4026af
mov eax, dword [0x412b18]
add eax, esi
mov dword [0x412eb0], eax
mov eax, dword [ebp - 4]
and eax, 0xffff
sub eax, esi
test byte [0x40a766], 8
mov dword [0x412b1c], eax
je 0x40260d
mov eax, 0x2e
jmp 0x4026be
cmp dword [0x4151f4], 0
je 0x402623
call fcn.004024c3
test eax, eax
jne 0x4026be
mov ecx, dword [0x4150dc]
test ecx, ecx
jne 0x40264b
cmp dword [0x415094], 0
jne 0x40264b
push dword [ebp + 8]
call fcn.0040425f
add esp, 4
mov esi, eax
mov ecx, dword [0x4150dc]
jmp 0x402657
mov dword [0x412c88], 0xffffffff
xor esi, esi
test esi, esi
jne 0x402675
call fcn.00403f7a
mov esi, eax
mov ecx, dword [0x4150dc]
test esi, esi
jne 0x402675
cmp dword [0x415074], 0
je 0x4026ab
cmp dword [0x412c88], 0xffffffff
je 0x402690
mov eax, dword [0x412c88]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4150dc]
test ecx, ecx
jne 0x4026ab
cmp dword [0x415094], 0
jne 0x4026ab
cmp esi, 0x32
jne 0x4026ab
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
jmp 0x4026be
mov dword [0x412b1c], 0
mov eax, 3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403760
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
cmp dword [0x412b34], 0
push esi
je 0x403774
xor eax, eax
jmp 0x4038b1
push dword [esp + 0xc]
mov esi, 0xffffffff
mov dword [0x412ea8], esi
call fcn.0040180e
add esp, 4
cmp eax, 0xfffffffd
jne 0x4037d2
mov word [0x412b20], si
xor eax, eax
mov word [0x412b22], ax
mov dword [0x412b28], eax
mov word [0x412b24], ax
mov dword [0x412b2c], eax
mov dword [0x412b34], 1
mov word [0x412b26], 0x7fff
mov word [0x412b30], ax
call fcn.00401cae
jmp 0x4038b1
cmp eax, 0xfffffffc
jne 0x4037e3
mov ecx, 2
mov esi, 5
jmp 0x4037fb
cmp eax, 0xffffffff
jne 0x4037f4
mov ecx, 2
mov esi, 3
jmp 0x4037fb
mov ecx, 1
xor esi, esi
cmp ecx, 1
jne 0x403818
mov ecx, 2
cmp eax, 0xffffffff
jne 0x403811
mov esi, 3
jmp 0x403813
xor esi, esi
cmp ecx, 1
je 0x403800
test esi, esi
jne 0x4038af
push 0
mov dword [0x412ea8], eax
push 0
add eax, 4
push eax
push dword [0x412b44]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 4]
push 0
push ecx
push 0x12
push 0x412b20
push dword [0x412b44]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4038a0
cmp dword [esp + 4], 0
je 0x4038a0
mov dword [0x412b34], 1
cmp word [0x412b20], 0
jne 0x4038aa
mov ax, word [0x412b20]
cmp word [0x412b22], ax
je 0x4038af
mov ax, word [0x412b26]
cmp word [0x412b24], ax
jne 0x4038af
xor eax, eax
mov word [0x412b20], ax
mov word [0x412b22], ax
jmp 0x4038af
mov dword [0x412ea8], 0xffffffff
mov esi, 3
mov eax, esi
pop esi
add esp, 4
ret

Function at 0x4041ba
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [0x40a730]
xor ecx, dword [esp + 4]
and ecx, 0xff
mov eax, dword [ecx*4 + 0x415590]
mov ecx, dword [0x40a730]
shr ecx, 8
xor eax, ecx
mov dword [0x40a730], eax
and eax, 0xff
add dword [0x40a734], eax
mov eax, dword [0x40a734]
imul eax, eax, 0x8088405
inc eax
mov ecx, dword [0x40a738]
shr ecx, 8
mov dword [0x40a734], eax
shr eax, 0x18
xor eax, dword [0x40a738]
and eax, 0xff
mov eax, dword [eax*4 + 0x415590]
xor eax, ecx
mov dword [0x40a738], eax
ret

Function at 0x40425f
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x415078], 0
push esi
mov esi, dword [esp + 8]
je 0x4042a0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4042a0
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x404299
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4042a0
mov eax, 0x1c
jmp 0x4042c4
mov eax, 0x1c
jmp 0x4042c4
push 0
push 0x20
push 2
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x412c88], eax
inc eax
cmp eax, 1
sbb eax, eax
and eax, 0x1c
pop esi
ret
Function at 0x4042c6
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
sub esp, 4
mov eax, dword [0x40a8e4]
dec dword [0x40a8e4]
push ebx
push esi
test eax, eax
push edi
jg 0x4042e2
xor eax, eax
jmp 0x4043b8
cmp dword [0x412b1c], 0
jne 0x404397
lea eax, [esp + 0xc]
push 0
push eax
push 0x7530
push dword [0x412b18]
push dword [0x412b48]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x404322
mov eax, dword [esp + 0xc]
and eax, 0xffff
mov dword [0x412b1c], eax
jmp 0x40432c
mov dword [0x412b1c], 0xffffffff
cmp dword [0x412b1c], 0
jg 0x404339
xor eax, eax
jmp 0x4043b8
add dword [0x413010], 0x7530
cmp dword [0x4151f4], 0
mov eax, dword [0x412b18]
mov dword [0x412eb0], eax
je 0x404397
mov edi, dword [0x40a8e4]
inc edi
cmp dword [0x412b1c], edi
jg 0x40436b
mov edi, dword [0x412b1c]
mov esi, dword [0x412b18]
mov eax, edi
dec edi
test eax, eax
je 0x404397
call fcn.004041a1
movzx ecx, byte [esi]
xor eax, ecx
push eax
mov ebx, eax
call fcn.004041ba
add esp, 4
mov eax, edi
dec edi
mov byte [esi], bl
inc esi
test eax, eax
jne 0x404378
mov eax, dword [0x412eb0]
mov edx, dword [esp + 0x14]
movzx cx, byte [eax]
mov word [edx], cx
mov eax, 8
inc dword [0x412eb0]
dec dword [0x412b1c]
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x4043bf
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
cmp dword [0x412c54], 0
push ebx
push esi
push edi
push ebp
je 0x4043fa
mov eax, dword [0x412ffc]
mov ecx, dword [0x412ff8]
add dword [0x413018], eax
mov dword [0x413020], ecx
mov dword [0x412ffc], 0
mov eax, 0x32
jmp 0x404679
cmp dword [0x412ffc], 0
je 0x404677
cmp dword [0x415094], 0
mov esi, dword [0x412ffc]
jne 0x404431
mov eax, dword [0x41300c]
add eax, esi
cmp eax, dword [0x40a894]
jle 0x404431
mov esi, dword [0x40a894]
sub esi, dword [0x41300c]
test esi, esi
jg 0x4044a0
cmp dword [0x415094], 0
jne 0x40448a
mov eax, 1
mov dword [0x415074], eax
mov dword [0x415088], eax
mov eax, dword [0x412ffc]
mov ecx, dword [0x412ff8]
add dword [0x413018], eax
mov dword [0x413020], ecx
mov dword [0x412ffc], 0
cmp dword [0x415094], 0
je 0x404663
mov eax, dword [0x4150a4]
mov dword [0x41300c], eax
jmp 0x404669
mov dword [0x415074], 1
mov dword [0x412c54], 2
jmp 0x40444d
push esi
mov eax, dword [0x412ff8]
push eax
call fcn.00405960
add esp, 8
cmp dword [0x4150dc], 0
jne 0x40459f
cmp dword [0x415094], 0
jne 0x4045ac
cmp dword [0x41313c], 0x4000
jne 0x404554
mov edi, dword [0x41301c]
mov ebx, esi
mov byte [esp + 0x12], 0xd
mov byte [esp + 0x13], 0xa
xor ebp, ebp
test esi, esi
jle 0x40444d
test ebp, ebp
jne 0x40444d
xor ebp, ebp
cmp byte [edi], 0xa
jne 0x404523
lea eax, [esp + 0x14]
push ebp
lea ecx, [esp + 0x16]
push eax
push 2
push ecx
push dword [0x412c88]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404544
cmp dword [esp + 0x14], ebp
jmp 0x404542
lea eax, [esp + 0x14]
push 0
push eax
push 1
push edi
push dword [0x412c88]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404544
cmp dword [esp + 0x14], 0
ja 0x404549
mov ebp, 1
inc edi
dec ebx
test ebx, ebx
jg 0x4044f1
jmp 0x40444d
mov edi, esi
push 0
lea eax, [esp + 0x18]
push eax
push edi
push dword [0x41301c]
mov eax, dword [0x412c88]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40457e
cmp dword [esp + 0x14], edi
je 0x40444d
cmp dword [0x4150d0], 0
jne 0x40444d
mov dword [0x412c54], 2
mov eax, 0x32
jmp 0x404679
cmp dword [0x415094], 0
je 0x40444d
mov ecx, dword [0x41301c]
mov edx, dword [0x4150a4]
add edx, dword [0x4150a0]
mov eax, dword [0x415098]
mov edi, eax
cmp dword [0x40a894], eax
jge 0x4045d9
mov edi, dword [0x40a894]
sub edi, dword [0x41509c]
test esi, esi
jle 0x40444d
mov eax, dword [0x41509c]
cmp dword [0x4150a8], eax
jl 0x404612
mov eax, dword [0x415098]
cmp dword [0x4150a4], eax
jge 0x404641
cmp dword [0x4150a4], edi
jge 0x404630
mov al, byte [ecx]
dec esi
inc ecx
mov byte [edx], al
inc edx
inc dword [0x4150a4]
jmp 0x404627
mov eax, dword [0x412c76]
inc dword [0x4150a8]
cmp dword [0x4150a8], eax
jge 0x404652
dec esi
inc ecx
test esi, esi
jg 0x4045e1
jmp 0x40444d
mov dword [0x412c54], 3
mov eax, 2
jmp 0x404679
mov dword [0x412c54], 2
mov eax, 0x32
jmp 0x404679
mov dword [0x412c54], 3
mov eax, 2
jmp 0x404679
add dword [0x41300c], esi
mov eax, dword [0x41300c]
push eax
call fcn.004038ed
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x404681
Capabilities:
Set file attributes

Disassembly:
push ebp
mov eax, dword [0x412c88]
mov ebp, esp
sub esp, 0x10
cmp eax, 0xffffffff
push esi
push edi
je 0x4046a8
push eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov dword [0x412c88], 0xffffffff
jmp 0x4046ae
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cx, word [0x412c6a]
lea eax, [ebp - 0x10]
mov dx, word [0x412c6c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea ecx, [ebp - 8]
lea edx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x40000000
push 0x412c90
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov edi, eax
je 0x40471d
mov eax, dword [0x413014]
or al, 0x20
push eax
push 0x412c90
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 8]
push ecx
push ecx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405960
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ecx, dword [0x40a778]
mov edx, dword [esp + 0xc]
push esi
mov eax, edx
dec edx
test eax, eax
je 0x405995
mov esi, dword [esp + 0xc]
mov al, byte [esi]
xor ebx, ebx
xor al, cl
inc esi
shr ecx, 8
mov bl, al
mov eax, dword [ebx*4 + 0x415590]
xor eax, ecx
mov ecx, eax
mov eax, edx
dec edx
test eax, eax
jne 0x405977
pop esi
mov dword [0x40a778], ecx
pop ebx
ret

Function at 0x405b3a
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x406c44
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x415bd4], eax
mov al, ah
and eax, 0xff
mov dword [0x415be0], eax
mov eax, dword [0x415bd4]
shr dword [0x415bd4], 0x10
and eax, 0xff
mov dword [0x415bdc], eax
shl eax, 8
add eax, dword [0x415be0]
mov dword [0x415bd8], eax
call fcn.00406b9a
mov dword [ebp - 4], 0
call fcn.00406aac
call fcn.004063f5
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41345c], eax
call fcn.0040684c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x415990], eax
call fcn.00406781
call fcn.00406400
mov esi, dword [0x41345c]
mov al, byte [esi]
cmp al, 0x22
je 0x405bee
cmp al, 0x20
jbe 0x405c1a
inc esi
cmp byte [esi], 0x20
ja 0x405be6
jmp 0x405c1a
inc esi
cmp byte [esi], 0x22
je 0x405c19
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x405c14
movzx eax, bl
push eax
call fcn.0040673e
add esp, 4
test eax, eax
je 0x405c0e
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x405bf7
cmp byte [esi], 0x22
jne 0x405c1a
inc esi
cmp byte [esi], 0
je 0x405c2a
cmp byte [esi], 0x20
ja 0x405c2a
inc esi
cmp byte [esi], 0
jne 0x405c1f
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x405c4a
movzx eax, word [ebp - 0x40]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00406430
jmp 0x405c86
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406452
Capabilities:
Terminate process

Disassembly:
mov dword [0x415c0c], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x415c08], bl
jne 0x4064ae
cmp dword [0x413458], 0
je 0x40649c
mov esi, dword [0x413450]
sub esi, 4
cmp dword [0x413458], esi
ja 0x40649c
mov eax, dword [esi]
test eax, eax
je 0x406491
call eax
sub esi, 4
cmp dword [0x413458], esi
jbe 0x406489
push 0x41668c
push 0x416688
call fcn.004064d1
add esp, 8
push 0x416694
push 0x416690
call fcn.004064d1
add esp, 8
test ebx, ebx
jne 0x4064ce
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x407e00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
lea eax, [ebp - 0x104]
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x407e3e
cmp byte [ebp - 0x103], 0x3a
jne 0x407e3e
movzx eax, byte [ebp - 0x104]
push eax
call fcn.004083f2
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4081d9
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x408240
push ebx
call fcn.004082cc
add esp, 4
test eax, eax
jne 0x408212
mov dword [0x415bcc], 0xf
mov dword [0x415bc8], 0xd
jmp 0x4082c3
add bl, 0x40
lea eax, [ebp - 8]
push eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10c]
lea ebx, [ebp - 4]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x408252
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4082c3
inc eax
cmp eax, 0x104
ja 0x4082c3
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x408289
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jg 0x40826e
mov eax, ecx
push eax
call fcn.0040602a
add esp, 4
mov edx, eax
test edx, edx
jne 0x40829a
mov dword [0x415bc8], 0xc
jmp 0x4082c3
cmp eax, dword [ebp + 0x10]
jle 0x40829a
mov dword [0x415bc8], 0x22
jmp 0x4082c3
lea edi, [ebp - 0x10c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
jmp 0x4082c5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4092f2
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
test esi, esi
je 0x4094e2
push 0x3d
push esi
call fcn.0040970e
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x4094e2
cmp ebp, esi
je 0x4094e2
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x415bf4]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x415bf0], ecx
jne 0x40934f
mov eax, dword [0x415bf0]
push eax
call fcn.0040954c
add esp, 4
mov dword [0x415bf0], eax
cmp dword [0x415bf0], 0
jne 0x4093de
cmp dword [esp + 0x1c], 0
je 0x40937a
cmp dword [0x415bf8], 0
je 0x40937a
call fcn.00408db3
test eax, eax
je 0x4093de
jmp 0x4094e2
cmp dword [esp + 0x10], 0
je 0x409388
xor eax, eax
jmp 0x4094e7
cmp dword [0x415bf0], 0
jne 0x4093b3
push 4
call fcn.0040602a
add esp, 4
mov dword [0x415bf0], eax
test eax, eax
je 0x4094e2
mov eax, dword [0x415bf0]
mov dword [eax], 0
cmp dword [0x415bf8], 0
jne 0x4093de
push 4
call fcn.0040602a
add esp, 4
mov dword [0x415bf8], eax
test eax, eax
je 0x4094e2
mov eax, dword [0x415bf8]
mov dword [eax], 0
mov edi, dword [0x415bf0]
sub ebp, esi
push ebp
push esi
call fcn.004094ef
add esp, 8
mov ebx, eax
test ebx, ebx
jl 0x409434
cmp dword [edi], 0
je 0x409434
cmp dword [esp + 0x10], 0
je 0x40942f
lea eax, [edi + ebx*4]
cmp dword [eax], 0
je 0x409418
mov ecx, dword [eax + 4]
inc ebx
mov dword [eax], ecx
add eax, 4
cmp dword [eax], 0
jne 0x40940a
lea eax, [ebx*4]
push eax
push edi
call fcn.004095bc
add esp, 8
test eax, eax
je 0x40946f
jmp 0x40946a
mov dword [edi + ebx*4], esi
jmp 0x40946f
cmp dword [esp + 0x10], 0
jne 0x4094de
test ebx, ebx
jge 0x409445
neg ebx
lea eax, [ebx*4 + 8]
push eax
push edi
call fcn.004095bc
add esp, 8
test eax, eax
je 0x4094e2
lea ecx, [eax + ebx*4]
mov dword [ecx], esi
mov dword [ecx + 4], 0
mov dword [0x415bf0], eax
cmp dword [esp + 0x1c], 0
je 0x4094da
mov edi, esi
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040602a
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4094da
mov edi, esi
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov ebp, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call ebp
push ebx
call fcn.00405e82
add esp, 4
xor eax, eax
jmp 0x4094e7
xor eax, eax
jmp 0x4094e7
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401a30
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
shr edi, 2
xor edx, edx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
test edi, edi
je 0x401a65
mov eax, dword [esi]
lea esi, [esi + 4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, edi
jb 0x401a58
mov ebx, dword [ecx + edi*4 - 4]
lea eax, [edi + 0xe]
lea eax, [edi + eax*2]
lea esi, [ecx + eax*4]
mov dword [ebp + 8], esi
xor esi, esi
mov eax, dword [ebp + 8]
nop word [eax + eax]
test esi, esi
jne 0x401ae1
movzx eax, bl
mov esi, dword [ebp - 4]
movzx edx, byte [eax + 0xab95c0]
mov eax, ebx
shr eax, 0x18
shl edx, 8
movzx eax, byte [eax + 0xab95c0]
or edx, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr ebx, 8
shl edx, 8
movzx eax, byte [eax + 0xab95c0]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + 0xab95c0]
mov eax, 0x1b
xor ebx, esi
add esi, esi
or ebx, edx
test esi, 0x100
cmovne esi, eax
mov dword [ebp - 4], esi
mov esi, edi
jmp 0x401b2e
cmp esi, 4
jne 0x401b31
cmp edi, 6
jbe 0x401b31
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0xab95c0]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0xab95c0]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0xab95c0]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + 0xab95c0]
or ebx, edx
mov eax, dword [ebp + 8]
xor ebx, dword [ecx]
dec esi
mov dword [ecx + edi*4], ebx
add ecx, 4
cmp ecx, eax
jne 0x401a80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402940
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402973
call fcn.00402920
test eax, eax
je 0x402973
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00402900
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4029f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x402a06
xor eax, eax
mov esp, ebp
pop ebp
ret
call fcn.00402920
cmp eax, 7
jb 0x402a00
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.00402900
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402a30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402a63
call fcn.00402920
test eax, eax
je 0x402a63
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00402900
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402b60
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0xaff064]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402ba9
push str.SetDefaultDllDirectories
push 0xab9750
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402ba9
push 0xc00
call eax
test eax, eax
jne 0x402c47
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402c47
cmp eax, 0x104
ja 0x402c47
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x402be7
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402c46
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov al, byte [esi]
mov ecx, edi
inc esi
test al, al
je 0x402c20
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x402c10
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x402c07
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a22a1e
mov esp, ebp
pop ebp
ret