joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b9960
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004ba8f0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004ba8f0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4b99c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x5b3fb0]
test esi, esi
jle 0x4b9ae0
mov eax, dword [0x5b3fb4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4b99f4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4b9a77
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4b99e0
mov dword [esp], ebx
call fcn.004ba3b0
mov edi, eax
test eax, eax
je 0x4b9b07
mov eax, dword [0x5b3fb4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004ba4f0
mov edx, dword [0x5b3fb4]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4b9ae7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4b9a70
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4b9a80
add dword [0x5b3fb0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x5b3fb4]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4b9a70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004b9960
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4b99fe
mov eax, dword [0x5b3fb4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004b9960
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004b9960
lea esi, [esi]
nop
Function at 0x4ba020
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5b3fcc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5b3fc4]
sub esp, 4
test ebx, ebx
je 0x4ba075
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4ba06e
test esi, esi
je 0x4ba06e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4ba050
mov dword [esp], 0x5b3fcc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4ba3b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4ba3d5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4ba3e0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4ba3d5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4ba428
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4ba41e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4ba42a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4ba410
xor eax, eax
pop ebx
pop esi
ret
Function at 0xde5294
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xcef43471
pop ss
dec ebp
dec edx
inc ebx
sbb esi, dword [ecx - 0x17c37336]
fisub word [ecx]
ret 0x1f0a
jmp 0xde529e
pushal
call 0xde52a4
pop ebp
sub ebp, 0x10
sub ebp, 0x9e5294
jmp 0xde52ba
mov eax, 0x9e5294
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b3
mov edx, 0x2a7f1b81
xor byte [eax], dl
inc eax
dec ecx
jne 0xde52d1
jmp 0xde52e4
or cl, byte [edx + ecx + 8]
mov ebp, 0x818181
inc eax
jns 0xde5271
add dword [ecx - 0x78c6b37e], 0x3b818181
test eax, 0x76818181
arpl word [edx - 0x72fff5b7], ax
add dword [ecx - 0x2ebb7d7f], 0x7da5e50c
or byte [ebp - 0x1412165b], al
mov dword [0x69a7e981], eax
cli
add dword [eax + 0x7be9a5ad], 0x6961e44c
test byte [ecx - 0x50977e7f], al
add dword [ecx - 0x5a1af37f], 0xa5ad087d
aad 0xdc
or al, byte [ecx + ecx*4]
add dword [ecx - 0x72ebf57f], 0xa818181
or al, 0x91
add dword [ecx - 0x7c97bf7f], 0x430283b0
test eax, ecx
mov es, word [esi*2 - 0x23818182]
inc ebx
lea eax, [ecx - 0x7a5af2f6]
add dword [ecx - 0x1412167f], 0xa7e981a3
imul edi, edx, 0xa5ad8081
shr byte [ecx - 0x7c], 1
add dword [ecx - 0x7c47977f], 0xe50c8181
movsd dword es:[edi], dword [esi]
jge 0xde5388
or dword [0xad087da5], 0x7edcd5a5
hlt
lodsd eax, dword [esi]
movsd dword es:[edi], dword [esi]
aad 0xdc
jle 0xde537a
lea edi, [esi - 0xc]
mov dword [ecx - 0x19], ebp
add dword [ecx - 0x76c3f57f], 0xb2818181
dec eax
mov dl, 0x53
add ch, byte [ecx - 0x7c]
leave
mov es, word [0x818181cf]
mov cs, word [ecx]
leave
add dword [ecx - 0x62f5187f], 0x697a01b8
mov es, word [0x8181819b]
add dword [edx + 0x68], edi
mov es, word [0x81818190]
out 0, eax
jp 0xde5441
hlt
movsb byte es:[edi], byte [esi]
mov es, word [0x81818194]
shr byte [eax + 0x4d], 0x7e
jle 0xde544e
test al, 0xcd
mov eax, 0x84400280
add ch, byte [ecx - 0x7b]
push 0x7e7e7e3c
test al, 0xd5
mov eax, 0x87400283
add ch, byte [ebx - 0x7b]
add ch, byte [ecx - 0x7c]
push 0x7e7e7e2a
fadd qword [ebx - 0x73]
adc esp, 0xd6d76d0a
aam 0xa
hlt
adc dword [ebx - 0x72], 4
test byte [ecx - 0x68f47e7f], al
invalid
mov es, word [edx]
stosd dword es:[edi], eax
add byte [ecx - 0x71ac7c7f], 4
test byte [ecx - 0x68f47e7f], al
invalid

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

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x6b973f10
nop
nop
nop
nop
test eax, eax
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x30ed7edc
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x488266c4
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0xeae5f79
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x6e53f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x21b000]
lea eax, [edi + 0x26dc78]
push dword [eax]
mov dword [eax], 0x530e946e
push eax
push edi
or ebp, 0xffffffff
jmp 0x6e5422
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6e5429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e5418
mov eax, 1
add ebx, ebx
jne 0x6e543b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6e544c
jne 0x6e546b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e546b
dec eax
add ebx, ebx
jne 0x6e5458
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6e5430
add ebx, ebx
jne 0x6e5467
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6e54bd
xor ecx, ecx
sub eax, 3
jb 0x6e5483
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6e54f2
sar eax, 1
mov ebp, eax
jmp 0x6e548e
add ebx, ebx
jne 0x6e548e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e545c
inc ecx
add ebx, ebx
jne 0x6e549c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e545c
add ebx, ebx
jne 0x6e54a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6e549e
jne 0x6e54ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6e549e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6e54dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6e54ce
jmp 0x6e541e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6e54dc
add edi, ecx
jmp 0x6e541e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0xa6b6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6e54fe
cmp byte [edi], 0x36
jne 0x6e54fe
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6e5503
lea edi, [esi + 0x2ce000]
mov eax, dword [edi]
or eax, eax
je 0x6e557b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2f39ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2f3afc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6e5530
mov ecx, edi
jns 0x6e555f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2f3b04]
or eax, eax
je 0x6e5575
mov dword [ebx], eax
add ebx, 4
jmp 0x6e554d
call dword [esi + 0x2f3b00]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6e55ac
cmp al, 0xef
ja 0x6e559f
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6e5581
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6e558e
mov ebp, dword [esi + 0x2f3b08]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6e55e0
sub esp, 0xffffff80
jmp 0x56b818
Function at 0x41130a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x411319
pop dword [ebp - 0x3c]
mov eax, 0x411319
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x40aab
push 0
mov eax, 0x4d7b5360
add eax, 0xb2c67eb4
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xa4d9b913
sub ecx, 0xa4d963c8
xor edi, edi
add edi, eax
mov esi, 0xcd261ef2
sub esi, 0xcce2bef2
add esi, dword [ebp - 0x3c]
mov ebx, 0xa7cf1b2c
mov dword [ebp - 0x30], 0x85bd30d7
mov edx, dword [esi]
xor dword [ebp - 0x30], 0x10d1afb9
add edx, ebx
add dword [ebp - 0x28], ebx
mov dword [edi], edx
sub dword [ebp - 0x10], 0xd23aa195
add edi, 0x16f3afb
add edi, 0xfe90c509
add esi, 0xa43a0a6e
sub esi, 0xa43a0a6a
loop 0x41136f
add eax, 0x147ff
xor ebx, ebx
add ebx, eax
add eax, 0x3c5d3656
sub eax, 0x3c5d3651
mov ecx, 0x280b59cd
add ecx, 0xd834a633
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x401040
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402a78
push eax
mov dword fs:[0], esp
sub esp, 0x64
push str.47BECA81_CE77_4c95_967C_4EDB33153B5E
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401088
mov eax, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov dword [0x405280], ecx
push 0
lea ecx, [esp + 4]
mov dword [0x405284], eax
call fcn.004010f0
lea ecx, [esp]
mov dword [esp + 0x6c], 0
call sub.MFC42.DLL_CDialog::DoModal
lea ecx, [esp]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004026ae
mov ecx, dword [esp + 0x64]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x70
ret

Function at 0x401250
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
mov ebx, eax
mov eax, dword [esp + 0x28]
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4012b0
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x4012e2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x401610
Capabilities:
Create process on windows
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x402b50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push edi
xor ebx, ebx
mov dword [esp + 0x4c], ebx
mov edx, dword [esp + 0x5c]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jg 0x4016b5
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], bl
call fcn.004027ec
lea ecx, [esp + 0x58]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004027ec
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov ecx, dword [esp + 0x40]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x40]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], bl
call fcn.004027ec
lea ecx, [esp + 0x58]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004027ec
mov ecx, dword [esp + 0x44]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret

Function at 0x401710
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x12c
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x14], ebx
xor esi, esi
call sub.KERNEL32.dll_Process32First
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4017a3
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esp + 0x140]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40178b
mov eax, dword [esp + 0x1c]
push eax
push 0
push 0x401
call ebx
mov esi, eax
push 0
push esi
call ebp
push esi
call edi
mov esi, 1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401754
mov ebx, dword [esp + 0x10]
pop ebp
push ebx
call edi
lea ecx, [esp + 0x13c]
call fcn.004027ec
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x12c
ret
Function at 0x401a30
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x402ba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebp
push esi
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0xc]
push eax
push str._s.
push ecx
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0
push edx
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x401b25
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov esi, eax
mov eax, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
call dword [eax + 0x40]
test eax, eax
je 0x401b05
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x401b05
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::GetFilePath
call fcn.00401a30
add esp, 4
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x10]
jmp 0x401b1c
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.004027ec
test esi, esi
jne 0x401aaa
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.004027ec
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 0
call fcn.00402834
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call fcn.004027ec
mov ecx, dword [esp + 0x38]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x38
ret
Function at 0x402926
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4034d0
push 0x402a5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4052bc], 0xffffffff
or dword [0x4052c0], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4052b4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4052b0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4052b8], eax
call fcn.00402a5d
cmp dword [0x404190], 0
jne 0x4029a9
push 0x402a5a
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00402a48
push 0x404020
push 0x40401c
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4052ac]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4052a8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x404018
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401040
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x40de38
nop
nop
mov ecx, 0x287a2703
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data_1
mov ebx, 0x4304d8
nop
mov ecx, 0x4c143802
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x402868
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.004028d0
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4
Function at 0x401f40
Capabilities:
Execute anti-debugging instructions
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45b864]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0xffffffff
jmp fcn.004bebbf
Function at 0x406990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x45b864]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.0042c680
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp - 0x110]
add edx, 0xffffffff
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x230]
mov cl, byte [eax + 1]
mov byte [ebp - 0x231], cl
add dword [ebp - 0x230], 1
cmp byte [ebp - 0x231], 0
jne 0x4069f0
mov edi, dword [ebp - 0x230]
mov dx, word [0x44dbbc]
mov word [edi], dx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x22c]
call fcn.00407c50
add eax, 0x16c
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0x238]
mov al, byte [edx]
mov byte [ebp - 0x23d], al
add dword [ebp - 0x238], 1
cmp byte [ebp - 0x23d], 0
jne 0x406a45
mov ecx, dword [ebp - 0x238]
sub ecx, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x248], ecx
lea eax, [ebp - 0x110]
add eax, 0xffffffff
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x24c]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x24d], dl
add dword [ebp - 0x24c], 1
cmp byte [ebp - 0x24d], 0
jne 0x406a90
mov edi, dword [ebp - 0x24c]
mov esi, dword [ebp - 0x244]
mov eax, dword [ebp - 0x248]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.0042a558
add esp, 8
cmp eax, 0xffffffff
je 0x406c15
push 0x20
lea edx, [ebp - 0x110]
push edx
call fcn.00409b70
add esp, 8
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x22c]
call fcn.00407c50
add eax, 0x1d4
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.0043c4d9
add esp, 8
test eax, eax
jne 0x406b34
mov dword [ebp - 4], 1
jmp 0x406c06
lea edx, [ebp - 0x110]
push edx
call fcn.00406920
add esp, 4
test eax, eax
jne 0x406c06
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 0x220], 0
push 0x103
push 0
lea eax, [ebp - 0x21f]
push eax
call fcn.0042c680
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
push 0x44dbc0
lea edx, [ebp - 0x220]
push edx
call fcn.00429869
add esp, 0xc
push 1
push 0x44dbf0
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 1
jne 0x406bba
jmp 0x406b34
lea ecx, [ebp - 0x110]
push ecx
push 0x44dbf8
lea edx, [ebp - 0x220]
push edx
call fcn.00429869
add esp, 0xc
push 1
push 0x44dc10
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 1
je 0x406bff
jmp 0x406b34
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.00429a9d
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004297fd
mov esp, ebp
pop ebp
ret 4