joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008931
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x10008940
pop dword [ebp - 0x28]
mov eax, 0x8fcd927c
sub eax, 0x7fcd093c
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x37b0d
push 0
mov eax, 0x770c374b
add eax, 0x98f3d995
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x9d8ddba1
add ecx, 0x62725f79
mov edx, eax
mov edi, 0x10024200
add edi, dword [ebp - 0x28]
mov esi, 0xbd7d5b58
sub esi, 0xf4961856
xor dword [ebp - 0x24], 0x34e5d975
mov ebx, dword [edi]
add dword [ebp - 8], eax
add ebx, esi
mov dword [edx], ebx
add dword [ebp - 0x24], eax
add edx, 0xc5575b47
add edx, 0x3aa8a4bd
add edi, 4
loop 0x10008999
add eax, 0x404c9814
add eax, 0xbfb44727
xor ebx, ebx
add ebx, eax
add eax, 0xd82bbb08
sub eax, 0xd82bbb03
mov ecx, 0xde874d77
add ecx, 0x3178b289
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x1001466a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x1001a53f
call fcn.10018cb9
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x1001483e
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.10008931
add esp, 0xc
test eax, eax
js 0x10014838
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x10014706
push esi
call fcn.100058ff
pop ecx
test al, al
je 0x10014706
mov eax, esi
call fcn.10018d7b
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10014712
push esi
lea ecx, [ebp - 0x428]
call fcn.10008931
push 3
push esi
push edi
push eax
call fcn.10008931
test eax, eax
je 0x10014838
push 2
push ebx
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], edi
test edi, edi
jne 0x10014746
call fcn.10005ba0
mov esi, eax
jmp 0x1001481d
push dword [ebp - 0x424]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x10014769
call fcn.10005ba0
jmp 0x10014814
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x1001475f
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x420], esi
cmp eax, esi
jae 0x10014799
mov esi, 0x8007000e
jmp 0x10014816
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10008931
mov dword [ebp - 4], 1
jmp 0x100147d8
cmp dword [ebp - 0x418], 0
je 0x10014792
push esi
push dword [ebp - 0x424]
push esi
push dword [ebp - 0x418]
call fcn.10008931
mov eax, dword [ebp - 0x418]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.10008931
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10014858
lea ecx, [ebp - 0x418]
call fcn.100148c1
jmp 0x10014858
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x10014853
lea ecx, [ebp - 0x418]
call fcn.100148c1
mov esi, 0x8007000e
lea ecx, [ebp - 0x428]
call fcn.10005aa9
mov eax, esi
lea esp, [ebp - 0x444]
call fcn.10018d12
ret 0x10
Function at 0x10017e0b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10002c7c]
jne 0x10018dc2
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1001fab0], eax
mov dword [0x1001faac], ecx
mov dword [0x1001faa8], edx
mov dword [0x1001faa4], ebx
mov dword [0x1001faa0], esi
mov dword [0x1001fa9c], edi
mov word [0x1001fac8], ss
mov word [0x1001fabc], cs
mov word [0x1001fa98], ds
mov word [0x1001fa94], es
mov word [0x1001fa90], fs
mov word [0x1001fa8c], gs
pushfd
pop dword [0x1001fac0]
mov eax, dword [ebp]
mov dword [0x1001fab4], eax
mov eax, dword [ebp + 4]
mov dword [0x1001fab8], eax
lea eax, [ebp + 8]
mov dword [0x1001fac4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1001fa00], 0x10001
mov eax, dword [0x1001fab8]
mov dword [0x1001f9b4], eax
mov dword [0x1001f9a8], 0xc0000409
mov dword [0x1001f9ac], 1
mov eax, dword [0x10002c7c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1001f67c]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1001f9f8], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10002e78
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1001f9f8], 0
jne 0x10018eae
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x40149f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x228]
push ebx
sub esp, 0x22c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 8
mov dword [esp + 8], eax
call fcn.00407f13
sub esp, 0x10
test eax, eax
jne 0x40159b
mov eax, dword [ebp - 0x228]
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 0x401551
mov eax, dword [ebp - 0x228]
test byte [ebp + 0x10], 1
je 0x401537
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x40159b
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.0040149f
sub esp, 0xc
test eax, eax
je 0x4014e4
mov eax, dword [ebp - 0x228]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 3
call fcn.00408c7f
push edx
test eax, eax
je 0x40158c
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
jmp 0x40159b
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edx
push edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x403baf
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x429880]
cmp dword [ebp + 8], 0
je 0x403bda
test eax, eax
je 0x403bce
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x429880], 0
jmp 0x403c44
test eax, eax
je 0x403bed
mov dword [esp], 0
call fcn.00408cf1
push edx
jmp 0x403c44
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x430dc0]
jbe 0x403c44
mov eax, dword [0x430dec]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x403af4
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 [0x429880], 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 0x4077f4
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], 0x40b8b0
mov dword [ebp - 0x24], 0x40b8b0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x40b8a0
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 0x407851
xor eax, eax
jmp 0x40787e
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x40787e
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 0x40784d
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x4078b6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x430880], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x430880
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]
xor edx, edx
sub esp, 0x28
test eax, eax
je 0x407932
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push eax
leave
mov eax, edx
ret 4

Function at 0x407938
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 0x407bb1
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 0x407bdf
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 0x407bea
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.00407bb1
push ecx
cmp eax, 0xffffffff
jne 0x407c0b
xor edi, edi
jmp 0x407c48
mov esi, eax
mov dword [esp], ebx
test edi, 1
je 0x407c40
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edx
test eax, eax
jne 0x407c39
and edi, 4
jne 0x407c07
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x407c48
mov edi, 1
jmp 0x407c48
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x407c1e
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x407c54
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 0x407c6f
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 0x407cac
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 0x407d0b
mov edx, dword [0x40b684]
mov eax, dword [0x40b680]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
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 0x407cbc
jmp 0x407d12
mov word [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x407d1d
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 0x407d5c
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x407d63
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 0x407da2
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc
Function at 0x407fd7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x10], 0x800
test eax, eax
je 0x407ff5
mov eax, 0x100
or eax, 0x20019
lea edx, [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00407f13
sub esp, 0x10
test eax, eax
je 0x408025
mov word [ebx], 0
jmp 0x40807a
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 + 0x7fe], 0
test esi, esi
jne 0x40801e
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x40801e
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x4085e3
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov dword [0x42f080], 0x55004e
mov dword [0x42f084], 0x4c
test ebx, ebx
jne 0x40863c
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x42e880
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
je 0x408831
cmp eax, 0x400
jle 0x40868d
jmp 0x408831
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00407c54
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x42f080
mov dword [esp], ebx
call esi
sub esp, 0xc
test eax, eax
je 0x408831
cmp eax, 0x400
jle 0x40860d
jmp 0x408831
mov dword [esp + 0xc], 0x42e880
mov dword [esp + 8], 0x42f080
mov dword [esp + 4], str._ls_ls_r_n
mov dword [esp], 0x42e480
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x430d60]
mov eax, dword [eax + 0x128]
mov dword [esp], 0x42e880
mov dword [esp + 4], eax
call fcn.004082c1
push esi
push esi
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x42e880
call fcn.00407c54
sub esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
je 0x408831
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [ebp - 0x1c]
push ecx
push ecx
add eax, esi
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 ebx
push ebx
mov ebx, eax
test eax, eax
je 0x408827
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00407d1d
sub esp, 0xc
test eax, eax
je 0x408827
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], ebx
call fcn.00407b29
lea ecx, [ebx + esi]
push edx
push edx
test eax, eax
jne 0x408787
mov dword [esp + 4], str._Rename__r_n
add esi, 0xa
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, esi
push eax
push eax
jmp 0x4087c7
add eax, 0xa
mov dword [esp + 4], 0x40b6b3
mov dword [esp], eax
mov dword [ebp - 0x28], ecx
call fcn.00407b29
mov edx, esi
push ecx
mov dword [ebp - 0x20], eax
push ecx
test eax, eax
je 0x4087c7
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
add edx, ebx
cmp dword [ebp - 0x20], ecx
jae 0x4087bf
dec ecx
mov al, byte [ecx + 1]
dec edx
mov byte [edx + 1], al
jmp 0x4087b0
mov eax, dword [ebp - 0x20]
sub eax, ebx
lea edx, [eax + 1]
mov eax, dword [ebp - 0x1c]
add edx, ebx
mov dword [esp + 4], 0x42e480
mov dword [esp], edx
mov dword [esp + 8], eax
call fcn.00407b94
add esi, 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], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00407d63
sub esp, 0xc
mov dword [esp], ebx
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 0x4088b6
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x42f880
mov dword [esp + 4], eax
call fcn.00408168
push ebx
push ebx
mov dword [esp], 0x42f880
call fcn.00407a95
push edx
test eax, eax
jne 0x4088e7
xor eax, eax
jmp 0x408963
mov dword [esp], eax
mov ebx, eax
call fcn.004081e4
push ecx
test byte [0x430dc4], 0x80
je 0x408909
mov ax, word [ebx]
test ax, ax
je 0x4088e3
cmp ax, 0x5c
je 0x4088e3
sub ebx, 0x42f880
sar ebx, 1
mov dword [esp], 0x42f880
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
mov dword [esp], 0x42f880
cmp ebx, eax
jge 0x408948
call fcn.0040887e
push edx
test eax, eax
je 0x408939
test byte [eax], 0x10
je 0x4088e3
mov dword [esp], 0x42f880
call fcn.00407a22
push eax
jmp 0x408911
call fcn.0040819c
push eax
mov dword [esp], 0x42f880
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 0x408bef
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 0x408c2d
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x408c34
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, 0x40b688
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 0x408e00
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x4308e4], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x408e3d
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x408e28
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408e1a
mov dword [ecx*4 + 0x4308e0], eax
inc ecx
cmp ecx, 0x100
jne 0x408e13
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x408e60
inc edx
mov cl, byte [edx - 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4308e0]
jmp 0x408e47
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00408fe0
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00408fe0
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00408fe0
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00408fe0
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00408fe0
mov dword [0x41203c], eax
call fcn.00408fe0
test eax, eax
jge 0x402550
push 8
call fcn.00408fe0
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00408fe0
pop ecx
push 1
call fcn.00408fe0
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00408fe0
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00408fe0
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00408fe0
jmp 0x402495

Function at 0x408fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x408fef
pop dword [ebp - 0x40]
mov eax, 0x46b1ec70
sub eax, 0x46715c81
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x37272
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0xdea51d50
add ecx, 0x215b2281
xor edx, edx
add edx, eax
mov ebx, 0x2f545499
sub ebx, 0x2f1318d5
add ebx, dword [ebp - 0x40]
mov edi, 0x4402f9fa
add edi, 0xcd79151f
xor dword [ebp - 0x18], 0x5f89852
mov esi, dword [ebx]
mov dword [ebp - 0x38], 0x50d80752
add esi, edi
add dword [ebp - 0x34], 0xe99fbcb4
mov dword [edx], esi
xor dword [ebp - 4], ebx
add edx, 0x21c9fff6
sub edx, 0x21c9fff2
add ebx, 0xf4d5d610
add ebx, 0xb2a29f4
loop 0x40904b
add eax, 0xf217
xor ebx, ebx
add ebx, eax
add eax, 0xd58a9159
sub eax, 0xd58a9154
mov ecx, 0xad56fe91
sub ecx, 0xad16fe91
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x1000cd31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1002cd97
call fcn.10017073
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1000cdae
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1000cdae
call fcn.10005a99
mov esi, eax
jmp 0x1000ce85
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x1000cdd1
call fcn.10005a99
jmp 0x1000ce78
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1000cdc7
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1000ce01
mov esi, 0x8007000e
jmp 0x1000ce7a
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1001e3c4
jmp 0x1000ce27
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000cdfa
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1000cdc7
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.1001e3c4
mov esi, eax
test edi, edi
je 0x1000ce85
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000ce9e
lea ecx, [ebp - 0x418]
call fcn.1000c4af
mov eax, esi
call fcn.10016fc0
ret 0x10