joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418947
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x439340]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41898d
cmp word [ebx], dx
jne 0x41898d
or byte [eax + edi + 0x28], 4
jmp 0x418992
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x418af5
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x418ad5
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4189d3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418a09
cmp eax, edx
jae 0x418a17
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4189ae
jmp 0x418af5
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418ad0
cmp dword [ebp - 0x18], 0
je 0x418ad0
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x439340]
test byte [eax + edi + 0x28], 0x48
je 0x418aa6
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x418a6a
mov word [esi], cx
jmp 0x418aa1
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x439340]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x439340]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x439340]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x418af5
pop eax
cmp word [ebp - 4], ax
jne 0x418ab6
cmp esi, ebx
jne 0x418ab6
mov word [esi], ax
jmp 0x418af2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041951a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x418af5
push 0xd
pop eax
jmp 0x418ab1
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x439340]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x418aef
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x418af5
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bb77
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ede0
push 0x42edd8
push str.FlsAlloc
push 0x1f
call fcn.0041ba36
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bbab
push dword [ebp + 8]
mov ecx, esi
call dword [0x427234]
call esi
jmp 0x41bbb1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41bbf5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42edf0
push 0x42ede8
push str.FlsGetValue
push 0x21
call fcn.0041ba36
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bc2c
push dword [ebp + 8]
mov ecx, esi
call dword [0x427234]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41bc34
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42edf8
push 0x42edf0
push str.FlsSetValue
push 0x22
call fcn.0041ba36
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bc6e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x427234]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x41d0d3
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x435040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x41d116
call fcn.00412f4d
mov dword [eax], 0xf
call fcn.00412f60
mov dword [eax], 0xd
call fcn.00417d99
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4c3
leave
ret
test eax, eax
jne 0x41d11d
inc eax
jmp 0x41d10a
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x41d108
xor eax, eax
cmp ecx, 1
setne al
jmp 0x41d10a

Function at 0x41d9af
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d4ca
Function at 0x41e324
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x435040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41e36f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041e4bf
test al, al
jne 0x41e369
sub edx, 2
cmp edx, edi
jne 0x41e34f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41e391
lea eax, [edi + 2]
cmp edx, eax
je 0x41e391
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041e270
add esp, 0x10
jmp 0x41e48b
push esi
lea ecx, [ebp - 0x255]
call fcn.0041e4bf
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41e3d4
push dword [ebp - 0x25c]
jmp 0x41e381
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41e411
cmp word [ebp - 0x226], 0
je 0x41e432
cmp word [ebp - 0x226], ax
jne 0x41e411
cmp word [ebp - 0x224], 0
je 0x41e432
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041e270
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41e47e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41e3eb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41e466
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41e48b
push 0x41e0a0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00423840
add esp, 0x10
jmp 0x41e45b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b4c3
leave
ret
Function at 0x41ed97
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41ee34
push ebx
push esi
call fcn.0041ed60
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041d1fe
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41ede1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ee33
push edi
push eax
call fcn.0041a5f1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ee01
call fcn.00417ddd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ee32
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d1fe
add esp, 0x20
test eax, eax
jne 0x41ee20
push edi
call fcn.00417ddd
jmp 0x41ee28
push ebx
call fcn.00417ddd
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41ee37
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41ee48
pop esi
ret
push ebx
push edi
push esi
call fcn.0041ed60
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041a5f1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41ee70
push ebx
push esi
push edi
call fcn.0040c2c0
add esp, 0xc
push 0
call fcn.00417ddd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x424bc5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00424b41
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x424d34
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x424d34
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424ce9
jg 0x424c21
test eax, eax
je 0x424cdf
push 1
push 0x1000
call fcn.0041b7d8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x424c44
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424cd6
push 0x8000
push ebx
call fcn.004172fb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x424c6d
jg 0x424c68
cmp ecx, 0x1000
jb 0x424c6d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041a056
add esp, 0x10
cmp eax, 0xffffffff
je 0x424cb2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x424c68
jl 0x424c99
test ecx, ecx
jne 0x424c5a
push dword [ebp - 0xc]
push ebx
call fcn.004172fb
push esi
call fcn.00417ddd
add esp, 0xc
xor ebx, ebx
jmp 0x424d42
cmp byte [edi + 0x24], 0
je 0x424cc9
cmp dword [edi + 0x20], 5
jne 0x424cc9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424cd4
mov ebx, dword [edi + 0x18]
jmp 0x424cd6
xor ebx, ebx
push esi
call fcn.00417ddd
pop ecx
jmp 0x424d42
test ecx, ecx
jg 0x424cab
jl 0x424ce9
test eax, eax
jae 0x424cab
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041951a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x424d09
cmp byte [edi + 0x1c], 0
je 0x424cab
jmp 0x424d3a
push ebx
call fcn.00416024
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x424cab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424d42
cmp byte [edi + 0x1c], 0
je 0x424d3f
mov ebx, dword [edi + 0x18]
jmp 0x424d42
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041951a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4269b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4269dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4269dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401491
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x42e9b0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401526
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e3
cmp dword [ebp + 0x10], ebx
jne 0x40151a
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401491
test eax, eax
jne 0x4014f5
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014ca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040577a
cmp eax, ebx
je 0x40152d
push ebx
push dword [0x42e9b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401526
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42e9b0], ebx
jne 0x401523
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401523
jmp 0x401526
Function at 0x405365
Capabilities:
Create process on windows

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

Function at 0x4054e7
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 0x405504
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405507
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
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 0x405536
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40557a
test edi, edi
jne 0x405541
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405574

Function at 0x40557e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4055ef
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4055de
cmp dword [ebp + 0x14], 1
je 0x4055e0
cmp dword [ebp + 0x14], 2
je 0x4055e0
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 0x405838
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42ad80
push esi
call fcn.00405697
push esi
call fcn.00405470
mov edi, eax
test edi, edi
jne 0x405859
xor eax, eax
jmp 0x4058b1
push edi
call fcn.004056b9
test byte [0x42e928], 0x80
je 0x405872
mov al, byte [edi]
test al, al
je 0x405855
cmp al, 0x5c
je 0x405855
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405892
push esi
call fcn.00405753
test eax, eax
je 0x40588c
test byte [eax], 0x10
je 0x4058b6
push esi
call fcn.00405811
push esi
call ebx
cmp eax, edi
jg 0x40587d
push esi
call fcn.004057e4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4058b0
Function at 0x405b6a
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.0040577a
mov esi, dword [esp + 0x18]
test eax, eax
je 0x405b8e
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405cc7
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42b180], 0x4c554e
mov edi, 0x400
mov ebp, 0x42b180
test esi, esi
je 0x405bd2
push 1
push 0
push esi
call fcn.00405507
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405ccd
cmp eax, edi
jg 0x405ccd
push edi
mov esi, 0x42bac0
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405ccd
cmp eax, edi
jg 0x405ccd
push esi
push ebp
push str._s_s_r_n
push 0x42b580
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x42e8cc]
push dword [eax + 0x128]
push esi
call fcn.00405910
push 4
push 0xc0000000
push esi
call fcn.00405507
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x405cc7
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 0x405cc0
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405cc0
cmp edi, dword [esp + 0x18]
jne 0x405cc0
push str._Rename__r_n
push esi
call fcn.004058ba
test eax, eax
jne 0x405cd4
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.00405697
add edi, 0xa
mov eax, edi
push ebx
push 0x42b580
add eax, esi
push eax
call fcn.004054c3
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
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 [0x42e990]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x407614
add eax, 0xa
push eax
call fcn.004058ba
test eax, eax
je 0x405c8b
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x405cfb
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405cf0
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405c8d
Function at 0x405d03
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405838
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405d38
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42e988], eax
jmp 0x405eca
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405d53
test eax, eax
je 0x405e75
test cl, 2
je 0x405e75
push edi
push ebx
mov esi, 0x42bec0
push esi
call fcn.00405697
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405d76
push str..
push esi
call edi
jmp 0x405d7c
push ebx
call fcn.00405811
cmp byte [ebx], 0
jne 0x405d8a
cmp byte [0x42bec0], 0x5c
jne 0x405d92
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405e6a
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.0040542c
cmp byte [eax], 0
je 0x405dd5
cmp byte [ebp - 0x18], 0
je 0x405dd5
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405deb
mov al, byte [esi + 1]
test al, al
je 0x405e49
cmp al, 0x2e
jne 0x405deb
cmp byte [esi + 2], 0
je 0x405e49
push esi
push edi
call fcn.00405697
test byte [ebp - 0x148], 0x10
je 0x405e10
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405e49
push dword [ebp + 0xc]
push ebx
call fcn.00405d03
jmp 0x405e49
push ebx
call fcn.004054e7
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405e41
test byte [ebp + 0xc], 4
je 0x405e39
push ebx
push 0xfffffffffffffff1
call fcn.00404729
push 0
push ebx
call fcn.00405b6a
jmp 0x405e49
inc dword [0x42e988]
jmp 0x405e49
push ebx
push 0xfffffffffffffff2
call fcn.00404729
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405db7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405e74
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405ec9
cmp dword [ebp - 8], esi
je 0x405eb9
push ebx
call fcn.00405753
test eax, eax
je 0x405ec9
push ebx
call fcn.004057e4
push ebx
call fcn.004054e7
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405ec1
test byte [ebp + 0xc], 4
je 0x405eb9
push ebx
push 0xfffffffffffffff1
call fcn.00404729
push esi
push ebx
call fcn.00405b6a
jmp 0x405ec9
inc dword [0x42e988]
jmp 0x405ec9
push ebx
push 0xffffffffffffffe5
call fcn.00404729
pop esi
pop ebx
leave
ret 8
Function at 0x405ecf
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42c2c4], 0
jne 0x405f0d
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ee3
mov dword [ecx*4 + 0x42c2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x405ede
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x405f3a
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42c2c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x405f1b
not eax
pop ebp
ret 0xc
Function at 0x403b90
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
lea edi, [ebp - 0x152]
mov esi, 0x40506c
sub esp, 0x168
mov ebx, dword [ecx + 4]
call fcn.00401990
mov ecx, 0x13a
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [esp], str.PID:__i
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
mov ebx, eax
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x3000
mov dword [esp + 8], 0x13a
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualAllocEx
mov esi, eax
lea eax, [ebp - 0x152]
sub esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x13a
mov dword [esp + 8], eax
call sub.KERNEL32.dll_WriteProcessMemory
sub esp, 0x14
mov dword [esp + 0xc], esi
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call sub.KERNEL32.dll_CreateRemoteThread
sub esp, 0x1c
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
push eax
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret