joyce8/EMBER2024-capa huggingface dataset:
Function at 0x605f70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xef000]
push edi
or ebp, 0xffffffff
jmp 0x605f92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x605f99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x605f88
mov eax, 1
add ebx, ebx
jne 0x605fab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x605fbc
jne 0x605fdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x605fdb
dec eax
add ebx, ebx
jne 0x605fc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x605fa0
add ebx, ebx
jne 0x605fd7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x60602d
xor ecx, ecx
sub eax, 3
jb 0x605ff3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x606062
sar eax, 1
mov ebp, eax
jmp 0x605ffe
add ebx, ebx
jne 0x605ffe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x605fcc
inc ecx
add ebx, ebx
jne 0x60600c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x605fcc
add ebx, ebx
jne 0x606019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x60600e
jne 0x60602a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x60600e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x60604c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x60603e
jmp 0x605f8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x60604c
add edi, ecx
jmp 0x605f8e
pop esi
mov edi, esi
mov ecx, 0x4870
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x60606a
cmp byte [edi], 0x1e
jne 0x60606a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x60606f
lea edi, [esi + 0x202000]
mov eax, dword [edi]
or eax, eax
je 0x6060e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x217598]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2176bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x60609c
mov ecx, edi
jns 0x6060cb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2176c4]
or eax, eax
je 0x6060e1
mov dword [ebx], eax
add ebx, 4
jmp 0x6060b9
call dword [esi + 0x2176c0]
mov ebp, dword [esi + 0x2176c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x60611b
sub esp, 0xffffff80
jmp 0x494250
Function at 0x404fc5
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41d8b8
call fcn.0041cd20
push ecx
push ebx
push esi
mov esi, ecx
push 4
mov dword [ebp - 0x10], esi
or dword [esi], 0xffffffff
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.00404d8c
mov dword [ebx], 0x420640
xor ebx, ebx
mov dword [esi + 0x28], 4
mov dword [ebp - 4], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x18], 0x420658
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov byte [esi + 0x2c], 1
call fcn.004050cc
lea ecx, [esi + 0x8c]
mov byte [esi + 0x88], bl
push 3
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0x9c]
mov byte [esi + 0x98], bl
mov byte [esi + 0x99], bl
push 3
mov byte [ebp - 4], 3
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0xac]
mov byte [esi + 0xa8], bl
mov byte [esi + 0xa9], bl
mov byte [esi + 0xaa], bl
push 3
mov byte [ebp - 4], 4
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0xb8]
push 3
mov byte [ebp - 4], 5
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0xc4]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 8
mov dword [eax], 0x420650
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4050cc
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x41d903
call fcn.0041cd20
push ecx
push ebx
push esi
push edi
push 3
mov esi, ecx
pop edi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0xc]
push edi
mov dword [ebp - 4], ebx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0x18]
push edi
mov byte [ebp - 4], 1
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0x24]
push edi
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0x30]
push edi
mov byte [ebp - 4], 3
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0x40]
mov byte [esi + 0x3c], bl
push edi
mov byte [ebp - 4], 4
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0x4c]
push edi
mov byte [ebp - 4], 5
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x409cdb
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41e174
call fcn.0041cd20
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x429434], bl
push esi
mov esi, ecx
je 0x409d40
push edi
mov edi, 0x105
cmp dword [esi + 8], edi
jg 0x409d07
push edi
call fcn.0040161e
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x409d24
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x409d1c
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
pop edi
jbe 0x409d3c
cmp eax, 0x104
ja 0x409d3c
push 1
pop eax
jmp 0x409d8f
xor eax, eax
jmp 0x409d8f
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401672
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00409c9e
test al, al
je 0x409d84
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.00409d9d
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004015a1
push dword [ebp - 0x24]
call fcn.00408005
pop ecx
mov bl, 1
push dword [ebp - 0x18]
call fcn.00408005
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x409e95
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret

Function at 0x409f1e
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x41e19c
call fcn.0041cd20
sub esp, 0x18
cmp byte [0x429434], 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
jne 0x409f5f
mov edx, ebx
lea ecx, [ebp - 0x24]
call fcn.00409fca
mov eax, dword [eax]
mov edx, edi
mov ecx, eax
call fcn.00409e95
mov bl, al
push dword [ebp - 0x24]
call fcn.00408005
pop ecx
mov al, bl
jmp 0x409fbb
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push ebx
call esi
test eax, eax
je 0x409f71
mov al, 1
jmp 0x409fbb
xor eax, eax
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
call fcn.0040161e
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
mov ecx, ebx
call fcn.0040bf0d
test al, al
je 0x409fb0
push edi
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00408005
test esi, esi
pop ecx
setne al
jmp 0x409fbb
push dword [ebp - 0x18]
call fcn.00408005
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40a019
Capabilities:
Delete directory

Disassembly:
mov eax, 0x41e1c4
call fcn.0041cd20
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x429434], bl
push esi
push edi
mov edi, ecx
jne 0x40a055
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.00409fca
mov ecx, dword [eax]
call fcn.00409ea3
mov bl, al
push dword [ebp - 0x24]
call fcn.00408005
pop ecx
mov al, bl
jmp 0x40a0a9
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
call esi
test eax, eax
je 0x40a066
mov al, 1
jmp 0x40a0a9
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040161e
lea edx, [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0040bf0d
test al, al
push dword [ebp - 0x18]
je 0x40a0a1
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00408005
cmp esi, ebx
pop ecx
setne al
jmp 0x40a0a9
call fcn.00408005
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40a0b8
Capabilities:
Move file

Disassembly:
mov eax, 0x41e1e8
call fcn.0041cd20
sub esp, 0x34
push ebx
xor ebx, ebx
cmp byte [0x429434], bl
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10], ecx
jne 0x40a115
lea ecx, [ebp - 0x40]
call fcn.00409fca
mov edx, dword [ebp - 0x10]
mov esi, dword [eax]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.00409fca
mov eax, dword [eax]
mov edx, esi
mov ecx, eax
call fcn.00409f10
mov bl, al
push dword [ebp - 0x34]
call fcn.00408005
push dword [ebp - 0x40]
call fcn.00408005
pop ecx
mov al, bl
pop ecx
jmp 0x40a1a2
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push edi
push ecx
call esi
test eax, eax
je 0x40a127
mov al, 1
jmp 0x40a1a2
push 3
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.0040161e
push 3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040161e
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
mov edx, edi
mov byte [ebp - 4], 2
call fcn.00409eb0
test al, al
push dword [ebp - 0x1c]
je 0x40a191
push dword [ebp - 0x28]
call esi
mov esi, eax
push dword [ebp - 0x1c]
call fcn.00408005
push dword [ebp - 0x28]
call fcn.00408005
pop ecx
cmp esi, ebx
pop ecx
setne al
jmp 0x40a1a2
call fcn.00408005
push dword [ebp - 0x28]
call fcn.00408005
pop ecx
xor al, al
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40a1c0
Capabilities:
Create directory

Disassembly:
mov eax, 0x41e1fc
call fcn.0041cd20
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x429434], bl
push esi
push edi
mov edi, ecx
jne 0x40a1fc
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.00409fca
mov ecx, dword [eax]
call fcn.0040a1b1
mov bl, al
push dword [ebp - 0x24]
call fcn.00408005
pop ecx
mov al, bl
jmp 0x40a262
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push edi
call esi
test eax, eax
je 0x40a20e
mov al, 1
jmp 0x40a262
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40a260
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040161e
lea edx, [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0040bf0d
test al, al
je 0x40a257
push ebx
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00408005
cmp esi, ebx
pop ecx
setne al
jmp 0x40a262
push dword [ebp - 0x18]
call fcn.00408005
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40a48e
Capabilities:
Delete file

Disassembly:
mov eax, 0x41e244
call fcn.0041cd20
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x429434], bl
push esi
push edi
mov edi, ecx
jne 0x40a4ca
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.00409fca
mov ecx, dword [eax]
call fcn.0040a470
mov bl, al
push dword [ebp - 0x24]
call fcn.00408005
pop ecx
mov al, bl
jmp 0x40a52b
xor edx, edx
mov ecx, edi
call fcn.00409f1e
test al, al
je 0x40a529
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
test eax, eax
je 0x40a4e8
mov al, 1
jmp 0x40a52b
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040161e
lea edx, [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0040bf0d
test al, al
push dword [ebp - 0x18]
je 0x40a523
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00408005
cmp esi, ebx
pop ecx
setne al
jmp 0x40a52b
call fcn.00408005
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40ab0a
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x429434], 0
je 0x40ab28
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
leave
ret
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.00409fca
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
push dword [ebp - 0xc]
setne bl
call fcn.00408005
pop ecx
mov al, bl
pop ebx
leave
ret
Function at 0x40ab4e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41e334
call fcn.0041cd20
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x429434], bl
push esi
mov esi, ecx
je 0x40abb2
push edi
mov edi, 0x105
cmp dword [esi + 8], edi
jg 0x40ab7a
push edi
call fcn.0040161e
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x40ab96
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x40ab8e
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
pop edi
jbe 0x40abae
cmp eax, 0x104
ja 0x40abae
push 1
pop eax
jmp 0x40ac01
xor eax, eax
jmp 0x40ac01
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401672
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0040aace
test al, al
je 0x40abf6
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.00409d9d
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004015a1
push dword [ebp - 0x24]
call fcn.00408005
pop ecx
mov bl, 1
push dword [ebp - 0x18]
call fcn.00408005
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40aec1
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41e3d0
call fcn.0041cd20
sub esp, 0x18
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov word [eax], bx
cmp byte [0x429434], bl
je 0x40af2d
push edi
mov edi, 0x105
cmp dword [esi + 8], edi
jg 0x40aef5
push edi
call fcn.0040161e
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x40af11
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x40af09
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
pop edi
jbe 0x40af29
cmp eax, 0x104
ja 0x40af29
push 1
pop eax
jmp 0x40af7c
xor eax, eax
jmp 0x40af7c
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401672
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0040ae85
test al, al
je 0x40af71
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.00409d9d
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004015a1
push dword [ebp - 0x24]
call fcn.00408005
pop ecx
mov bl, 1
push dword [ebp - 0x18]
call fcn.00408005
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40af8a
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, 0x105
push edi
mov edi, edx
cmp dword [esi + 8], eax
mov ebx, ecx
jg 0x40afa7
push eax
mov ecx, esi
call fcn.00401672
push dword [esi]
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, esi
mov edi, eax
call fcn.00408ac2
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x40afc4
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41e41a
call fcn.0041cd20
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp byte [0x429434], bl
push esi
push edi
mov edi, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ebx
je 0x40b027
mov esi, dword [ebp + 8]
mov eax, 0x104
cmp dword [esi + 8], eax
jg 0x40affb
push eax
mov ecx, esi
call fcn.0040161e
push dword [esi]
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x40b01b
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x40b013
mov word [ecx + edx*2], bx
mov dword [esi + 4], edx
jmp 0x40b0d8
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00401672
cmp edi, ebx
mov dword [ebp - 4], ebx
je 0x40b05a
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.00409fca
mov dword [ebp - 0x10], 1
mov esi, dword [eax]
mov byte [ebp - 4], 1
jmp 0x40b05c
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, ebx
je 0x40b078
lea ecx, [ebp - 0x2c]
call fcn.00409fca
push 2
pop ecx
or dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov ecx, dword [eax]
jmp 0x40b07a
xor ecx, ecx
lea eax, [ebp - 0x20]
mov edx, esi
push eax
call fcn.0040af8a
test byte [ebp - 0x10], 2
mov esi, eax
je 0x40b09a
push dword [ebp - 0x2c]
and dword [ebp - 0x10], 0xfffffffd
call fcn.00408005
pop ecx
test byte [ebp - 0x10], 1
mov dword [ebp - 4], ebx
je 0x40b0ac
push dword [ebp - 0x38]
call fcn.00408005
pop ecx
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.00409d9d
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 3
call fcn.004015a1
push dword [ebp - 0x38]
call fcn.00408005
push dword [ebp - 0x20]
call fcn.00408005
pop ecx
mov eax, esi
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40bd93
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41e598
call fcn.0041cd20
sub esp, 0x38
mov eax, dword [edx]
push ebx
xor ebx, ebx
push esi
mov dword [edx + 4], ebx
mov word [eax], bx
mov si, word [ecx]
push edi
xor edi, edi
cmp si, bx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
je 0x40bdc7
mov eax, ecx
inc edi
inc eax
inc eax
cmp word [eax], bx
jne 0x40bdbf
cmp edi, 1
jl 0x40befc
cmp si, 0x5c
je 0x40befc
cmp si, 0x2e
jne 0x40bdf8
cmp edi, 1
je 0x40befc
cmp edi, 2
jne 0x40bdf8
cmp word [ecx + 2], si
je 0x40befc
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0040161e
cmp edi, 3
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], ebx
jle 0x40be3c
cmp word [edi + 2], 0x3a
jne 0x40be3c
cmp word [edi + 4], 0x5c
jne 0x40be3c
cmp si, 0x61
jb 0x40be30
cmp si, 0x7a
jbe 0x40be97
cmp si, 0x41
jb 0x40be3c
cmp si, 0x5a
jbe 0x40be97
mov esi, 0x105
cmp dword [ebp - 0x18], esi
jg 0x40be4f
push esi
lea ecx, [ebp - 0x20]
call fcn.0040161e
push dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [ebp - 0x20]
xor ecx, ecx
cmp word [esi], bx
je 0x40be6d
mov edx, esi
inc ecx
inc edx
inc edx
cmp word [edx], bx
jne 0x40be65
lea edx, [ecx + ecx]
cmp eax, ebx
mov word [edx + esi], bx
mov dword [ebp - 0x1c], ecx
je 0x40beef
cmp eax, 0x104
ja 0x40beef
mov eax, dword [ebp - 0x20]
cmp word [edx + eax - 2], 0x5c
je 0x40be97
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.004058a2
push str.__
lea ecx, [ebp - 0x44]
call fcn.00402cc0
lea ecx, [ebp - 0x20]
mov edx, eax
push ecx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0040b4ad
push edi
mov edx, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040c482
mov ecx, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.004015a1
push dword [ebp - 0x2c]
call fcn.00408005
push dword [ebp - 0x38]
call fcn.00408005
push dword [ebp - 0x44]
call fcn.00408005
add esp, 0xc
mov bl, 1
push dword [ebp - 0x20]
call fcn.00408005
pop ecx
mov al, bl
jmp 0x40befe
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40c08a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ecx + 4], 0
push esi
je 0x40c0ab
cmp byte [ecx + 5], 0
je 0x40c0ab
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
jmp 0x40c0ea
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c0cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c0cc
xor al, al
jmp 0x40c0ec
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0041cde0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x410666
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x41eaab
call fcn.0041cd20
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0040314e
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.0040314e
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.0040314e
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.0040314e
lea eax, [edi + 0x30]
lea ecx, [esi + 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.0040314e
mov al, byte [edi + 0x3c]
lea ecx, [esi + 0x40]
mov byte [esi + 0x3c], al
lea eax, [edi + 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.0040314e
add edi, 0x4c
lea ecx, [esi + 0x4c]
push edi
mov byte [ebp - 4], 5
call fcn.0040314e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x415a33
Capabilities:
Encode data using xor

Disassembly:
push esi
or eax, 0xffffffff
xor esi, esi
test edx, edx
jbe 0x415a60
push ebx
push edi
movzx edi, byte [esi + ecx]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x4296a0]
xor eax, edi
inc esi
cmp esi, edx
jb 0x415a3f
pop edi
pop ebx
not eax
pop esi
ret

Function at 0x41cb60
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push 0
push ecx
push edx
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov ecx, eax
mov dword [esi], eax
call fcn.0041caf0
pop esi
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx