joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011b30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10011b5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10011b5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x455963
Capabilities:
Parse pe header

Disassembly:
pushal
xor edx, edx
mov esi, dword fs:[edx]
lodsd eax, dword [esi]
cmp eax, 0xffffffff
je 0x455973
mov esi, eax
jmp 0x455969
mov edi, dword [esi + 4]
and edi, 0xffff0000
cmp word [edi], 0x5a4d
je 0x45598b
sub edi, 0x10000
jmp 0x45597c
mov ebx, edi
add ebx, dword [ebx + 0x3c]
cmp word [ebx], 0x4550
je 0x455999
jmp 0x45597c
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x45599f
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
pushal
mov ebx, dword [esp + 0x24]
mov ecx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
add ebx, ecx
mov edi, dword [ebx + 0x20]
add edi, ecx
xor esi, esi
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
xor eax, eax
rol eax, 7
xor al, byte [edx]
inc edx
cmp byte [edx], 0
jne 0x4559be
cmp eax, dword [esp + 0x28]
je 0x4559d5
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x4559b5
mov edx, dword [ebx + 0x24]
add edx, ecx
movzx edx, word [edx + esi*2]
mov eax, dword [ebx + 0x1c]
add eax, ecx
mov eax, dword [eax + edx*4]
add eax, ecx
mov dword [esp + 0x1c], eax
popal
ret 8
Function at 0x4034a8
Capabilities:
Check os version

Disassembly:
sub esp, 0x184
push ebx
push esi
push edi
xor ebx, ebx
push 0x8001
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [esp + 0x20], ebx
mov byte [esp + 0x14], 0x20
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xbfffffff
mov dword [0x4243e0], eax
cmp ax, 6
je 0x4034fa
push ebx
call fcn.00405e50
cmp eax, ebx
je 0x4034fa
push 0xc00
call eax
jmp 0x40a24e
Function at 0x401e47
Capabilities:
Terminate process

Disassembly:
push 8
mov eax, 0x406371
call fcn.0040627e
mov esi, edx
mov edi, ecx
and dword [ebp - 0x14], 0
push esi
push edi
push 0x401358
push 0x3a98
call fcn.00405a4d
push eax
call fcn.0040476e
and dword [ebp - 4], 0
mov ebx, 0x3a99
push ebx
call fcn.00405a4d
push 0x428ab8
lea ecx, [ebp - 0x14]
push ecx
push 0x401378
push esi
push edi
push eax
call fcn.00404867
or dword [ebp - 4], 0xffffffff
mov ah, al
cmp byte [0x428aad], 0
mov cl, byte [0x428ac4]
je 0x401ee0
test cl, cl
je 0x401ed0
push 0x4012d0
push 0x4012c4
push 0x42
push ebx
call fcn.00405a4d
push eax
call fcn.00404540
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov al, byte [0x428aac]
test al, al
je 0x401ef9
push 0x4012e0
jmp 0x401eb5
mov al, byte [0x428aac]
test cl, cl
je 0x401ef9
test al, al
je 0x401ef9
push 0x4012e0
push 0x4012d0
jmp 0x401eba
cmp byte [0x428abf], 0
je 0x401f19
cmp dword [0x428ab4], 0
jne 0x401f19
push 0x401320
push 0x401328
push 0x44
jmp 0x401ebc
mov bl, byte [0x428aaf]
mov dl, byte [0x428ac5]
test bl, bl
je 0x401f43
test dl, dl
je 0x401f43
push 0x401340
push 0x401334
push 0x42
push 0x3a99
jmp 0x401ebd
test cl, cl
sete byte [0x428aad]
test ah, ah
je 0x401f9c
cmp byte [0x428abd], 0
je 0x401f5d
xor ecx, ecx
jmp 0x401fa8
mov ecx, dword [0x428ab8]
cmp ecx, 2
jg 0x401fa5
cmp ecx, 1
jne 0x401f71
test al, al
je 0x401fa5
test ecx, ecx
jne 0x401f7d
test bl, bl
jne 0x401f7d
test dl, dl
je 0x401fa5
mov ecx, dword [ebp - 0x14]
push ecx
mov eax, dword [ecx]
mov dword [0x428ac8], eax
mov eax, dword [ecx + 4]
mov dword [0x428ac0], eax
call fcn.00403873
pop ecx
call fcn.00406225
ret
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putchar]
pop ecx
xor ecx, ecx
inc ecx
call fcn.00401e20
int3
Function at 0x402211
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, edx
mov dword [ebp - 0xc], ecx
push 0x32
mov dword [ebp - 8], eax
pop esi
mov ebx, dword [eax + 0x54]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
jne 0x402247
push 0xe4
push 0x4014f8
push 2
call fcn.00406024
push ebx
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x10], 0
cmp ebx, dword [eax + 0xc]
jae 0x402270
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 8]
pop ecx
jmp 0x402225
cmp dword [edi + 0x64], 0
je 0x40228e
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
dec esi
test esi, esi
jg 0x402225
xor eax, eax
inc eax
jmp 0x40231a
mov esi, dword [ebp + 8]
xor eax, eax
inc eax
push esi
push eax
push ebx
mov word [edi + 0x60], ax
push edi
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov byte [ebp - 1], al
call edi
add esp, 0x10
cmp eax, 1
jne 0x402301
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
test eax, eax
jne 0x402301
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push eax
push 0x40
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x402301
push esi
push 1
push 0x10
push dword [ebp + 0xc]
call edi
add esp, 0x10
cmp eax, 1
jne 0x402301
push 0
push 0x52
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x402301
push esi
push 1
lea eax, [ebp - 1]
push 1
push eax
call edi
add esp, 0x10
cmp eax, 1
je 0x402318
mov eax, dword [ebp - 0xc]
push dword [eax + 0x10]
push 0x113
push 0x4014f8
push 0x5b
call fcn.00405fc5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x402321
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi + 4], 0x14
je 0x40234d
push dword [esi + 0x10]
push 0x129
push 0x4014f8
push 0x422
call fcn.00405fc5
mov dword [ebp - 8], 0xa
push dword [ebp + 0xc]
mov edx, edi
mov ecx, esi
push dword [ebp + 8]
call fcn.00402211
test eax, eax
jne 0x4023fd
push eax
push 0x64
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x402397
push dword [ebp + 8]
lea eax, [ebp - 4]
push 4
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 4
je 0x4023ab
push dword [esi + 0x10]
push 0x136
push 0x4014f8
push 0x5b
call fcn.00405fc5
cmp dword [ebp - 4], 0
je 0x4023ed
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x4023d9
push dword [esi + 0x10]
push 0x142
push 0x4014f8
push 0x5b
call fcn.00405fc5
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
test eax, eax
jg 0x402354
push 2
pop eax
jmp 0x402400
cmp byte [esi + 1], 0
je 0x4023f9
push edi
call fcn.004060fc
xor eax, eax
jmp 0x402400
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 8
Function at 0x402bc2
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x407014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x402c09
push 0x60
push 0x3a99
call fcn.00405a4d
push eax
call fcn.004045b8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0x401640
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x428ad0], eax
mov edi, 0x401658
test eax, eax
jne 0x402c4c
push 0x30
push edi
push 0x406
call fcn.00406024
mov eax, dword [0x428ad0]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4016f4
push eax
call esi
mov dword [0x428ad4], eax
mov ebx, 0x407
test eax, eax
jne 0x402c71
push 0x37
push edi
push ebx
call fcn.00406024
push 0x401708
push dword [0x428ad0]
call esi
mov dword [0x428acc], eax
test eax, eax
jne 0x402c90
push 0x3e
push edi
push ebx
call fcn.00406024
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403865
leave
ret
Function at 0x405a4d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x408a90]
push esi
push edi
xor edi, edi
test ecx, ecx
jne 0x405a80
cmp byte [0x408a94], cl
jne 0x405a80
push edi
push edi
call fcn.004051d6
mov ecx, eax
mov dword [0x408a90], ecx
test ecx, ecx
jne 0x405a80
mov byte [0x408a94], 1
mov esi, dword [ebp + 8]
mov eax, esi
sar eax, 4
push edi
inc eax
movzx eax, ax
push eax
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x405ad5
push eax
push dword [0x408a90]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, eax
test ecx, ecx
je 0x405ad5
and esi, 0x8000000f
jns 0x405abd
dec esi
or esi, 0xfffffff0
add esi, 1
je 0x405acd
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub esi, 1
jne 0x405abf
lea eax, [ecx + 2]
cmp word [ecx], di
jne 0x405ada
mov eax, 0x401594
pop edi
pop esi
pop ebp
ret 4

Function at 0x405bd8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x407014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x104]
push edi
mov dword [ebp - 0x11c], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x120], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov edi, esi
xor edx, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x405c21
sub edi, ecx
sar edi, 1
imul edi, dword [ebp - 0x118]
inc edi
cmp edi, 0x100
jle 0x405c6a
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x405c68
push 2
push 0x2720
call fcn.00405a4d
push eax
call fcn.004045b8
push 2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
xor edx, edx
push edx
push edx
push edi
push ebx
push 0xffffffffffffffff
push esi
push edx
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x11c]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
push dword [ebp - 0x11c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 0xc
cmp edi, 0x100
jle 0x405caa
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [esi + 2]
xor edx, edx
mov cx, word [esi]
add esi, 2
cmp cx, dx
jne 0x405caf
mov ecx, dword [ebp - 4]
sub esi, eax
sar esi, 1
xor ecx, ebp
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00403865
leave
ret 8
Function at 0x405cd1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
inc ebx
test esi, esi
je 0x405ce9
cmp esi, ebx
jne 0x405d83
xor eax, eax
push edi
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp dword [esi*4 + 0x408a98], eax
jne 0x405d1d
test esi, esi
jne 0x405d02
push ebx
jmp 0x405d04
push 2
call edi
pop ecx
push eax
call fcn.00405b23
mov dword [esi*4 + 0x408aa0], eax
xor eax, eax
mov dword [esi*4 + 0x408a98], ebx
cmp dword [esi*4 + 0x408aa0], eax
je 0x405d32
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__cputws]
pop ecx
jmp 0x405d82
lea eax, [ebp + 0xc]
push eax
call fcn.00405b75
test eax, eax
je 0x405d6d
mov ecx, dword [ebp + 8]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x405d47
sub ecx, edx
lea eax, [ebp - 4]
push esi
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x405d82
test esi, esi
jne 0x405d74
push ebx
jmp 0x405d76
push 2
call edi
pop ecx
push dword [ebp + 8]
push eax
call fcn.00405bd8
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4061f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00405a4d
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x401443
pop dword [ebp - 0x20]
mov eax, 0xdfc822bd
add eax, 0x2077f186
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x45a5a669
sub dword [ebp - 0x30], 0xf753611e
mov dword [ebp - 0x2c], 0x2aac9359
add dword [ebp - 0x2c], 0x786b8ec
mov dword [ebp - 0x28], 0xf9c87f93
add dword [ebp - 0x28], 0x5283c49b
mov dword [ebp - 0x24], 0x966c3dd4
sub dword [ebp - 0x24], 0x966c3dd4
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x4beb0505
add dword [ebp - 0x30], 0x28876451
mov dword [ebp - 0x2c], 0x6281c3f1
sub dword [ebp - 0x2c], 0x2115627c
mov dword [ebp - 0x28], 0xa8fc93e1
sub dword [ebp - 0x28], 0x458d2775
mov dword [ebp - 0x24], 0xf6f92205
add dword [ebp - 0x24], 0x906ddfb
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x350b2
push 0
call eax
mov ecx, 0xe2b873bd
sub ecx, 0xe2b838ba
mov edx, eax
mov ebx, 0x9ff07581
sub ebx, 0x9fa99181
add ebx, dword [ebp - 0x20]
mov edi, 0x92a0cb46
sub edi, 0x1dd47c49
mov dword [ebp - 0xc], 0x2511c5e0
mov esi, dword [ebx]
xor dword [ebp - 0x10], 0x9c4adf2b
xor esi, edi
mov dword [edx], esi
xor dword [ebp - 0x18], 0xedf8ee23
add edx, 0xd1ddb16c
add edx, 0x2e224e98
add ebx, 0x22e126a8
sub ebx, 0x22e126a4
loop 0x40155b
add eax, 0x609dc764
add eax, 0x9f63177b
mov ebx, eax
add eax, 0x8ee4c074
add eax, 0x711b3f91
mov ecx, 0x992d7ca4
sub ecx, 0x98ed7ca4
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
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 [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x401ee2
Capabilities:
Terminate process

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

Function at 0x40bc43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40bc52
pop dword [ebp - 0x18]
mov eax, 0xb3510c8c
add eax, 0x4cefafc6
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3b2f5
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x86cdc546
sub ecx, 0x86cd7667
mov esi, eax
mov edi, 0x51c7667e
sub edi, 0x51862aba
add edi, dword [ebp - 0x18]
mov edx, 0x7c7fa447
sub edx, 0x2750a692
mov dword [ebp - 8], 0x653910bd
mov ebx, dword [edi]
sub ebx, edx
xor dword [ebp - 8], ecx
mov dword [esi], ebx
add dword [ebp - 4], edi
add esi, 0xffe69dee
sub esi, 0xffe69dea
add edi, 4
loop 0x40bcac
add eax, 0xa88f33ab
add eax, 0x5771faa4
mov ebx, eax
add eax, 0x359b96d9
sub eax, 0x359b96d4
mov ecx, 0x30c7bd3c
sub ecx, 0x3087bd3c
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x401c66
pop dword [ebp - 0x18]
mov eax, 0x474ac714
add eax, 0xb8f55552
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xc7d04926
add dword [ebp - 0x28], 0x8681fc25
mov dword [ebp - 0x24], 0x63f70413
add dword [ebp - 0x24], 0xce3c4832
mov dword [ebp - 0x20], 0xfae3c3a2
add dword [ebp - 0x20], 0x5168808c
mov dword [ebp - 0x1c], 0xf4a0f8d
add dword [ebp - 0x1c], 0xf0b5f073
lea eax, [ebp - 0x28]
push eax
mov eax, 0x3a779011
add eax, 0xc5c8a043
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x327122c9
sub dword [ebp - 0x28], 0xbdfeb973
mov dword [ebp - 0x24], 0xf1c7533c
sub dword [ebp - 0x24], 0xb05af1c7
mov dword [ebp - 0x20], 0x5e879261
add dword [ebp - 0x20], 0x4e7da0b
mov dword [ebp - 0x1c], 0x66ef3605
sub dword [ebp - 0x1c], 0x66ef3605
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x38172
push 0
call eax
mov ecx, 0xec07d135
add ecx, 0x13f87d3b
xor edi, edi
add edi, eax
mov ebx, 0xfd453aca
add ebx, 0x2fb3536
add ebx, dword [ebp - 0x18]
mov esi, 0x28b2d18c
add esi, 0x953d41e9
xor dword [ebp - 0x10], 0x613e8f45
mov edx, dword [ebx]
mov dword [ebp - 0x10], 0x71bcdecd
xor edx, esi
add dword [ebp - 0xc], 0xf21d21a6
mov dword [edi], edx
mov dword [ebp - 0xc], 0x51df5d55
add edi, 0x1f0c611a
sub edi, 0x1f0c6116
add ebx, 0x6145b4b0
sub ebx, 0x6145b4ac
loop 0x401d85
add eax, 0xc928a41b
sub eax, 0xc9277788
xor ebx, ebx
add ebx, eax
add eax, 0x86e7e349
add eax, 0x79181cbc
mov ecx, 0x61cf3256
sub ecx, 0x618f3256
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x1000a6a4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10011dac], 0
push esi
push edi
jne 0x1000a61a
call fcn.1000a586
test eax, eax
je 0x1000a65f
mov eax, dword [0x10011dac]
cmp eax, 1
jne 0x1000a63b
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x1000a65f
jmp 0x1000a6a1
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1000a6a1
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1000a663
xor eax, eax
jmp 0x1000a6a1
mov eax, dword [esi]
push dword [0x10011dac]
call edi
mov edi, eax
test edi, edi
je 0x1000a685
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x1000a6a1
lea edi, [esi + 0xff0]
push esi
push dword [0x10011dac]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1000a68b
mov eax, esi
pop edi
pop esi
ret
jmp 0x1000a606

Function at 0x1000a812
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10011c4c]
jne 0x1000a81c
repz ret
jmp fcn.1000b021

Function at 0x1000acde
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1000aced
pop dword [ebp - 0x28]
mov eax, 0x1000aced
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3824f
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0xacdedfd6
add ecx, 0x53216bf4
mov edx, eax
mov ebx, 0x1001c600
add ebx, dword [ebp - 0x28]
mov esi, 0xcb9e8c52
sub esi, 0xf5c942ff
xor dword [ebp - 0x20], 0x79fb0b46
mov edi, dword [ebx]
sub dword [ebp - 0xc], edx
xor edi, esi
xor dword [ebp - 0x1c], edx
mov dword [edx], edi
xor dword [ebp - 0x10], 0xe1e4e679
add edx, 0x117b10bd
sub edx, 0x117b10b9
add ebx, 4
loop 0x1000ad3c
add eax, 0x9ba6fc64
add eax, 0x645a2597
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401069
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x458030]
jne 0x401073
repz ret
jmp fcn.00401c51

Function at 0x408bad
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.0040499b
and dword [ebp - 4], 0
cmp dword [0x45a850], 0
mov ebx, eax
jne 0x408c5e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408d0f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408d0f
push eax
call fcn.00404929
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45a850], eax
call esi
push eax
call fcn.00404929
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45a854], eax
call esi
push eax
call fcn.00404929
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45a858], eax
call esi
push eax
call fcn.00404929
pop ecx
mov dword [0x45a860], eax
test eax, eax
je 0x408c5e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404929
pop ecx
mov dword [0x45a85c], eax
mov eax, dword [0x45a85c]
cmp eax, ebx
je 0x408cb6
cmp dword [0x45a860], ebx
je 0x408cb6
push eax
call fcn.004049a4
push dword [0x45a860]
mov esi, eax
call fcn.004049a4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408cb6
test edi, edi
je 0x408cb6
call esi
test eax, eax
je 0x408cad
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408cad
test byte [ebp - 0xc], 1
jne 0x408cb6
or dword [ebp + 0x10], 0x200000
jmp 0x408cef
mov eax, dword [0x45a854]
cmp eax, ebx
je 0x408cef
push eax
call fcn.004049a4
pop ecx
test eax, eax
je 0x408cef
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408cef
mov eax, dword [0x45a858]
cmp eax, ebx
je 0x408cef
push eax
call fcn.004049a4
pop ecx
test eax, eax
je 0x408cef
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45a850]
call fcn.004049a4
pop ecx
test eax, eax
je 0x408d0f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408d11
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret