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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x22c]
push ebx
sub esp, 0x25c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov esi, dword [ebp + 0xc]
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 9
mov dword [esp + 8], eax
call fcn.00408811
sub esp, 0x10
test eax, eax
jne 0x40168f
mov eax, dword [ebp - 0x22c]
test byte [ebp + 0x10], 2
je 0x4015c1
lea edx, [ebp - 0x228]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x222]
mov dword [ebp - 0x228], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
sub esp, 0x20
cmp eax, 0x103
jne 0x40162e
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x23c], eax
jmp 0x4015e9
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00401517
sub esp, 0xc
test eax, eax
jne 0x401645
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x222]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea edx, [ebp - 0x222]
sub esp, 0x10
test eax, eax
jne 0x401645
cmp dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x22c]
je 0x4015cf
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x40168f
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 3
call fcn.0040992c
push edx
test eax, eax
jne 0x401677
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edx
push edx
jmp 0x40168f
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x404315
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x440180]
cmp dword [ebp + 8], 0
je 0x404340
test eax, eax
je 0x404334
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x440180], 0
jmp 0x4043aa
test eax, eax
je 0x404353
mov dword [esp], 0
call fcn.0040999e
push edx
jmp 0x4043aa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x42c120]
jbe 0x4043aa
mov eax, dword [0x440248]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x40425c
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
sub esp, 0x14
mov dword [0x440180], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
leave
ret
Function at 0x4080f8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x2c]
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], 0x40001
mov dword [ebp - 0x28], 0x40d9b0
mov dword [ebp - 0x24], 0x40d9b0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x40d9a0
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edx
push edx
test eax, eax
je 0x408155
xor eax, eax
jmp 0x408182
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x408182
mov dword [esp + 8], edi
mov dword [esp + 4], 0x80000007
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
sub esp, 0xc
test eax, eax
jne 0x408151
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x4081ba
Capabilities:
Create process on windows

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

Function at 0x40823c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x4084b4
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
inc eax
push edx
je 0x4084e2
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x4084ed
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp], ebx
call fcn.004084b4
push ecx
cmp eax, 0xffffffff
jne 0x40850e
xor edi, edi
jmp 0x40854b
mov dword [esp], ebx
mov esi, eax
test edi, 1
je 0x408543
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edx
test eax, eax
jne 0x40853c
and edi, 4
jne 0x40850a
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x40854b
mov edi, 1
jmp 0x40854b
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x408521
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x408557
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 dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
cmp eax, 0xffffffff
jne 0x408572
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc

Function at 0x4085af
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x65
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
dec esi
je 0x40860b
mov dword [ebp - 0x10], 0x73006e
mov dword [ebp - 0xc], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
div ecx
mov dword [esp + 8], 0
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
add word [ebp - 0xc], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
je 0x4085bf
jmp 0x408612
mov word [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x40861d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x40865c
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x408663
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x4086a2
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc
Function at 0x4088d5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea eax, [ebp - 0x14]
sub esp, 0x30
mov dword [ebp - 0x10], 0x4000
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
xor eax, eax
cmp dword [ebp + 0x18], 0
setne al
shl eax, 8
or eax, 0x20019
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00408811
sub esp, 0x10
test eax, eax
je 0x408923
mov word [ebx], 0
jmp 0x408978
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov word [ebx + 0x3ffe], 0
test esi, esi
jne 0x40891c
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x40891c
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x408f2e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov dword [0x4769e0], 0x55004e
mov dword [0x4769e4], 0x4c
test esi, esi
jne 0x408f87
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x4761e0
mov dword [esp], eax
call ebx
sub esp, 0xc
test eax, eax
je 0x40917b
cmp eax, 0x400
jle 0x408fd8
jmp 0x40917b
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00408557
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x4769e0
mov dword [esp], esi
call ebx
sub esp, 0xc
test eax, eax
je 0x40917b
cmp eax, 0x400
jle 0x408f58
jmp 0x40917b
mov dword [esp + 0xc], 0x4761e0
mov dword [esp + 8], 0x4769e0
mov dword [esp + 4], str._ls_ls_r_n
mov dword [esp], 0x475de0
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x42c130]
mov eax, dword [eax + 0x128]
mov dword [esp], 0x4761e0
mov dword [esp + 4], eax
call fcn.00408c0a
push edi
push edi
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x4761e0
call fcn.00408557
sub esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
je 0x40917b
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
push ecx
push ecx
add eax, ebx
mov dword [ebp - 0x24], eax
add eax, 0xa
mov dword [esp + 4], eax
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push esi
mov esi, eax
test eax, eax
je 0x409171
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0040861d
sub esp, 0xc
test eax, eax
je 0x409171
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], esi
call fcn.0040842c
push edx
push edx
lea edx, [esi + ebx]
test eax, eax
jne 0x4090d2
mov dword [esp + 4], str._Rename__r_n
add ebx, 0xa
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, ebx
push eax
push eax
jmp 0x409111
add eax, 0xa
mov dword [esp + 4], 0x40d3cb
mov dword [esp], eax
mov dword [ebp - 0x28], edx
call fcn.0040842c
mov dword [ebp - 0x20], eax
push ecx
push ecx
mov ecx, ebx
test eax, eax
je 0x409111
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
add ecx, esi
cmp edx, dword [ebp - 0x20]
jbe 0x409109
mov al, byte [edx]
dec edx
dec ecx
mov byte [ecx + 1], al
jmp 0x4090fb
mov eax, dword [ebp - 0x20]
sub eax, esi
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x1c]
add ecx, esi
mov dword [esp + 4], 0x475de0
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.00408497
add ebx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00408663
sub esp, 0xc
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x409500
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x4771e0
mov dword [esp + 4], eax
call fcn.00408a65
push ebx
push ebx
mov dword [esp], 0x4771e0
call fcn.00408398
push edx
test eax, eax
jne 0x409531
xor eax, eax
jmp 0x4095ad
mov dword [esp], eax
mov ebx, eax
call fcn.00408b2d
push ecx
test byte [0x42c12c], 0x80
je 0x409553
mov ax, word [ebx]
test ax, ax
je 0x40952d
cmp ax, 0x5c
je 0x40952d
sub ebx, 0x4771e0
sar ebx, 1
mov dword [esp], 0x4771e0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
mov dword [esp], 0x4771e0
cmp ebx, eax
jge 0x409592
call fcn.004094c8
push edx
test eax, eax
je 0x409583
test byte [eax], 0x10
je 0x40952d
mov dword [esp], 0x4771e0
call fcn.00408326
push eax
jmp 0x40955b
call fcn.00408a99
push eax
mov dword [esp], 0x4771e0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
push edx
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x40989c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x4098da
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x4098e1
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x40d3a0
add eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4

Function at 0x409a80
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x47f244], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x409abd
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x409aa8
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x409a9a
mov dword [ecx*4 + 0x47f240], eax
inc ecx
cmp ecx, 0x100
jne 0x409a93
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x409adf
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x47f240]
jmp 0x409ac7
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x401070
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437030]
jne 0x40107a
repz ret
jmp fcn.00401d41

Function at 0x4071b5
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.00403cda
and dword [ebp - 4], 0
cmp dword [0x439ea8], 0
mov ebx, eax
jne 0x407266
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407317
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407317
push eax
call fcn.00403c68
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x439ea8], eax
call esi
push eax
call fcn.00403c68
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x439eac], eax
call esi
push eax
call fcn.00403c68
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x439eb0], eax
call esi
push eax
call fcn.00403c68
pop ecx
mov dword [0x439eb8], eax
test eax, eax
je 0x407266
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403c68
pop ecx
mov dword [0x439eb4], eax
mov eax, dword [0x439eb4]
cmp eax, ebx
je 0x4072be
cmp dword [0x439eb8], ebx
je 0x4072be
push eax
call fcn.00403ce3
push dword [0x439eb8]
mov esi, eax
call fcn.00403ce3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4072be
test edi, edi
je 0x4072be
call esi
test eax, eax
je 0x4072b5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4072b5
test byte [ebp - 0xc], 1
jne 0x4072be
or dword [ebp + 0x10], 0x200000
jmp 0x4072f7
mov eax, dword [0x439eac]
cmp eax, ebx
je 0x4072f7
push eax
call fcn.00403ce3
pop ecx
test eax, eax
je 0x4072f7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4072f7
mov eax, dword [0x439eb0]
cmp eax, ebx
je 0x4072f7
push eax
call fcn.00403ce3
pop ecx
test eax, eax
je 0x4072f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x439ea8]
call fcn.00403ce3
pop ecx
test eax, eax
je 0x407317
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407319
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432ca0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x404
mov eax, dword [0x437030]
xor eax, esp
mov dword [esp + 0x400], eax
cmp dword [0x80cc04], 0x114e
mov eax, dword [esp + 0x408]
mov dword [0x80ca48], eax
jne 0x432ce1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00401070
add esp, 0x404
ret
Function at 0x432d10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
cmp edi, 0x182
jne 0x432d33
push 0
push 0
push 0
push str.ralerurohuzurusayovuzuwusanuwed
push str.jevebimeyevigokufalekimufazul
push 0
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
xor edx, edx
test edi, edi
jle 0x432d72
lea esp, [esp]
lea ecx, [esp + 4]
mov dword [esp], 5
mov dword [esp + 4], 0
call fcn.00432d00
mov eax, dword [esp + 4]
add eax, 0x46
mov dword [esp], eax
nop
sub dword [esp], 0x46
mov al, byte [esp]
xor byte [edx + esi], al
inc edx
cmp edx, edi
jl 0x432d40
cmp edi, 0x2d
jne 0x432d8b
mov dword [0x80cd38], 0xa62e7790
mov dword [0x80cd3c], 0xffffffff
add esp, 8
ret

Function at 0x432d90
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc04
mov eax, dword [0x437030]
xor eax, esp
mov dword [esp + 0xc00], eax
mov eax, dword [0x437cc0]
push esi
mov esi, dword [0x80ca4c]
push edi
mov edi, dword [0x80cc04]
push eax
call fcn.00432ca0
add esp, 4
cmp dword [0x80cc04], 0x2f
jne 0x432dcf
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
call fcn.00432d10
cmp dword [0x80cc04], 0x568
pop edi
pop esi
jne 0x432e03
push 0
push 0
lea ecx, [esp + 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov ecx, dword [esp + 0xc00]
xor ecx, esp
call fcn.00401070
add esp, 0xc04
ret
Function at 0x401497
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 [0x42fcb0]
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 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004058f0
cmp eax, ebx
je 0x401533
push ebx
push dword [0x42fcb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
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 [0x42fcb0], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x402cd5
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
cmp eax, edi
jl 0x402cf9
mov ecx, dword [0x42fc18]
add ecx, eax
push ecx
call fcn.00402cbe
push 4
lea eax, [ebp + 8]
push eax
call fcn.00402c8c
test eax, eax
jne 0x402d10
push 0xfffffffffffffffd
pop eax
jmp 0x402e46
test dword [ebp + 8], 0x80000000
push ebx
push esi
je 0x402e5b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x42acf0
mov dword [ebp - 0xc], eax
call fcn.004060f4
and dword [ebp + 8], 0x7fffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
jle 0x402e41
mov ebx, 0x41ecf0
mov esi, 0x422cf0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402d5c
mov edi, dword [ebp + 8]
push edi
push ebx
call fcn.00402c8c
test eax, eax
je 0x402eb2
sub dword [ebp + 8], edi
mov dword [0x42ad08], ebx
mov dword [0x42ad0c], edi
mov ecx, 0x42acf0
mov dword [0x42ad10], esi
mov dword [0x42ad14], 0x8000
call fcn.00406114
mov dword [ebp - 0x1c], eax
test eax, eax
js 0x402e57
mov edi, dword [0x42ad10]
sub edi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42fcb4], 1
mov dword [ebp - 0x14], eax
je 0x402dff
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402dc9
cmp dword [ebp + 8], 0
jne 0x402dff
push dword [ebp - 8]
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 8]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x5c]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
push 0
call fcn.00404867
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
test edi, edi
je 0x402e4b
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push esi
call fcn.004060a7
add esp, 0x10
push 0
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402eb6
cmp dword [ebp - 0x18], edi
jne 0x402eb6
add dword [ebp - 4], edi
cmp dword [ebp - 0x1c], 1
jne 0x402d7a
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret 8
cmp dword [ebp + 8], 0
jg 0x402d4f
jmp 0x402e41
push 0xfffffffffffffffc
jmp 0x402eb8
cmp dword [ebp + 8], edi
jle 0x402e41
mov ebx, 0x41ecf0
mov esi, 0x8000
cmp dword [ebp + 8], esi
jge 0x402e72
mov esi, dword [ebp + 8]
push esi
push ebx
call fcn.00402c8c
test eax, eax
je 0x402eb2
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push ebx
call fcn.004060a7
add esp, 0x10
push edi
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402eb6
cmp esi, dword [ebp - 0x1c]
jne 0x402eb6
add dword [ebp - 4], esi
sub dword [ebp + 8], esi
cmp dword [ebp + 8], edi
jg 0x402e65
jmp 0x402e41
push 0xfffffffffffffffd
jmp 0x402eb8
push 0xfffffffffffffffe
pop eax
jmp 0x402e44