joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ab40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov byte [0x43cba4], 1
mov dword [0x43cba0], 1
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov ecx, 0x43cbf8
call fcn.004015a0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42abc6
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, 0x43cbfc
call fcn.004015a0
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x42abdc
cmp dword [ebp - 0xc], 1
jne 0x42abdc
mov dword [0x43cba0], 2
mov esp, ebp
pop ebp
ret
Function at 0x422377
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004195c7
and dword [ebp - 4], 0
cmp dword [0x42efe8], 0
mov ebx, eax
jne 0x422428
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4224d9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4224d9
push eax
call fcn.00419555
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42efe8], eax
call esi
push eax
call fcn.00419555
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42efec], eax
call esi
push eax
call fcn.00419555
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42eff0], eax
call esi
push eax
call fcn.00419555
pop ecx
mov dword [0x42eff8], eax
test eax, eax
je 0x422428
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00419555
pop ecx
mov dword [0x42eff4], eax
mov eax, dword [0x42eff4]
cmp eax, ebx
je 0x422480
cmp dword [0x42eff8], ebx
je 0x422480
push eax
call fcn.004195d0
push dword [0x42eff8]
mov esi, eax
call fcn.004195d0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422480
test edi, edi
je 0x422480
call esi
test eax, eax
je 0x422477
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422477
test byte [ebp - 0xc], 1
jne 0x422480
or dword [ebp + 0x10], 0x200000
jmp 0x4224b9
mov eax, dword [0x42efec]
cmp eax, ebx
je 0x4224b9
push eax
call fcn.004195d0
pop ecx
test eax, eax
je 0x4224b9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4224b9
mov eax, dword [0x42eff0]
cmp eax, ebx
je 0x4224b9
push eax
call fcn.004195d0
pop ecx
test eax, eax
je 0x4224b9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42efe8]
call fcn.004195d0
pop ecx
test eax, eax
je 0x4224d9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4224db
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x631166de
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x7aef6e20
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40141e
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 1
push eax
and edi, 0x300
mov eax, edi
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.00406cd6
test eax, eax
jne 0x401530
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x401493
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x40150c
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
push dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
call ebp
test eax, eax
jne 0x4014e1
test esi, esi
jne 0x40150c
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141e
test eax, eax
jne 0x4014e1
push 0x105
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014b2
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004075a4
test eax, eax
jne 0x40151d
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x401530
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401530
push 0
push edi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x40392a
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebp
xor ebp, ebp
push esi
push edi
mov edi, ebp
cmp dword [esp + 0x28], ebp
jl 0x40395e
mov ecx, dword [esp + 0x24]
jg 0x403944
cmp ecx, ebp
jb 0x40395e
mov eax, dword [0x4735b8]
push ebp
add eax, ecx
push ebp
push eax
push dword [0x40c018]
mov dword [0x42014c], eax
call fcn.004036ca
push ebp
push 8
pop esi
push esi
call fcn.0040373f
cdq
cmp edx, ebp
jg 0x40397b
jl 0x403b06
cmp eax, ebp
jb 0x403b06
push ebx
push esi
lea eax, [esp + 0x14]
push eax
push dword [0x40c018]
call fcn.00407606
test eax, eax
je 0x403aff
cmp dword [0x420148], edi
je 0x4039ab
push esi
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.00407b3c
mov edi, eax
push dword [esp + 0x14]
add dword [0x42014c], esi
push dword [esp + 0x14]
call fcn.0040373f
cdq
mov ebx, edx
mov esi, eax
cmp ebx, ebp
jg 0x4039d5
jl 0x403af9
cmp esi, ebp
jb 0x403af9
mov ebp, dword [esp + 0x34]
test ebp, ebp
jne 0x403a8c
mov edx, dword [esp + 0x14]
test edx, edx
jl 0x403aea
mov ecx, dword [esp + 0x10]
jg 0x4039fb
test ecx, ecx
je 0x403aea
mov ebp, 0x428200
test edx, edx
jg 0x403a0e
jl 0x403a13
cmp ecx, 0x4000
jb 0x403a13
mov ecx, 0x4000
push ecx
push ebp
push dword [0x40c018]
mov dword [esp + 0x34], ecx
call fcn.00407606
test eax, eax
je 0x403aff
cmp dword [0x420148], 0
je 0x403a42
push dword [esp + 0x28]
push ebp
push edi
call fcn.00407b3c
mov edi, eax
push dword [esp + 0x28]
push ebp
push dword [esp + 0x38]
call fcn.004076c9
test eax, eax
je 0x403a88
mov eax, dword [esp + 0x28]
add esi, eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
adc ebx, 0
sub ecx, eax
mov dword [esp + 0x10], ecx
sbb edx, 0
add dword [0x42014c], eax
mov dword [esp + 0x14], edx
test edx, edx
jg 0x403a0e
jl 0x403aea
test ecx, ecx
jne 0x403a00
jmp 0x403aea
push 0xfffffffffffffffe
jmp 0x403b01
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
cdq
cmp esi, edx
jg 0x403aa9
mov ecx, dword [esp + 0x10]
jl 0x403aa3
cmp ecx, eax
jae 0x403aa9
mov dword [esp + 0x1c], esi
jmp 0x403aaf
mov ecx, eax
mov dword [esp + 0x1c], edx
push 0
lea eax, [esp + 0x2c]
push eax
push ecx
push ebp
push dword [0x40c018]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403aff
cmp dword [0x420148], 0
je 0x403ade
push dword [esp + 0x28]
push ebp
push edi
call fcn.00407b3c
mov edi, eax
mov esi, dword [esp + 0x28]
xor ebx, ebx
add dword [0x42014c], esi
cmp dword [0x420148], 0
je 0x403af9
cmp edi, dword [esp + 0x3c]
jne 0x403aff
mov eax, esi
mov edx, ebx
jmp 0x403b05
push 0xfffffffffffffffd
or edx, 0xffffffff
pop eax
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 0x1c
Function at 0x403b2e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x403b56
mov eax, dword [0x420168]
test eax, eax
je 0x403b4d
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x420168], 0
leave
ret
cmp dword [0x420168], 0
je 0x403b68
push 0
call fcn.00406c0d
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x473560]
jbe 0x403bd2
cmp dword [0x46b558], 0
je 0x403bad
test byte [0x473654], 1
je 0x403bd2
call fcn.00403b0f
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.00406739
leave
ret
push 0
push 0x403f74
push 0
push 0x6f
push dword [0x46b554]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x420168], eax
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x40681d
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406837
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x40683d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x40a548
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x40a538
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4068ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4068b5
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x4068af
xor eax, eax
jmp 0x4068b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 4
Function at 0x406b9c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
ja 0x406bd6
test eax, eax
je 0x406bd6
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x406bd8
mov ecx, 0x409ac4
jmp 0x406bdd
xor eax, eax
mov ecx, 0x409ac6
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
add eax, ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406c3b
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406c5e
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406d04
pop ecx
pop ecx
inc dword [0x473630]
ret 8

Function at 0x406d04
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x460e88], 0x55004e
mov ebp, 0x460e88
mov dword [0x460e8c], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406d5a
push 1
push 0
push esi
call fcn.004075d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406e3a
cmp eax, ebx
jg 0x406e3a
push ebx
mov esi, 0x460688
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406e3a
cmp eax, ebx
jg 0x406e3a
push esi
push ebp
push str._ls_ls_r_n
push 0x460288
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x473578]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.004068b9
push 4
push 0xc0000000
push esi
call fcn.004075d9
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406e3a
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 0x406e33
push esi
push edi
push ebx
call fcn.00407606
test eax, eax
je 0x406e33
push str._Rename__r_n
push edi
call fcn.004077f4
test eax, eax
jne 0x406e3f
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 0x460288
lea eax, [ecx + edi]
push eax
call fcn.00407318
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.004076c9
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
ret
push 0x40a958
add eax, 0xa
push eax
call fcn.004077f4
mov ecx, eax
test ecx, ecx
je 0x406e04
lea edx, [edi + esi]
jmp 0x406e5e
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406e58
sub ecx, edi
inc ecx
jmp 0x406e06
Function at 0x40711b
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.0040785b
mov edi, eax
cmp edi, 0xffffffff
je 0x407151
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x407158
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x407160
test byte [ebp + 0xc], 4
jne 0x407151
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40713d
xor eax, eax
inc eax
jmp 0x407153

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x45c288
push ebx
call fcn.004077d8
push ebx
call fcn.00407883
mov esi, eax
test esi, esi
je 0x407245
push esi
call fcn.00407a3f
test byte [0x473574], 0x80
je 0x407207
movzx eax, word [esi]
test ax, ax
je 0x407245
cmp eax, 0x5c
je 0x407245
sub esi, ebx
sar esi, 1
jmp 0x407221
call fcn.00407165
test eax, eax
je 0x40721b
test byte [eax], 0x10
je 0x407245
push ebx
call fcn.00407a12
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x40720d
call fcn.004070ec
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x407247
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x40733a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x458240], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x458240
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407379
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x40737d
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.004071ce
mov dword [esp + 0x14], eax
test bl, 8
je 0x4073bf
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x473628], eax
jmp 0x407598
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x4073dc
test eax, eax
je 0x407523
test bl, 2
je 0x40752b
push esi
push 0x458288
call fcn.004077d8
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4073ff
push 0x40a748
push 0x458288
call ebp
jmp 0x407405
push esi
call fcn.00407a12
xor eax, eax
cmp word [esi], ax
jne 0x407416
cmp word [0x458288], 0x5c
jne 0x40741e
push 0x409ac4
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x458288
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x407508
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x40746c
cmp word [esp + 0x4a], 0
je 0x4074ea
cmp word [esp + 0x4a], ax
jne 0x40746c
cmp word [esp + 0x4c], 0
je 0x4074ea
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.004077d8
test byte [esp + 0x1c], 0x10
je 0x407493
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4074ea
push ebx
push esi
call fcn.0040737d
jmp 0x4074ea
push esi
push str.Delete:_DeleteFile___s__
call fcn.0040724c
pop ecx
pop ecx
push edi
push esi
call fcn.0040711b
push esi
test eax, eax
jne 0x4074e3
test edi, edi
je 0x4074cf
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.0040724c
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00406739
xor eax, eax
push eax
push esi
call fcn.00406c3b
jmp 0x4074ea
push str.Delete:_DeleteFile_failed___s__
call fcn.0040724c
inc dword [0x473628]
pop ecx
pop ecx
jmp 0x4074ea
push 0xfffffffffffffff2
call fcn.00406739
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40744a
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x407597
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
jne 0x40752b
push esi
push str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x407581
push esi
call fcn.00407165
test eax, eax
je 0x407597
push esi
call fcn.004070ec
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.0040724c
pop ecx
pop ecx
mov eax, edi
or eax, 1
push eax
push esi
call fcn.0040711b
push esi
test eax, eax
jne 0x407590
test edi, edi
je 0x40757c
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.0040724c
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00406739
xor eax, eax
push eax
push esi
call fcn.00406c3b
jmp 0x407597
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.0040724c
inc dword [0x473628]
pop ecx
pop ecx
jmp 0x407597
push 0xffffffffffffffe5
call fcn.00406739
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8
Function at 0x4075d9
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 0x407635
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x4000
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406cd6
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x4076a7
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x3ffe], ax
pop esi
jne 0x4076a7
cmp dword [ebp + 0x18], 1
je 0x4076ac
cmp dword [ebp + 0x18], 2
je 0x4076ac
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x4076b1
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x407714
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
dec edi
mov dword [ebp - 8], 0x73006e
mov dword [ebp - 4], 0x61
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 0x40775e
test edi, edi
jne 0x407721
mov word [esi], ax
jmp 0x407760
mov eax, esi
pop edi
pop esi
leave
ret 8

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40787d
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

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

Disassembly:
cmp dword [0x4618dc], 0
push esi
jne 0x407b76
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
sub esi, 1
jne 0x407b4d
mov dword [ecx*4 + 0x4618d8], edx
inc ecx
cmp ecx, 0x100
jl 0x407b48
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x407ba0
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4618d8]
inc esi
sub edx, 1
jne 0x407b88
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x401518
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x170
je 0x4015c5
cmp dword [ebp + 8], 0x174
je 0x401598
cmp dword [ebp + 8], 0x175
je 0x401598
cmp dword [ebp + 8], 0x177
je 0x401586
mov eax, dword [ebp + 8]
and eax, 0xff
mov edx, 0x400
imul edx
mov edi, dword [0x404796]
add edi, eax
mov dword [0x404ad8], edi
mov esi, edi
add esi, 0x104
cmp byte [esi], 0x3f
jne 0x401572
mov esi, 0
push 1
push 0
push esi
push edi
push str.open
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x4015d3
push 0
push 0
push str..help.chm
push 0
call sub.hhctrl.ocx_HtmlHelpA
jmp 0x4015d3
mov edi, 0x404d48
cmp dword [ebp + 8], 0x174
je 0x4015a8
jmp 0x4015ad
mov edi, 0x404d45
push 1
push 0
push edi
push str.shutdown
push str.open
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x4015d3
push 0
push 0
push 2
push dword [ebp + 0xc]
call sub.user32.dll_SendMessageA
pop ebp
ret 8
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.0040ead0
push str._JAVA_LAUNCHER_DEBUG
mov eax, dword [eax]
mov dword [0x434780], eax
call fcn.0040ed6c
xor ebp, ebp
pop ecx
test eax, eax
je 0x401059
push str.Windows_original_main_args:_n
call fcn.00401116
pop ecx
mov esi, ebp
call fcn.0040e61f
cmp dword [eax], ebp
jle 0x401059
call fcn.0040e625
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.00401116
add esp, 0xc
inc esi
call fcn.0040e61f
cmp esi, dword [eax]
jl 0x401037
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00401221
call fcn.00401289
mov ebx, eax
lea ecx, [ebx*4 + 4]
push ecx
call fcn.00401139
pop ecx
pop ecx
mov esi, eax
call fcn.0040128f
mov edx, ebp
test ebx, ebx
jle 0x401097
mov edi, esi
mov ecx, dword [eax + edx*8]
inc edx
mov dword [edi], ecx
lea edi, [edi + 4]
cmp edx, ebx
jl 0x40108a
mov edi, dword [str.java]
mov dword [esi + edx*4], ebp
test edi, edi
jne 0x4010a6
mov edi, dword [esi]
mov edx, dword [section..data]
test edx, edx
jne 0x4010b2
mov edx, dword [esi]
mov ecx, dword [0x433a90]
push ebp
xor ebp, ebp
inc ebp
test ecx, ecx
push ebp
push ebp
setne al
movzx eax, al
push eax
push edi
push edx
push 0x426284
push 0x426288
push dword [0x433a94]
push ebp
push ecx
push ebp
push esi
push ebx
call fcn.00401d6f
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
ret 0x10