joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42de30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a4d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x1160]
mov dword [esp + 0x20], 0xc
call fcn.00410980
lea ecx, [esi + 0x1068]
mov byte [esp + 0x20], 0xb
call fcn.00410980
lea ecx, [esi + 0xfe8]
mov byte [esp + 0x20], 0xa
call fcn.00410980
lea ecx, [esi + 0xf68]
mov byte [esp + 0x20], 9
call fcn.00410980
lea ecx, [esi + 0xee8]
mov byte [esp + 0x20], 8
call fcn.00410980
lea ecx, [esi + 0xe68]
mov byte [esp + 0x20], 7
call fcn.00410980
lea edi, [esi + 0xac0]
mov dword [esp + 0x10], edi
lea ebx, [edi + 0xe0]
mov dword [esp + 0x14], ebx
lea ecx, [ebx + 0x114]
mov byte [esp + 0x20], 0xf
call fcn.00410980
mov ecx, ebx
mov byte [esp + 0x20], 0xe
call fcn.00410980
lea ecx, [edi + 0x40]
mov byte [esp + 0x20], 0xd
call fcn.004094f0
mov ecx, edi
mov byte [esp + 0x20], 6
call fcn.00410980
push fcn.0040b5c0
push 8
lea eax, [esi + 0x600]
push 0x98
push eax
mov byte [esp + 0x30], 5
call fcn.004830a6
lea ecx, [esi + 0x568]
mov byte [esp + 0x20], 4
call fcn.00410980
lea ecx, [esi + 0x4d0]
mov byte [esp + 0x20], 3
call fcn.00410980
lea ecx, [esi + 0x438]
mov byte [esp + 0x20], 2
call fcn.00410980
lea ecx, [esi + 0x298]
mov byte [esp + 0x20], 1
call fcn.00410980
lea ecx, [esi + 0xf8]
mov byte [esp + 0x20], 0
call fcn.00410980
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call fcn.00410980
pop edi
mov ecx, dword [esp + 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x42de49
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a4d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x1160]
mov dword [esp + 0x20], 0xc
call fcn.00410980
lea ecx, [esi + 0x1068]
mov byte [esp + 0x20], 0xb
call fcn.00410980
lea ecx, [esi + 0xfe8]
mov byte [esp + 0x20], 0xa
call fcn.00410980
lea ecx, [esi + 0xf68]
mov byte [esp + 0x20], 9
call fcn.00410980
lea ecx, [esi + 0xee8]
mov byte [esp + 0x20], 8
call fcn.00410980
lea ecx, [esi + 0xe68]
mov byte [esp + 0x20], 7
call fcn.00410980
lea edi, [esi + 0xac0]
mov dword [esp + 0x10], edi
lea ebx, [edi + 0xe0]
mov dword [esp + 0x14], ebx
lea ecx, [ebx + 0x114]
mov byte [esp + 0x20], 0xf
call fcn.00410980
mov ecx, ebx
mov byte [esp + 0x20], 0xe
call fcn.00410980
lea ecx, [edi + 0x40]
mov byte [esp + 0x20], 0xd
call fcn.004094f0
mov ecx, edi
mov byte [esp + 0x20], 6
call fcn.00410980
push fcn.0040b5c0
push 8
lea eax, [esi + 0x600]
push 0x98
push eax
mov byte [esp + 0x30], 5
call fcn.004830a6
lea ecx, [esi + 0x568]
mov byte [esp + 0x20], 4
call fcn.00410980
lea ecx, [esi + 0x4d0]
mov byte [esp + 0x20], 3
call fcn.00410980
lea ecx, [esi + 0x438]
mov byte [esp + 0x20], 2
call fcn.00410980
lea ecx, [esi + 0x298]
mov byte [esp + 0x20], 1
call fcn.00410980
lea ecx, [esi + 0xf8]
mov byte [esp + 0x20], 0
call fcn.00410980
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call fcn.00410980
pop edi
mov ecx, dword [esp + 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x43c230
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x48b99f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4924e0
lea ecx, [esi + 0x31ac]
mov dword [esp + 0x20], 4
call fcn.00410980
lea ecx, [esi + 0x300c]
mov byte [esp + 0x20], 3
call fcn.00410980
lea ecx, [esi + 0x2e6c]
mov byte [esp + 0x20], 2
call fcn.00410980
lea edi, [esi + 0x26f0]
mov dword [esp + 0x10], edi
push fcn.0040b5c0
push 0xa
lea eax, [edi + 0x17c]
push 0x98
push eax
mov byte [esp + 0x30], 6
call fcn.004830a6
lea ecx, [edi + 0xf8]
mov byte [esp + 0x20], 5
call fcn.00410980
mov ecx, edi
mov byte [esp + 0x20], 1
call fcn.00410980
lea edi, [esi + 0x134]
mov dword [esp + 0x10], edi
lea ebx, [edi + 0x178]
mov dword [esp + 0x14], ebx
push fcn.00404b00
push 2
lea ecx, [ebx + 0x2104]
push 0x1a0
push ecx
mov byte [esp + 0x30], 0xa
call fcn.004830a6
push fcn.0043b240
push 2
lea edx, [ebx + 0x134]
push 0xfe8
push edx
mov byte [esp + 0x30], 9
call fcn.004830a6
mov ecx, ebx
mov byte [esp + 0x20], 8
call fcn.0040d8c0
lea ecx, [edi + 0xf8]
mov byte [esp + 0x20], 7
call fcn.00410980
mov ecx, edi
mov byte [esp + 0x20], 0
call fcn.00410980
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call fcn.0040d8c0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x45bc00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48e264
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x10], ebp
call fcn.00410920
xor ebx, ebx
lea ecx, [ebp + 0xf0]
mov dword [esp + 0x1c], ebx
call fcn.00410270
lea ecx, [ebp + 0x190]
mov byte [esp + 0x1c], 1
call fcn.004102d0
push fcn.00404b00
push fcn.00404a40
push 6
lea eax, [ebp + 0x274]
push 0x1a0
push eax
mov byte [esp + 0x30], 2
call fcn.0048319a
mov edi, 0x4a3c2c
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp], 0x492c08
mov byte [ebp + 0xa1], bl
mov byte [ebp + 0xa0], bl
mov word [ebp + 0xa2], bx
lea edx, [ebp + 0xa4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x1084]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x18
lea edi, [ebp + 0x40]
mov dword [ebp + 0xd4], ebx
mov dword [ebp + 0xd8], 0xffffffff
mov dword [ebp + 0xe0], ebx
rep stosd dword es:[edi], eax
mov ecx, 0x114
lea edi, [ebp + 0xc34]
rep stosd dword es:[edi], eax
xor ecx, ecx
pop edi
mov dword [edx], ecx
mov eax, ebp
pop esi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0xc]
mov dword [ebp + 0x1090], ebx
mov dword [ebp + 0x270], ebx
mov dword [ebp + 0xe8], 0x14
mov dword [ebp + 0xec], 0x7530
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401b4b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x401b5a
pop dword [ebp - 0x20]
mov eax, 0xc5bad4ba
sub eax, 0xc57ab960
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xf2cb59cd
sub dword [ebp - 0x30], 0xa4791482
mov dword [ebp - 0x2c], 0x26bd6687
add dword [ebp - 0x2c], 0xb75e5be
mov dword [ebp - 0x28], 0x625bb635
add dword [ebp - 0x28], 0xe9f08df9
mov dword [ebp - 0x24], 0x2d535731
add dword [ebp - 0x24], 0xd2aca8cf
lea eax, [ebp - 0x30]
push eax
mov eax, 0x201d82b2
sub eax, 0x1fdcb25e
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xb849b899
add dword [ebp - 0x30], 0xbc28b0bd
mov dword [ebp - 0x2c], 0x825d9670
sub dword [ebp - 0x2c], 0x40f134fb
mov dword [ebp - 0x28], 0x91497029
sub dword [ebp - 0x28], 0x2dda03bd
mov dword [ebp - 0x24], 0x21a2d60a
add dword [ebp - 0x24], 0xde5d29f6
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xe99d0a50
add eax, 0x16a3c5fc
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3c221
push 0
call eax
mov ecx, 0x51ba
xor esi, esi
add esi, eax
mov edi, 0xcda7eb48
add edi, 0x3299c4b8
add edi, dword [ebp - 0x20]
mov edx, 0x9fcec551
add edx, 0x1b00e783
sub dword [ebp - 0x10], ecx
mov ebx, dword [edi]
xor dword [ebp - 0x10], 0xaaa7876d
xor ebx, edx
mov dword [esi], ebx
sub dword [ebp - 0x1c], 0xe194682c
add esi, 4
add edi, 4
loop 0x401c78
add eax, 0x139bb
xor ebx, ebx
add ebx, eax
add eax, 0xc4f33be4
sub eax, 0xc4f33bdf
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x401c90
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8c75
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x4f3480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
push 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.0048485f
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 0x54], eax
mov word [ebp - 0x50], ax
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], al
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], al
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 7
push 0x4e7310
push eax
call fcn.00484d38
lea eax, [ebp - 0x3c]
push eax
call fcn.00484ff4
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
call fcn.00484d83
mov eax, dword [ebp - 0x44]
add esp, 0x10
test eax, eax
je 0x401d69
push eax
call fcn.004a25b3
add esp, 4
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], 0
test eax, eax
je 0x401d80
push eax
call fcn.004a25b3
add esp, 4
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], 0
test eax, eax
je 0x401d97
push eax
call fcn.004a25b3
add esp, 4
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x54], 0
test eax, eax
je 0x401dae
push eax
call fcn.004a25b3
add esp, 4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x5c], 0
test eax, eax
je 0x401dc5
push eax
call fcn.004a25b3
add esp, 4
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x64], 0
test eax, eax
je 0x401ddc
push eax
call fcn.004a25b3
add esp, 4
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x6c], 0
call fcn.004848b7
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x403830
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0x3c
push esi
movlpd qword [ebp - 0x18], xmm0
lea eax, [ebp - 0x3c]
movlpd qword [ebp - 0x10], xmm0
mov esi, ecx
movlpd qword [ebp - 8], xmm0
movaps xmm0, xmmword [0x4e9870]
push eax
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], str.runas
mov dword [ebp - 0x2c], esi
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40389d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Unable_to_execute__ls_as_admin:_Error__d_n
call fcn.0042aa50
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4038b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
xor eax, eax
cmp dword [ebp + 8], 1
push esi
setne al
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], eax
mov esi, ecx
lea eax, [ebp - 0x3c]
movlpd qword [ebp - 0x18], xmm0
push eax
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x403932
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Unable_to_execute__ls_as_admin:_Error__d_n
call fcn.0042aa50
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004ac478
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403950
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
mov dword [ebp - 0x28], eax
mov esi, ecx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], 0
push eax
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x4039cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Unable_to_exe11cute_2222_s_as_admin:_Error__d_n
call fcn.0042aa20
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004acb74
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4040c0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0049df10
mov eax, dword [0x4f3480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x8000000
push 3
push 0
push 1
push closesocket
push ecx
mov dword [ebp - 0x1018], edx
mov dword [ebp - 0x100c], 0
mov dword [ebp - 0x1008], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404123
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d2bd
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x404212
lea eax, [ebp - 0x1008]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x404204
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x1010]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push esi
call edi
test eax, eax
je 0x4041cd
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [ebp - 0x1010]
test eax, eax
je 0x4041cd
push 0
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call ebx
test eax, eax
je 0x4041f8
push 0
lea eax, [ebp - 0x1010]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push esi
call edi
test eax, eax
jne 0x404191
push 0
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x1014], 0x10
push eax
push dword [ebp - 0x1018]
push 2
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x40422c
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d2bd
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0049d2bd
mov esp, ebp
pop ebp
ret
Function at 0x404650
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret

Function at 0x404660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret
Function at 0x405ac0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c95d7
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x13a8
call fcn.0049df10
mov eax, dword [0x4f3480]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x13b0], esi
mov dword [ebp - 0x13a8], esi
mov dword [ebp - 0x13b4], esi
xorps xmm0, xmm0
mov dword [ebp - 0x13ac], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 0x13ac], 1
call fcn.00417ed0
call fcn.00488e7c
mov edx, eax
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x139c], edx
mov ecx, 1
nop word [eax + eax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ebp + ecx*4 - 0x139c], edx
inc ecx
cmp ecx, 0x270
jb 0x405b80
mov dword [ebp - 0x13a0], 0x270
test edi, edi
je 0x405c41
lea ecx, [ebp - 0x13a0]
call fcn.00426160
mov ecx, 0x3e
mul ecx
cmp eax, ecx
jae 0x405be8
cmp eax, 4
jae 0x405be8
mov esi, ecx
nop
lea ecx, [ebp - 0x13a0]
call fcn.00426160
mul esi
cmp eax, 4
jb 0x405bd0
mov esi, dword [ebp - 0x13b0]
mov al, byte [edx + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov byte [ebp - 0x13a4], al
cmp ecx, edx
jae 0x405c1d
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x405c0d
mov eax, dword [esi]
add eax, ecx
mov cl, byte [ebp - 0x13a4]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x405c38
push dword [ebp - 0x13a4]
mov byte [ebp - 0x13a8], 0
push dword [ebp - 0x13a8]
push ecx
mov ecx, esi
call fcn.0041d580
sub edi, 1
jne 0x405bb1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049d2bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x405c70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x405c83
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call ebx
xor ecx, ecx
mov dword [ebp - 4], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049d331
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 0xf
jbe 0x405cbc
mov esi, dword [esi]
push dword [ebp - 4]
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405cf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405cf7
push edi
xor bl, bl
call fcn.0049d32c
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov bl, 1
call fcn.0049d32c
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407300
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407329
test al, 2
je 0x407325
and eax, 0xfffffffd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
pop esi
setne al
ret
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x4081c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x4f3480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edx
mov byte [ebp - 0x439], 0
push 0
push 2
mov dword [ebp - 0x444], eax
mov ebx, ecx
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, 0xffffffff
jne 0x408215
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d2bd
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4082e5
push edi
nop word [eax + eax]
push dword [ebp - 0x430]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40830f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x408308
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408283
sub ecx, edx
mov esi, ebx
sar ecx, 1
cmp dword [ebx + 0x14], 7
jbe 0x40829c
mov esi, dword [ebx]
mov edx, dword [ebx + 0x10]
cmp edx, ecx
jne 0x408302
lea eax, [ebp - 0x20c]
test edx, edx
je 0x4082c2
mov ecx, eax
sub esi, ecx
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x408302
add eax, 2
sub edx, 1
jne 0x4082b1
mov ecx, dword [ebp - 0x444]
mov eax, dword [ebp - 0x430]
push edi
mov byte [ebp - 0x439], 1
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x440]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x439]
xor ecx, ebp
pop esi
pop ebx
call fcn.0049d2bd
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x440]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x408240
jmp 0x4082e4

Function at 0x408330
Capabilities:
Terminate process

Disassembly:
push edi
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40835d
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
setne al
pop edi
ret
xor al, al
pop edi
ret
Function at 0x408370
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9880
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4f3480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x128], edx
mov edi, ecx
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x4084c7
push 0xa
movzx eax, di
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push 0
push 0
lea eax, [ebp - 0x124]
mov dword [ebp - 0x11c], ebx
push eax
push 0x400
call edi
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x4084c7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4084c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4084c7
push dword [ebp - 0x11c]
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x128]
mov dword [ebp - 0x120], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 0x11c]
push 0
push eax
push 0x400
call edi
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 0xffffffff
je 0x4084c5
push 0
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x120]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4084c9
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049d2bd
mov esp, ebp
pop ebp
ret