joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001694a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x10016b42
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x100169c4
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x10016a06
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x10016a06
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x100169ee
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
mov edx, esi
call fcn.100166f6
mov ebx, eax
mov eax, dword [esi + 0x6af90]
cmp ebx, eax
jbe 0x10016a06
mov ebx, eax
push esi
cmp ebx, 3
jb 0x10016ac6
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
call fcn.10016082
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x10016a93
cmp eax, 3
jb 0x10016a93
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x10016a41
jmp 0x10016ae4
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x10016aea
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
call fcn.10016082
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x10016b23
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x10016b03
lea edx, [ecx + esi + 0x1af70]
jmp 0x10016b05
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.10015ebe
mov eax, dword [esi + 0x6af84]
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x10016b34
call fcn.10016839
cmp dword [esi + 0x6af90], 0
jne 0x10016974
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x10016b55
lea edx, [ecx + esi + 0x1af70]
jmp 0x10016b57
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.10015ebe
pop esi
pop ebx
leave
ret
Function at 0x100176f5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, dword [esp + 8]
test ecx, ecx
jne 0x10017705
xor eax, eax
jmp 0x100177d5
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x100177b9
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x100222d0]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x100222d0]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x100222d0]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x100222d0]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x100222d0]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x100222d0]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x100222d0]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x100222d0]
add ecx, 8
sub edi, 8
dec esi
jne 0x1001771c
pop ebx
test edi, edi
je 0x100177d2
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x100222d0]
inc ecx
dec edi
jne 0x100177bd
not eax
pop esi
pop edi
ret 4
Function at 0x10018d48
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
jle 0x10018dd1
mov ecx, dword [ebp + 8]
push ebx
sub ecx, esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
jmp 0x10018d68
mov ecx, dword [ebp - 0xc]
mov cl, byte [ecx + esi]
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x100]
movzx edi, cl
add edi, eax
mov dl, byte [edi]
mov byte [ebp + 0xf], dl
mov dl, byte [eax + 0x101]
add dl, byte [ebp + 0xf]
mov dword [ebp - 0x10], edi
movzx edi, dl
add edi, eax
mov bl, byte [edi]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
mov byte [edi], bl
mov edi, dword [ebp - 0x14]
mov byte [ebp + 0xb], bl
mov bl, byte [ebp + 0xf]
mov byte [edi], bl
movzx edi, byte [ebp + 0xb]
movzx ebx, bl
add edi, ebx
mov bl, byte [ebp - 1]
and edi, 0xff
xor bl, byte [edi + eax]
inc cl
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x10018d65
pop edi
pop ebx
pop esi
leave
ret 8

Function at 0x1001a4a6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, dword [esp + 8]
test ecx, ecx
jne 0x1001a4b6
xor eax, eax
jmp 0x1001a586
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x1001a56a
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10021d40]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10021d40]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10021d40]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10021d40]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10021d40]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10021d40]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10021d40]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10021d40]
add ecx, 8
sub edi, 8
dec esi
jne 0x1001a4cd
pop ebx
test edi, edi
je 0x1001a583
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x10021d40]
inc ecx
dec edi
jne 0x1001a56e
not eax
pop esi
pop edi
ret 4
Function at 0x1001d448
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x100204bc
sub eax, eax
test esi, esi
je 0x1001d520
sub eax, 1
test ecx, ecx
je 0x1001d51e
test esi, 3
je 0x1001d486
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x1001d46b
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x1001d505
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x1001d490
mov ecx, edx
test ecx, ecx
je 0x1001d51e
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x1001d50b
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x4966b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c5dd0]
jne 0x4966c0
repz ret
jmp fcn.0049ac46

Function at 0x498e50
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c5dd0]
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.00493582
and dword [ebp - 0x14], 0
cmp dword [0x4c8cd4], 0
mov dword [ebp - 0x18], eax
jne 0x498f03
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x498fab
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a3020
push ebx
call edi
test eax, eax
je 0x498fab
mov esi, dword [fcn.0048f930]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c8cd4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c8cd8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c8cdc], eax
call edi
push eax
call esi
mov dword [0x4c8ce4], eax
test eax, eax
je 0x498f03
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c8ce0], eax
mov eax, dword [0x4c8ce0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.0048f934]
cmp eax, ecx
je 0x498f5c
cmp dword [0x4c8ce4], ecx
je 0x498f5c
push eax
call esi
push dword [0x4c8ce4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x498f5c
test ebx, ebx
je 0x498f5c
call edi
test eax, eax
je 0x498f53
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x498f53
test byte [ebp - 8], 1
jne 0x498f5c
or dword [ebp + 0x10], 0x200000
jmp 0x498f8f
mov eax, dword [0x4c8cd8]
cmp eax, dword [ebp - 0x18]
je 0x498f8f
push eax
call esi
test eax, eax
je 0x498f8f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x498f8f
mov eax, dword [0x4c8cdc]
cmp eax, dword [ebp - 0x18]
je 0x498f8f
push eax
call esi
test eax, eax
je 0x498f8f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c8cd4]
call esi
test eax, eax
je 0x498fab
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x498fad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004966b6
leave
ret
Function at 0x1795852
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x19840b9
jmp 0x1921335
push ecx
push esp
pop ecx
add ecx, 4
push edi
push 4
pop edi
sub ecx, edi
pop edi
xchg dword [esp], ecx
pop esp
mov dword [esp], ebx
jmp 0x1921406
jmp 0x19b28e3
jmp 0x195a255
push eax
mov dword [esp], 0x240c36c8
push esp
pop dword [esp]
add dword [esp], 4
mov ebp, dword [esp]
add esp, 4
jmp 0x195a2d4
jmp 0x198d950
jmp 0x1984170
push eax
mov eax, esp
add eax, 4
sub eax, 4
xchg dword [esp], eax
pop esp
mov dword [esp], ebp
mov dword [esp], 0x674d5ee2
mov dword [esp], eax
mov dword [esp], ebp
jmp 0x19841ea
jmp 0x195a1a7
sub esp, 4
mov dword [esp], ebx
push esp
pop ebx
add ebx, 4
sub ebx, 0x14
push ebx
push dword [esp + 4]
pop ebx
pop dword [esp]
mov esp, dword [esp]
jmp 0x198da66
jmp 0x19212d4
jmp fcn.019b29e1
Function at 0x502aa0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004598b6
mov eax, dword [0x540040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x542650]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x502c78
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x502bc7
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x502bc7
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x502ba5
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x502b29
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x502c31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x502c98
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x502c73
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x502c98
jmp 0x502b02
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a4d7
mov esp, ebp
pop ebp
ret
Function at 0x502d30
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004598b6
mov eax, dword [0x540040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x542650]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x502f1b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x502e66
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x502e66
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x502e42
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x502db9
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x502ed4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x502f3b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x502f16
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x502f3b
jmp 0x502d92
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a4d7
mov esp, ebp
pop ebp
ret
Function at 0x4038b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x424fa8], eax
pop esi
pop edi
pop ebp
ret
Function at 0x40e26c
Capabilities:
Parse pe header

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

Function at 0x412600
Capabilities:
Parse pe header

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

Function at 0x412992
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41cdcc
push 0x41cdc4
push str.FlsAlloc
push 0x1f
call fcn.00412d1e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4129c6
push dword [ebp + 8]
mov ecx, esi
call dword [section..y65r]
call esi
jmp 0x4129cc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412a10
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41cddc
push 0x41cdd4
push str.FlsGetValue
push 0x21
call fcn.00412d1e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412a47
push dword [ebp + 8]
mov ecx, esi
call dword [section..y65r]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x412a4f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41cde4
push 0x41cddc
push str.FlsSetValue
push 0x22
call fcn.00412d1e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412a89
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..y65r]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4160ad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41614a
push ebx
push esi
call fcn.0041614d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00415fb1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4160f7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416149
push edi
push eax
call fcn.00414ac5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x416117
call fcn.00413f4b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416148
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00415fb1
add esp, 0x20
test eax, eax
jne 0x416136
push edi
call fcn.00413f4b
jmp 0x41613e
push ebx
call fcn.00413f4b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x405a6c
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push 0x2b4
mov eax, 0x4e5028
call fcn.0044b05e
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x2c0], eax
test edx, edx
je 0x405c1f
cmp dword [eax + 0x14], 8
jb 0x405a99
mov ecx, dword [eax]
jmp 0x405a9b
mov ecx, eax
cmp word [ecx + edx*2 - 2], 0x5c
je 0x405ae6
push eax
lea esi, [ebp - 0x48]
call fcn.0040529d
and dword [ebp - 4], 0
mov esi, 0x4f6f4c
push esi
call fcn.00445853
pop ecx
mov edi, eax
push esi
lea eax, [ebp - 0x48]
call fcn.00406556
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push eax
call fcn.00405a6c
pop ecx
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00402a3c
jmp 0x405c1f
push 0x4f6f50
lea ebx, [ebp - 0x48]
mov ecx, eax
call fcn.004064d5
cmp dword [eax + 0x14], 8
jb 0x405afd
mov eax, dword [eax]
lea ecx, [ebp - 0x2b8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 1
xor edi, edi
lea esi, [ebp - 0x48]
mov dword [ebp - 0x2bc], eax
call fcn.00402a3c
cmp dword [ebp - 0x2bc], 0xffffffff
je 0x405c1f
lea eax, [ebp - 0x28c]
push 0x4f6f54
push eax
call fcn.00445f1a
pop ecx
pop ecx
test eax, eax
je 0x405bf8
lea eax, [ebp - 0x28c]
push 0x4f6f58
push eax
call fcn.00445f1a
pop ecx
pop ecx
test eax, eax
je 0x405bf8
mov ecx, dword [ebp - 0x2c0]
lea eax, [ebp - 0x28c]
push eax
lea ebx, [ebp - 0x2c]
call fcn.004064d5
mov dword [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x405b87
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405be8
test bl, 1
je 0x405bb3
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x405ba6
lea eax, [ebp - 0x2c]
mov ecx, ebx
and ecx, 0xfffffffe
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp + 0xc], 0
je 0x405be8
test bl, 0x10
je 0x405be8
push 0x4f6f4c
lea ebx, [ebp - 0x64]
lea ecx, [ebp - 0x2c]
call fcn.004064d5
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
push eax
call fcn.00405a6c
pop ecx
pop ecx
push 1
xor edi, edi
mov esi, ebx
call fcn.00402a3c
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00402a3c
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405b2a
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.0044b0e1
ret