joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ab76c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4ab80e
cmp dword [ebx + 0x94], 0
jne 0x4ab808
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4ab6b8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4ab808
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4ab7ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4ab808
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0042f214
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4ab7dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4aba2c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4bd280]
cmp dword [eax + 0x170], 0
je 0x4abb91
test bl, bl
jne 0x4abadf
cmp dword [esi + 0x9c], 0
jne 0x4abad4
mov eax, esi
call fcn.004ae91c
push eax
push 0x4ab938
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4abaa5
mov eax, dword [0x4bd280]
cmp byte [eax + 0xd3], 0
je 0x4abaa5
mov eax, dword [esi + 0xd8]
call fcn.00407e08
mov edi, eax
cmp edi, 0
jl 0x4abaa5
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4aba8e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4abad4
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042f214
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4abab4
inc dword [esi + 0x9c]
jmp 0x4abb91
cmp dword [esi + 0x9c], 0
jle 0x4abb91
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4abb91
cmp dword [esi + 0x44], 0
je 0x4abb3c
mov eax, dword [0x4bd280]
cmp byte [eax + 0xd3], 0
je 0x4abb3c
mov eax, dword [esi + 0xd8]
call fcn.00407e08
mov edi, eax
cmp edi, 0
jl 0x4abb3c
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4abb25
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4abb6b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042f214
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4abb4b
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x49ecb4]
call fcn.00407fc8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4ac7e0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4ac84b
cmp byte [ebx + 0xd3], 0
jne 0x4ac84b
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406940
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4ac838
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4ac858
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406804
jmp 0x4ac858
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406804
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4ae080
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4ae0ee
mov eax, esi
call fcn.004866e8
test al, al
je 0x4ae0ee
mov eax, dword [ebx + 0x84]
call fcn.0048633c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4ae0ee
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4ae0e2
push 0
mov eax, dword [ebx + 0x84]
call fcn.0048633c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0047d310
jmp 0x4ae0ee
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004adeb8
pop esi
pop ebx
ret

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x4033fc], eax
mov eax, dword [ebp + 4]
mov dword [0x40323a], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401020
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40323a]
mov dword [ebp - 0x48], eax
mov eax, 0x4016df
mov dword [ebp - 0x54], eax
mov ecx, str.Hello
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor ecx, ecx
push ecx
push dword [0x40323a]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.lukifas
push eax
mov eax, str.Hello
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403448], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403448]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4010bc
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4010b5
mov esp, ebp
ret

Function at 0x40ed44
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x40eae0
call fcn.0040ed65
sub esi, 0x5b4694bb
dec esi
xor dword [ebx], edx
inc ebx
or esi, esi
sub edi, edi
cmp ebx, eax
jne fcn.0040ed44
ret
Function at 0x4032c9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 4]
push ebx
push edi
push eax
mov eax, dword [0x959db0]
xor edi, edi
or eax, 8
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40335b
mov ebx, 0x105
jmp 0x403314
cmp dword [ebp + 0x10], edi
jne 0x40334f
push edi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.004032c9
test eax, eax
jne 0x40332a
push ebx
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4032fb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406fcf
test eax, eax
je 0x403363
push edi
push dword [0x959db0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40335b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x959db0], edi
jne 0x403358
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x403358
mov eax, edi
jmp 0x40335b
Function at 0x403439
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x479efc]
sub esi, dword [0x479ef8]
add esi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
mov dword [0x959d20], eax
test esi, esi
jle 0x4035c7
push dword [0x479f00]
call fcn.00403422
xor ebp, ebp
push ebp
push ebp
push dword [0x479ef8]
push dword [0x40c010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x479f08], esi
mov edi, 0x4000
mov esi, dword [0x479f04]
sub esi, dword [0x479f00]
cmp esi, edi
mov dword [0x479f0c], ebp
cmovg esi, edi
jmp 0x40359b
add dword [0x479f00], esi
mov ecx, dword [0x479ef8]
mov dword [0x479f18], edi
mov dword [0x479f1c], esi
cmp dword [0x959ccc], ebp
je 0x4034f2
cmp dword [0x959da0], ebp
jne 0x4034f2
mov eax, dword [0x479f08]
sub eax, dword [0x479efc]
sub eax, dword [esp + 0x14]
add eax, ecx
push ebp
mov dword [0x479f0c], eax
call fcn.0040372f
pop ecx
push 0x479f18
mov dword [0x479f20], 0x8047e0
mov dword [0x479f24], 0x8000
call fcn.004078db
test eax, eax
js 0x4035d8
mov edi, dword [0x479f20]
mov ecx, 0x8047e0
sub edi, ecx
je 0x403561
push ebp
lea eax, [esp + 0x10]
push eax
push edi
push ecx
push dword [0x40c010]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4035b4
cmp edi, dword [esp + 0xc]
jne 0x4035b4
mov ecx, dword [0x479ef8]
add ecx, edi
mov dword [0x479ef8], ecx
cmp dword [0x479f1c], ebp
jne 0x4034c5
jmp 0x403573
cmp dword [0x479f1c], ebp
jne 0x4035d8
test esi, esi
je 0x4035d8
mov ecx, dword [0x479ef8]
mov edx, dword [0x479efc]
mov eax, edx
sub eax, ecx
add eax, dword [esp + 0x14]
test eax, eax
jle 0x4035b8
mov esi, dword [0x479f04]
mov eax, 0x4000
sub esi, dword [0x479f00]
cmp esi, eax
cmovg esi, eax
push esi
mov edi, 0x8007e0
push edi
call fcn.004033ee
test eax, eax
jne 0x4034ad
or eax, 0xffffffff
jmp 0x4035d1
push 0xfffffffffffffffe
jmp 0x4035da
push ebp
push ebp
push edx
push dword [0x40c010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.0040372f
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x4035d1
Function at 0x4035dd
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebp
push esi
xor ebp, ebp
push edi
test ecx, ecx
js 0x403606
mov eax, dword [0x959d18]
push ebp
add eax, ecx
push ebp
push eax
push dword [0x40c010]
mov dword [0x479efc], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403439
test eax, eax
js 0x40370a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x18]
push ebp
push eax
push esi
lea eax, [esp + 0x1c]
push eax
push dword [0x40c010]
call ebx
test eax, eax
je 0x403706
cmp dword [esp + 0x18], esi
jne 0x403706
push dword [esp + 0x10]
add dword [0x479efc], esi
call fcn.00403439
mov esi, eax
test esi, esi
js 0x403702
cmp dword [esp + 0x20], ebp
jne 0x4036d4
mov ecx, dword [esp + 0x10]
jmp 0x4036ca
mov edi, 0x4000
lea eax, [esp + 0x18]
push ebp
cmp ecx, edi
push eax
cmovl edi, ecx
push edi
push 0x8007e0
push dword [0x40c010]
call ebx
test eax, eax
je 0x403706
cmp edi, dword [esp + 0x18]
jne 0x403706
push ebp
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x20]
push 0x8007e0
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4036d0
cmp dword [esp + 0x20], edi
jne 0x4036d0
mov eax, dword [esp + 0x18]
add esi, eax
mov ecx, dword [esp + 0x10]
sub ecx, eax
add dword [0x479efc], eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jg 0x403669
jmp 0x403702
push 0xfffffffffffffffe
jmp 0x403708
push ebp
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x18], eax
cmovl eax, dword [esp + 0x18]
push eax
push dword [esp + 0x2c]
push dword [0x40c010]
call ebx
test eax, eax
je 0x403706
mov esi, dword [esp + 0x18]
add dword [0x479efc], esi
mov eax, esi
jmp 0x403709
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret 0x10

Function at 0x40372f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x403757
mov eax, dword [0x479f10]
test eax, eax
je 0x40374e
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x479f10], 0
jmp 0x4037d3
cmp dword [0x479f10], 0
je 0x403769
push 0
call fcn.004067b6
jmp 0x4037d3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x959d20]
jbe 0x4037d3
cmp dword [0x92dd98], 0
je 0x4037ae
test byte [0x959db4], 1
je 0x4037d3
call fcn.00403711
push eax
lea eax, [ebp - 0x80]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0
call fcn.0040607c
jmp 0x4037d3
push 0
push 0x403a92
push 0
push 0x6f
push dword [0x92dd94]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x479f10], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x406860
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x40a898
push 0x8fefa0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebp, 0x400
test esi, esi
je 0x4068b3
push 1
push ebx
push esi
call fcn.00407005
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
push 0x8fefa0
push esi
call edi
test eax, eax
je 0x4069ee
cmp eax, ebp
jg 0x4069ee
push ebp
push 0x8fe7a0
push dword [esp + 0x20]
call edi
test eax, eax
je 0x4069ee
cmp eax, ebp
jg 0x4069ee
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebp
push 0x8ffba0
push 0xffffffffffffffff
push 0x8fefa0
push ebx
push ebx
call esi
test eax, eax
je 0x4069ee
push ebx
push ebx
push ebp
mov ebp, 0x8ff7a0
mov edi, 0x8fe7a0
push ebp
push 0xffffffffffffffff
push edi
push ebx
push ebx
call esi
test eax, eax
je 0x4069ee
push ebp
push 0x8ffba0
push str._s_s_r_n
push 0x8fe3a0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x959ccc]
add esp, 0x10
mov ebp, eax
mov dword [esp + 0x1c], ebp
push dword [ecx + 0x128]
push edi
call fcn.004064f6
push 4
push 0xc0000000
push edi
call fcn.00407005
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4069ee
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4069e7
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4069e7
cmp esi, dword [esp + 0x10]
jne 0x4069e7
push str._Rename__r_n
push edi
call fcn.00407270
test eax, eax
jne 0x4069f4
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x8fe3a0
lea eax, [ecx + edi]
push eax
call fcn.00406d13
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esi + ebp]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x40a8a8
add eax, 0xa
push eax
call fcn.00407270
mov ecx, eax
test ecx, ecx
je 0x4069b0
lea edx, [edi + esi]
add ebp, edx
cmp edx, ecx
jbe 0x406a1d
sub ebp, edx
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406a13
mov ebp, dword [esp + 0x1c]
sub ecx, edi
inc ecx
jmp 0x4069b2
Function at 0x406b86
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x8e8410
push ebx
call fcn.00407254
push ebx
call fcn.004072f2
mov esi, eax
test esi, esi
jne 0x406ba7
xor eax, eax
jmp 0x406bff
push esi
call fcn.0040737f
test byte [0x959cc8], 0x80
je 0x406bc3
movzx eax, word [esi]
test ax, ax
je 0x406ba3
cmp eax, 0x5c
je 0x406ba3
sub esi, ebx
sar esi, 1
jmp 0x406bdd
call fcn.00406b40
test eax, eax
je 0x406bd7
test byte [eax], 0x10
je 0x406ba3
push ebx
call fcn.00407352
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x406bc9
call fcn.00406b11
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ebx
ret 4

Function at 0x406c36
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ecx
cmp dword [esp + 8], 0
je 0x406c5b
mov eax, dword [0x40c058]
cmp eax, 0xffffffff
je 0x406c4f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40c058], 0xffffffff
jmp 0x406d0f
cmp dword [0x900e00], 0
je 0x406d0f
push ebp
xor ebp, ebp
push edi
cmp word [0x900600], bp
je 0x406cd6
cmp dword [0x40c058], 0xffffffff
jne 0x406cdf
push ebx
mov ebx, 0x900600
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push ebx
mov edi, eax
call fcn.00407005
mov dword [0x40c058], eax
pop ebx
cmp eax, 0xffffffff
je 0x406d0d
cmp edi, 0xffffffff
jne 0x406ccb
push ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0xfeff
push ecx
push 2
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x40c058]
push 2
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40c058], 0xffffffff
je 0x406d0d
push 0x40a8c0
mov edi, 0x900e20
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
lea ecx, [esp + 0x14]
add eax, eax
push ecx
push eax
push edi
push dword [0x40c058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop ebp
pop ecx
ret 4

Function at 0x406d35
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x8d2438], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x8d2438
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406d70
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x407005
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x407032
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4070ac
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0x15f90
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407095
cmp dword [ebp + 0x14], 1
je 0x40709a
cmp dword [ebp + 0x14], 2
je 0x40709a
xor eax, eax
mov word [esi], ax
push dword [ebp - 4]
xor eax, eax
mov word [esi + 0x15f8e], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4070cf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a890]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a894]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40711b
test edi, edi
jne 0x4070dc
mov word [esi], ax
jmp 0x40711d
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4072ef
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4
Function at 0x407871
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x9001f4], 0
push esi
jne 0x4078a9
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
dec esi
jne 0x407882
mov dword [ecx*4 + 0x9001f0], edx
inc ecx
cmp ecx, 0x100
jl 0x40787d
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x4078d3
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x9001f0]
inc esi
dec edx
jne 0x4078bb
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x411ab0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x411ad2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x411ad9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411ac8
mov eax, 1
add ebx, ebx
jne 0x411aeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x411ae0
jne 0x411afc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411ae0
xor ecx, ecx
sub eax, 3
jb 0x411b10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411b82
mov ebp, eax
add ebx, ebx
jne 0x411b1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411b28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x411b4c
inc ecx
add ebx, ebx
jne 0x411b38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x411b2d
jne 0x411b49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411b2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x411b6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x411b5d
jmp 0x411ace
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x411b6c
add edi, ecx
jmp 0x411ace
pop esi
mov edi, esi
mov ecx, 0x203
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x411b8a
cmp byte [edi], 0xa
jne 0x411b8a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x411b8f
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x411bfe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x113a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11408]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x411bbc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1140c]
or eax, eax
je 0x411bf8
mov dword [ebx], eax
add ebx, 4
jmp 0x411bd9
call dword [esi + 0x11410]
popal
jmp 0x403ae7