joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402924
Capabilities:
Get common file path

Disassembly:
push 8
push 0x218
mov eax, 0x421698
call fcn.004213a1
cmp byte [0x43ac7c], 0
je 0x40294a
cmp dword [0x43ac70], 0
jmp 0x402b16
mov byte [0x43ac7c], 1
call fcn.004024dd
push 0x43ac74
push 0x43ac68
mov ecx, eax
call fcn.00402c2b
xor esi, esi
test al, al
jne 0x402aba
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6c4994]
cmp eax, dword [ecx + 4]
jle 0x4029be
mov edi, 0x6c4994
push edi
call fcn.004087e7
cmp dword [0x6c4994], 0xffffffff
pop ecx
jne 0x4029be
mov dword [ebp - 4], esi
call fcn.004014af
push 0x421ece
mov dword [0x6c4998], eax
call fcn.00408743
or dword [ebp - 4], 0xffffffff
pop ecx
push edi
call fcn.00408796
pop ecx
call fcn.004014af
cmp dword [0x6c4998], eax
jne 0x402a58
xor eax, eax
push esi
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x220]
push 0x25
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4029f4
xor al, al
jmp 0x402b19
cmp word [ebp - 0x220], 0
lea eax, [ebp - 0x220]
push ecx
push ecx
mov ecx, esp
je 0x402a10
add eax, 2
cmp word [eax], si
jne 0x402a08
lea edx, [ebp - 0x220]
sub eax, edx
mov dword [ecx], edx
sar eax, 1
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x224]
call fcn.00401e1b
pop ecx
pop ecx
push eax
mov ecx, 0x6c4998
call fcn.00402b4d
mov ecx, dword [ebp - 0x224]
call fcn.00401b9a
push ecx
push ecx
mov eax, esp
mov dword [eax], 0x436d7c
mov dword [eax + 4], 1
call fcn.0040169e
push 0x43ac68
lea eax, [ebp - 0x224]
push eax
call fcn.00402b9f
mov dword [ebp - 4], 1
mov edx, 0x43ac74
mov ecx, dword [eax]
add ecx, 0xc
call fcn.004011c9
or dword [ebp - 4], 0xffffffff
mov esi, eax
mov ecx, dword [ebp - 0x224]
call fcn.00401b9a
test esi, esi
jne 0x402ab8
mov esi, dword [0x43ac74]
mov edi, dword [0x43ac78]
call fcn.004024dd
push 1
push 0x43ac68
mov ecx, eax
call fcn.00402cc3
mov dword [eax], esi
mov dword [eax + 4], edi
xor esi, esi
cmp dword [0x43ac74], 0
je 0x402b0e
mov edx, dword [0x43ac6c]
lea eax, [ebp - 0x224]
push eax
mov ecx, 0x43ac74
mov dword [ebp - 0x224], esi
lea edx, [edx + 0xc]
call fcn.00401247
cmp dword [ebp - 0x224], 0
pop ecx
jne 0x402b00
xorps xmm0, xmm0
mov dword [0x43ac70], esi
movlpd qword [0x43ac74], xmm0
jmp 0x402b14
mov esi, dword [ebp - 0x224]
mov dword [0x43ac70], esi
jmp 0x402b14
mov esi, dword [0x43ac70]
test esi, esi
setne al
mov ecx, dword [ebp - 0x14]
call fcn.0042137f
ret
Function at 0x403c5e
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x27c
mov eax, 0x42186e
call fcn.00420b4a
xor esi, esi
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x26c]
call fcn.004044f2
push str..
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.00401fdd
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call fcn.004017ef
test eax, eax
jne 0x403cc7
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x274]
call fcn.0040453e
jmp 0x403d0c
lea ecx, [ebp - 0x268]
call fcn.004017ef
test eax, eax
jne 0x403cde
lea eax, [ebp - 0x26c]
jmp 0x403cb9
push ecx
push ecx
push esp
lea ecx, [ebp - 0x268]
call fcn.0040417f
mov eax, dword [ebp - 0x26c]
push ecx
push ecx
mov edx, esp
mov ecx, dword [eax + 8]
add eax, 0xc
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x274]
mov dword [edx], eax
call fcn.00404d05
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 3
push eax
mov eax, dword [ebp - 0x274]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x274]
mov ebx, eax
xor dl, dl
mov dword [ebp - 0x270], ebx
call fcn.004018e2
mov byte [ebp - 4], 1
xor dl, dl
mov ecx, dword [ebp - 0x268]
call fcn.004018e2
cmp ebx, 0xffffffff
je 0x403e60
mov edi, esi
test byte [ebp - 0x264], 6
jne 0x403e41
cmp word [ebp - 0x238], 0x2e
je 0x403e41
lea eax, [ebp - 0x238]
push eax
mov eax, dword [ebp - 0x26c]
add eax, 0xc
push eax
lea eax, [ebp - 0x268]
push str._s_s
push eax
call fcn.0040419e
add esp, 0x10
mov byte [ebp - 4], 4
test byte [ebp - 0x264], 0x10
je 0x403df5
sub esp, 0x28
mov ebx, esp
mov dword [ebp - 0x288], ebx
mov dword [ebx + 0x24], esi
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x403dc6
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x268]
push ecx
push ecx
mov edx, esp
mov ecx, dword [eax + 8]
add eax, 0xc
mov dword [edx], eax
mov dword [edx + 4], ecx
call fcn.00403c5e
mov ebx, dword [ebp - 0x270]
add esp, 0x30
mov dword [ebp - 0x278], eax
jmp 0x403e2a
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 8]
add eax, 0xc
mov dword [ebp - 0x280], ecx
mov ecx, dword [ebp + 0x34]
mov dword [ebp - 0x284], eax
test ecx, ecx
je 0x403e7d
mov eax, dword [ecx]
lea edx, [ebp - 0x284]
push edx
call dword [eax + 8]
mov dword [ebp - 0x278], 1
mov byte [ebp - 4], 1
xor dl, dl
mov ecx, dword [ebp - 0x268]
call fcn.004018e2
add edi, dword [ebp - 0x278]
lea eax, [ebp - 0x264]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403d58
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, edi
mov ecx, dword [ebp - 0x26c]
xor dl, dl
call fcn.004018e2
lea ecx, [ebp + 0x10]
call fcn.00403f02
mov eax, esi
call fcn.00420b08
ret
call fcn.00409b90
int3
Function at 0x4090e6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409125
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409125
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409125
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409125
cmp dword [ecx + 0x74], 0xe
jbe 0x409125
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x411e8b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43ba40]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411ecd
cmp byte [ebx], 0xa
jne 0x411ecd
or byte [edi + eax + 0x28], 4
jmp 0x411ed2
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x411fd5
mov cl, byte [eax]
cmp cl, 0x1a
je 0x411fb0
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x411f01
mov eax, dword [ebp - 8]
jmp 0x411f21
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x411f3d
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x411f1b
add eax, 2
mov cl, 0xa
jmp 0x411f1e
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x411ee3
jmp 0x411fd5
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 0x411fab
cmp dword [ebp - 0x10], 0
je 0x411fab
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x43ba40]
test byte [eax + edi + 0x28], 0x48
je 0x411f8a
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x411f7a
mov byte [esi], 0xa
jmp 0x411fd4
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x43ba40]
mov byte [eax + edi + 0x2a], cl
jmp 0x411fd4
cmp byte [ebp - 1], 0xa
jne 0x411f94
cmp esi, ebx
je 0x411f75
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004119f9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x411fd5
mov byte [esi], 0xd
jmp 0x411fd4
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x43ba40]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x411fd2
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x411fd5
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x411fe0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x43ba40]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x412024
push 0xa
pop esi
cmp word [ebx], si
jne 0x412024
or byte [eax + edi + 0x28], 4
jmp 0x412029
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x412194
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x41216c
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x412076
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x4120a0
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x4120bf
push 0xa
pop ebx
cmp word [edx], bx
jne 0x41208d
push ebx
add eax, 4
pop edx
jmp 0x412095
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x41203b
jmp 0x412194
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 0x412167
cmp dword [ebp - 0x14], 0
je 0x412167
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x43ba40]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x412143
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x41210b
mov word [esi], ax
jmp 0x412191
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x43ba40]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x43ba40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43ba40]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x412191
cmp word [ebp - 4], ax
jne 0x41214d
cmp esi, ebx
je 0x412103
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004119f9
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x412194
push 0xd
pop eax
jmp 0x412103
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x43ba40]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x41218e
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x412194
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41a267
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.0041a1e3
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41a3d6
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41a3d6
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41a38b
jg 0x41a2c3
test eax, eax
je 0x41a381
push 1
push 0x1000
call fcn.00418d90
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41a2e6
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41a378
push 0x8000
push ebx
call fcn.004163b9
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41a30f
jg 0x41a30a
cmp ecx, 0x1000
jb 0x41a30f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004131f2
add esp, 0x10
cmp eax, 0xffffffff
je 0x41a354
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 0x41a30a
jl 0x41a33b
test ecx, ecx
jne 0x41a2fc
push dword [ebp - 0xc]
push ebx
call fcn.004163b9
push esi
call fcn.00416a20
add esp, 0xc
xor ebx, ebx
jmp 0x41a3e4
cmp byte [edi + 0x24], 0
je 0x41a36b
cmp dword [edi + 0x20], 5
jne 0x41a36b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41a376
mov ebx, dword [edi + 0x18]
jmp 0x41a378
xor ebx, ebx
push esi
call fcn.00416a20
pop ecx
jmp 0x41a3e4
test ecx, ecx
jg 0x41a34d
jl 0x41a38b
test eax, eax
jae 0x41a34d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004119f9
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41a3ab
cmp byte [edi + 0x1c], 0
je 0x41a34d
jmp 0x41a3dc
push ebx
call fcn.00411e21
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41a34d
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 0x41a3e4
cmp byte [edi + 0x1c], 0
je 0x41a3e1
mov ebx, dword [edi + 0x18]
jmp 0x41a3e4
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004119f9
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a7b9
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x41a7d3
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x41a7ea
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x41a842
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00411e21
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x41a842
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x41a842
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41a842
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x41a83c
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x41a83e
xor bl, bl
mov al, bl
jmp 0x41a844
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x41aae2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43a040]
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 0x41ab2d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041ac7b
test al, al
jne 0x41ab27
sub edx, 2
cmp edx, edi
jne 0x41ab0d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41ab4f
lea eax, [edi + 2]
cmp edx, eax
je 0x41ab4f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041aa2e
add esp, 0x10
jmp 0x41ac47
push esi
lea ecx, [ebp - 0x255]
call fcn.0041ac7b
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41ab90
push dword [ebp - 0x25c]
jmp 0x41ab3f
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 0x41abcd
cmp word [ebp - 0x226], 0
je 0x41abee
cmp word [ebp - 0x226], ax
jne 0x41abcd
cmp word [ebp - 0x224], 0
je 0x41abee
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041aa2e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41ac3a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41aba7
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41ac22
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41ac47
push 0x41a85e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00413450
add esp, 0x10
jmp 0x41ac17
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.004082f9
leave
ret

Function at 0x41b544
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41b555
pop esi
ret
push ebx
push edi
push esi
call fcn.0041b50d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00416a70
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41b57d
push ebx
push esi
push edi
call fcn.0040ab20
add esp, 0xc
push 0
call fcn.00416a20
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41b94c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b592
Function at 0x420dc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420ded
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420ded
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40452b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040348c
and dword [ebp - 0x14], 0
cmp dword [0x40b924], 0
mov dword [ebp - 0x18], eax
jne 0x4045de
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404686
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404686
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b924], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b928], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b92c], eax
call edi
push eax
call esi
mov dword [0x40b934], eax
test eax, eax
je 0x4045de
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b930], eax
mov eax, dword [0x40b930]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x404637
cmp dword [0x40b934], ecx
je 0x404637
push eax
call esi
push dword [0x40b934]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404637
test ebx, ebx
je 0x404637
call edi
test eax, eax
je 0x40462e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40462e
test byte [ebp - 8], 1
jne 0x404637
or dword [ebp + 0x10], 0x200000
jmp 0x40466a
mov eax, dword [0x40b928]
cmp eax, dword [ebp - 0x18]
je 0x40466a
push eax
call esi
test eax, eax
je 0x40466a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40466a
mov eax, dword [0x40b92c]
cmp eax, dword [ebp - 0x18]
je 0x40466a
push eax
call esi
test eax, eax
je 0x40466a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b924]
call esi
test eax, eax
je 0x404686
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404688
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404896
leave
ret

Function at 0x404896
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a700]
jne 0x4048a0
repz ret
jmp fcn.00405a36
Function at 0x4012c0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x204
mov ebx, dword [esp + 0x224]
mov ebp, dword [esp + 0x220]
mov esi, dword [esp + 0x218]
mov eax, dword [0x4346c0]
xor eax, esp
mov dword [esp + 0x200], eax
xor ecx, ecx
nop
mov byte [esp + ecx + 0x100], cl
mov eax, ecx
cdq
idiv ebx
movzx eax, byte [ebp + edx]
mov byte [esp + ecx], al
lea eax, [ecx + 1]
mov byte [esp + ecx + 0x101], al
cdq
idiv ebx
movzx eax, byte [ebp + edx]
mov byte [esp + ecx + 1], al
add ecx, 2
cmp ecx, 0x100
jne 0x4012f0
mov eax, 1
xor ecx, ecx
nop dword [eax]
movzx edx, byte [esp + eax + 0xff]
add cl, dl
add cl, byte [esp + eax - 1]
movzx ebx, cl
mov dh, byte [esp + ebx + 0x100]
mov byte [esp + eax + 0xff], dh
mov byte [esp + ebx + 0x100], dl
movzx edx, byte [esp + eax + 0x100]
add cl, dl
add cl, byte [esp + eax]
movzx ebx, cl
mov dh, byte [esp + ebx + 0x100]
mov byte [esp + eax + 0x100], dh
mov byte [esp + ebx + 0x100], dl
add eax, 2
cmp eax, 0x101
jne 0x401330
cmp dword [esp + 0x21c], 0
jle 0x40142c
xor ebx, ebx
xor ebp, ebp
xor edi, edi
nop dword [eax]
push str.Flow
push 0x4355b8
call fcn.00401450
add esp, 8
mov ecx, eax
push 0x64
call fcn.00401730
mov ecx, eax
push 0x3eed6338
call fcn.004018b0
lea eax, [ebx + 1]
lea ecx, [ebx + 0x100]
test eax, eax
cmovns ecx, eax
and ecx, 0xffffff00
neg ecx
add ebx, ecx
inc ebx
movzx eax, byte [esp + ebx + 0x100]
mov ecx, edi
add cl, al
mov edi, ecx
movzx ecx, cl
movzx edx, byte [esp + ecx + 0x100]
mov byte [esp + ebx + 0x100], dl
mov byte [esp + ecx + 0x100], al
add al, byte [esp + ebx + 0x100]
movzx eax, al
movzx eax, byte [esp + eax + 0x100]
xor byte [esi + ebp], al
mov eax, dword [esp + 0x21c]
inc ebp
cmp eax, ebp
jne 0x4013a0
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004085f2
add esp, 0x204
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401a40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [0x4346c0]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x9385646d
push dword [0x435410]
call section..text
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
call edx
push 0x1c
push section..data
push 0x549
push 0x43301c
call fcn.004012c0
add esp, 0x10
push 0xa
push section..rdata
push edi
push esi
call fcn.004012c0
add esp, 0x10
push 0x8aafdc01
push dword [0x435410]
call section..text
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push 0x549
push 0x43301c
call eax
test eax, eax
jne 0x401ad9
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004085f2
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x10]
push esi
mov edx, 0x43301c
mov ecx, 0x27
xor ecx, 0x1af
add edx, ecx
call edx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]