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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5466b8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ef6dd
cmp word [ebx], dx
jne 0x4ef6dd
or byte [eax + edi + 0x28], 4
jmp 0x4ef6e2
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4ef845
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4ef825
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4ef723
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ef759
cmp eax, edx
jae 0x4ef767
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4ef6fe
jmp 0x4ef845
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ef820
cmp dword [ebp - 0x18], 0
je 0x4ef820
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5466b8]
test byte [eax + edi + 0x28], 0x48
je 0x4ef7f6
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4ef7ba
mov word [esi], cx
jmp 0x4ef7f1
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5466b8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5466b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5466b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4ef845
pop eax
cmp word [ebp - 4], ax
jne 0x4ef806
cmp esi, ebx
jne 0x4ef806
mov word [esi], ax
jmp 0x4ef842
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004f00d0
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4ef845
push 0xd
pop eax
jmp 0x4ef801
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5466b8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4ef83f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4ef845
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f1e49
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x53e180]
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 0x4f1e94
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004f1fe4
test al, al
jne 0x4f1e8e
sub edx, 2
cmp edx, edi
jne 0x4f1e74
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4f1eb6
lea eax, [edi + 2]
cmp edx, eax
je 0x4f1eb6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004f1d95
add esp, 0x10
jmp 0x4f1fb0
push esi
lea ecx, [ebp - 0x255]
call fcn.004f1fe4
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f1ef9
push dword [ebp - 0x25c]
jmp 0x4f1ea6
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 0x4f1f36
cmp word [ebp - 0x226], 0
je 0x4f1f57
cmp word [ebp - 0x226], ax
jne 0x4f1f36
cmp word [ebp - 0x224], 0
je 0x4f1f57
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004f1d95
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4f1fa3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4f1f10
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4f1f8b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4f1fb0
push 0x4f1bc5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004fa4f0
add esp, 0x10
jmp 0x4f1f80
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.004c662b
leave
ret

Function at 0x4f28c6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4f28d7
pop esi
ret
push ebx
push edi
push esi
call fcn.004f288f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004eb6af
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4f28ff
push ebx
push esi
push edi
call fcn.004ca340
add esp, 0xc
push 0
call fcn.004eaac3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4f2ccf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f2914
Function at 0x4f53d0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004ea77b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4f543f
cmp esi, dword [ebp - 4]
je 0x4f543a
cmp dword [ebp + 0xc], 0
je 0x4f543a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4f5417
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004f4f22
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4f5441
xor eax, eax
inc eax
jmp 0x4f5441
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4f54a6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x53e180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004ea77b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004ea77b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4f551d
cmp word [ecx], dx
je 0x4f551d
mov eax, dword [0x51c424]
push edi
dec eax
push eax
push 0x51c310
call fcn.004f5445
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4f5590
cmp word [eax], dx
je 0x4f5590
mov eax, dword [edi]
test eax, eax
je 0x4f5541
cmp word [eax], dx
je 0x4f5541
lea eax, [ebp - 0x10]
push eax
call fcn.004f4e28
jmp 0x4f554a
lea eax, [ebp - 0x10]
push eax
call fcn.004f4ec3
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4f55ba
mov eax, dword [0x51c30c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x51c000
call fcn.004f5445
add esp, 0xc
test al, al
je 0x4f55ba
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4f5585
cmp word [eax], di
je 0x4f5585
lea eax, [ebp - 0x10]
push eax
call fcn.004f4e28
pop ecx
jmp 0x4f55bc
lea eax, [ebp - 0x10]
push eax
call fcn.004f4ec3
jmp 0x4f5582
mov eax, dword [edi]
test eax, eax
je 0x4f55a7
cmp word [eax], dx
je 0x4f55a7
lea eax, [ebp - 0x10]
push eax
call fcn.004f4ddd
pop ecx
jmp 0x4f55ba
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4f5685
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004f52ca
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4f5685
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4f5685
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4f5685
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4f5612
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004eb210
test ebx, ebx
je 0x4f5680
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004eb210
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4f5685
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4f5685
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004fac8a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4f5687
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c662b
leave
ret
Function at 0x4fb335
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.004fb2b1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4fb4a4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4fb4a4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4fb459
jg 0x4fb391
test eax, eax
je 0x4fb44f
push 1
push 0x1000
call fcn.004eaa66
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4fb3b4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4fb446
push 0x8000
push ebx
call fcn.004e6643
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4fb3dd
jg 0x4fb3d8
cmp ecx, 0x1000
jb 0x4fb3dd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004ee72b
add esp, 0x10
cmp eax, 0xffffffff
je 0x4fb422
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 0x4fb3d8
jl 0x4fb409
test ecx, ecx
jne 0x4fb3ca
push dword [ebp - 0xc]
push ebx
call fcn.004e6643
push esi
call fcn.004eaac3
add esp, 0xc
xor ebx, ebx
jmp 0x4fb4b2
cmp byte [edi + 0x24], 0
je 0x4fb439
cmp dword [edi + 0x20], 5
jne 0x4fb439
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4fb444
mov ebx, dword [edi + 0x18]
jmp 0x4fb446
xor ebx, ebx
push esi
call fcn.004eaac3
pop ecx
jmp 0x4fb4b2
test ecx, ecx
jg 0x4fb41b
jl 0x4fb459
test eax, eax
jae 0x4fb41b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004f00d0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4fb479
cmp byte [edi + 0x1c], 0
je 0x4fb41b
jmp 0x4fb4aa
push ebx
call fcn.004f32a0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4fb41b
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 0x4fb4b2
cmp byte [edi + 0x1c], 0
je 0x4fb4af
mov ebx, dword [edi + 0x18]
jmp 0x4fb4b2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004f00d0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4fbaa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4fbacd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4fbacd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x4015b0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x40e044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4015ea
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401af1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, 0x40000
je 0x401604
mov eax, ebx
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 0xc]
test bl, 0x10
je 0x401704
push esi
push 0x40d1fc
lea edx, [ebp - 0x620]
call fcn.00401000
mov ebx, dword [ebp + 0xc]
add esp, 8
test bl, 2
je 0x4015d7
test ebx, 0x20000
je 0x4016f3
lea ecx, [ebp - 0x870]
push ecx
lea edx, [ebp - 0x620]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4016f3
lea eax, [ebp - 0x870]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4016ec
lea ebx, [ebx]
lea ecx, [ebp - 0x844]
mov eax, 0x40d20c
jmp 0x401680
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4016a6
test dx, dx
je 0x4016a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4016a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x401680
xor eax, eax
jmp 0x4016ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4016da
lea ecx, [ebp - 0x844]
push ecx
push esi
push str._s_s
lea edx, [ebp - 0x620]
call fcn.00401000
add esp, 0xc
lea edx, [ebp - 0x620]
push ebx
push edx
call fcn.004015b0
add esp, 8
lea eax, [ebp - 0x870]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401670
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
test ebx, 0x10000
jne 0x401714
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x401724
test al, 1
je 0x4015d7
push esi
test eax, 0x10000
je 0x40171e
call fcn.00401740
add esp, 4
jmp 0x401724
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00401af1
mov esp, ebp
pop ebp
ret

Function at 0x401af1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e044]
jne 0x401afb
repz ret
jmp fcn.0040206d
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

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

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

Disassembly:
xor edx, edx
push edi
mov edi, eax
mov eax, 0x8a3fc0
cmp dword [esp + 8], edx
jbe 0x40103d
push ebx
push esi
mov esi, ecx
sub esi, eax
imul edi, edi, 0x19660d
add edi, 0x3c6ef35f
mov ebx, edi
shr ebx, 0xc
xor bl, byte [esi + edx + 0x8a3fc0]
inc edx
mov byte [edx + 0x8a3fbf], bl
cmp edx, dword [esp + 0x10]
jb 0x401016
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov byte [ecx + 0x8a3fc0], 0
pop edi
ret

Function at 0x40104a
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], eax
xor eax, eax
push edi
mov edi, dword [ebp + 0x18]
mov dword [esi + 8], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
lea eax, [ebp + 8]
push eax
push 0x40
push dword [ebp + 0x1c]
mov dword [esi + 0xc], edx
mov edx, dword [ebp + 0x14]
push edi
mov dword [esi + 4], ecx
mov dword [esi + 0x10], edx
call dword [ecx + 0x54]
test eax, eax
jne 0x4010a2
mov dword [esi + 8], 9
jmp 0x40117b
push ebx
mov ebx, dword [esi + 0x10]
cmp ebx, 0x40
jae 0x4010b7
mov dword [esi + 8], 1
jmp 0x40117a
mov eax, dword [esi + 0xc]
mov ecx, 0x5a4d
mov dword [esi + 0x14], eax
cmp word [eax], cx
je 0x4010d3
mov dword [esi + 8], 2
jmp 0x40117a
mov ecx, dword [eax + 0x3c]
lea edx, [ecx + 0xf8]
cmp ebx, edx
jae 0x4010ec
mov dword [esi + 8], 3
jmp 0x40117a
add ecx, eax
mov dword [esi + 0x18], ecx
cmp dword [ecx], 0x4550
je 0x401102
mov dword [esi + 8], 4
jmp 0x40117a
mov edx, dword [esi + 0x18]
mov ecx, edi
and ecx, 0xfff
sub edi, ecx
lea ecx, [edi + 0x1000]
mov dword [esi + 0x20], ecx
mov edx, dword [edx + 0x54]
add edx, dword [eax + 0x3c]
cmp ebx, edx
jae 0x40112b
mov dword [esi + 8], 7
jmp 0x40117a
push edx
push eax
push ecx
call fcn.00402323
mov eax, dword [esi + 0x18]
movzx ecx, word [eax + 0x14]
xor edx, edx
add esp, 0xc
xor ebx, ebx
lea ecx, [ecx + eax + 0x18]
cmp dx, word [eax + 6]
jae 0x40117a
lea edi, [ecx + 0x10]
mov eax, dword [edi]
test eax, eax
je 0x40116b
push eax
mov eax, dword [edi + 4]
add eax, dword [esi + 0xc]
push eax
mov eax, dword [edi - 4]
add eax, dword [esi + 0x20]
push eax
call fcn.00402323
add esp, 0xc
mov eax, dword [esi + 0x18]
movzx eax, word [eax + 6]
inc ebx
add edi, 0x28
cmp ebx, eax
jl 0x40114e
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4011a2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
lea ecx, [ecx + eax + 0x78]
cmp dword [ecx + 4], 0
push ebx
push edi
jne 0x4011bd
xor eax, eax
jmp 0x40122d
push esi
mov esi, dword [ecx]
add esi, eax
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40122a
cmp dword [esi + 0x14], 0
je 0x40122a
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x24]
or dword [ebp - 8], 0xffffffff
add edi, eax
add ebx, eax
test ecx, ecx
je 0x40122a
mov dword [ebp - 4], ecx
jmp 0x4011e9
mov eax, dword [ebp + 8]
mov ecx, dword [edi]
add ecx, eax
push ecx
push dword [ebp + 0xc]
call fcn.00401a9e
pop ecx
pop ecx
test eax, eax
jne 0x401202
movzx eax, word [ebx]
mov dword [ebp - 8], eax
add edi, 4
add ebx, 2
dec dword [ebp - 4]
jne 0x4011e6
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x40122a
cmp eax, dword [esi + 0x14]
jg 0x40122a
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx]
add eax, ecx
jmp 0x40122c
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x4013d1
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
push edi
mov edi, eax
mov eax, 0x8a43c0
cmp dword [esp + 8], edx
jbe 0x40140e
push ebx
push esi
mov esi, ecx
sub esi, eax
imul edi, edi, 0x19660d
add edi, 0x3c6ef35f
mov ebx, edi
shr ebx, 0xc
xor bl, byte [esi + edx + 0x8a43c0]
inc edx
mov byte [edx + 0x8a43bf], bl
cmp edx, dword [esp + 0x10]
jb 0x4013e7
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov byte [ecx + 0x8a43c0], 0
pop edi
ret

Function at 0x40141b
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
push ebx
mov ebx, eax
test esi, esi
je 0x401451
push edi
mov edi, ecx
sub edi, 0x8a43c0
imul ebx, ebx, 0x19660d
add ebx, 0x3c6ef35f
mov eax, ebx
shr eax, 0xc
xor al, byte [edi + edx + 0x8a43c0]
inc edx
mov byte [edx + 0x8a43bf], al
cmp edx, esi
jb 0x40142d
pop edi
mov byte [esi + 0x8a43c0], 0
mov byte [esi + 0x8a43c1], 0
mov eax, 0x8a43c0
pop ebx
ret

Function at 0x401515
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
push edi
mov edi, eax
mov eax, 0x8a47c0
cmp dword [esp + 8], edx
jbe 0x401552
push ebx
push esi
mov esi, ecx
sub esi, eax
imul edi, edi, 0x19660d
add edi, 0x3c6ef35f
mov ebx, edi
shr ebx, 0xc
xor bl, byte [esi + edx + 0x8a47c0]
inc edx
mov byte [edx + 0x8a47bf], bl
cmp edx, dword [esp + 0x10]
jb 0x40152b
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov byte [ecx + 0x8a47c0], 0
pop edi
ret

Function at 0x40155f
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
push ebx
mov ebx, eax
test esi, esi
je 0x401595
push edi
mov edi, ecx
sub edi, 0x8a47c0
imul ebx, ebx, 0x19660d
add ebx, 0x3c6ef35f
mov eax, ebx
shr eax, 0xc
xor al, byte [edi + edx + 0x8a47c0]
inc edx
mov byte [edx + 0x8a47bf], al
cmp edx, esi
jb 0x401571
pop edi
mov byte [esi + 0x8a47c0], 0
mov byte [esi + 0x8a47c1], 0
mov eax, 0x8a47c0
pop ebx
ret