joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478ca0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2ea8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ccc64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jbe 0x478d41
push esi
call fcn.0047d5f4
mov edi, eax
add esp, 4
test edi, edi
je 0x478d41
mov edx, dword [ebp + 8]
push edi
push esi
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x478d38
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x478d25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.0047d5e9
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x478d67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x479040
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebx + 0x3c]
movzx ecx, word [eax + ebx + 0x14]
add eax, ebx
push esi
push edi
movzx edi, word [eax + 6]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov dword [ebp - 4], edx
test edi, edi
jle 0x479088
lea eax, [edx + 8]
mov edx, dword [eax]
mov esi, edx
test edx, edx
jne 0x47906f
mov esi, dword [eax + 8]
mov edx, dword [eax + 4]
cmp dword [ebp + 8], edx
jb 0x479080
add esi, edx
mov edx, dword [ebp + 8]
cmp edx, esi
jb 0x479090
inc ecx
add eax, 0x28
cmp ecx, edi
jl 0x479064
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ecx + ecx*4]
mov ecx, dword [ebp - 4]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
pop edi
add eax, ebx
add eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47a1e0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
xor edi, edi
cmp eax, edi
jne 0x47a21c
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a212
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push edi
push edi
push edi
push edi
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [esi + 8], eax
cmp eax, edi
je 0x47a263
push edi
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 4]
push ecx
push 0x20000013
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x47a263
cmp dword [ebp - 4], 0xc8
jne 0x47a263
mov edi, 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47a282
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x47a290
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push 0
lea edx, [ebp - 4]
push edx
push eax
mov dword [eax], 0
mov eax, dword [ecx + 8]
push 0x20000005
push eax
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x47a2c9
mov eax, 1
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x47a380
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push 0x4000
mov ebx, ecx
mov dword [ebp - 4], edi
call fcn.0048c2b0
mov ecx, dword [ebx + 8]
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x4000
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x47a40e
mov eax, dword [ebp - 4]
add edi, eax
cmp eax, 0x4000
jne 0x47a3fe
lea edx, [edi + 0x4000]
push edx
push esi
call fcn.0048c4ed
mov edx, dword [ebx + 8]
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x4000
lea ecx, [esi + edi]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x47a3b5
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov eax, edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47a420
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3478
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4ccc64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], 0xffffffff
call fcn.00421538
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00454a40
add esp, 8
cmp eax, edi
je 0x47a56b
push 0x4000
call fcn.0048c2b0
mov edx, dword [ebx + 8]
add esp, 4
lea ecx, [ebp - 0x10]
push ecx
push 0x4000
mov esi, eax
push esi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [ebp - 0x18]
test eax, eax
je 0x47a4ec
mov ecx, dword [ebp - 0x10]
push 0
lea eax, [ebp - 0x1c]
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x1c], eax
jne 0x47a539
add dword [ebp - 0x14], eax
cmp eax, 0x4000
jne 0x47a4ec
lea edx, [ebp - 0x10]
push edx
push eax
mov eax, dword [ebx + 8]
push esi
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x47a4b4
push esi
call fcn.0048c1d3
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a522
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.0048c1d3
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
call fcn.00421538
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00457070
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a591
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47b1c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3758
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x4ccc64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, 1
call fcn.0048d4ed
push eax
mov eax, dword [esi + 8]
push eax
lea ecx, [ebp - 0x10]
push str._s._d
push ecx
call fcn.00453c70
add esp, 0x10
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
push edx
push eax
call ebx
test eax, eax
jne 0x47b248
mov edx, dword [esi + 8]
push ecx
mov ecx, dword [ebp - 0x10]
mov eax, esp
mov dword [ebp - 0x14], esp
push ecx
push edx
push str.CVirtAutoUpdate::CommitNewVersion:_move_1_failed:__s_____s
push eax
call fcn.00453c70
add esp, 0x10
call fcn.0047a170
add esp, 4
xor edi, edi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
push eax
push ecx
call ebx
test eax, eax
jne 0x47b27c
mov edx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 8]
mov eax, esp
mov dword [ebp - 0x14], esp
push ecx
push edx
push str.CVirtAutoUpdate::CommitNewVersion:_move_2_failed:__s_____s
push eax
call fcn.00453c70
add esp, 0x10
call fcn.0047a170
add esp, 4
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b2a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b540
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6880
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4ccc64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, 2
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
push 0
push eax
push ecx
push 0
call edi
mov edx, dword [ebp + 8]
cmp dword [edx - 0xc], 0
push ecx
je 0x47b680
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov esi, esp
push eax
call fcn.00421538
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov esi, esp
push eax
call fcn.00421538
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
call fcn.00421538
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], bl
call fcn.0047a5b0
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 5
call fcn.0047a850
test eax, eax
je 0x47b676
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 3
push str.New_version_available
push str.New_version_available._Would_you_like_to_download_and_replace_it_now_
push 0
mov ebx, eax
call edi
cmp eax, 6
jne 0x47b676
lea eax, [ebp - 0x2c]
push eax
call fcn.0047b080
test eax, eax
je 0x47b676
lea esi, [ebp - 0x2c]
call fcn.0047b1c0
test eax, eax
je 0x47b676
mov edx, dword [ebx]
push ecx
mov dword [ebp - 0x18], esp
mov esi, esp
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push edx
call fcn.00421197
push esi
call fcn.00458da0
add esp, 8
lea eax, [ebp - 0x2c]
push eax
call fcn.0047b2c0
test eax, eax
je 0x47b676
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea esi, [ebp - 0x2c]
call fcn.0047b720
jmp 0x47b69b
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.DoVirtAutoUpdate:_nothing_to_update__no_SourceAddr_defined_
push ecx
call fcn.00453c70
add esp, 8
call fcn.0047a170
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47b6be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b6e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b707
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b840
Capabilities:
Encode data using xor

Disassembly:
or edx, 0xffffffff
cmp dword [0x4d179c], 0
jne 0x47b851
call fcn.0047b7a0
xor eax, eax
test esi, esi
jle 0x47b87b
jmp 0x47b860
movzx ecx, byte [eax + edi]
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x4d1348]
inc eax
cmp eax, esi
jl 0x47b860
mov eax, edx
ret
Function at 0x47f637
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x47f65b
cmp dword [edi + 0x54], 0
jne 0x47f65b
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0048002e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0047f5f8
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x48580b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x485852
call fcn.0048002e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x485852
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x48586e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00485383
mov esi, eax
test edi, edi
je 0x48586c
test ebx, ebx
je 0x48586c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x48b97b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ccc64]
jne 0x48b985
repz ret
jmp fcn.004927ad
Function at 0x49bf15
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.00492111
and dword [ebp - 4], 0
cmp dword [0x4d124c], 0
mov ebx, eax
jne 0x49bfc6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x49c077
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ae8f8
push edi
call esi
test eax, eax
je 0x49c077
push eax
call fcn.0049209f
mov dword [esp], 0x4ae8e8
push edi
mov dword [0x4d124c], eax
call esi
push eax
call fcn.0049209f
mov dword [esp], 0x4ae8d4
push edi
mov dword [0x4d1250], eax
call esi
push eax
call fcn.0049209f
mov dword [esp], 0x4ae8b8
push edi
mov dword [0x4d1254], eax
call esi
push eax
call fcn.0049209f
pop ecx
mov dword [0x4d125c], eax
test eax, eax
je 0x49bfc6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049209f
pop ecx
mov dword [0x4d1258], eax
mov eax, dword [0x4d1258]
cmp eax, ebx
je 0x49c01e
cmp dword [0x4d125c], ebx
je 0x49c01e
push eax
call fcn.0049211a
push dword [0x4d125c]
mov esi, eax
call fcn.0049211a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x49c01e
test edi, edi
je 0x49c01e
call esi
test eax, eax
je 0x49c015
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49c015
test byte [ebp - 0xc], 1
jne 0x49c01e
or dword [ebp + 0x10], 0x200000
jmp 0x49c057
mov eax, dword [0x4d1250]
cmp eax, ebx
je 0x49c057
push eax
call fcn.0049211a
pop ecx
test eax, eax
je 0x49c057
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x49c057
mov eax, dword [0x4d1254]
cmp eax, ebx
je 0x49c057
push eax
call fcn.0049211a
pop ecx
test eax, eax
je 0x49c057
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d124c]
call fcn.0049211a
pop ecx
test eax, eax
je 0x49c077
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49c079
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x3e5d3a86
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x775e2fe3
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x402a3d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42e450]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ad1
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a8e
cmp dword [ebp + 0x10], ebx
jne 0x402ac5
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a3d
test eax, eax
jne 0x402aa0
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a75
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405ebc
cmp eax, ebx
je 0x402ad8
push ebx
push dword [0x42e450]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ad1
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 [0x42e450], ebx
jne 0x402ace
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ace
jmp 0x402ad1
Function at 0x405344
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42b028], 0x44
push eax
xor eax, eax
push 0x42b028
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40537f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004057fd
mov edi, eax
cmp edi, 0xffffffff
je 0x40544a
test byte [esp + 0x10], 1
push esi
je 0x40542c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405432
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40543b
xor eax, eax
inc eax
jmp 0x40544c
test byte [esp + 0x10], 4
jne 0x40544a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405451
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040570f
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405490
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42e428], eax
jmp 0x40561a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4054aa
test eax, eax
je 0x4055c8
test bl, 2
je 0x4055c8
mov esi, 0x42a828
push edi
push esi
call fcn.00405b91
cmp dword [ebp + 8], 0
je 0x4054c9
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054cf
push edi
call fcn.00405668
cmp byte [edi], 0
jne 0x4054dd
cmp byte [0x42a828], 0x5c
jne 0x4054e8
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4055be
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040564c
cmp byte [eax], 0
je 0x40552e
cmp byte [ebp - 0x1c], 0
je 0x40552e
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405544
mov al, byte [esi + 1]
test al, al
je 0x40559d
cmp al, 0x2e
jne 0x405544
cmp byte [esi + 2], 0
je 0x40559d
push esi
push ebx
call fcn.00405b91
test byte [ebp - 0x14c], 0x10
je 0x405569
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40559d
push dword [ebp + 0xc]
push edi
call fcn.00405451
jmp 0x40559d
push dword [ebp - 4]
push edi
call fcn.00405409
test eax, eax
jne 0x405595
cmp dword [ebp - 4], eax
je 0x40558d
push edi
push 0xfffffffffffffff1
call fcn.00404e7c
push 0
push edi
call fcn.00405a45
jmp 0x40559d
inc dword [0x42e428]
jmp 0x40559d
push edi
push 0xfffffffffffffff2
call fcn.00404e7c
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40550c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055c8
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40561a
cmp dword [ebp - 0xc], esi
jne 0x4055dc
inc dword [0x42e428]
jmp 0x40561a
push edi
call fcn.00405e95
test eax, eax
je 0x40561a
push edi
call fcn.00405621
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405409
test eax, eax
jne 0x405612
cmp dword [ebp - 4], esi
je 0x4055d4
push edi
push 0xfffffffffffffff1
call fcn.00404e7c
push esi
push edi
call fcn.00405a45
jmp 0x40561a
push edi
push 0xffffffffffffffe5
call fcn.00404e7c
pop edi
pop esi
pop ebx
leave
ret 8