joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a7c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423f10]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402af7
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402afe
cmp dword [ebp + 0x10], ebx
jne 0x402aeb
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a7c
test eax, eax
jne 0x402afe
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402abe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405eb2
cmp eax, ebx
je 0x402b23
push ebx
push dword [0x423f10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402af7
cmp dword [0x423f10], ebx
jne 0x402af4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402af4
jmp 0x402af7
Function at 0x402e63
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402e90
mov ecx, dword [0x423eb8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41701c], eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402f8e
cmp eax, edi
jl 0x402f87
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409018]
call ebx
test eax, eax
je 0x402f84
cmp dword [ebp - 4], esi
jne 0x402f84
push dword [ebp + 8]
add dword [0x41701c], esi
call fcn.00402f8e
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x402f87
cmp dword [ebp + 0x10], edi
jne 0x402f53
cmp dword [ebp + 8], edi
jle 0x402f7f
mov esi, 0x413018
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402f03
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409018]
call ebx
test eax, eax
je 0x402f84
cmp edi, dword [ebp - 4]
jne 0x402f84
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f4f
cmp dword [ebp + 0x14], edi
jne 0x402f4f
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41701c], eax
cmp dword [ebp + 8], 0
jg 0x402ef6
jmp 0x402f7f
push 0xfffffffffffffffe
jmp 0x402f86
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x402f5e
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409018]
call ebx
test eax, eax
je 0x402f84
mov eax, dword [ebp - 4]
add dword [0x41701c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x402f87
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x402f8e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41701c]
sub esi, dword [0x40af88]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423e6c], eax
jle 0x4030f6
push dword [0x41f02c]
call fcn.0040313f
push ebx
push ebx
push dword [0x40af88]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f028], esi
mov dword [0x417018], ebx
mov ebp, 0x40b018
mov eax, dword [0x417020]
mov edi, 0x4000
sub eax, dword [0x41f02c]
cmp eax, edi
jg 0x403003
mov edi, eax
mov esi, 0x413018
push edi
push esi
call fcn.0040310d
test eax, eax
je 0x4030de
add dword [0x41f02c], edi
mov dword [0x40afa8], esi
mov dword [0x40afac], edi
cmp dword [0x423e70], ebx
je 0x40305a
cmp dword [0x423f00], ebx
jne 0x40305a
mov eax, dword [0x41f028]
push ebx
sub eax, dword [0x41701c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40af88]
mov dword [0x417018], eax
call fcn.00402b8d
pop ecx
mov ecx, 0x40af90
mov dword [0x40afb0], ebp
mov dword [0x40afb4], 0x8000
call fcn.00405fc0
test eax, eax
jl 0x403108
mov esi, dword [0x40afb0]
sub esi, ebp
je 0x4030b8
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030e3
cmp esi, dword [esp + 0x10]
jne 0x4030e3
add dword [0x40af88], esi
cmp dword [0x40afac], ebx
jne 0x403029
jmp 0x4030c4
cmp dword [0x40afac], ebx
jne 0x403108
cmp edi, ebx
je 0x403108
mov eax, dword [0x41701c]
mov ecx, eax
sub ecx, dword [0x40af88]
add ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x4030e7
jmp 0x402fed
or eax, 0xffffffff
jmp 0x403100
push 0xfffffffffffffffe
jmp 0x40310a
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402b8d
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x403100
Function at 0x40539b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422470], 0x44
push eax
xor eax, eax
push 0x422470
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4053d6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40547c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405732
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054b0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423ee8], eax
jmp 0x405649
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4054ce
test eax, eax
je 0x4055f4
test byte [ebp + 0xc], 2
je 0x4055f4
mov esi, 0x421470
push edi
push esi
call fcn.00405b66
test ebx, ebx
je 0x4054eb
push str..
push esi
call fcn.00405b89
jmp 0x4054f1
push edi
call fcn.00405696
cmp byte [edi], 0
jne 0x4054ff
cmp byte [0x421470], 0x5c
jne 0x40550a
push 0x409010
push edi
call fcn.00405b89
push edi
call fcn.00405b7c
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4055ea
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040567a
cmp byte [eax], 0
je 0x405550
cmp byte [ebp - 0x18], 0
je 0x405550
lea esi, [ebp - 0x18]
mov al, byte [esi]
cmp al, 0x2e
jne 0x40556b
cmp byte [esi + 1], 0
je 0x4055c9
cmp al, al
jne 0x40556b
cmp byte [esi + 1], al
jne 0x40556b
cmp byte [esi + 2], 0
je 0x4055c9
push esi
push ebx
call fcn.00405b66
test byte [ebp - 0x148], 0x10
je 0x405590
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055c9
push dword [ebp + 0xc]
push edi
call fcn.0040547c
jmp 0x4055c9
push edi
call fcn.0040581c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055c1
test byte [ebp + 0xc], 4
je 0x4055b9
push edi
push 0xfffffffffffffff1
call fcn.00404ecf
push 0
push edi
call fcn.004058b3
jmp 0x4055c9
inc dword [0x423ee8]
jmp 0x4055c9
push edi
push 0xfffffffffffffff2
call fcn.00404ecf
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40552e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4055f4
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405649
cmp dword [ebp - 8], esi
jne 0x405609
inc dword [0x423ee8]
jmp 0x405649
push edi
call fcn.00405e8b
test eax, eax
je 0x405649
push edi
call fcn.0040564f
push edi
call fcn.0040581c
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405641
test byte [ebp + 0xc], 4
je 0x405601
push edi
push 0xfffffffffffffff1
call fcn.00404ecf
push esi
push edi
call fcn.004058b3
jmp 0x405649
push edi
push 0xffffffffffffffe5
call fcn.00404ecf
pop edi
pop esi
leave
ret 8
Function at 0x405732
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421870
push esi
call fcn.00405b66
push esi
call fcn.004056e3
mov edi, eax
test edi, edi
jne 0x405753
xor eax, eax
jmp 0x4057a5
push edi
call fcn.00405df2
test byte [0x423e78], 0x80
je 0x40576c
mov al, byte [edi]
test al, al
je 0x40574f
cmp al, 0x5c
je 0x40574f
sub edi, esi
push esi
call fcn.00405b7c
cmp eax, edi
push esi
jle 0x40578f
call fcn.00405e8b
test eax, eax
je 0x405787
test byte [eax], 0x10
je 0x40574f
push esi
call fcn.00405696
jmp 0x40576e
call fcn.0040564f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405838
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40583b
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40586a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4058af
mov eax, edi
dec edi
test eax, eax
jne 0x405875
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058a9
Function at 0x4058b3
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405eb2
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058d7
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a10
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x4225f8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4225f8
je 0x40591b
push 1
push 0
push esi
call fcn.0040583b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a16
cmp eax, edi
jg 0x405a16
mov esi, 0x422070
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a16
cmp eax, edi
jg 0x405a16
push esi
push ebp
push str._s_s_r_n
push 0x421c70
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423e70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b9a
push 4
push 0xc0000000
push esi
call fcn.0040583b
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405a10
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a09
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a09
cmp edi, dword [esp + 0x18]
jne 0x405a09
push str._Rename__r_n
push esi
call fcn.004057aa
test eax, eax
jne 0x405a1d
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b66
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421c70
push eax
call fcn.004057f6
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423ef0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409328
push eax
call fcn.004057aa
test eax, eax
je 0x4059d4
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405a44
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405a39
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4059d6
Function at 0x405a4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405abd
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405aac
cmp dword [ebp + 0x14], 1
je 0x405aae
cmp dword [ebp + 0x14], 2
je 0x405aae
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405f28
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229fc], esi
push edi
jne 0x405f62
mov ecx, 0x4229f8
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405f3e
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df8
jl 0x405f39
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405f97
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4229f8]
xor eax, esi
inc ecx
dec edx
jne 0x405f7a
pop edi
pop esi
not eax
ret 0xc
Function at 0x5a8be0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbd000]
push edi
jmp 0x5a8bfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5a8c01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a8bf0
mov eax, 1
add ebx, ebx
jne 0x5a8c13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5a8c24
jne 0x5a8c43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a8c43
dec eax
add ebx, ebx
jne 0x5a8c30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5a8c08
add ebx, ebx
jne 0x5a8c3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5a8c95
xor ecx, ecx
sub eax, 3
jb 0x5a8c5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5a8cca
sar eax, 1
mov ebp, eax
jmp 0x5a8c66
add ebx, ebx
jne 0x5a8c66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a8c34
inc ecx
add ebx, ebx
jne 0x5a8c74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a8c34
add ebx, ebx
jne 0x5a8c81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5a8c76
jne 0x5a8c92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5a8c76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5a8cb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5a8ca6
jmp 0x5a8bf6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5a8cb4
add edi, ecx
jmp 0x5a8bf6
pop esi
mov edi, esi
mov ecx, 0x4ee4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5a8cd2
cmp byte [edi], 0x13
jne 0x5a8cd2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5a8cd7
lea edi, [esi + 0x1a4000]
mov eax, dword [edi]
or eax, eax
je 0x5a8d46
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1eccbc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ecd80]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5a8d04
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ecd88]
or eax, eax
je 0x5a8d40
mov dword [ebx], eax
add ebx, 4
jmp 0x5a8d21
call dword [esi + 0x1ecd84]
mov ebp, dword [esi + 0x1ecd8c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5a8d7a
sub esp, 0xffffff80
jmp 0x4ad0e6
Function at 0x401118
Capabilities:
Query environment variable

Disassembly:
enter 0x34, 0
mov edx, 0x403154
sub dword [ebp - 0x20], esi
push edx
push dword [edx + 0xd4]
push dword [edx + 0x60]
call fcn.00401a38
pop edx
push edx
lea edi, [edx - 0x154]
push edi
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x401135
pop edx
push edx
call sub.KERNEL32.dll_GetEnvironmentStringsA
pop edx
add esp, 0x34
pop ebp
ret 0x10

Function at 0x40188c
Capabilities:
Query environment variable

Disassembly:
enter 0x60, 0
mov ebx, 0x4031b0
and dword [ebx - 0x78], 0x49
call sub.KERNEL32.dll_GetEnvironmentStringsA
push ebx
push dword [ebx + 0x9c]
push dword [ebx + 0xb4]
push edi
call fcn.004012a0
pop ebx
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
add esp, 0x60
pop ebp
ret 0xc
Function at 0x40ff80
Capabilities:
Access peb ldr_data
Create process on windows
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x412408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov eax, dword [0x41ac08]
mov ecx, 0x41ac08
mov dword [esp + 0x24], 0
call dword [eax + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov edx, dword [0x41ac08]
mov ecx, 0x41ac08
mov byte [esp + 0x24], 1
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
push esi
mov byte [esp + 0x30], 2
call fcn.00401270
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040fe80
mov edi, dword [esp + 0x18]
add esp, 8
test al, al
je 0x41003d
push edi
push str.__B___Nologo
lea ecx, [esp + 0x1c]
push str._s__s
push ecx
call fcn.00402a90
mov ebp, dword [esp + 0x24]
add esp, 0x10
push 0
push 0
push ebp
push 0x414434
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [edi - 0x10]
mov byte [esp + 0x24], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41005c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41007b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x24], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41009a
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x5b79320a
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0xfc419f8
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x403560
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, dword [0x4c822c]
mov ecx, dword [0x4c5138]
sub esp, 0xc2c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x403653
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x4c822c], 0x959
jne 0x403639
push 0
push 0
call esi
push 0
lea eax, [esp + 0x43c]
push eax
push 0
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
push 0
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
push 0
push 0x402bf8
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov eax, dword [esp + 0x14]
push eax
call fcn.004033b0
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x4035a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc2c
ret
Function at 0x403f60
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x459b38
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [0x4c822c], 0x84
jne 0x403fec
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push ebx
call dword [sym.imp.KERNEL32.dll_AddAtomW]
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], ebx
mov byte [esp + 8], bl
push ebx
mov dword [esp + 0x2c], ebx
call fcn.00405689
push ebx
push ebx
call fcn.00405717
add esp, 0xc
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x1c], 0x10
jb 0x403fdc
mov eax, dword [esp + 8]
push eax
call fcn.004058fe
add esp, 4
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], ebx
mov byte [esp + 8], bl
cmp byte [0x45e0e0], bl
jle 0x403ffc
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [0x45d284]
mov edx, dword [0x45d258]
mov dword [0x4c822c], ecx
mov dword [0x4c8bcc], edx
call fcn.004036a0
mov ecx, dword [esp + 0x20]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0x10

Function at 0x406edc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b238]
jne 0x406ee6
repz ret
jmp fcn.0040b115