joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x47f627b0
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x30da536e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x408954
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
call fcn.00408974
add esi, edi
xor dword [eax], ecx
sub edi, 1
sub esi, 0x98fb3355
inc eax
cmp eax, ebx
jne fcn.00408954
ret
Function at 0x4107ab
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
mov eax, dword fs:[0x30]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x427000
mov dword [ebp - 0x48], 0x4d746547
mov dword [ebp - 0x44], 0x6c75646f
mov dword [ebp - 0x40], 0x6e614865
mov dword [ebp - 0x3c], 0x57656c64
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x58], 0x50746547
mov dword [ebp - 0x54], 0x41636f72
mov dword [ebp - 0x50], 0x65726464
mov dword [ebp - 0x4c], 0x7373
mov dword [ebp - 0x68], 0x74726956
mov dword [ebp - 0x64], 0x416c6175
mov dword [ebp - 0x60], 0x636f6c6c
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x78], 0x74726956
mov dword [ebp - 0x74], 0x506c6175
mov dword [ebp - 0x70], 0x65746f72
mov dword [ebp - 0x6c], 0x7463
mov dword [ebp - 0x88], 0x74726956
mov dword [ebp - 0x84], 0x516c6175
mov dword [ebp - 0x80], 0x79726575
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 5
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call fcn.004103e3
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call fcn.00410696
mov dword [ebp - 0xc], eax
mov eax, dword fs:[0]
mov ebx, dword [eax]
cmp ebx, 0xffffffff
je 0x4108d6
mov eax, ebx
jmp 0x4108cb
mov dword fs:[0], eax
mov ebx, dword fs:[0x30]
mov eax, dword [ebp - 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0xc]
cmp eax, 0
je 0x410908
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 4]
jne 0x410904
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x18], ecx
jmp 0x410908
mov eax, dword [eax]
jmp 0x4108ef
wait
fninit
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0xc]
mov edx, eax
xor ecx, ecx
mov ebx, dword fs:[0x30]
call edx
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 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x402ef8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x456008], 0x8088405
inc edx
mov dword [ebx + 0x456008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41eef0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41eef6
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x418180
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x4181a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4181a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x418198
mov eax, 1
add ebx, ebx
jne 0x4181bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4181b0
jne 0x4181cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4181b0
xor ecx, ecx
sub eax, 3
jb 0x4181e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418252
mov ebp, eax
add ebx, ebx
jne 0x4181eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4181f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41821c
inc ecx
add ebx, ebx
jne 0x418208
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4181fd
jne 0x418219
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4181fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41823c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41822d
jmp 0x41819e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41823c
add edi, ecx
jmp 0x41819e
pop esi
mov edi, esi
mov ecx, 0x3b2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41825a
cmp byte [edi], 0
jne 0x41825a
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 eax, ebx
loop 0x41825f
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x4182ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x180b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18114]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41828c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18118]
or eax, eax
je 0x4182c8
mov dword [ebx], eax
add ebx, 4
jmp 0x4182a9
call dword [esi + 0x1811c]
popal
jmp 0x40a630
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x1eb950ce
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f314
mov ecx, 0x690a62e5
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x34450c8b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x7cda6cd6
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x408530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], str.uadbdhlliklfq
lea ecx, [ebp - 0x60]
call fcn.004023a0
push 0x2faf080
call fcn.00408864
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x408591
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
jmp 0x408686
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0xc]
add eax, 0x2faf080
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00401c20
mov dword [ebp - 8], 0
jmp 0x4085c0
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x1f09
jae 0x408612
mov eax, dword [ebp - 8]
mov cl, byte [eax + section..data]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 2], al
movzx ecx, byte [ebp - 1]
sar ecx, 3
movzx edx, byte [ebp - 1]
shl edx, 5
or ecx, edx
movzx eax, byte [ebp - 2]
xor ecx, eax
mov edx, dword [ebp - 8]
mov byte [edx + section..data], cl
mov eax, dword [ebp - 0x10]
add eax, 1
cdq
mov ecx, 0xd
idiv ecx
mov dword [ebp - 0x10], edx
jmp 0x4085b7
push 0x40
push 0x3000
push 0x1f09
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
push 0x1f09
push section..data
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040d6c0
add esp, 0xc
mov eax, dword [ebp - 0x18]
jmp eax
lea ecx, [ebp - 0x60]
call fcn.004026f0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x419fbf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b3d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004102b7
mov dword [ebp - 0x14], eax
cmp dword [0x42da24], esi
jne 0x41a0b2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41a03f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41a192
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41a192
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41a192
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42da24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42da28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42da2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42da34], eax
test eax, eax
je 0x41a0af
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42da30], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41a0d7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41a0ca
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41a0ec
push 4
pop eax
jmp 0x41a194
cmp dword [ebp - 0x14], esi
je 0x41a0ec
push dword [0x42da24]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41a0d1
mov eax, dword [0x42da30]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41a14a
cmp dword [0x42da34], edi
je 0x41a14a
push eax
call ebx
push dword [0x42da34]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41a14a
test eax, eax
je 0x41a14a
call ecx
test eax, eax
je 0x41a13f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41a13f
test byte [ebp - 8], 1
jne 0x41a14a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41a17a
mov eax, dword [0x42da28]
cmp eax, edi
je 0x41a177
push eax
call ebx
test eax, eax
je 0x41a177
call eax
mov esi, eax
test esi, esi
je 0x41a177
mov eax, dword [0x42da2c]
cmp eax, edi
je 0x41a177
push eax
call ebx
test eax, eax
je 0x41a177
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42da24]
call ebx
test eax, eax
je 0x41a192
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41a194
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040efcb
mov esp, ebp
pop ebp
ret
Function at 0x40202a
Capabilities:
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push 0
push eax
call fcn.004072af
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004072af
add esp, 0x18
lea eax, [ebp - 0x214]
xor ecx, ecx
mov ebx, ecx
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
push 0x2001f
push ecx
push ecx
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [0x40a01c]
test eax, eax
jne 0x402257
push esi
xor esi, esi
push esi
push str.wextract_cleanup_d
push 0x50
push 0x408530
call fcn.0040171e
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
xor eax, eax
push eax
push eax
push eax
push 0x408530
push dword [ebp - 0x210]
call dword [0x40a028]
test eax, eax
jne 0x4020dc
inc esi
cmp esi, 0xc8
jl 0x40209d
cmp esi, 0xc8
jne 0x4020fb
push dword [ebp - 0x210]
call dword [0x40a030]
mov byte [0x408530], bl
jmp 0x402256
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [0x40a074]
push 0x4011d8
mov edx, edi
lea ecx, [ebp - 0x20c]
call fcn.0040658a
lea eax, [ebp - 0x20c]
push eax
call dword [0x40a078]
mov edi, eax
test edi, edi
je 0x402179
push 0x4011e4
push edi
call dword [0x40a09c]
mov esi, eax
xor ebx, ebx
test esi, esi
push edi
setne bl
call dword [0x40a0ac]
test esi, esi
je 0x402179
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call dword [0x40a074]
test eax, eax
je 0x402196
push 0x401140
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.0040658a
jmp 0x402196
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push eax
push dword [0x409a3c]
call dword [0x40a19c]
test eax, eax
je 0x4021de
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40219f
sub ecx, edx
mov edx, 0x4091e4
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4021b0
sub edx, esi
lea edi, [ecx + 0x50]
add edi, edx
push edi
push 0x40
call dword [0x40a150]
mov esi, eax
test esi, esi
jne 0x4021ec
push eax
push 0x10
push eax
push eax
mov edx, 0x4b5
xor ecx, ecx
call fcn.004044b9
push dword [ebp - 0x210]
call dword [0x40a030]
jmp 0x402256
mov eax, ebx
xor eax, 1
mov dword [0x408580], eax
mov eax, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
test ebx, ebx
jne 0x402204
mov eax, str._s__D:_s
push 0x4091e4
lea ecx, [ebp - 0x108]
push ecx
push eax
push edi
push esi
call fcn.0040171e
mov ecx, esi
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402220
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push 1
push 0
push 0x408530
push dword [ebp - 0x210]
call dword [0x40a018]
push dword [ebp - 0x210]
call dword [0x40a030]
push esi
call dword [0x40a0a4]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret
Function at 0x402267
Capabilities:
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x408530], 0
je 0x402382
push esi
lea eax, [ebp - 0x344]
xor esi, esi
push eax
push 0x2001f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [0x40a008]
test eax, eax
jne 0x402381
push ebx
lea eax, [ebp - 0x348]
mov ebx, 0x238
push eax
lea eax, [ebp - 0x340]
mov dword [ebp - 0x348], ebx
push eax
push esi
push esi
push 0x408530
push dword [ebp - 0x344]
call dword [0x40a028]
test eax, eax
jne 0x402374
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push esi
push eax
call fcn.004072af
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push eax
call dword [0x40a074]
test eax, eax
je 0x402321
push 0x401140
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.0040658a
push 0x4091e4
lea eax, [ebp - 0x108]
push eax
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
lea eax, [ebp - 0x340]
push ebx
push eax
call fcn.0040171e
add esp, 0x14
lea ecx, [ebp - 0x340]
lea edx, [ecx + 1]
pop edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40234c
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x340]
push eax
push 1
push esi
push 0x408530
push dword [ebp - 0x344]
call dword [0x40a018]
push dword [ebp - 0x344]
call dword [0x40a030]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406ce0
mov esp, ebp
pop ebp
ret
Function at 0x4029f4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403f80
test esi, esi
jne 0x402a2a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404070
jmp 0x402a48
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402a48
cmp dword [ebx], 0
je 0x402a48
dec esi
jmp 0x402a31
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x452020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403150
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403130
xor eax, eax
push ebp
push 0x403129
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40316c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403130
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x452020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x452020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e04
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x454048], 0
je 0x403e65
cmp word [0x45421c], 0xd7b2
jne 0x403e2d
cmp dword [0x454224], 0
jbe 0x403e2d
mov eax, 0x454218
call dword [0x454234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45206c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403e8c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x452030], 0
jne 0x403e81
push 0
push 0x452064
push 0x45206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret