joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c76
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 1
jne 0x402c98
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_send]
jmp 0x402cd7
push 2
pop eax
mov word [ebp - 0x10], ax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
movzx eax, word [esi + 8]
push eax
call dword [sym.imp.WSOCK32.DLL_htons]
mov word [ebp - 0xe], ax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x402cbf
mov eax, dword [eax]
jmp 0x402cc2
mov eax, dword [esi + 0x10]
push 0x10
lea ecx, [ebp - 0x10]
push ecx
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WSOCK32.DLL_sendto]
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4040ea
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x404164
push 9
call esi
test al, al
jns 0x404164
push 0x11
call esi
test al, al
js 0x404164
push 0x10
call esi
test al, al
js 0x404164
push 0x12
call esi
test al, al
js 0x404164
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push str.Rich
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x404164
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x404164
xor eax, eax
jmp 0x4041e5
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40418c
push 0x11
call esi
test al, al
js 0x404184
push 0x10
call esi
test al, al
js 0x404184
push 0x12
call esi
test al, al
jns 0x40418c
push 1
push edi
call fcn.004041ed
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x4041a2
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x4041e2
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x4041e2
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x4041e2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x4041e2
lea eax, [esi - 1]
push eax
push dword [0x40e834]
call fcn.00409dfe
test eax, eax
je 0x4041e2
mov eax, dword [eax + 8]
jmp 0x4041e4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404b40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x40e1ec], eax
test eax, eax
je 0x404b6e
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40e1e8], eax
lea eax, [ebp - 0x114]
mov dword [0x40e1f0], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x404bd0
cmp dword [ebp - 0x104], 1
jne 0x404ba5
and dword [0x40e1f0], 0
jmp 0x404be8
cmp dword [ebp - 0x104], 2
jne 0x404bd0
cmp dword [ebp - 0x110], 5
jb 0x404b9c
jne 0x404bd0
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x40e1f0]
mov dword [0x40e1f0], eax
jmp 0x404bd5
mov eax, dword [0x40e1f0]
test eax, eax
je 0x404be8
call fcn.004049ab
neg eax
sbb eax, eax
and dword [0x40e1f0], eax
mov esp, ebp
pop ebp
ret

Function at 0x4060d0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x406102
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4060fd
cmp dword [esp + 0xc], esi
je 0x406119
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret

Function at 0x4093a5
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x414004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x401061
push 0
push 0
push 0
push 0
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call fcn.004041e7
add esp, 0x24
push esi
test eax, eax
je 0x401078
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401136
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004043bc
add esp, 0x18
mov dword [ebp - 0x454], 0x3c
lea eax, [ebp - 0x414]
mov dword [ebp - 0x450], 0x100
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x454]
mov dword [ebp - 0x44c], 0
push eax
mov dword [ebp - 0x448], str.open
mov dword [ebp - 0x444], str.MenuTools.exe
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x401122
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401136
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00401136
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40196c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4019ab
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019ab
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019ab
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019ab
cmp dword [ecx + 0x74], 0xe
jbe 0x4019ab
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4066db
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x414004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x406726
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040687a
test al, al
jne 0x406720
sub edx, 2
cmp edx, edi
jne 0x406706
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406748
lea eax, [edi + 2]
cmp edx, eax
je 0x406748
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406627
add esp, 0x10
jmp 0x406842
push esi
lea ecx, [ebp - 0x255]
call fcn.0040687a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40678b
push dword [ebp - 0x25c]
jmp 0x406738
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4067c8
cmp word [ebp - 0x226], 0
je 0x4067e9
cmp word [ebp - 0x226], ax
jne 0x4067c8
cmp word [ebp - 0x224], 0
je 0x4067e9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406627
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406835
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4067a2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40681d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406842
push 0x406457
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00409390
add esp, 0x10
jmp 0x406812
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401136
leave
ret

Function at 0x408261
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ff64
push 0x40ff5c
push str.FlsAlloc
push 0x1e
call fcn.0040819e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408295
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e114]
call esi
jmp 0x40829b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4082df
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ff74
push 0x40ff6c
push str.FlsGetValue
push 0x20
call fcn.0040819e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408316
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e114]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40d080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d0ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d0ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x466f50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x48000]
push edi
or ebp, 0xffffffff
jmp 0x466f72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x466f79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466f68
mov eax, 1
add ebx, ebx
jne 0x466f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x466f9c
jne 0x466fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466fbb
dec eax
add ebx, ebx
jne 0x466fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x466f80
add ebx, ebx
jne 0x466fb7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46700d
xor ecx, ecx
sub eax, 3
jb 0x466fd3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x467042
sar eax, 1
mov ebp, eax
jmp 0x466fde
add ebx, ebx
jne 0x466fde
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466fac
inc ecx
add ebx, ebx
jne 0x466fec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466fac
add ebx, ebx
jne 0x466ff9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x466fee
jne 0x46700a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x466fee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46702c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46701e
jmp 0x466f6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46702c
add edi, ecx
jmp 0x466f6e
pop esi
mov edi, esi
mov ecx, 0x11a8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46704a
cmp byte [edi], 7
jne 0x46704a
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 0x46704f
lea edi, [esi + 0x60000]
mov eax, dword [edi]
or eax, eax
je 0x4670c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6c3d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6c5d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46707c
mov ecx, edi
jns 0x4670ab
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 + 0x6c5d8]
or eax, eax
je 0x4670c1
mov dword [ebx], eax
add ebx, 4
jmp 0x467099
call dword [esi + 0x6c5d4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4670f8
cmp al, 0xef
ja 0x4670eb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4670cd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4670da
mov ebp, dword [esi + 0x6c5dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x46712c
sub esp, 0xffffff80
jmp 0x437248
Function at 0x401d30
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
mov edx, dword [esp + 8]
mov eax, dword [edx]
push ebx
push ebp
push esi
mov esi, dword [edx + 4]
mov edx, eax
shr edx, 4
xor edx, esi
and edx, 0xf0f0f0f
xor esi, edx
shl edx, 4
xor eax, edx
mov edx, eax
shr edx, 0x10
xor edx, esi
and edx, 0xffff
xor esi, edx
shl edx, 0x10
xor eax, edx
mov edx, esi
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
add edx, edx
add edx, edx
xor esi, edx
mov edx, esi
shr edx, 8
xor edx, eax
and edx, 0xff00ff
xor eax, edx
shl edx, 8
xor edx, esi
rol edx, 1
mov esi, edx
xor edx, eax
and edx, 0xaaaaaaaa
xor esi, edx
xor edx, eax
rol edx, 1
push edi
mov ecx, 0x4a7738
mov edi, edx
mov dword [esp + 0x10], 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x48bce8]
or edx, dword [ebx*4 + 0x48bee8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edx, dword [ebx*4 + 0x48c0e8]
and eax, 0x3f
or edx, dword [eax*4 + 0x48c2e8]
mov eax, dword [ecx]
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x48bde8]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x48bfe8]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x48c1e8]
and eax, 0x3f
or ebx, dword [eax*4 + 0x48c3e8]
add ecx, 4
or ebx, edx
xor edi, ebx
mov eax, edi
ror eax, 4
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x48bce8]
or edx, dword [ebx*4 + 0x48bee8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edx, dword [ebx*4 + 0x48c0e8]
and eax, 0x3f
or edx, dword [eax*4 + 0x48c2e8]
mov eax, dword [ecx]
xor eax, edi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x48bde8]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x48bfe8]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x48c1e8]
and eax, 0x3f
or ebx, dword [eax*4 + 0x48c3e8]
add ecx, 4
or ebx, edx
xor esi, ebx
sub dword [esp + 0x10], 1
jne 0x401db0
ror esi, 1
mov eax, esi
xor eax, edi
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, edi
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
add ecx, ecx
add ecx, ecx
xor eax, ecx
mov edx, dword [esp + 0x18]
mov ecx, esi
shr ecx, 0x10
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
pop esi
xor ecx, eax
pop ebp
mov dword [edx + 4], ecx
pop ebx
pop ecx
ret
Function at 0x4026e0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x258
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x254], eax
mov eax, dword [esp + 0x25c]
push ebx
push ebp
push esi
push edi
push 0x104
lea ecx, [esp + 0x15c]
push ecx
xor ebp, ebp
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4027ec
lea edx, [esp + 0x158]
push 0x5c
push edx
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x4027ec
mov byte [eax], 0
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402748
sub eax, edx
cmp byte [esp + eax + 0x157], 0x5c
je 0x402774
lea edi, [esp + 0x158]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402763
mov ax, word [0x47630c]
mov word [edi], ax
lea eax, [esp + 0x158]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402780
mov ecx, dword [str..dsm]
mov dx, word [0x476314]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4027ec
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x44]
push edx
push 0
push 0x143
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
push esi
inc ebp
call ebx
test eax, eax
jne 0x4027c1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
jmp 0x4027ee
xor eax, eax
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045dc1f
add esp, 0x258
ret 4
Function at 0x402810
Capabilities:
Delete file
Link many functions at runtime

Disassembly:
sub esp, 0x210
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
lea edi, [ebx + 0x1c8]
mov eax, edi
mov dword [esp + 0xc], edi
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402840
sub eax, esi
push eax
push 0
push edi
call fcn.00463710
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x1c4], eax
test eax, eax
jne 0x40290b
push 0x104
lea eax, [esp + 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402898
lea ecx, [esp + 0x114]
push 0x5c
push ecx
call fcn.0045dc30
add esp, 8
mov byte [eax], 0
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x114]
mov byte [esp + eax + 0x10], cl
inc eax
test cl, cl
jne 0x4028a0
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4028b5
mov dx, word [0x47630c]
mov eax, ebp
mov word [edi], dx
mov esi, eax
jmp 0x4028d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4028d0
lea edi, [esp + 0x10]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4028e0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [esp + 0xc]
mov dword [ebx + 0x1c4], eax
mov eax, dword [ebx + 0x1c4]
test eax, eax
je 0x402a2d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Description
push eax
call esi
mov ecx, dword [ebx + 0x1c4]
push str.Startup
push ecx
mov dword [ebx + 0x2cc], eax
call esi
mov edx, dword [ebx + 0x1c4]
push str.Shutdown
push edx
mov dword [ebx + 0x2d4], eax
call esi
mov dword [ebx + 0x2d0], eax
mov eax, dword [ebx + 0x1c4]
push str.SetParams
push eax
call esi
mov ecx, dword [ebx + 0x1c4]
push str.GetParams
push ecx
mov dword [ebx + 0x2d8], eax
call esi
mov edx, dword [ebx + 0x1c4]
push str.TransformBuffer
push edx
mov dword [ebx + 0x2dc], eax
call esi
mov dword [ebx + 0x2e0], eax
mov eax, dword [ebx + 0x1c4]
push str.RestoreBuffer
push eax
call esi
mov ecx, dword [ebx + 0x1c4]
push str.FreeBuffer
push ecx
mov dword [ebx + 0x2e4], eax
call esi
mov edx, dword [ebx + 0x1c4]
push str.Reset
push edx
mov dword [ebx + 0x2e8], eax
call esi
cmp dword [ebx + 0x2d4], 0
mov dword [ebx + 0x2ec], eax
je 0x402a14
cmp dword [ebx + 0x2d0], 0
je 0x402a14
cmp dword [ebx + 0x2d8], 0
je 0x402a14
cmp dword [ebx + 0x2dc], 0
je 0x402a14
cmp dword [ebx + 0x2e0], 0
je 0x402a14
cmp dword [ebx + 0x2e4], 0
je 0x402a14
cmp dword [ebx + 0x2e8], 0
je 0x402a14
mov byte [ebx + 0x20], 1
mov al, 1
jmp 0x402a2f
mov eax, dword [ebx + 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [edi], 0
je 0x402a2d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0045dc1f
add esp, 0x210
ret 4
Function at 0x402a50
Capabilities:
Delete file

Disassembly:
mov eax, dword [esi + 0x2f0]
test eax, eax
je 0x402a66
push eax
mov eax, dword [esi + 0x2e8]
call eax
add esp, 4
mov eax, dword [esi + 0x2f4]
test eax, eax
je 0x402a7c
mov ecx, dword [esi + 0x2e8]
push eax
call ecx
add esp, 4
mov edx, dword [esi + 0x2d0]
mov dword [esi + 0x2f0], 0
mov dword [esi + 0x2f4], 0
mov byte [esi + 0x20], 0
call edx
test eax, eax
je 0x402ac9
mov eax, dword [esi + 0x1c4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
lea eax, [esi + 0x1c8]
setne bl
cmp byte [eax], 0
je 0x402ac5
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, bl
pop ebx
ret
xor al, al
ret

Function at 0x402c10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x14c]
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
nop
mov cl, byte [eax + str._settings]
mov byte [esp + eax + 0x44], cl
inc eax
test cl, cl
jne 0x402c40
lea edi, [esp + 0x44]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402c54
mov cx, word [0x47afcc]
mov eax, esi
mov word [edi], cx
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402c70
lea edi, [esp + 0x44]
sub eax, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402c80
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]
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x10], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x148]
lea eax, [esp + 0x44]
push ecx
mov dword [esp + 0x18], str.runas
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
xor ecx, esp
call fcn.0045dc1f
add esp, 0x248
ret