joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49599c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00487cd1
xor ebx, ebx
cmp dword [0x713fe4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x495a72
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x495b52
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b0ae8
push edi
call esi
cmp eax, ebx
je 0x495b52
push eax
call fcn.00487c63
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x713fe4], eax
call esi
push eax
call fcn.00487c63
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x713fe8], eax
call esi
push eax
call fcn.00487c63
mov dword [0x713fec], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0048a493
test eax, eax
pop ecx
pop ecx
je 0x495a40
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00482098
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x495a72
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00487c63
cmp eax, ebx
pop ecx
mov dword [0x713ff4], eax
je 0x495a72
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00487c63
pop ecx
mov dword [0x713ff0], eax
mov eax, dword [0x713ff0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x495af7
cmp dword [0x713ff4], ecx
je 0x495af7
push eax
call fcn.00487cda
push dword [0x713ff4]
mov esi, eax
call fcn.00487cda
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x495af7
cmp edi, ebx
je 0x495af7
call esi
cmp eax, ebx
je 0x495ac4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x495ac4
test byte [ebp - 0x18], 1
jne 0x495af7
lea eax, [ebp - 0x10]
push eax
call fcn.0048a4ca
test eax, eax
pop ecx
je 0x495adf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00482098
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x495aee
or dword [ebp + 0x10], 0x200000
jmp 0x495b32
or dword [ebp + 0x10], 0x40000
jmp 0x495b32
mov eax, dword [0x713fe8]
cmp eax, dword [ebp - 8]
je 0x495b32
push eax
call fcn.00487cda
cmp eax, ebx
pop ecx
je 0x495b32
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x495b32
mov eax, dword [0x713fec]
cmp eax, dword [ebp - 8]
je 0x495b32
push eax
call fcn.00487cda
cmp eax, ebx
pop ecx
je 0x495b32
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x713fe4]
call fcn.00487cda
cmp eax, ebx
pop ecx
je 0x495b52
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x495b54
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x100062fa
pop dword [ebp - 0xc]
mov eax, 0x100062fa
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x36d54
push 0
mov eax, 0x11af825a
add eax, 0xfe51be0a
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x9cb52d6e
sub ecx, 0x9cb4ee30
mov esi, eax
mov edi, 0x10018600
add edi, dword [ebp - 0xc]
mov edx, 0xf5f9c184
xor dword [ebp - 8], 0x17f4c052
mov ebx, dword [edi]
mov dword [ebp - 8], 0xa12ab6b0
xor ebx, edx
sub dword [ebp - 8], 0xc28ba662
mov dword [esi], ebx
xor dword [ebp - 4], eax
add esi, 4
add edi, 0xa23e6618
sub edi, 0xa23e6614
loop 0x10006348
add eax, 0x93cd82fa
sub eax, 0x93cc932f
mov ebx, eax
add eax, 0x547cf38f
add eax, 0xab830c76
mov ecx, 0xd2a4458f
add ecx, 0x3d5bba71
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x1000c871
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp esi, 0x7ff80000
jbe 0x1000c892
lea edi, [esi - 0x7ff80000]
cmp esi, 0x80000000
jb 0x1000c897
mov ebx, 0xfff80000
jmp 0x1000c89d
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
mov edx, dword [0x10013e68]
mov eax, dword [0x10013e60]
test edx, edx
jne 0x1000c8b8
test eax, eax
je 0x1000c8cb
mov edx, eax
mov dword [0x10013e68], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x1000c8cb
cmp ecx, edi
jb 0x1000c8cb
cmp ecx, ebx
jbe 0x1000c9ab
mov edx, eax
test eax, eax
jmp 0x1000c8ed
test edx, edx
je 0x1000c8e8
mov eax, dword [edx + 8]
test eax, eax
je 0x1000c8e8
cmp eax, edi
jb 0x1000c8e8
cmp eax, ebx
jbe 0x1000c9ab
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10013e68], edx
jne 0x1000c8d1
and esi, 0xffff0000
mov eax, 0x40000000
cmp esi, eax
jbe 0x1000c9d0
lea edx, [esi - 0x40000000]
mov ecx, edi
call fcn.100062eb
mov edx, eax
test edx, edx
jne 0x1000c971
mov eax, 0x40000000
cmp esi, eax
jbe 0x1000c93e
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.100062eb
mov edx, eax
test edx, edx
jne 0x1000c971
mov eax, 0x40000000
cmp esi, eax
jae 0x1000c953
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.100062eb
mov edx, eax
test edx, edx
jne 0x1000c971
mov edx, esi
mov ecx, edi
call fcn.100062eb
mov edx, eax
test edx, edx
jne 0x1000c971
mov edx, ebx
mov ecx, esi
call fcn.100062eb
mov edx, eax
test edx, edx
je 0x1000c9ee
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10013e60]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10013e68], edx
mov dword [0x10013e60], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x1000c99b
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, edi
jb 0x1000c9ee
cmp esi, ebx
ja 0x1000c9ee
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.1000ec20
add esp, 0xc
mov eax, esi
jmp 0x1000c9f0
jae 0x1000c920
lea ecx, [esi + 0x40000000]
mov edx, ebx
call fcn.100062eb
mov edx, eax
test edx, edx
jne 0x1000c971
jmp 0x1000c940
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x1000ca7b
Capabilities:
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [0x10013e58]
xor ebx, ebx
test edi, edi
je 0x1000cab8
push esi
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1000caa9
mov esi, dword [edi]
push edi
call fcn.1000dd99
mov edi, esi
pop ecx
test esi, esi
jne 0x1000ca8a
jmp 0x1000cab7
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
mov dword [0x10013e70], ebx
pop esi
mov dword [0x10013e58], edi
mov eax, ebx
pop edi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10003582
pop dword [ebp - 0x44]
mov eax, 0x10003582
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x7b496367
sub dword [ebp - 0x54], 0x2cf71e1c
mov dword [ebp - 0x50], 0x6f85883d
sub dword [ebp - 0x50], 0x3d523bf8
mov dword [ebp - 0x4c], 0x9832e294
sub dword [ebp - 0x4c], 0x4be69e66
mov dword [ebp - 0x48], 0xfa39e237
sub dword [ebp - 0x48], 0xfa39e237
lea eax, [ebp - 0x54]
push eax
mov eax, 0x782f8f4b
add eax, 0x97d1216d
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x4763798e
add dword [ebp - 0x54], 0x2d0eefc8
mov dword [ebp - 0x50], 0xdb681ea2
add dword [ebp - 0x50], 0x660442d3
mov dword [ebp - 0x4c], 0x39306b2
sub dword [ebp - 0x4c], 0xa0239a46
mov dword [ebp - 0x48], 0x3bae79ec
sub dword [ebp - 0x48], 0x3bae79ec
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xca22a9
add eax, 0xf368dcb
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3cd5d
push 0
call eax
mov ecx, 0x59f9
mov esi, eax
mov edx, 0x6393f751
add edx, 0xac6d4aaf
add edx, dword [ebp - 0x44]
mov edi, 0x923bf0aa
add dword [ebp - 0x3c], 0x6574f46
mov ebx, dword [edx]
add dword [ebp - 0x20], 0xc58a71d8
add ebx, edi
xor dword [ebp - 0x30], eax
mov dword [esi], ebx
add dword [ebp - 0x28], 0x7aa16f3d
add esi, 0x70ab1c57
sub esi, 0x70ab1c53
add edx, 4
loop 0x10003693
add eax, 0xa4e4fdc4
sub eax, 0xa4e3a30d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x2a63172f
add ecx, 0xe59ce8d1
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x40152d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x120]
sub esp, 0x114
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
mov eax, dword [0x424c60]
or eax, 8
push eax
push 0
push esi
push edi
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov ebx, eax
test eax, eax
jne 0x4015b7
push 0x105
lea ebx, [ebp - 0x11c]
push ebx
push 0
push dword [ebp - 0x120]
call sub.ADVAPI32.DLL_RegEnumKeyA
test eax, eax
jne 0x401593
cmp dword [ebp + 0x10], 0
jne 0x4015e2
push 0
push ebx
push dword [ebp - 0x120]
call fcn.0040152d
test eax, eax
je 0x40155e
push dword [ebp - 0x120]
call sub.ADVAPI32.DLL_RegCloseKey
push 2
call fcn.00406c80
test eax, eax
je 0x4015c3
push 0
push dword [0x424c60]
push esi
push edi
call eax
mov ebx, eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
xor ebx, ebx
cmp dword [0x424c60], 0
je 0x4015d5
mov ebx, 1
jmp 0x4015b7
push esi
push edi
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
je 0x4015b7
jmp 0x4015ce
push dword [ebp - 0x120]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, 1
jmp 0x4015b9
Function at 0x4034e1
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor edi, edi
push ebx
push eax
push eax
call sub.KERNEL32.dll_GetTickCount
mov ebx, dword [ebp + 8]
add eax, 0x1f4
mov dword [ebp - 0x14], eax
mov eax, dword [0x414cb0]
sub eax, dword [0x414cc0]
sub ebx, eax
test ebx, ebx
jle 0x40365d
push dword [0x414cd0]
call fcn.00403855
push 0
push 0
push dword [0x414cb0]
push dword [0x40a014]
call sub.KERNEL32.dll_SetFilePointer
mov dword [0x414cf0], ebx
mov dword [0x414d00], 0
mov esi, dword [0x414ce0]
sub esi, dword [0x414cd0]
cmp esi, 0x4000
jle 0x403559
mov esi, 0x4000
push esi
push 0x414da0
call fcn.0040381a
or edx, 0xffffffff
test eax, eax
je 0x403682
add dword [0x414cd0], esi
mov dword [0x414d2c], esi
mov dword [0x414d28], 0x414da0
cmp dword [0x424c90], 0
je 0x4035c2
cmp dword [0x424c50], 0
jne 0x4035c2
test edi, edi
je 0x4036a9
mov eax, dword [0x414cb0]
mov edx, dword [ebp + 8]
sub eax, dword [0x414cc0]
push 0
sub edx, eax
mov eax, dword [0x414cf0]
sub eax, edx
mov dword [0x414d00], eax
call fcn.00406cc1
mov ecx, 0x414d10
mov dword [0x414d30], 0x418da0
mov dword [0x414d34], 0x8000
call fcn.00406da7
mov edx, 0xfffffffd
test eax, eax
js 0x403682
mov eax, dword [0x414d30]
mov ebx, eax
sub ebx, 0x418da0
je 0x403695
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x418da0
push dword [0x40a014]
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x40368e
cmp ebx, dword [ebp - 0x10]
jne 0x40368e
add dword [0x414cb0], ebx
cmp dword [0x414d2c], 0
jne 0x403585
mov eax, dword [0x414cb0]
mov edx, dword [0x414cc0]
sub eax, edx
mov ecx, dword [ebp + 8]
sub ecx, eax
test ecx, ecx
jg 0x403540
push 0
push 0
push edx
push dword [0x40a014]
call sub.KERNEL32.dll_SetFilePointer
test edi, edi
je 0x403680
push 0
mov eax, dword [0x414cf0]
push 0
mov dword [0x414d00], eax
push 0x113
push edi
call sub.USER32.dll_SendMessageA
push edi
call sub.USER32.dll_DestroyWindow
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov edx, 0xfffffffe
jmp 0x403682
cmp dword [0x414d2c], 0
jne 0x4036a2
test esi, esi
jne 0x403633
mov edx, 0xfffffffd
jmp 0x403682
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [ebp - 0x14]
jbe 0x4035c2
cmp dword [0x424d20], 0
jne 0x4036e1
mov eax, 0x4034cc
push eax
push 0x402eb9
push 0
push 0x6f
push dword [0x424d30]
call sub.USER32.dll_CreateDialogParamA
mov edi, eax
jmp 0x4035c2
xor eax, eax
jmp 0x4036c5
Function at 0x4036e5
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
test eax, eax
js 0x403713
push 0
add eax, dword [0x424cd8]
push 0
push eax
mov dword [0x414cc0], eax
push dword [0x40a014]
call sub.KERNEL32.dll_SetFilePointer
push 4
call fcn.004034e1
mov edx, eax
test eax, eax
js 0x403746
push 0
lea edi, [ebp - 0x10]
push edi
lea eax, [ebp - 0x14]
push 4
push eax
push dword [0x40a014]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x403741
cmp dword [ebp - 0x10], 4
je 0x403752
mov edx, 0xfffffffd
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
push dword [ebp - 0x14]
add dword [0x414cc0], 4
call fcn.004034e1
mov ebx, eax
mov edx, eax
test eax, eax
js 0x403746
test esi, esi
je 0x40379f
push 0
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
push edi
cmp eax, edx
jle 0x40377c
mov eax, edx
push eax
push esi
push dword [0x40a014]
call sub.KERNEL32.dll_ReadFile
mov edx, 0xfffffffd
test eax, eax
je 0x403746
mov ebx, dword [ebp - 0x10]
add dword [0x414cc0], ebx
mov edx, ebx
jmp 0x403746
cmp dword [ebp - 0x14], 0
jle 0x40379b
mov esi, dword [ebp - 0x14]
cmp esi, 0x4000
jle 0x4037b5
mov esi, 0x4000
push 0
push edi
push esi
push 0x414da0
push dword [0x40a014]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x403741
cmp esi, dword [ebp - 0x10]
jne 0x403741
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push 0x414da0
push dword [ebp + 0xc]
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x403810
cmp dword [ebp - 0x18], esi
jne 0x403810
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
sub eax, edx
add ebx, edx
add dword [0x414cc0], edx
mov dword [ebp - 0x14], eax
test eax, eax
jg 0x4037a5
jmp 0x40379b
mov edx, 0xfffffffe
jmp 0x403746
Function at 0x405eb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x4232a0], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x4232a0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call sub.KERNEL32.dll_CreateProcessA
xor edx, edx
test eax, eax
jne 0x405eeb
mov eax, edx
leave
ret 4
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [ebp - 0x10]
jmp 0x405ee5

Function at 0x405f8a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push esi
call fcn.004062c0
test edi, 8
mov dword [ebp - 0x158], eax
jne 0x406189
mov ebx, edi
and ebx, 1
je 0x405fd4
cmp dword [ebp - 0x158], 0
je 0x4060a9
test edi, 2
je 0x4060a9
push esi
push 0x4232f0
call fcn.0040678e
test ebx, ebx
je 0x40617e
push 0x405f83
push 0x4232f0
call fcn.004067ae
push 0x405f88
push esi
call fcn.004067ae
push esi
call fcn.004067a5
lea eax, [eax + esi]
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x14c]
push eax
push 0x4232f0
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 0x150], eax
inc eax
je 0x406097
push 0x3f
lea ebx, [ebp - 0x120]
push ebx
call fcn.004061d9
cmp byte [eax], 0
je 0x406046
cmp byte [ebp - 0x1c], 0
je 0x406046
lea ebx, [ebp - 0x1c]
cmp byte [ebx], 0x2e
je 0x40615c
push ebx
push dword [ebp - 0x154]
call fcn.0040678e
test byte [ebp - 0x14c], 0x10
je 0x406117
mov eax, edi
and eax, 3
cmp eax, 3
je 0x40610b
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x150]
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x40602a
push dword [ebp - 0x150]
call sub.KERNEL32.dll_FindClose
test edi, 1
je 0x4060a9
mov eax, dword [ebp - 0x154]
mov byte [eax - 1], 0
test edi, 1
je 0x4060c0
cmp dword [ebp - 0x158], 0
jne 0x4060ca
inc dword [0x424c38]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
push esi
call fcn.00406b8f
test eax, eax
je 0x4060c0
push esi
call fcn.004061a9
push esi
call fcn.004063d7
push esi
call sub.KERNEL32.dll_RemoveDirectoryA
test eax, eax
jne 0x406101
and edi, 4
je 0x4060ba
push esi
push 0xfffffffffffffff1
call fcn.0040559d
push 0
push esi
call fcn.00406496
jmp 0x4060c0
push esi
push 0xffffffffffffffe5
call fcn.0040559d
jmp 0x4060c0
push edi
push esi
call fcn.00405f8a
jmp 0x406076
push esi
call fcn.004063d7
push esi
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
jne 0x40614f
test edi, 4
jne 0x40613a
inc dword [0x424c38]
jmp 0x406076
push esi
push 0xfffffffffffffff1
call fcn.0040559d
push 0
push esi
call fcn.00406496
jmp 0x406076
push esi
push 0xfffffffffffffff2
call fcn.0040559d
jmp 0x406076
mov al, byte [ebx + 1]
test al, al
je 0x406076
cmp al, 0x2e
jne 0x40604f
cmp byte [ebx + 2], 0
je 0x406076
jmp 0x40604f
push esi
call fcn.00406204
jmp 0x405ff6
push esi
mov ebx, dword [0x424c38]
call sub.KERNEL32.dll_DeleteFileA
mov edx, ebx
test eax, eax
jne 0x40619e
lea edx, [ebx + 1]
mov dword [0x424c38], edx
jmp 0x4060c0
Function at 0x4062c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
push 0x4236f0
call fcn.0040678e
push 0x4236f0
call fcn.0040625d
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x406333
push ebx
call fcn.00406ad3
cmp byte [0x424ce0], 0
jns 0x4062fc
mov al, byte [ebx]
test al, al
je 0x406331
cmp al, 0x5c
je 0x406331
push 0x4236f0
call fcn.004067a5
mov edx, ebx
sub edx, 0x4236f0
cmp eax, edx
jle 0x40633a
push 0x4236f0
call fcn.00406b8f
test eax, eax
je 0x406325
test byte [eax], 0x10
je 0x406331
push 0x4236f0
call fcn.00406204
jmp 0x4062fc
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret 4
push 0x4236f0
call fcn.004061a9
push 0x4236f0
call sub.KERNEL32.dll_GetFileAttributesA
inc eax
setne al
movzx eax, al
jmp 0x406333

Function at 0x4063d7
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4063f3
and eax, 0xfffffffe
push eax
push ebx
call sub.KERNEL32.dll_SetFileAttributesA
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x4063fa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
push 0
je 0x406426
push eax
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push ebx
call sub.KERNEL32.dll_CreateFileA
mov ebx, dword [ebp - 4]
leave
ret 0xc
xor eax, eax
jmp 0x40640e

Function at 0x40642a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, 0x63
push edx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0x61736e
call sub.KERNEL32.dll_GetTickCount
push esi
mov edx, 0x1a
push 0
mov ecx, edx
xor edx, edx
div ecx
lea eax, [ebp - 0x10]
add byte [ebp - 0xe], dl
push eax
push edi
call sub.KERNEL32.dll_GetTempFileNameA
mov edx, esi
test eax, eax
jne 0x406474
dec ebx
cmp ebx, 0xffffffff
jne 0x40643c
mov byte [esi], 0
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x406496
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x10
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 1
call fcn.00406c80
test eax, eax
je 0x4064ba
push 5
push esi
push edi
call eax
mov ebx, eax
test ebx, ebx
jne 0x4065ad
mov dword [0x4242f0], 0x4c554e
test esi, esi
je 0x4064fb
push 1
push 0
push esi
call fcn.004063fa
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x400
push 0x4242f0
push esi
call sub.KERNEL32.dll_GetShortPathNameA
test eax, eax
je 0x406516
cmp eax, 0x400
jg 0x406516
push 0x400
push 0x423ef0
push edi
call sub.KERNEL32.dll_GetShortPathNameA
test eax, eax
je 0x406516
cmp eax, 0x400
jle 0x406520
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
push 0x423ef0
push 0x4242f0
push 0x40648b
push 0x423af0
call sub.USER32.dll_wsprintfA
mov dword [ebp - 0x14], eax
mov eax, dword [0x424c90]
push dword [eax + 0x128]
push 0x423ef0
call fcn.0040683a
push 4
push 0xc0000000
push 0x423ef0
call fcn.004063fa
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x4065ad
push 0
push eax
call sub.KERNEL32.dll_GetFileSize
mov edx, dword [ebp - 0x14]
mov ebx, eax
lea eax, [edx + eax + 0xa]
push eax
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov esi, eax
test eax, eax
je 0x4065a5
push 0
lea edi, [ebp - 0x10]
push edi
push ebx
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x4065a5
cmp ebx, dword [ebp - 0x10]
je 0x4065b8
push dword [ebp - 0x18]
call sub.KERNEL32.dll_CloseHandle
inc dword [0x424c40]
jmp 0x406516
push 0x406480
push esi
call fcn.00406357
test eax, eax
je 0x40663b
add eax, 0xa
push 0x406493
push eax
call fcn.00406357
mov ecx, eax
test eax, eax
je 0x406637
inc ecx
lea eax, [ebx + esi]
mov edx, ecx
mov dword [ebp - 0x1c], eax
cmp ecx, eax
jae 0x4065f6
mov edi, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [edi + edx], al
inc edx
cmp edx, dword [ebp - 0x1c]
jb 0x4065e8
mov eax, ecx
sub eax, esi
push dword [ebp - 0x14]
lea eax, [eax + esi]
push 0x423af0
push eax
call fcn.004063b1
add ebx, dword [ebp - 0x14]
push 0
push 0
push 0
push dword [ebp - 0x18]
call sub.KERNEL32.dll_SetFilePointer
lea eax, [ebp - 0x10]
push 0
push eax
push ebx
push esi
push dword [ebp - 0x18]
call sub.KERNEL32.dll_WriteFile
push esi
call sub.KERNEL32.dll_GlobalFree
jmp 0x4065a5
mov eax, ebx
jmp 0x4065fa
lea eax, [ebx + esi]
push 0x406480
push eax
add ebx, 0xa
call fcn.0040678e
jmp 0x406637
Function at 0x40664e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 8]
mov byte [ebx], 0
push eax
cmp dword [ebp + 0x18], 0
mov eax, 0x20119
jne 0x40666f
mov eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x406688
mov ebx, dword [ebp - 4]
leave
ret 0x14
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x400
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x4066b2
mov eax, dword [ebp - 0x10]
dec eax
cmp eax, 1
jbe 0x4066b5
mov byte [ebx], 0
mov byte [ebx + 0x3ff], 0
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x406681