joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403800
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 8
mov eax, dword [eax + 4]
push esi
mov esi, dword [eax + 4]
cmp byte [esi + 0x45], 0
mov dword [esp + 4], eax
jne 0x403872
mov edx, dword [ecx + 0x18]
push ebx
mov ebx, dword [ecx + 0x14]
push ebp
push edi
mov dword [esp + 0x14], edx
lea ebp, [ecx + 4]
mov edx, 0x10
cmp dword [esp + 0x14], edx
jb 0x403824
mov ecx, dword [ebp]
jmp 0x403826
mov ecx, ebp
mov edi, dword [esi + 0x20]
mov eax, edi
cmp eax, edi
jae 0x40382f
cmp edi, ebx
mov eax, edi
jb 0x403837
mov eax, ebx
cmp dword [esi + 0x24], edx
jb 0x403841
mov edx, dword [esi + 0x10]
jmp 0x403844
lea edx, [esi + 0x10]
call fcn.00401700
test eax, eax
jne 0x403858
cmp edi, ebx
jb 0x40385a
cmp edi, ebx
setne al
test eax, eax
jge 0x40385f
mov esi, dword [esi + 8]
jmp 0x403865
mov dword [esp + 0x10], esi
mov esi, dword [esi]
cmp byte [esi + 0x45], 0
je 0x403814
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x4050a0
Capabilities:
Create thread

Disassembly:
mov eax, dword [edi + 4]
sub esp, 0xc
push ebx
mov ebx, dword [eax]
push ebp
mov ebp, dword [esp + 0x1c]
test ebp, ebp
push esi
je 0x405017
cmp ebp, edi
je 0x40501c
call fcn.004153bf
mov esi, dword [esp + 0x24]
cmp esi, ebx
jne 0x405080
mov eax, dword [esp + 0x28]
test eax, eax
mov ebx, dword [edi + 4]
je 0x405033
cmp eax, edi
je 0x405038
call fcn.004153bf
cmp dword [esp + 0x2c], ebx
jne 0x405080
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
push edx
mov ecx, edi
call fcn.00405470
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], 0
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov dword [eax], edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x14
test ebp, ebp
je 0x40508a
cmp ebp, dword [esp + 0x28]
je 0x40508f
call fcn.004153bf
cmp esi, dword [esp + 0x2c]
je 0x4050fc
test ebp, ebp
mov dword [esp + 0x24], esi
jne 0x4050a2
call fcn.004153bf
cmp byte [esi + 0x45], 0
je 0x4050af
call fcn.004153bf
jmp 0x4050e9
mov eax, dword [esi + 8]
cmp byte [eax + 0x45], 0
jne 0x4050ce
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
jne 0x4050e9
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x4050c2
jmp 0x4050e9
mov eax, dword [esi + 4]
cmp byte [eax + 0x45], 0
jne 0x4050e7
cmp esi, dword [eax + 8]
jne 0x4050e7
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x4050d7
mov esi, eax
mov edx, dword [esp + 0x24]
push edx
push ebp
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00405110
jmp 0x405080
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], esi
pop esi
mov dword [eax], ebp
pop ebp
pop ebx
add esp, 0xc
ret 0x14
Function at 0x408cac
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
xor eax, eax
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ax, word [esi + 0x4c]
push ebp
mov cl, byte [esi + 0x4e]
mov byte [eax + esi + 0x1f6c], cl
lea ecx, [esi + 0x5c]
push ecx
push esi
call fcn.00408fc0
add esp, 8
lea ecx, [esi + 0x78]
push ecx
push esi
call fcn.00408fc0
add esp, 8
push esi
call fcn.00409410
add esp, 4
mov ebp, eax
mov eax, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
add eax, 0xa
add edx, 0xa
shr eax, 3
shr edx, 3
cmp edx, eax
ja 0x408ca8
mov eax, edx
mov ecx, dword [esp + 0x20]
add ecx, 4
mov dword [esp + 0x10], ecx
cmp eax, ecx
jb 0x408cfb
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x408cfb
mov edi, dword [esp + 0x24]
push 3
push edi
lea ebp, [esi + 0x58]
push esi
call fcn.004084e0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [ebp]
push 1
add eax, 0xa
and eax, 0xfffffff8
mov dword [ebp], eax
lea edx, [eax + ecx*8]
mov eax, dword [esp + 0x24]
mov dword [ebp], edx
push eax
push ebx
push esi
call fcn.00408e60
add esp, 0x10
jmp 0x408d79
mov edi, dword [esp + 0x24]
push 3
cmp edx, eax
jne 0x408d31
lea eax, [edi + 2]
push eax
push esi
call fcn.004084e0
add esp, 0xc
lea eax, [esi + 0xf18]
lea ecx, [esi + 0xa98]
lea ebp, [esi + 0x58]
push eax
push ecx
push esi
call fcn.00409900
add esp, 0xc
mov eax, dword [esi + 0x54]
jmp 0x408d73
lea eax, [edi + 4]
inc ebp
push eax
push esi
call fcn.004084e0
add esp, 0xc
mov eax, dword [esi + 0x90]
inc eax
push ebp
push eax
mov eax, dword [esi + 0x74]
inc eax
push eax
push esi
call fcn.00409570
add esp, 0x10
lea ecx, [esi + 0x9a4]
lea edx, [esi + 0xb0]
lea ebp, [esi + 0x58]
push ecx
push edx
push esi
call fcn.00409900
add esp, 0xc
mov eax, dword [esi + 0x50]
add eax, 3
add dword [ebp], eax
push esi
call fcn.004087d0
add esp, 4
test edi, edi
je 0x408d93
push esi
call fcn.00408db0
add esp, 4
add dword [ebp], 7
mov eax, dword [ebp]
pop ebp
shr eax, 3
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x409950
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
xor eax, eax
mov word [esp + 6], ax
push ebx
mov word [esp + 8], ax
push esi
mov word [esp + 0xa], ax
push edi
mov esi, dword [esp + 0x1c]
mov byte [esp + 0xd], al
cmp word [esi + 0x48], ax
je 0x409a57
test byte [esp + 0x12], 7
jne 0x409949
mov eax, dword [esp + 0xe]
inc word [esp + 0xe]
and eax, 0xffff
mov al, byte [eax + esi + 0x1f6c]
mov byte [esp + 0xd], al
mov eax, dword [esp + 0x12]
mov ecx, dword [esi]
inc word [esp + 0x12]
and eax, 0xffff
xor ebx, ebx
test byte [esp + 0xd], 1
mov bl, byte [eax + ecx]
jne 0x40997f
mov ecx, dword [esp + 0x20]
xor eax, eax
mov ax, word [ecx + ebx*4 + 2]
lea ecx, [ecx + ebx*4]
push eax
xor eax, eax
mov ax, word [ecx]
push eax
jmp 0x409a3a
xor eax, eax
mov ecx, dword [esp + 0x20]
mov al, byte [esi + ebx + 0x1b7d]
mov dword [esp + 0x14], eax
lea ecx, [ecx + eax*4]
xor eax, eax
mov ax, word [ecx + 0x406]
push eax
xor eax, eax
mov ax, word [ecx + 0x404]
push eax
push esi
call fcn.004084e0
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [edx*4 + 0x4203e0]
test ecx, ecx
je 0x4099d1
sub ebx, dword [esi + edx*4 + 0x1e80]
push ecx
push ebx
push esi
call fcn.004084e0
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 8]
xor edi, edi
inc word [esp + 0x10]
and eax, 0xffff
mov di, word [ecx + eax*2]
cmp edi, 0x100
jl 0x409a00
mov eax, edi
xor ebx, ebx
sar eax, 7
mov bl, byte [eax + esi + 0x1d7d]
jmp 0x409a09
xor ebx, ebx
mov bl, byte [esi + edi + 0x1c7d]
mov eax, dword [esp + 0x24]
lea ecx, [eax + ebx*4]
xor eax, eax
mov ax, word [ecx + 2]
push eax
xor eax, eax
mov ax, word [ecx]
push eax
push esi
call fcn.004084e0
add esp, 0xc
mov eax, dword [ebx*4 + 0x420458]
test eax, eax
je 0x409a43
sub edi, dword [esi + ebx*4 + 0x1ef4]
push eax
push edi
push esi
call fcn.004084e0
add esp, 0xc
mov ax, word [esp + 0x12]
shr byte [esp + 0xd], 1
cmp word [esi + 0x48], ax
ja 0x409929
xor eax, eax
mov ecx, dword [esp + 0x20]
mov ax, word [ecx + 0x402]
push eax
xor eax, eax
mov ax, word [ecx + 0x400]
push eax
push esi
call fcn.004084e0
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x40cba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ecx, dword [esp + 0xc]
push esi
push edi
mov eax, dword [edx]
push ebp
xor esi, esi
mov si, word [eax + ecx]
shl esi, 2
add esi, dword [edx + 8]
mov eax, dword [esi]
cmp eax, ecx
jne 0x40cb74
mov edi, dword [esp + 0x1c]
cmp edi, eax
jb 0x40cb79
mov dword [esi], 0
mov eax, dword [edx + 0x10]
mov dword [eax + ecx*4], 0
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0xc]
mov esi, dword [eax + ecx*4]
mov dword [edx + ecx*4], esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [edx + 0xc]
lea eax, [eax + ecx*4]
mov ebx, dword [eax]
cmp edi, ebx
jb 0x40cb91
mov dword [eax], 0
mov eax, dword [edx + 0xc]
mov ebx, dword [eax + ecx*4]
mov eax, dword [edx + 0x10]
lea eax, [eax + ecx*4]
mov ebp, dword [eax]
cmp edi, ebp
jb 0x40cba9
mov dword [eax], 0
mov eax, dword [edx + 0x10]
mov ebp, dword [eax + ecx*4]
cmp ebp, ebx
jae 0x40cbc7
cmp edi, ebx
jb 0x40cbb3
xor ebx, ebx
mov dword [esi], ebx
test ebx, ebx
je 0x40cb74
lea esi, [ebx*4]
add esi, dword [edx + 0x10]
mov ebx, dword [esi]
jmp 0x40cba9
cmp edi, ebp
jb 0x40cbcd
xor ebp, ebp
mov dword [esi], ebp
test ebp, ebp
je 0x40cb74
lea esi, [ebp*4]
add esi, dword [edx + 0xc]
mov ebp, dword [esi]
jmp 0x40cba9
Function at 0x41a0f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x14
push 0x4226f8
call fcn.00416fa4
or dword [ebp - 0x20], 0xffffffff
call fcn.00418633
mov edi, eax
mov dword [ebp - 0x24], edi
call fcn.00419d4e
mov ebx, dword [edi + 0x68]
mov esi, dword [ebp + 8]
call fcn.00419df2
mov dword [ebp + 8], eax
cmp eax, dword [ebx + 4]
je 0x41a1a4
push 0x220
call fcn.00418973
pop ecx
mov ebx, eax
test ebx, ebx
je 0x41a1a8
mov ecx, 0x88
mov esi, dword [edi + 0x68]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
and dword [ebx], 0
push ebx
push dword [ebp + 8]
call fcn.00419e6c
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x41a183
mov esi, dword [ebp - 0x24]
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41a0a8
mov eax, dword [esi + 0x68]
cmp eax, 0x424780
je 0x41a0a8
push eax
call fcn.00413aa1
pop ecx
mov dword [esi + 0x68], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call edi
test byte [esi + 0x70], 2
jne 0x41a1a8
test byte [0x424ca4], 1
jne 0x41a1a8
push 0xd
call fcn.00416474
pop ecx
and dword [ebp - 4], 0
mov eax, dword [ebx + 4]
mov dword [0x426ddc], eax
mov eax, dword [ebx + 8]
mov dword [0x426de0], eax
mov eax, dword [ebx + 0xc]
mov dword [0x426de4], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp eax, 5
jge 0x41a109
mov cx, word [ebx + eax*2 + 0x10]
mov word [eax*2 + 0x426dd0], cx
inc eax
jmp 0x41a0f1
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp eax, 0x101
jge 0x41a122
mov cl, byte [eax + ebx + 0x1c]
mov byte [eax + 0x4249a0], cl
inc eax
jmp 0x41a10b
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp eax, 0x100
jge 0x41a13e
mov cl, byte [eax + ebx + 0x11d]
mov byte [eax + 0x424aa8], cl
inc eax
jmp 0x41a124
push dword [0x424ba8]
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41a161
mov eax, dword [0x424ba8]
cmp eax, 0x424780
je 0x41a161
push eax
call fcn.00413aa1
pop ecx
mov dword [0x424ba8], ebx
push ebx
call edi
mov dword [ebp - 4], 0xfffffffe
call fcn.0041a178
jmp 0x41a1a8
cmp eax, 0xffffffff
jne 0x41a1a8
cmp ebx, 0x424780
je 0x41a197
push ebx
call fcn.00413aa1
pop ecx
call fcn.00413e6d
mov dword [eax], 0x16
jmp 0x41a1a8
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
call fcn.00416fe9
ret
Function at 0x41d42b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x424544]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x426fa4]
push ebx
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, ecx
jne 0x41d3a2
lea eax, [ebp - 8]
push eax
xor esi, esi
inc esi
push esi
push 0x420edc
push esi
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
test eax, eax
je 0x41d388
mov dword [0x426fa4], esi
jmp 0x41d3bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41d39d
push 2
pop eax
mov dword [0x426fa4], eax
jmp 0x41d3a2
mov eax, dword [0x426fa4]
cmp eax, 2
je 0x41d47a
cmp eax, ebx
je 0x41d47a
cmp eax, 1
jne 0x41d4a4
cmp dword [ebp + 0x18], ebx
mov dword [ebp - 8], ebx
jne 0x41d3cc
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [ebp + 0x18], eax
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
cmp dword [ebp + 0x20], ebx
push ebx
push ebx
push dword [ebp + 0x10]
setne al
push dword [ebp + 0xc]
lea eax, [eax*8 + 1]
push eax
push dword [ebp + 0x18]
call esi
mov edi, eax
cmp edi, ebx
je 0x41d4a4
jle 0x41d437
cmp edi, 0x7ffffff0
ja 0x41d437
lea eax, [edi + edi + 8]
cmp eax, 0x400
ja 0x41d421
call fcn.0041a8e0
mov eax, esp
cmp eax, ebx
je 0x41d435
mov dword [eax], 0xcccc
jmp 0x41d432
push eax
call fcn.00413d44
cmp eax, ebx
pop ecx
je 0x41d435
mov dword [eax], 0xdddd
add eax, 8
mov ebx, eax
test ebx, ebx
je 0x41d4a4
lea eax, [edi + edi]
push eax
push 0
push ebx
call fcn.004192e0
add esp, 0xc
push edi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
push dword [ebp + 0x18]
call esi
test eax, eax
je 0x41d46e
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
mov dword [ebp - 8], eax
push ebx
call fcn.0041559f
mov eax, dword [ebp - 8]
pop ecx
jmp 0x41d4ef
xor esi, esi
cmp dword [ebp + 0x1c], ebx
jne 0x41d489
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
mov dword [ebp + 0x1c], eax
cmp dword [ebp + 0x18], ebx
jne 0x41d496
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [ebp + 0x18], eax
push dword [ebp + 0x1c]
call fcn.0041d830
cmp eax, 0xffffffff
pop ecx
jne 0x41d4a8
xor eax, eax
jmp 0x41d4ef
cmp eax, dword [ebp + 0x18]
je 0x41d4cb
push ebx
push ebx
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x18]
call fcn.0041d877
mov esi, eax
add esp, 0x18
cmp esi, ebx
je 0x41d4a4
mov dword [ebp + 0xc], esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
cmp esi, ebx
mov edi, eax
je 0x41d4ed
push esi
call fcn.00413aa1
pop ecx
mov eax, edi
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a92
leave
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412d00
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x412e87
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
nop dword [eax]
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x18
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x79
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x2b
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x4d
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x43
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x51
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x47
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x47
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x5a
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xb0
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xfa
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x49
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xb8
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x50
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x72
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x6b
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x30
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xfe
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x6f
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x29
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xe3
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x9b
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x9c
push 0
push 0
push 0
call esi
add byte [edi + ebp], 9
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xce
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x97
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x3a
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x61
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xe0
inc edi
cmp edi, ebx
jb 0x412d20
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451c59
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451c6a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405902
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b112
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b123
pop esi
ret
push ebx
push edi
push esi
call fcn.0049aff9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fd5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b14b
push ebx
push esi
push edi
call fcn.004056f5
add esp, 0xc
push 0
call fcn.0040623f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408915
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
add edi, edi
sub edi, edi
call fcn.00408944
push ecx
pop edi
xor dword [eax], esi
mov ecx, 0x29cc4a67
mov ecx, 0x461830e7
add eax, 1
add edi, edi
sub ecx, 0x7e854629
cmp eax, edx
jne fcn.00408915
ret
Function at 0x404635
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x4069e0
call fcn.004054fb
cmp dword [0x40a010], 0
mov esi, dword [ebp + 8]
jne 0x404654
mov al, 1
jmp 0x40471d
test esi, esi
je 0x40471b
xor ebx, ebx
cmp word [esi], bx
je 0x40471b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40471b
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x40471b
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0040368d
pop ecx
pop ecx
mov esi, dword [0x40a010]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x40470f
lea eax, [ebp - 0x28]
push eax
call fcn.0040368d
pop ecx
test al, al
jne 0x40470f
cmp dword [ebp - 0x18], esi
jbe 0x40470f
cmp dword [0x40a014], 8
lea eax, [ebp - 0x28]
mov ecx, section..data
cmovae ecx, dword [section..data]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x40470f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x40470f
push 0x407620
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
pop ecx
pop ecx
cmovne ebx, edx
lea ecx, [ebp - 0x28]
call fcn.00401788
mov al, bl
jmp 0x40471d
xor al, al
call fcn.004054b6
ret
Function at 0x4047c0
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push 0x230
mov eax, 0x406a17
call fcn.004054fb
xor eax, eax
mov byte [ebp - 0x231], al
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.kernel32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x404937
push str.__alloweddir
mov byte [ebp - 0x231], 1
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov esi, eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0x238], esi
pop ecx
cmp dword [ebp - 0x23c], eax
jle 0x404930
cmp dword [ebx + edi*4], 0
je 0x404923
push esi
push str.__alloweddir
push dword [ebx + edi*4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404923
mov eax, dword [ebx + edi*4]
xor ecx, ecx
mov byte [ebp - 0x231], cl
lea esi, [eax + esi*2]
cmp word [esi], cx
je 0x40491d
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp eax, 0x104
jae 0x40491d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40491d
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40491d
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0040368d
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x220], eax
je 0x40490e
mov ecx, 0x104
cmp dword [ebp - 0x220], ecx
jae 0x40490e
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push ecx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
test eax, eax
jne 0x40490e
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x40490e
lea eax, [ebp - 0x218]
mov ecx, section..data
push eax
call fcn.00404ac6
mov byte [ebp - 0x231], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00401788
mov esi, dword [ebp - 0x238]
inc edi
cmp edi, dword [ebp - 0x23c]
jl 0x404826
push ebx
call dword [sym.imp.kernel32.dll_LocalFree]
mov al, byte [ebp - 0x231]
call fcn.004054b6
ret

Function at 0x404b63
Capabilities:
Accept command line arguments

Disassembly:
push esi
push 1
call fcn.0040368d
pop ecx
push 2
call dword [sym.imp.kernel32.dll_SetErrorMode]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov esi, eax
call fcn.004047c0
test al, al
jne 0x404b92
xor eax, eax
inc eax
jmp 0x404ba1
push esi
call fcn.004049c0
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
ret 0x10

Function at 0x403304
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sbb eax, 0xec835356
push eax
push 0x40c3d8
push 0
cmp dword [esp + eax], esi
xor al, 4
add byte [esi], dl
push dword [0x40c048]
call 0x40b190
dec edi
cmp eax, 0x14c330
jl 0x403315
xor al, 0xc3
inc eax
add byte [edi], cl
test dword [eax + eax + 0x10], ecx
push 0x22
add byte [eax + 0x36], ch
outsd dx, dword [esi]
add byte [ebx], cl
push dword [0x406248]
mov dword [0xd278c340], 0xcd000001
call 0x639290
push 0
lea esp, [ebp + 1]
push eax
push 0x9400bb
invalid
Function at 0x4738eb
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4735cc
pop ebx
add eax, 1
sub eax, eax
mov edi, eax
call fcn.00473936
mov eax, 0x3c82ed4b
xor dword [esi], ebx
mov edi, edi
mov edi, 0xa9463190
add edi, 0x7ed46f5
add esi, 2
add edi, 0x3beb676b
cmp esi, edx
jl fcn.004738eb
mov eax, 0x46a58a71
mov eax, 0xef924312
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219