joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005f66
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1005f97
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x1005f9e
cmp ebx, dword [ebp + 8]
jae 0x1005f9e
xor eax, eax
jmp 0x100618e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1005faf
xor eax, eax
inc eax
jmp 0x100618d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1005fc5
cmp ecx, edx
jae 0x100610a
cmp dword [eax + 4], 0
je 0x1005fce
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1005fb6
cmp dword [ebp + 8], 0
je 0x1005ff0
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100610a
cmp eax, esi
jae 0x100610a
mov eax, dword [0x1008498]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1006015
cmp dword [esi*4 + 0x10084a0], edi
je 0x100610e
inc esi
cmp esi, eax
jl 0x1006003
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100618a
cmp dword [ebp - 8], 0x1000000
jne 0x100618a
test byte [ebp - 0xc], 0xcc
je 0x1006093
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100618a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100618a
cmp word [eax + 0x18], 0x10b
jne 0x100618a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100618a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1006093
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1006093
test byte [ecx + 0x27], 0x80
jne 0x100610a
push 1
push 0x10084e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1005fa7
mov ecx, dword [0x1008498]
test ecx, ecx
mov edx, ecx
jle 0x10060c7
lea eax, [ecx*4 + 0x100849c]
cmp dword [eax], edi
je 0x10060c7
dec edx
sub eax, 4
test edx, edx
jg 0x10060bb
test edx, edx
jne 0x10060f8
push 0xf
pop ebx
cmp ecx, ebx
jg 0x10060d4
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x10060ec
lea eax, [edx*4 + 0x10084a0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x10060da
cmp ecx, 0x10
jge 0x10060f8
inc ecx
mov dword [0x1008498], ecx
push 0
push 0x10084e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1005fa7
xor eax, eax
jmp 0x100618d
test esi, esi
jle 0x1005fa7
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x10084e0
call ebx
test eax, eax
jne 0x1005fa7
cmp dword [esi*4 + 0x10084a0], edi
je 0x1006164
mov eax, dword [0x1008498]
lea esi, [eax - 1]
test esi, esi
jl 0x1006152
cmp dword [esi*4 + 0x10084a0], edi
je 0x100614e
dec esi
jns 0x1006142
test esi, esi
jge 0x1006162
cmp eax, 0x10
jge 0x100615d
inc eax
mov dword [0x1008498], eax
lea esi, [eax - 1]
jmp 0x1006164
je 0x100617c
xor ecx, ecx
test esi, esi
jl 0x100617c
lea eax, [ecx*4 + 0x10084a0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100616a
push 0
push 0x10084e0
call ebx
jmp 0x1005fa7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006d53
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01004d10
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1006db9
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1008304]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1006dbd
xor eax, eax
jmp 0x1006dca
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x402a4c
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 [0x451cd0]
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 0x402ae0
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a9d
cmp dword [ebp + 0x10], ebx
jne 0x402ad4
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a4c
test eax, eax
jne 0x402aaf
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a84
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
call fcn.00405f03
cmp eax, ebx
je 0x402ae7
push ebx
push dword [0x451cd0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ae0
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 [0x451cd0], ebx
jne 0x402add
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402add
jmp 0x402ae0
Function at 0x405325
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x407310
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x407300
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405376
xor eax, eax
jmp 0x40539d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40539d
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x405372
call esi
pop esi
leave
ret 4

Function at 0x4053d7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4480a8], 0x44
push eax
xor eax, eax
push 0x4480a8
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 0x405412
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x40549c
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.0040574b
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054d0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x451ca8], eax
jmp 0x405664
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4054ee
test eax, eax
je 0x40560f
test byte [ebp + 0xc], 2
je 0x40560f
mov esi, 0x4438a8
push edi
push esi
call fcn.00405b77
test ebx, ebx
je 0x40550b
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405511
push edi
call fcn.004056b1
cmp byte [edi], 0
jne 0x40551f
cmp byte [0x4438a8], 0x5c
jne 0x40552a
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
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 0x405605
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405695
cmp byte [eax], 0
je 0x405570
cmp byte [ebp - 0x18], 0
je 0x405570
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405586
mov al, byte [esi + 1]
test al, al
je 0x4055e4
cmp al, 0x2e
jne 0x405586
cmp byte [esi + 2], 0
je 0x4055e4
push esi
push ebx
call fcn.00405b77
test byte [ebp - 0x148], 0x10
je 0x4055ab
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055e4
push dword [ebp + 0xc]
push edi
call fcn.0040549c
jmp 0x4055e4
push edi
call fcn.0040582f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055dc
test byte [ebp + 0xc], 4
je 0x4055d4
push edi
push 0xfffffffffffffff1
call fcn.00404e63
push 0
push edi
call fcn.004058c5
jmp 0x4055e4
inc dword [0x451ca8]
jmp 0x4055e4
push edi
push 0xfffffffffffffff2
call fcn.00404e63
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40554e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x40560f
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405664
cmp dword [ebp - 8], esi
jne 0x405624
inc dword [0x451ca8]
jmp 0x405664
push edi
call fcn.00405e72
test eax, eax
je 0x405664
push edi
call fcn.0040566a
push edi
call fcn.0040582f
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40565c
test byte [ebp + 0xc], 4
je 0x40561c
push edi
push 0xfffffffffffffff1
call fcn.00404e63
push esi
push edi
call fcn.004058c5
jmp 0x405664
push edi
push 0xffffffffffffffe5
call fcn.00404e63
pop edi
pop esi
leave
ret 8
Function at 0x40574b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4458a8
push esi
call fcn.00405b77
push esi
call fcn.004056fe
mov edi, eax
test edi, edi
jne 0x40576c
xor eax, eax
jmp 0x4057be
push edi
call fcn.00405dd9
test byte [0x451c38], 0x80
je 0x405785
mov al, byte [edi]
test al, al
je 0x405768
cmp al, 0x5c
je 0x405768
sub edi, esi
jmp 0x40579d
call fcn.00405e72
test eax, eax
je 0x405797
test byte [eax], 0x10
je 0x405768
push esi
call fcn.004056b1
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405789
call fcn.0040566a
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 0x40582f
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 0x40584b
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40584e
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 0x40587d
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
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 0x4058c1
test edi, edi
jne 0x405888
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058bb
Function at 0x4058c5
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
call fcn.00405f03
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058e9
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a22
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x448230], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x448230
je 0x40592d
push 1
push 0
push esi
call fcn.0040584e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a28
cmp eax, edi
jg 0x405a28
mov esi, 0x447ca8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a28
cmp eax, edi
jg 0x405a28
push esi
push ebp
push str._s_s_r_n
push 0x4478a8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x451c30]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b99
push 4
push 0xc0000000
push esi
call fcn.0040584e
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405a22
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 0x405a1b
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 0x405a1b
cmp edi, dword [esp + 0x18]
jne 0x405a1b
push str._Rename__r_n
push esi
call fcn.004057c3
test eax, eax
jne 0x405a2f
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b77
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x4478a8
push eax
call fcn.0040580f
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 [0x451cb0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093e4
push eax
call fcn.004057c3
test eax, eax
je 0x4059e6
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405a56
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405a4b
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4059e8
Function at 0x405a5e
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 0x405acf
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
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 0x405abe
cmp dword [ebp + 0x14], 1
je 0x405ac0
cmp dword [ebp + 0x14], 2
je 0x405ac0
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405e99
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405ebd
xor eax, eax
test eax, eax
je 0x405ecf
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405ecf
xor ecx, ecx
jmp 0x405ed2
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

Function at 0x405f72
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x448634], 0
push esi
jne 0x405fa9
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f83
mov dword [ecx*4 + 0x448630], eax
inc ecx
cmp ecx, 0x100
jl 0x405f7e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fda
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x448630]
xor eax, esi
inc ecx
dec edx
jne 0x405fbc
pop edi
not eax
pop esi
ret 0xc
Function at 0x401000
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x130
mov eax, dword [0x41201c]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x134]
push ebx
mov ebx, dword [esp + 0x13c]
push ebp
push edi
mov dword [esp + 0xc], eax
xor eax, eax
push eax
push 2
xor edi, edi
mov dword [esp + 0x18], 0x128
mov dword [0x4133a0], eax
mov dword [0x4133a4], eax
mov dword [0x4133a8], eax
mov dword [0x4133ac], eax
mov dword [0x4133b0], eax
mov dword [0x4133b4], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
test ebp, ebp
je 0x4010ac
lea ecx, [esp + 0x10]
push ecx
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4010ac
push esi
mov esi, 0x4133a0
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0040d953
add esp, 8
test eax, eax
jne 0x40109c
mov eax, dword [esp + 0x1c]
mov dword [ebx], eax
mov dword [esi], eax
mov edi, 1
add esi, 4
lea ecx, [esp + 0x14]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401076
pop esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x138]
mov eax, edi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401a40
add esp, 0x130
ret

Function at 0x401100
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push 0x4010d0
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret

Function at 0x401130
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov eax, dword [esp + 4]
not eax
je 0x401163
push esi
mov esi, dword [esp + 0xc]
movzx edx, byte [esi]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40f228]
sub ecx, 1
add esi, 1
test ecx, ecx
jne 0x401143
pop esi
not eax
ret

Function at 0x401170
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
push 4
lea eax, [esp + 0x24]
push eax
push 4
lea ecx, [esp + 0x30]
push ecx
push edx
call fcn.00401130
add esp, 0xc
push eax
call fcn.00401130
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov bl, byte [esp + 0x30]
lea ebp, [esi + ecx - 1]
mov edi, ebp
add esp, 0xc
add bl, al
cmp edi, esi
jb 0x4011c5
xor byte [edi], al
push 1
push edi
push eax
call fcn.00401130
sub edi, 1
add esp, 0xc
cmp edi, esi
jae 0x4011b0
cmp esi, ebp
jae 0x4011dc
lea esp, [esp]
mov dl, byte [esi + 1]
sub byte [esi], dl
add esi, 1
cmp esi, ebp
jb 0x4011d0
sub byte [esi], bl
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401210
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x208
mov eax, dword [0x41201c]
xor eax, esp
mov dword [esp + 0x204], eax
cmp dword [0x4133bc], 0
je 0x401247
mov eax, 1
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.00401a40
add esp, 0x208
ret
push ebx
push ebp
push esi
push edi
push 0x40f674
push 0x6f
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4012a7
push esi
push 0
call ebx
push esi
push 0
mov edi, eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp edi, 0x100000
mov esi, eax
ja 0x4012f4
push edi
call fcn.00401871
push edi
push esi
push eax
mov dword [0x4133c4], eax
mov dword [0x4133c8], edi
call fcn.00402350
add esp, 0x10
jmp 0x4012b8
push 0
push 0
push 0x40f664
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x40f660
push 0x70
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40140b
push esi
push 0
call ebx
push esi
push 0
mov edi, eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push esi
call fcn.004011f0
add esp, 8
test eax, eax
jne 0x4012fb
xor eax, eax
jmp 0x401421
lea eax, [esp + 0x114]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x40f65c
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x40f658
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0
call fcn.004022fe
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x40141c
push eax
push 1
push edi
push esi
call fcn.004021ad
mov edx, dword [esp + 0x20]
mov esi, eax
sub esi, 1
neg esi
sbb esi, esi
push edx
add esi, 1
call fcn.00402017
add esp, 0x14
test esi, esi
je 0x4013f5
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4013f5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40f660
push esi
call edi
push 0x40f674
push esi
mov dword [0x4133cc], eax
call edi
push 0x40f654
push esi
mov dword [0x4133d0], eax
call edi
cmp dword [0x4133cc], 0
mov dword [0x4133d4], eax
je 0x4013da
cmp dword [0x4133d0], 0
je 0x4013da
test eax, eax
je 0x4013da
mov dword [0x4133bc], 1
jmp 0x40141c
push 0
push str.jimi
push 0x40f63c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x4133bc], 0
jne 0x40141c
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40141c
push 0
push 0
push 0x40f62c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x4133bc]
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401a40
add esp, 0x208
ret

Function at 0x401a40
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41201c]
jne 0x401a4a
repz ret
jmp fcn.00404b0a