joyce8/EMBER2024-capa huggingface dataset:
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 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x40de38
mov ecx, 0x6ca51f03
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x3aa60c8b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x406009
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4060e9
push esi
call sub.libav.dll_Ordinal_44297
pop ecx
test eax, eax
jne 0x4060eb
cmp dword [esi + 0x18], 1
je 0x40603f
push esi
call sub.libav.dll_Ordinal_44298
pop ecx
test eax, eax
je 0x4060e9
jmp 0x4060eb
cmp dword [esi + 0x24], 0
mov dword [esi + 0x18], 2
jle 0x406063
lea eax, [esi + 4]
push eax
call sub.libav.dll_Ordinal_44306
pop ecx
test eax, eax
je 0x406063
push esi
call sub.libav.dll_Ordinal_44298
pop ecx
pop esi
ret
cmp dword [esi + 0x24], 0
push edi
jle 0x40607f
lea edi, [esi + 4]
push esi
push edi
call sub.libav.dll_Ordinal_44311
pop ecx
pop ecx
test eax, eax
jne 0x406093
cmp dword [esi + 0x24], eax
jg 0x40606d
push esi
call fcn.00406797
push esi
call sub.libav.dll_Ordinal_44298
pop ecx
pop ecx
test eax, eax
je 0x40609c
jmp 0x4060f2
push esi
call sub.libav.dll_Ordinal_44298
pop ecx
jmp 0x4060e8
push esi
call sub.libav.dll_Ordinal_44299
lea eax, [esi + 0xc]
push eax
call sub.libav.dll_Ordinal_44308
lea eax, [esi + 0x10]
push eax
call sub.libav.dll_Ordinal_44308
lea eax, [esi + 0x14]
push eax
call sub.libav.dll_Ordinal_44308
lea eax, [esi + 4]
push eax
call sub.libav.dll_Ordinal_44308
lea eax, [esi + 8]
push eax
call sub.libav.dll_Ordinal_44314
push dword [esi + 0x40]
call fcn.004090de
push dword [esi + 0x3c]
call fcn.004090de
push esi
call fcn.004090de
add esp, 0x24
pop edi
pop esi
ret
push 0xffffffffffffffff
call fcn.004090ca
push 0xffffffffffffffff
call fcn.004090ca
int3

Function at 0x406cd1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x432480]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0xf], 0x2e32336c
mov word [ebp - 0x11], 0x656e
mov word [ebp - 0x14], 0x654b
mov dword [ebp - 0xb], 0x6c6c64
mov byte [ebp - 0x12], 0x72
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409448
leave
ret

Function at 0x406d15
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x432480]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0xf], 0x6568
mov byte [ebp - 0x10], 0x53
mov word [ebp - 0xc], 0x336c
mov dword [ebp - 9], 0x6c6c642e
mov byte [ebp - 0xa], 0x32
mov byte [ebp - 0xd], 0x6c
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409448
leave
ret

Function at 0x406d5e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x432480]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], 0x32336970
mov dword [ebp - 0xc], 0x6c6c642e
mov dword [ebp - 0x14], 0x61766441
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409448
leave
ret
Function at 0x406d9d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x432480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
mov dword [ebp - 0xb], 0x68436564
mov word [ebp - 0xd], 0x6957
mov dword [ebp - 0x12], 0x54657479
mov dword [ebp - 0x18], 0x746c754d
mov word [ebp - 0x14], 0x4269
mov byte [ebp - 0xe], 0x6f
mov word [ebp - 6], 0x72
mov byte [ebp - 7], 0x61
call fcn.00406cd1
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406e0d
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov ebx, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00409448
leave
ret

Function at 0x406e1e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1c
mov eax, dword [0x432480]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], eax
xor ebx, ebx
call fcn.00406d15
mov esi, eax
test esi, esi
je 0x406ea1
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x1f], 0x6f467465
mov dword [esp + 0x29], 0x416874
mov dword [esp + 0x25], 0x61507265
mov word [esp + 0x23], 0x646c
mov word [esp + 0x1c], 0x4853
mov byte [esp + 0x1e], 0x47
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406e9a
push dword [esp + 0x10]
push dword [esp + 0x40]
push ebp
push dword [esp + 0x40]
push edi
call eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00409448
add esp, 0x1c
ret

Function at 0x407285
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x432480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
mov dword [ebp - 0xd], 0x614e656c
mov dword [ebp - 0x11], 0x6946656c
mov dword [ebp - 0x16], 0x646f4d74
mov byte [ebp - 0x12], 0x75
mov dword [ebp - 9], 0x41656d
mov word [ebp - 0x18], 0x6547
call fcn.00406cd1
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4072e3
push dword [ebp + 0x10]
push edi
push esi
call eax
mov ebx, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00409448
leave
ret
Function at 0x4072f4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1c
mov eax, dword [0x432480]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov dword [esp + 0x25], 0x79426974
mov dword [esp + 0x19], 0x43656469
mov word [esp + 0x20], 0x6f54
mov word [esp + 0x1d], 0x6168
mov byte [esp + 0x1f], 0x72
mov word [esp + 0x22], 0x754d
mov byte [esp + 0x18], 0x57
mov word [esp + 0x29], 0x6574
mov byte [esp + 0x2b], bl
mov byte [esp + 0x24], 0x6c
call fcn.00406cd1
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40738b
push dword [esp + 0x10]
push ebp
push dword [esp + 0x4c]
push edi
push dword [esp + 0x4c]
push esi
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call eax
mov ebx, eax
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00409448
add esp, 0x1c
ret

Function at 0x4073a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x432480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x24]
push eax
or esi, 0xffffffff
mov word [ebp - 0x1b], 0x7669
mov dword [ebp - 0x12], 0x73655365
mov dword [ebp - 0x18], 0x736e6f43
mov word [ebp - 9], 0x64
mov dword [ebp - 0x23], 0x65475354
mov word [ebp - 0x14], 0x6c6f
mov dword [ebp - 0x1f], 0x74634174
mov dword [ebp - 0xe], 0x6e6f6973
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x24], 0x57
mov byte [ebp - 0xa], 0x49
call fcn.00406cd1
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40740d
call eax
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00409448
leave
ret
Function at 0x41880a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x432480]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00410803
mov dword [ebp - 0x14], eax
cmp dword [0x434804], edi
jne 0x4188fb
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x418888
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4189db
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4189db
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4189db
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x434804], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x434808], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x43480c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x434814], eax
test eax, eax
je 0x4188f8
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x434810], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x418920
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x418913
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x418935
push 4
pop eax
jmp 0x4189dd
cmp dword [ebp - 0x14], edi
je 0x418935
push dword [0x434804]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41891a
mov eax, dword [0x434810]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x418993
cmp dword [0x434814], esi
je 0x418993
push eax
call ebx
push dword [0x434814]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x418993
test eax, eax
je 0x418993
call ecx
test eax, eax
je 0x418988
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 0x418988
test byte [ebp - 8], 1
jne 0x418993
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4189c3
mov eax, dword [0x434808]
cmp eax, esi
je 0x4189c0
push eax
call ebx
test eax, eax
je 0x4189c0
call eax
mov edi, eax
test edi, edi
je 0x4189c0
mov eax, dword [0x43480c]
cmp eax, esi
je 0x4189c0
push eax
call ebx
test eax, eax
je 0x4189c0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x434804]
call ebx
test eax, eax
je 0x4189db
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4189dd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409448
leave
ret
Function at 0x4256f9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041280f
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x425731
xor eax, eax
jmp 0x42575d
cmp esi, dword [ebp - 4]
je 0x42575a
cmp dword [ebp + 0xc], 0
je 0x42575a
push dword [edi + 0x9c]
call fcn.00425307
push dword [edi + 0x9c]
mov esi, eax
call fcn.00418733
pop ecx
pop ecx
cmp esi, eax
je 0x42572d
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x33413841
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x37357b9a
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4018be
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x70]
push edi
push eax
mov ebx, ecx
call fcn.00436f70
push 0x10
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00436f70
mov dword [ebp - 0x70], esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
inc eax
push eax
call fcn.0045356b
add esp, 0x1c
cmp dword [esi + 0x18], 0x10
mov dword [ebp + 8], eax
jb 0x401906
mov esi, dword [esi + 4]
jmp 0x401909
add esi, 4
push esi
push eax
call fcn.00436fd0
pop ecx
pop ecx
mov edx, ebx
lea ecx, [ebp - 0x2c]
call fcn.004015d2
cmp dword [eax + 0x18], 0x10
jb 0x401927
mov eax, dword [eax + 4]
jmp 0x40192a
add eax, 4
cmp dword [ebx + 0x18], 0x10
jb 0x401935
mov ebx, dword [ebx + 4]
jmp 0x401938
add ebx, 4
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push eax
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push edi
test eax, eax
push 1
lea ecx, [ebp - 0x2c]
setne bl
call fcn.0040117c
push dword [ebp + 8]
call fcn.00453566
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x401f3b
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x401f55
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x401f7e
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x401f89
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x40254e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x48ed30]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.00401f06
cmp eax, esi
jne 0x4025d6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40259f
lea eax, [ebp - 0x70]
push eax
call fcn.0040254e
cmp eax, esi
jne 0x4025d5
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x402592
call fcn.00401ea1
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00401ea1
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.004366f8
add ebp, 0x94
leave
ret 4
Function at 0x409962
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409977
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x409989
xor eax, eax
jmp 0x4099bb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4099ad
cmp esi, eax
jae 0x409985
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40999f
cmp esi, eax
jae 0x409985
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x40bc14
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x40bc7c
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
jmp 0x40bc42
cmp dword [esi + 8], 0
je 0x40bc7a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, dword [esp + 0x10]
jb 0x40bc34
lea edi, [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
test eax, eax
je 0x40bc73
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
ret 4

Function at 0x40bccf
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bd33
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x40bd2c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x40bd2c
lea eax, [ebp - 8]
push eax
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
and eax, 0x27
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
leave
ret

Function at 0x40be0f
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 8], eax
jne 0x40be30
lea ecx, [esp + 4]
push ecx
push eax
push esi
push 0x40bc80
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop esi
pop ecx
ret
Function at 0x40c03d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
add eax, 2
push edi
push eax
call fcn.0045356b
cmp dword [esi + 0x18], 0x10
pop ecx
mov edi, eax
jb 0x40c063
mov eax, dword [esi + 4]
jmp 0x40c066
lea eax, [esi + 4]
push eax
push edi
call fcn.00436fd0
mov eax, dword [esi + 0x14]
push 0x1e
mov byte [edi + eax + 1], 0
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.00436f70
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], edi
mov word [ebp - 0x10], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ebx, eax
neg ebx
sbb bl, bl
push edi
inc bl
call fcn.00453566
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x40ee0d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx + 0x14]
call fcn.00407bf4
mov esi, 0x4721fc
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
cmp dword [ebx + 0x14], edi
jbe 0x40ee5e
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
push edi
mov ecx, ebx
add esi, edi
call fcn.00401149
mov ecx, edi
and ecx, 0xf
mov cl, byte [ebp + ecx - 0x14]
xor cl, byte [eax]
inc edi
mov byte [esi], cl
cmp edi, dword [ebx + 0x14]
jb 0x40ee3b
pop edi
pop esi
pop ebx
leave
ret