joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e740
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x476c88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046dcd1
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043e0e0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046dbff
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046a3e6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046a3e6
push 1
push 0
push 0
mov ecx, esi
call fcn.0046a38e
push 1
push 0
push 1
mov ecx, esi
call fcn.0046a38e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046dd43
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43e8c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x476ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046dcd1
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043e0e0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046dbff
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43e984
cmp dword [esp + 0x40], 1
jne 0x43e982
cmp ecx, eax
jge 0x43e984
mov eax, ecx
cmp eax, 0xc8
jge 0x43e990
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043e740
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046dd43
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43f110
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x476d13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00468806
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046df79
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046f4d1
test eax, eax
je 0x43f22c
mov ecx, dword [esp + 0x3c]
call fcn.0046dfa6
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43f1f0
push edi
mov ecx, esi
call fcn.0046b56a
mov ecx, esi
call fcn.0043f390
cmp dword [esp + 0x38], 1
jne 0x43f225
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046b6d4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x441c40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441c73
push esi
call fcn.00444d30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x441c6c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441cf9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441ce2
mov eax, dword [esi + 8]
test eax, eax
je 0x441c97
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x441cde
cmp eax, 2
je 0x441ce2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x441c8a
cmp eax, 3
je 0x441cbd
cmp eax, 1
jne 0x441c8a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x441c8a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x441c8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441d20
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441d08
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441d20
add esp, 4
pop esi
ret

Function at 0x4695fc
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x469634
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004676b3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046768b
jmp 0x469640
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46acee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46ad30
call fcn.004709dd
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46ad30
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46ad27
xor eax, eax
jmp 0x46ad38
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046ad3e
pop edi
pop esi
pop ebx
ret 4

Function at 0x470f0d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x470f3b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x470f59
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00470e73
jmp 0x470f59
mov eax, dword [esi + 0x14]
test eax, eax
je 0x470f59
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00470e73
test edi, edi
mov eax, edi
jne 0x470f43
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4014eb
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov esi, eax
mov ebx, edx
mov dword [ebp - 0x12c], ecx
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [0x425b38]
or eax, 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
lea edi, [ebp - 0x121]
test eax, eax
je 0x401566
jmp 0x4015ed
cmp dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x1c]
je 0x401559
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push ecx
mov eax, 1
jmp 0x4015ed
xor ecx, ecx
mov edx, edi
call fcn.004014eb
test eax, eax
jne 0x40158c
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegEnumKeyA
sub esp, 0x10
test eax, eax
je 0x40153a
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push edi
mov dword [esp], 2
call fcn.00407d7e
push edx
test eax, eax
je 0x4015c9
mov dword [esp + 0xc], 0
mov edx, dword [0x425b38]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call eax
sub esp, 0x10
jmp 0x4015ed
mov eax, 1
cmp dword [0x425b38], 0
jne 0x4015ed
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegDeleteKeyA
push ecx
push ecx
test eax, eax
setne al
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403918
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
cmp dword [ebp + 8], 0
je 0x403946
mov eax, dword [0x40dc4c]
test eax, eax
je 0x403937
mov dword [esp], eax
call sub.USER32.dll_DestroyWindow
push ebx
mov dword [0x40dc4c], 0
jmp 0x4039f9
cmp dword [0x40dc4c], 0
je 0x403961
mov dword [esp], 0
call fcn.00408308
push ecx
jmp 0x4039f9
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [0x425b8c]
jbe 0x4039f9
cmp dword [0x425ba0], 0
je 0x4039b2
test byte [0x425b3c], 1
je 0x4039f9
call fcn.0040384c
mov dword [esp + 8], eax
mov dword [esp + 4], str....__d__
lea ebx, [ebp - 0x48]
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00406cb9
jmp 0x4039f7
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x40387c
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov eax, dword [0x425ba4]
mov dword [esp], eax
call sub.USER32.dll_CreateDialogParamA
sub esp, 0x14
mov dword [0x40dc4c], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push edx
push edx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4039fe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [0x40a014]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
xor edx, edx
test eax, eax
je 0x403a40
xor edx, edx
cmp dword [ebp - 0xc], ebx
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 8
Function at 0x403a7a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, eax
mov ebx, dword [0x415ce0]
add ebx, eax
sub ebx, dword [0x419ce4]
call sub.KERNEL32.dll_GetTickCount
add eax, 0x1f4
mov dword [0x425b8c], eax
test ebx, ebx
jle 0x403c3b
mov eax, dword [0x415cd8]
mov dword [esp], eax
call fcn.00403a49
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [0x419ce4]
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
mov dword [0x40dc44], ebx
mov dword [0x40dc48], 0
lea edi, [ebp - 0x1c]
mov ebx, dword [0x415cdc]
sub ebx, dword [0x415cd8]
cmp ebx, 0x4000
jle 0x403b0d
mov ebx, 0x4000
mov dword [esp + 4], ebx
mov dword [esp], 0x415ce4
call fcn.004039fe
push edx
push edx
test eax, eax
je 0x403c4b
add dword [0x415cd8], ebx
mov dword [0x415c68], 0x415ce4
mov dword [0x415c6c], ebx
cmp dword [0x425b48], 0
je 0x403b73
cmp dword [0x425b28], 0
jne 0x403b73
mov eax, dword [0x419ce4]
sub eax, dword [0x415ce0]
sub eax, esi
add eax, dword [0x40dc44]
mov dword [0x40dc48], eax
mov dword [esp], 0
call fcn.00403918
mov dword [0x415c70], 0x419ce8
mov dword [0x415c74], 0x8000
mov ecx, 0x415c50
call fcn.004083f2
test eax, eax
js 0x403c57
mov edx, dword [0x415c70]
sub edx, 0x419ce8
je 0x403bf3
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], 0x419ce8
mov eax, dword [0x40a010]
mov dword [esp], eax
mov dword [ebp - 0x2c], edx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
mov edx, dword [ebp - 0x2c]
je 0x403c50
cmp edx, dword [ebp - 0x1c]
jne 0x403c50
add dword [0x419ce4], edx
cmp dword [0x415c6c], 0
jne 0x403b3d
jmp 0x403c00
test ebx, ebx
je 0x403c57
cmp dword [0x415c6c], 0
jne 0x403c57
mov eax, dword [0x415ce0]
mov edx, eax
sub edx, dword [0x419ce4]
add edx, esi
test edx, edx
jg 0x403af4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
mov dword [esp], 1
call fcn.00403918
xor eax, eax
jmp 0x403c5c
or eax, 0xffffffff
jmp 0x403c5c
mov eax, 0xfffffffe
jmp 0x403c5c
mov eax, 0xfffffffd
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403c64
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
test eax, eax
js 0x403ca6
add eax, dword [0x425b84]
mov dword [0x415ce0], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
mov eax, 4
call fcn.00403a7a
mov ebx, eax
test eax, eax
js 0x403e0d
mov dword [esp + 0x10], 0
lea esi, [ebp - 0x24]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 4
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
mov ebx, 0xfffffffd
test eax, eax
je 0x403e0d
cmp dword [ebp - 0x24], 4
jne 0x403e0d
add dword [0x415ce0], 4
mov eax, dword [ebp - 0x20]
call fcn.00403a7a
mov ebx, eax
test eax, eax
js 0x403e0d
test edi, edi
jne 0x403dbd
jmp 0x403dad
cmp esi, 0x4000
jle 0x403d32
mov esi, 0x4000
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0x415ce4
mov eax, dword [0x40a010]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x403e01
cmp esi, dword [ebp - 0x24]
jne 0x403e01
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0x415ce4
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
je 0x403e08
cmp dword [ebp - 0x1c], esi
jne 0x403e08
mov eax, dword [ebp - 0x24]
add ebx, eax
sub dword [ebp - 0x20], eax
add dword [0x415ce0], eax
jmp 0x403db0
lea edi, [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
test esi, esi
jg 0x403d25
jmp 0x403e0d
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x14]
cmp eax, edx
jle 0x403dd5
mov eax, edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov eax, dword [0x40a010]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
mov ebx, 0xfffffffd
test eax, eax
je 0x403e0d
mov ebx, dword [ebp - 0x24]
add dword [0x415ce0], ebx
jmp 0x403e0d
mov ebx, 0xfffffffd
jmp 0x403e0d
mov ebx, 0xfffffffe
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x40735c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x42414c], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x42414c
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
xor edx, edx
test eax, eax
je 0x4073d6
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push eax
mov edx, dword [ebp - 0x18]
mov eax, edx
leave
ret 4

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

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

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
push ecx
xor edx, edx
cmp eax, 0xffffffff
setne dl
neg edx
and eax, edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x4076ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov esi, 0x65
lea edi, [ebp - 0x1c]
jmp 0x407742
mov dword [ebp - 0x1c], 0x61736e
call sub.KERNEL32.dll_GetTickCount
mov ecx, 0x1a
xor edx, edx
div ecx
add edx, 0x61
mov byte [ebp - 0x1a], dl
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov ecx, dword [ebp + 0xc]
mov dword [esp], ecx
call sub.KERNEL32.dll_GetTempFileNameA
sub esp, 0x10
test eax, eax
jne 0x40774a
dec esi
jne 0x407705
mov byte [ebx], 0
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x407756
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x14]
mov byte [ebx], 0
cmp dword [ebp + 0x18], 1
sbb eax, eax
xor al, al
add eax, 0x20119
lea edx, [ebp - 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x4077f5
mov dword [ebp - 0x10], 0x400
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x4077df
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
jbe 0x4077e2
mov byte [ebx], 0
mov byte [ebx + 0x3ff], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push ebx
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x407cce
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0x424590
call fcn.004078bf
push ebx
push ebx
mov dword [esp], 0x424590
call fcn.00407555
push edx
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x407d77
mov dword [esp], ebx
call fcn.004078f8
push ecx
test byte [0x425b90], 0x80
je 0x407d3b
mov al, byte [ebx]
cmp al, 0x5c
je 0x407d75
test al, al
jne 0x407d3b
jmp 0x407d75
call fcn.00407c98
push edx
test eax, eax
je 0x407d2c
test byte [eax], 0x10
je 0x407d75
mov dword [esp], 0x424590
call fcn.004074f0
push ecx
jmp 0x407d41
sub ebx, 0x424590
mov dword [esp], 0x424590
call sub.KERNEL32.dll_lstrlenA
push edx
mov dword [esp], 0x424590
cmp eax, ebx
jg 0x407d1d
call fcn.00407484
push ecx
mov dword [esp], 0x424590
call sub.KERNEL32.dll_GetFileAttributesA
push ebx
inc eax
setne al
movzx eax, al
jmp 0x407d77
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x408354
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
cmp dword [0x4256d4], 0
jne 0x408395
xor edx, edx
mov eax, edx
mov esi, 8
mov edi, eax
shr edi, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edi
dec esi
jne 0x408372
mov dword [edx*4 + 0x4256d0], eax
inc edx
cmp edx, 0x100
jne 0x40836b
mov eax, dword [ebp + 8]
not eax
jmp 0x4083af
mov dl, byte [ecx]
xor edx, eax
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x4256d0]
inc ecx
dec ebx
test ebx, ebx
jne 0x40839c
not eax
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x46e213]
shl eax, 2
mov dword [0x46e217], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00451340
pop edx
call fcn.00450648
call fcn.00451344
push 0
call fcn.004613d0
pop ecx
push 0x46e1bc
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x46e21b], eax
push 0
jmp fcn.0046aaec

Function at 0x401150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov eax, esi
and eax, 0x80000007
jns 0x40116a
dec eax
or eax, 0xfffffff8
inc eax
mov edx, esi
sub edx, eax
add edx, 8
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 0x18]
cmp ecx, dword [ebp - 0x14]
jge 0x401184
mov eax, dword [ebp - 0x14]
jmp 0x4012a5
xor edx, edx
lea eax, [ebp - 0x10]
mov byte [eax], 0
inc edx
inc eax
cmp edx, 8
jl 0x401189
mov edx, dword [ebp + 8]
push edx
call fcn.0044f788
pop ecx
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.0044f908
pop ecx
xor edi, edi
cmp esi, edi
jle 0x40123d
mov eax, esi
sub eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 8
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x18]
jge 0x4011cc
lea ecx, [ebp - 0x1c]
jmp 0x4011cf
lea ecx, [ebp - 0x18]
mov ebx, dword [ecx]
push ebx
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
lea edx, [ebp - 8]
push edx
call fcn.004601e0
add esp, 0xc
cmp ebx, 8
je 0x4011ec
mov byte [ebp - 1], bl
lea eax, [ebp - 8]
lea edx, [ebp - 0x10]
mov ecx, 8
mov bl, byte [edx]
inc edx
xor byte [eax], bl
inc eax
dec ecx
test ecx, ecx
jne 0x4011f7
lea eax, [ebp - 8]
push eax
call fcn.0044fa4c
pop ecx
push 8
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
call fcn.004601e0
add esp, 0xc
lea eax, [ebp - 8]
push 8
push eax
mov edx, dword [ebp + 0x14]
add edx, edi
push edx
call fcn.004601e0
add esp, 0xc
add edi, 8
cmp esi, edi
jg 0x4011b1
and esi, 0x80000007
jns 0x40124a
dec esi
or esi, 0xfffffff8
inc esi
test esi, esi
jne 0x40129d
xor esi, esi
lea ebx, [ebp - 8]
call fcn.00467e40
mov byte [ebx], al
inc esi
inc ebx
cmp esi, 7
jl 0x401253
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
lea edx, [ebp - 0x10]
mov ecx, 8
mov bl, byte [edx]
inc edx
xor byte [eax], bl
inc eax
dec ecx
test ecx, ecx
jne 0x401270
lea eax, [ebp - 8]
push eax
call fcn.0044fa4c
pop ecx
lea edx, [ebp - 8]
push 8
push edx
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x14]
add ecx, 0xfffffff8
push ecx
call fcn.004601e0
add esp, 0xc
call fcn.0044f8a8
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret