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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47cfa8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x453d6a
cmp byte [ebx], 0xa
jne 0x453d6a
or byte [edi + eax + 0x28], 4
jmp 0x453d6f
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x453e6e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x453e51
inc eax
cmp dl, 0xd
je 0x453d9b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x453dc1
cmp eax, ecx
jae 0x453dcf
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x453d83
jmp 0x453e6e
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x453e4c
cmp dword [ebp - 0x10], 0
je 0x453e4c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x47cfa8]
test byte [eax + edi + 0x28], 0x48
je 0x453e26
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x453e11
mov byte [esi], dl
jmp 0x453e22
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47cfa8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x453e6e
cmp byte [ebp - 1], 0xa
jne 0x453e35
cmp esi, ebx
jne 0x453e35
mov byte [esi], 0xa
jmp 0x453e6d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00451da6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x453e6e
mov byte [esi], 0xd
jmp 0x453e6d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x47cfa8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x453e6b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x453e6e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x453e77
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 + 0x47cfa8]
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 0x453ebd
cmp word [ebx], dx
jne 0x453ebd
or byte [eax + edi + 0x28], 4
jmp 0x453ec2
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 0x454025
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 0x454005
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x453f03
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x453f39
cmp eax, edx
jae 0x453f47
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 0x453ede
jmp 0x454025
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 0x454000
cmp dword [ebp - 0x18], 0
je 0x454000
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x47cfa8]
test byte [eax + edi + 0x28], 0x48
je 0x453fd6
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 0x453f9a
mov word [esi], cx
jmp 0x453fd1
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x47cfa8]
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 + 0x47cfa8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x47cfa8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x454025
pop eax
cmp word [ebp - 4], ax
jne 0x453fe6
cmp esi, ebx
jne 0x453fe6
mov word [esi], ax
jmp 0x454022
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00451da6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x454025
push 0xd
pop eax
jmp 0x453fe1
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x47cfa8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x45401f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x454025
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 0x459054
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x472f54
push 0x472f4c
push str.FlsAlloc
push 0x1f
call fcn.00458ed3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x459088
push dword [ebp + 8]
mov ecx, esi
call dword [0x4632e4]
call esi
jmp 0x45908e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4590d2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x472f64
push 0x472f5c
push str.FlsGetValue
push 0x21
call fcn.00458ed3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x459109
push dword [ebp + 8]
mov ecx, esi
call dword [0x4632e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x459111
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x472f6c
push 0x472f64
push str.FlsSetValue
push 0x22
call fcn.00458ed3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45914b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4632e4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x45a3cc
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.0045a348
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x45a53b
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x45a53b
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x45a4f0
jg 0x45a428
test eax, eax
je 0x45a4e6
push 1
push 0x1000
call fcn.00458d0f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x45a44b
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x45a4dd
push 0x8000
push ebx
call fcn.004539f5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x45a474
jg 0x45a46f
cmp ecx, 0x1000
jb 0x45a474
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00454f94
add esp, 0x10
cmp eax, 0xffffffff
je 0x45a4b9
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 0x45a46f
jl 0x45a4a0
test ecx, ecx
jne 0x45a461
push dword [ebp - 0xc]
push ebx
call fcn.004539f5
push esi
call fcn.00457636
add esp, 0xc
xor ebx, ebx
jmp 0x45a549
cmp byte [edi + 0x24], 0
je 0x45a4d0
cmp dword [edi + 0x20], 5
jne 0x45a4d0
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x45a4db
mov ebx, dword [edi + 0x18]
jmp 0x45a4dd
xor ebx, ebx
push esi
call fcn.00457636
pop ecx
jmp 0x45a549
test ecx, ecx
jg 0x45a4b2
jl 0x45a4f0
test eax, eax
jae 0x45a4b2
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00451da6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45a510
cmp byte [edi + 0x1c], 0
je 0x45a4b2
jmp 0x45a541
push ebx
call fcn.0045a2de
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x45a4b2
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 0x45a549
cmp byte [edi + 0x1c], 0
je 0x45a546
mov ebx, dword [edi + 0x18]
jmp 0x45a549
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00451da6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45c2fb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47b380]
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 0x45c346
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0045c496
test al, al
jne 0x45c340
sub edx, 2
cmp edx, edi
jne 0x45c326
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x45c368
lea eax, [edi + 2]
cmp edx, eax
je 0x45c368
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0045c247
add esp, 0x10
jmp 0x45c462
push esi
lea ecx, [ebp - 0x255]
call fcn.0045c496
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 0x45c3ab
push dword [ebp - 0x25c]
jmp 0x45c358
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 0x45c3e8
cmp word [ebp - 0x226], 0
je 0x45c409
cmp word [ebp - 0x226], ax
jne 0x45c3e8
cmp word [ebp - 0x224], 0
je 0x45c409
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0045c247
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x45c455
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x45c3c2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x45c43d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x45c462
push 0x45c077
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0044f1d0
add esp, 0x10
jmp 0x45c432
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.00441cc6
leave
ret

Function at 0x45cd78
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45cd89
pop esi
ret
push ebx
push edi
push esi
call fcn.0045cd41
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004576d9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45cdb1
push ebx
push esi
push edi
call fcn.00443200
add esp, 0xc
push 0
call fcn.00457636
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x45d181
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045cdc6
Function at 0x4611d6
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x47b380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x461219
call fcn.00445d2e
mov dword [eax], 0xf
call fcn.00445d41
mov dword [eax], 0xd
call fcn.00445b8f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441cc6
leave
ret
test eax, eax
jne 0x461220
inc eax
jmp 0x46120d
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 0x46120b
xor eax, eax
cmp ecx, 1
setne al
jmp 0x46120d

Function at 0x462820
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46284d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46284d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x401bd7
pop dword [ebp - 0x14]
mov eax, 0x3597cba5
sub eax, 0x3557afce
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xaab6e384
sub dword [ebp - 0x24], 0x5c649e39
mov dword [ebp - 0x20], 0x5871b614
add dword [ebp - 0x20], 0xd9c19631
mov dword [ebp - 0x1c], 0x4896d458
sub dword [ebp - 0x1c], 0xfc4a902a
mov dword [ebp - 0x18], 0x7ff3d6db
add dword [ebp - 0x18], 0x800c2925
lea eax, [ebp - 0x24]
push eax
mov eax, 0x192aebcc
sub eax, 0x18ea7b6c
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xe9c958e6
sub dword [ebp - 0x24], 0x7556ef90
mov dword [ebp - 0x20], 0x666d0d62
add dword [ebp - 0x20], 0xdaff5413
mov dword [ebp - 0x1c], 0x70640998
add dword [ebp - 0x1c], 0xf30b62d4
mov dword [ebp - 0x18], 0x2520744a
sub dword [ebp - 0x18], 0x2520744a
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xbe7766ce
sub eax, 0xbe36f5ce
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x38ddf
push 0
call eax
mov ecx, 0x12b92d54
add ecx, 0xed4723d7
mov esi, eax
mov edx, 0xb476b65f
add edx, 0x4bca49a1
add edx, dword [ebp - 0x14]
mov ebx, 0x8ef54e68
sub ebx, 0x7bf927c
mov dword [ebp - 0x10], 0x63b90629
mov edi, dword [edx]
sub dword [ebp - 4], 0xc81fcf7
sub edi, ebx
xor dword [ebp - 4], edx
mov dword [esi], edi
sub dword [ebp - 0xc], 0xf21c1ef
add esi, 0x5e033881
add esi, 0xa1fcc783
add edx, 0x5828a355
add edx, 0xa7d75caf
loop 0x401cf9
add eax, 0x26de658a
add eax, 0xd922d1f5
xor ebx, ebx
add ebx, eax
add eax, 0xf8125af5
add eax, 0x7eda510
mov ecx, 0x71998f2e
add ecx, 0x8ea670d2
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x402070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4020c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4020c9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4020ba
cmp esi, ecx
jae 0x4020c9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4020a8
cmp esi, ecx
jae 0x4020c9
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x4020cb
xor eax, eax
pop esi
pop ebp
ret
Function at 0x403288
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4f8560]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x210], 2
mov edi, str.runas
jl 0x4032cd
push edi
push dword [eax + 4]
call fcn.00490f86
pop ecx
pop ecx
test eax, eax
je 0x4032ff
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 1
push 0
push edi
lea eax, [ebp - 0x20c]
push eax
push edi
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00487643
leave
ret
Function at 0x408a0d
Capabilities:
Create process on windows
Get hostname

Disassembly:
push 0x34
mov eax, 0x4ae388
call fcn.00487ec7
mov esi, ecx
mov dword [ebp - 4], 1
xor ebx, ebx
cmp dword [esi + 0x67e4], ebx
je 0x408b09
mov eax, dword [esi + 0x63b8]
cmp dword [eax - 0xc], ebx
je 0x408b09
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x10
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [ebp - 0x3c]
call fcn.0040364a
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.0040364a
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
call fcn.0040364a
mov byte [ebp - 4], 6
lea eax, [ebp - 0x30]
push dword [ebp + 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x3c]
push str._CDI___s__s___d_
push eax
call fcn.00403636
push dword [ebp + 0x10]
lea eax, [ebp - 0x30]
push dword [ebp + 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x38]
push str._s__s_r_n__d___s
push eax
call fcn.00403636
push dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push dword [ebp - 0x3c]
push str.Subject__s__Body__s_
push eax
call fcn.00403636
add esp, 0x3c
push 5
push ebx
push dword [ebp - 0x34]
push dword [esi + 0x63b8]
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg bl
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.0040259b
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.0040259b
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.0040259b
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0040259b
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040259b
mov eax, ebx
call fcn.00487e76
ret 0xc

Function at 0x408bd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
mov esi, ecx
call fcn.00488da0
add esp, 0xc
mov dword [ebp - 0x58], edi
xor eax, eax
xor edi, edi
mov word [ebp - 0x28], ax
inc edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], edi
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, edi
je 0x408c1b
xor eax, eax
jmp 0x408c51
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408c56
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 4
mov eax, 0x4ae436
call fcn.00487e94
mov esi, ecx
cmp dword [ebp + 0xc], 1
je 0x408dd4
cmp dword [ebp + 8], 0x3e8
je 0x408c80
cmp dword [esi + 0x6814], 0
je 0x408cf4
mov eax, dword [0x4fe99c]
test eax, eax
je 0x408dee
add eax, 0xfffffda8
cmp eax, 0xc7
ja 0x408cfb
lea edi, [esi + 0x63c0]
mov ecx, dword [edi]
call fcn.0043c2c5
test eax, eax
je 0x408cfb
cmp dword [ebp + 0xc], 3
jne 0x408ce4
push 0x4c9ff4
lea ecx, [ebp + 0xc]
call fcn.00402306
and dword [ebp - 4], 0
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.00408df9
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0040259b
mov eax, esi
jmp 0x408df1
push edi
mov ecx, esi
call fcn.00408df9
test eax, eax
jne 0x408dcb
xor eax, eax
jmp 0x408df1
lea ecx, [ebp + 0xc]
call fcn.0040364a
mov dword [ebp - 4], 2
mov edi, 0x4cb32c
push edi
call fcn.0048cb73
pop ecx
push eax
push edi
lea ecx, [ebp + 0xc]
call fcn.00402266
push str.OPUS
push dword [ebp + 0xc]
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x408d90
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 2
push 2
push edi
push edi
push 0x40000000
push dword [esi + 0x68d4]
mov dword [ebp - 0x10], eax
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408daa
push 0
lea eax, [ebp + 8]
push eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x408da4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0040259b
jmp 0x408cf4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x68d4]
mov ecx, esi
push eax
call fcn.00408df9
test eax, eax
je 0x408d90
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040259b
and dword [0x4fe99c], 0
jmp 0x408dee
mov eax, dword [ebp + 8]
test eax, eax
je 0x408de9
mov ecx, dword [0x4fe99c]
test ecx, ecx
je 0x408de9
cmp ecx, eax
jbe 0x408dee
mov dword [0x4fe99c], eax
xor eax, eax
inc eax
call fcn.00487e62
ret 8