joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410b30
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x410b47
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x410b49
xor eax, eax
test eax, eax
je 0x410b5a
push eax
call fcn.00413900
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410b9a
test byte [esp + 0xc], 0x80
je 0x410b8c
and al, 0xfe
jmp 0x410b8e
or al, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x410bae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413900
add esp, 4
or eax, 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4110f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x423218]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x41110f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x423214], 1
mov byte [0x423210], bl
jne 0x411169
mov ecx, dword [0x4274ec]
test ecx, ecx
je 0x411157
mov esi, dword [0x4274e8]
sub esi, 4
cmp esi, ecx
jb 0x411157
mov eax, dword [esi]
test eax, eax
je 0x411150
call eax
mov ecx, dword [0x4274ec]
sub esi, 4
cmp esi, ecx
jae 0x411142
push 0x41c020
push 0x41c014
call fcn.004111a0
add esp, 8
push 0x41c028
push 0x41c024
call fcn.004111a0
add esp, 8
test ebx, ebx
jne 0x411190
push ebp
mov dword [0x423218], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x411b50
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4274e0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x411cfd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x4273e0]
lea edi, [ecx*4 + 0x4273e0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x411cfd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x411bbe
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x411bcf
push 2
push ebp
push eax
call fcn.00411e50
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x411d2e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x411c79
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x411c2a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x411c17
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x411bfa
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411d1f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x411c75
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x411bf6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x411cee
mov eax, dword [esp + 0x18]
test eax, eax
je 0x411cc2
cmp eax, 5
jne 0x411cab
mov dword [0x4231d4], eax
mov dword [0x4231d0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00413900
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x411ce2
cmp byte [ebp], 0x1a
jne 0x411ce2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4231d0], 0x1c
jmp 0x411d07
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4231d0], 9
pop edi
pop esi
pop ebp
mov dword [0x4231d4], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x411c75
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411d5f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x411c79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x411c79
Function at 0x4120c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4120e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413900
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x412106
test byte [esp + 8], 2
je 0x412106
mov dword [0x4231d0], 0xd
mov dword [0x4231d4], 5
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x412560
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x412579
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41257b
xor eax, eax
test eax, eax
je 0x41258c
push eax
call fcn.00413900
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x412590
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x412610
lea ecx, [esp + 4]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x412610
mov eax, dword [esp + 4]
cmp al, 0x5c
je 0x4125c5
cmp al, 0x2f
jne 0x4125d2
cmp al, ah
jne 0x4125d2
xor eax, eax
add esp, 0x10c
ret
and eax, 0xff
mov byte [esp], 0x3d
push eax
call fcn.00415310
add esp, 4
mov byte [esp + 1], al
lea edx, [esp + 4]
lea eax, [esp]
push edx
push eax
mov byte [esp + 0xa], 0x3a
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x412610
xor eax, eax
add esp, 0x10c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413900
add esp, 4
or eax, 0xffffffff
add esp, 0x10c
ret
Function at 0x412650
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x4126c1
push ebx
call fcn.00412780
add esp, 4
test eax, eax
jne 0x41268f
mov dword [0x4231d4], 0xf
mov dword [0x4231d0], 0xd
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
add bl, 0x40
push 0x104
push edx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4126d1
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x412767
inc eax
cmp eax, 0x104
ja 0x412767
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x412720
cmp eax, ecx
jg 0x4126fd
mov eax, ecx
push eax
call fcn.00411350
mov edx, eax
add esp, 4
test edx, edx
jne 0x41273a
mov dword [0x4231d0], 0xc
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, ecx
jle 0x41273a
mov dword [0x4231d0], 0x22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x412780
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x41278e
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x4127bd
cmp eax, 1
je 0x4127bd
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4127c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4127f9
mov eax, dword [esp + 4]
cmp ah, 0x3a
jne 0x4127f9
and eax, 0xff
push eax
call fcn.004153b0
mov esi, eax
add esp, 4
sub esi, 0x40
mov eax, esi
pop esi
add esp, 0x104
ret
Function at 0x413120
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a788
push 0x416a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4231e8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4231e4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4231e0], ecx
shr eax, 0x10
mov dword [0x4231dc], eax
call fcn.00413f90
test eax, eax
jne 0x41318a
push 0x1c
call fcn.004132f0
add esp, 4
mov dword [ebp - 4], 0
call fcn.004134a0
call fcn.004161a0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4274e4], eax
call fcn.004167e0
mov dword [0x423260], eax
test eax, eax
je 0x4131bd
mov eax, dword [0x4274e4]
test eax, eax
jne 0x4131c7
push 0xffffffffffffffff
call fcn.004110b0
add esp, 4
call fcn.00416530
call fcn.00416440
call fcn.00411080
mov esi, dword [0x4274e4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4132a6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x41320e
test al, al
je 0x41320e
and eax, 0xff
push eax
call fcn.004163e0
add esp, 4
test eax, eax
je 0x4131e8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4131e8
cmp byte [esi], 0x22
jne 0x413217
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x413227
cmp al, 0x20
ja 0x413227
inc esi
mov dword [ebp - 0x64], esi
jmp 0x413217
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x413248
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x41324d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004110b0
jmp 0x41328b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x413217
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4132a6

Function at 0x4132f0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x423268], 1
jne 0x4132fe
call fcn.00416b10
mov eax, dword [esp + 4]
push eax
call fcn.00416b50
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x413320
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00412d10
mov eax, dword [0x4274e0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x413482
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x4273e0]
test byte [edx + ecx*8 + 4], 1
je 0x413482
push 1
push ebp
push ebx
call fcn.00411e50
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x41348c
push 2
push ebp
push ebx
call fcn.00411e50
add esp, 0xc
cmp eax, 0xffffffff
je 0x41348c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x413428
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00416d30
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x4133cf
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00411b50
add esp, 0xc
cmp eax, 0xffffffff
je 0x4133eb
sub esi, eax
test esi, esi
jle 0x413401
jmp 0x4133c0
cmp dword [0x4231d4], 5
jne 0x4133fe
mov dword [0x4231d0], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00416d30
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00411e50
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x413469
push 0
push ecx
push ebx
call fcn.00411e50
add esp, 0xc
push ebx
call fcn.004138b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x413469
mov dword [0x4231d0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4231d4], eax
push 0
push edi
push ebx
call fcn.00411e50
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x4231d0], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x4167e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4236d0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x416822
call edi
mov esi, eax
test esi, esi
je 0x41680c
mov eax, 1
jmp 0x41681d
call ebp
mov ebx, eax
test ebx, ebx
je 0x41692f
mov eax, 2
mov dword [0x4236d0], eax
cmp eax, 1
jne 0x4168c2
test esi, esi
jne 0x41683b
call edi
mov esi, eax
test esi, esi
je 0x41692f
cmp word [esi], 0
mov eax, esi
je 0x416855
add eax, 2
cmp word [eax], 0
jne 0x416843
add eax, 2
cmp word [eax], 0
jne 0x416843
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4168b4
push edi
call fcn.00411350
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4168b4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4168a6
push ebx
call fcn.00411400
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x41692f
test ebx, ebx
jne 0x4168d3
call ebp
mov ebx, eax
test ebx, ebx
je 0x41692f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4168eb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4168db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4168db
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00411350
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41690d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x416b50
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x41f3f0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x416b74
add eax, 8
inc ebp
cmp eax, 0x41f480
jb 0x416b65
cmp ecx, dword [ebp*8 + 0x41f3f0]
jne 0x416d1b
mov eax, dword [0x423268]
cmp eax, 1
je 0x416cdd
test eax, eax
jne 0x416ba0
cmp dword [0x41cdc4], 1
je 0x416cdd
cmp ecx, 0xfc
je 0x416d1b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416bdb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x416c24
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x41aaf8
add ebx, ecx
push ebx
call fcn.004111c0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41aad8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x41f3f4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00417f80
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4273e0]
test eax, eax
je 0x416cee
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x416cf8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x41f3f4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4185b0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x41876e
push 0x3d
push edi
call fcn.004197d0
mov esi, eax
add esp, 8
test esi, esi
je 0x41876e
cmp edi, esi
je 0x41876e
mov dl, byte [esi + 1]
mov ecx, dword [0x4231fc]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x4231f8]
cmp eax, ecx
jne 0x418607
push eax
call fcn.00418840
add esp, 4
mov dword [0x4231f8], eax
test eax, eax
jne 0x418682
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41862e
mov eax, dword [0x423200]
test eax, eax
je 0x41862e
call fcn.00416f90
test eax, eax
je 0x41867d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x41863a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00411350
add esp, 4
mov dword [0x4231f8], eax
test eax, eax
je 0x41876e
mov dword [eax], 0
mov eax, dword [0x423200]
test eax, eax
jne 0x41867d
push 4
call fcn.00411350
add esp, 4
mov dword [0x423200], eax
test eax, eax
je 0x41876e
mov dword [eax], 0
mov eax, dword [0x4231f8]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.004187c0
mov esi, eax
add esp, 8
test esi, esi
jl 0x41877f
cmp dword [ebx], 0
je 0x41877f
test ebp, ebp
je 0x418777
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00411400
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x4186d9
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x4186c8
lea eax, [esi*4]
push eax
push ebx
call fcn.00419630
add esp, 8
test eax, eax
je 0x4186f3
mov dword [0x4231f8], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x418766
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00411350
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x418766
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00411400
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x4186f7
test ebp, ebp
jne 0x418766
test esi, esi
jge 0x418789
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00419630
add esp, 8
test eax, eax
je 0x41876e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x4231f8], eax
jmp 0x4186f7
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x682660eb
nop
nop
nop
nop
nop
test eax, eax
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x578409ff
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401060
Capabilities:
Allocate or change rwx memory
Terminate process

Disassembly:
push ebx
push esi
push 4
push 0x3000
push 0x17c841c0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push eax
cmp eax, 0x11
je 0x401023
mov eax, eax
cld
test ecx, ecx
or eax, eax
clc
pop eax
test esi, esi
je 0x401056
nop
mov al, al
push 0x5e69ec0
push 0
push esi
call fcn.0042a220
add esp, 0xc
push ebx
mov cl, cl
mov cl, cl
cld
pop ebx
push 0x8000
push 0x17c841c0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop esi
pop ebx
ret
push 0
push 0x40
push 0x3000
push 0x7d0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocExNuma]
test eax, eax
jne 0x401088
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp section..text

Function at 0x401130
Capabilities:
Get memory capacity
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x451f00]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.0042a220
add esp, 0xc
lea ecx, [ebp - 0x44]
push ecx
mov dword [ebp - 0x44], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp eax, 1
jne 0x401181
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
shrd ecx, eax, 0x14
shr eax, 0x14
test eax, eax
ja 0x401189
jb 0x401181
cmp ecx, 0x309
jae 0x401189
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a29a
mov esp, ebp
pop ebp
ret

Function at 0x4011a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x10], 2
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret