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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x475668]
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.00439669
and dword [ebp - 0x14], 0
cmp dword [0x478218], 0
mov dword [ebp - 0x18], eax
jne 0x44ed5f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x44ee07
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x44ee07
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x478218], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47821c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x478220], eax
call edi
push eax
call esi
mov dword [0x478228], eax
test eax, eax
je 0x44ed5f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x478224], eax
mov eax, dword [0x478224]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x44edb8
cmp dword [0x478228], ecx
je 0x44edb8
push eax
call esi
push dword [0x478228]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x44edb8
test ebx, ebx
je 0x44edb8
call edi
test eax, eax
je 0x44edaf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x44edaf
test byte [ebp - 8], 1
jne 0x44edb8
or dword [ebp + 0x10], 0x200000
jmp 0x44edeb
mov eax, dword [0x47821c]
cmp eax, dword [ebp - 0x18]
je 0x44edeb
push eax
call esi
test eax, eax
je 0x44edeb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x44edeb
mov eax, dword [0x478220]
cmp eax, dword [ebp - 0x18]
je 0x44edeb
push eax
call esi
test eax, eax
je 0x44edeb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x478218]
call esi
test eax, eax
je 0x44ee07
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x44ee09
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004319f9
leave
ret

Function at 0x45a326
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x45a367
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x45a340
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x45a385
dec esi
je 0x45a37c
dec esi
jne 0x45a38a
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x401491
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x446cb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401526
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e3
cmp dword [ebp + 0x10], ebx
jne 0x40151a
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401491
test eax, eax
jne 0x4014f5
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014ca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004059e2
cmp eax, ebx
je 0x40152d
push ebx
push dword [0x446cb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401526
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x446cb0], ebx
jne 0x401523
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401523
jmp 0x401526
Function at 0x402eca
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42397c]
sub esi, dword [0x427988]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x446c20], eax
jle 0x403028
push dword [0x427984]
call fcn.00402eb3
push ebx
push ebx
push dword [0x427988]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x423978], esi
mov dword [0x4138ec], ebx
mov ebp, 0x41b978
mov eax, dword [0x427980]
sub eax, dword [0x427984]
mov edi, 0x4000
cmp eax, edi
jg 0x402f3f
mov edi, eax
push edi
mov esi, 0x423980
push esi
call fcn.00402e81
test eax, eax
je 0x40303a
add dword [0x427984], edi
mov dword [0x41b908], esi
mov dword [0x41b90c], edi
cmp dword [0x446bcc], ebx
je 0x402f96
cmp dword [0x446ca0], ebx
jne 0x402f96
mov eax, dword [0x423978]
sub eax, dword [0x42397c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x427988]
mov dword [0x4138ec], eax
call fcn.00402de2
pop ecx
mov ecx, 0x41b8f0
mov dword [0x41b910], ebp
mov dword [0x41b914], 0x8000
call fcn.004061c8
test eax, eax
jl 0x40303f
mov esi, dword [0x41b910]
sub esi, ebp
je 0x402ff4
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403044
cmp esi, dword [esp + 0x10]
jne 0x403044
add dword [0x427988], esi
cmp dword [0x41b90c], ebx
jne 0x402f65
jmp 0x403000
cmp dword [0x41b90c], ebx
jne 0x40303f
cmp edi, ebx
je 0x40303f
mov eax, dword [0x42397c]
mov ecx, eax
sub ecx, dword [0x427988]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402f29
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402de2
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x403032
push 0xfffffffffffffffd
pop eax
jmp 0x403032
push 0xfffffffffffffffe
jmp 0x403041
Function at 0x403048
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403074
mov ecx, dword [0x446c18]
push edi
add eax, ecx
push edi
push eax
push dword [0x409014]
mov dword [0x42397c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402eca
cmp eax, edi
jl 0x40316d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x403169
cmp dword [ebp - 4], esi
jne 0x403169
push dword [ebp + 8]
add dword [0x42397c], esi
call fcn.00402eca
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40316c
cmp dword [ebp + 0x10], edi
jne 0x403138
cmp dword [ebp + 8], edi
jle 0x403164
mov esi, 0x423980
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4030e8
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x403169
cmp edi, dword [ebp - 4]
jne 0x403169
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403134
cmp dword [ebp + 0x14], edi
jne 0x403134
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42397c], eax
cmp dword [ebp + 8], 0
jg 0x4030db
jmp 0x403164
push 0xfffffffffffffffe
jmp 0x40316b
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403143
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x403169
mov eax, dword [ebp - 4]
add dword [0x42397c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40316c
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x4055cd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x4399d0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x4399d0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405608
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40576c
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40576f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40579e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4057e2
test edi, edi
jne 0x4057a9
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4057dc

Function at 0x4057e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405857
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x2000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405846
cmp dword [ebp + 0x14], 1
je 0x405848
cmp dword [ebp + 0x14], 2
je 0x405848
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x439a18
push esi
call fcn.004058ff
push esi
call fcn.004056d8
mov edi, eax
test edi, edi
jne 0x405ac1
xor eax, eax
jmp 0x405b19
push edi
call fcn.00405921
test byte [0x446c28], 0x80
je 0x405ada
mov al, byte [edi]
test al, al
je 0x405abd
cmp al, 0x5c
je 0x405abd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405afa
push esi
call fcn.004059bb
test eax, eax
je 0x405af4
test byte [eax], 0x10
je 0x405b1e
push esi
call fcn.00405a79
push esi
call ebx
cmp eax, edi
jg 0x405ae5
push esi
call fcn.00405a4c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405b18
Function at 0x405dd2
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.004059e2
mov esi, dword [esp + 0x18]
test eax, eax
je 0x405df6
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405f2f
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43ba18], 0x4c554e
mov edi, 0x400
mov ebp, 0x43ba18
test esi, esi
je 0x405e3a
push 1
push 0
push esi
call fcn.0040576f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405f35
cmp eax, edi
jg 0x405f35
push edi
mov esi, 0x43c358
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405f35
cmp eax, edi
jg 0x405f35
push esi
push ebp
push str._s_s_r_n
push 0x43be18
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x446bcc]
push dword [eax + 0x128]
push esi
call fcn.00405b78
push 4
push 0xc0000000
push esi
call fcn.0040576f
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x405f2f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405f28
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405f28
cmp edi, dword [esp + 0x18]
jne 0x405f28
push str._Rename__r_n
push esi
call fcn.00405b22
test eax, eax
jne 0x405f3c
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.004058ff
add edi, 0xa
mov eax, edi
push ebx
push 0x43be18
add eax, esi
push eax
call fcn.0040572b
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x446c90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x40762c
add eax, 0xa
push eax
call fcn.00405b22
test eax, eax
je 0x405ef3
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x405f63
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405f58
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405ef5
Function at 0x405f6b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405aa0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405fa0
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x446c88], eax
jmp 0x406132
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405fbb
test eax, eax
je 0x4060dd
test cl, 2
je 0x4060dd
push edi
push ebx
mov esi, 0x43c758
push esi
call fcn.004058ff
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405fde
push str..
push esi
call edi
jmp 0x405fe4
push ebx
call fcn.00405a79
cmp byte [ebx], 0
jne 0x405ff2
cmp byte [0x43c758], 0x5c
jne 0x405ffa
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4060d2
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.00405694
cmp byte [eax], 0
je 0x40603d
cmp byte [ebp - 0x18], 0
je 0x40603d
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x406053
mov al, byte [esi + 1]
test al, al
je 0x4060b1
cmp al, 0x2e
jne 0x406053
cmp byte [esi + 2], 0
je 0x4060b1
push esi
push edi
call fcn.004058ff
test byte [ebp - 0x148], 0x10
je 0x406078
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4060b1
push dword [ebp + 0xc]
push ebx
call fcn.00405f6b
jmp 0x4060b1
push ebx
call fcn.0040574f
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4060a9
test byte [ebp + 0xc], 4
je 0x4060a1
push ebx
push 0xfffffffffffffff1
call fcn.00404991
push 0
push ebx
call fcn.00405dd2
jmp 0x4060b1
inc dword [0x446c88]
jmp 0x4060b1
push ebx
push 0xfffffffffffffff2
call fcn.00404991
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40601f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4060dc
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406131
cmp dword [ebp - 8], esi
je 0x406121
push ebx
call fcn.004059bb
test eax, eax
je 0x406131
push ebx
call fcn.00405a4c
push ebx
call fcn.0040574f
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406129
test byte [ebp + 0xc], 4
je 0x406121
push ebx
push 0xfffffffffffffff1
call fcn.00404991
push esi
push ebx
call fcn.00405dd2
jmp 0x406131
inc dword [0x446c88]
jmp 0x406131
push ebx
push 0xffffffffffffffe5
call fcn.00404991
pop esi
pop ebx
leave
ret 8
Function at 0x406137
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x43e75c], 0
jne 0x406175
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40614b
mov dword [ecx*4 + 0x43e758], eax
inc ecx
cmp ecx, 0x100
jl 0x406146
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4061a2
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x43e758]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406183
not eax
pop ebp
ret 0xc
Function at 0x101df70
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0101db57

Function at 0x101df7b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0101dce1

Function at 0x10214ac
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.01020f3c

Function at 0x1032b5f
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.01032a73

Function at 0x1039c10
Capabilities:
Get common file path

Disassembly:
mov edx, dword [0x10828f8]
sub esp, 8
mov eax, 0x31
push ebx
push esi
mov esi, dword [0x10828f0]
sub edx, esi
sub edx, 0x59
nop dword [eax + eax]
xor ecx, ecx
cmp esi, dword [0x1082900]
jne 0x1039c42
cmp ecx, dword [0x1082904]
je 0x1039c60
add edx, 0x2e
lea edx, [esi + edx*2]
sub dword [eax*8 + 0x1082900], edx
sbb dword [eax*8 + 0x1082904], ecx
mov ecx, edx
sub ecx, esi
lea esi, [ecx - 0x137ab]
sub eax, 2
cmp eax, 1
jg 0x1039c30
movzx ecx, byte [0x1082984]
add dl, 0x2c
mov ebx, dword [0x10828f4]
add dl, dl
mov dword [0x111a02c], eax
add dl, bl
add dl, cl
mov dword [esp + 8], ecx
movzx eax, dl
mov dword [0x10828f0], esi
mov esi, ecx
sub ecx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add ecx, 0xfffec859
sub al, byte [esp + 8]
mov edx, ecx
sub esi, ebx
mov dword [0x10828fc], 0
add esi, 0xfffec855
sub edx, esi
add edx, 0xffffffa5
sub al, dl
add al, 0xb
mov byte [0x1082984], al
lea eax, [ecx + esi]
lea ecx, [eax*2 + 0x164ca]
mov eax, dword [esp + 8]
sub ecx, edx
push 0x8be
push 0x111a038
lea eax, [ebx + eax*2]
mov dword [0x10829d0], ecx
lea eax, [eax*2 + 0x164c2]
sub eax, esi
mov dword [0x10828f4], eax
add eax, 0xfffffffc
add eax, ecx
mov dword [0x10828f8], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x1082940], 0x437
pop esi
pop ebx
jne 0x1039d25
cmp dword [0x1082944], 0
mov ecx, 0xfffec855
je 0x1039d2b
mov ecx, dword [0x10829d0]
mov edx, dword [0x1082980]
lea eax, [edx - 4]
add eax, ecx
cmp dword [0x1082900], 2
mov dword [0x10828f0], eax
jne 0x1039d56
cmp dword [0x1082904], 0
jne 0x1039d56
mov eax, ecx
sub eax, edx
sub eax, 0x59
jmp 0x1039d5b
lea eax, [edx - 8]
add eax, ecx
mov dword [0x10828f8], eax
add eax, 0x5c
add eax, ecx
mov dword [0x10828fc], 0
add eax, edx
mov dword [0x10829d0], eax
mov eax, dword [0x10828f4]
add esp, 8
ret
Function at 0x1068700
Capabilities:
Allocate or change rwx memory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1082980]
mov edx, dword [0x108292c]
push esi
push edi
mov edi, ecx
mov ecx, dword [0x1082928]
mov dword [ebp - 0x10], edi
cmp eax, dword [0x10829d0]
jb 0x106874c
sub ecx, dword [0x10828f8]
mov dword [0x1082928], ecx
sbb edx, dword [0x10828fc]
sub eax, dword [0x10828f8]
sub eax, 0x5b
mov dword [0x108292c], edx
mov dword [0x10829d0], eax
mov eax, dword [0x10828fc]
mov esi, dword [0x10828f8]
mov dword [ebp - 0x14], eax
add esi, 0x81
mov al, byte [0x10828f8]
add esi, edi
add al, 7
cmp dword [0x1082940], 0x437
mov byte [ebp - 1], al
mov byte [0x1082984], al
jne 0x106878b
cmp dword [0x1082944], 0
jne 0x106878b
mov esi, 0xfffec855
mov eax, dword [0x111a030]
mov dword [0x1084644], eax
mov eax, dword [0x1082930]
add eax, ecx
mov ecx, dword [0x1082934]
adc ecx, edx
cmp eax, 0x26c
jne 0x10687bc
test ecx, ecx
jne 0x10687bc
movzx eax, byte [ebp - 1]
add eax, 0x13732
add eax, esi
jmp 0x10687c1
mov eax, 0xffffffa7
push 0x8be
push 0x1083eb0
mov dword [0x1082980], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movzx edx, byte [0x1082984]
mov ecx, 0xb
mov esi, dword [0x1082980]
sub ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
cmp esi, eax
jb 0x1068802
sub dword [0x10829a4], edx
sub esi, edx
sub esi, 0x5b
mov dword [ebp - 0xc], esi
push dword [0x1084644]
mov al, byte [0x10828f8]
sub al, cl
push 0x1084648
push 0x40
push 0x412d
push dword [0x1084644]
sub al, 0x5b
mov byte [0x1082984], al
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [0x1082980]
mov ecx, 0x1082a88
mov edx, dword [0x10829d0]
nop
xor eax, eax
cmp edx, dword [0x1082900]
jne 0x1068852
cmp eax, dword [0x1082904]
je 0x106886d
mov eax, dword [ebp - 8]
add eax, 0x5c
add eax, edx
add edi, eax
mov eax, dword [ebp - 8]
sub dword [ecx], eax
sbb dword [ecx + 4], 0
sub eax, edx
lea edx, [eax - 0x137ab]
sub ecx, 0x10
cmp ecx, 0x1082908
jg 0x1068840
mov esi, dword [ebp - 8]
mov eax, esi
movzx ecx, byte [0x1082984]
sub eax, ecx
mov dword [0x10829d0], edx
add eax, 0xffffffa7
mov dword [0x1082980], edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 0xc]
jb 0x10688bf
mov eax, ecx
mov ecx, dword [0x1082928]
cdq
sub ecx, eax
mov eax, dword [0x108292c]
mov dword [0x1082928], ecx
sbb eax, edx
mov dword [0x108292c], eax
jmp 0x10688ca
mov eax, dword [0x108292c]
mov ecx, dword [0x1082928]
mov edi, dword [ebp - 8]
lea edx, [esi - 8]
mov esi, dword [ebp - 0x10]
add edx, edi
mov dword [ebp - 0xc], edx
sub edx, esi
sub edx, 0x5b
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], edx
jb 0x10688f9
sub ecx, esi
mov dword [0x1082928], ecx
sbb eax, 0
mov dword [0x108292c], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff5
add eax, edi
sub edx, eax
mov eax, dword [ebp - 8]
mov dword [0x10828f8], edx
sbb eax, 0
cmp dword [0x108295c], 0
mov dword [0x10828fc], eax
ja 0x1068932
jb 0x1068927
cmp dword [0x1082958], esi
ja 0x1068932
mov dword [0x1082940], edx
mov dword [0x1082944], eax
ret
Function at 0x4050f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
jne 0x405109
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405144
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405140
lea ebx, [ebx]
cmp esi, eax
jae 0x405144
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405130
cmp esi, eax
jb 0x40514a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret