joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010ae7f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1010adfb
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1010afee
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1010afee
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1010afa3
jg 0x1010aedb
test eax, eax
je 0x1010af99
push 1
push 0x1000
call fcn.100fd571
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1010aefe
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1010af90
push 0x8000
push ebx
call fcn.1010ad2c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1010af27
jg 0x1010af22
cmp ecx, 0x1000
jb 0x1010af27
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.101026de
add esp, 0x10
cmp eax, 0xffffffff
je 0x1010af6c
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1010af22
jl 0x1010af53
test ecx, ecx
jne 0x1010af14
push dword [ebp - 0xc]
push ebx
call fcn.1010ad2c
push esi
call fcn.100f89bd
add esp, 0xc
xor ebx, ebx
jmp 0x1010affc
cmp byte [edi + 0x24], 0
je 0x1010af83
cmp dword [edi + 0x20], 5
jne 0x1010af83
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1010af8e
mov ebx, dword [edi + 0x18]
jmp 0x1010af90
xor ebx, ebx
push esi
call fcn.100f89bd
pop ecx
jmp 0x1010affc
test ecx, ecx
jg 0x1010af65
jl 0x1010afa3
test eax, eax
jae 0x1010af65
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10103388
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1010afc3
cmp byte [edi + 0x1c], 0
je 0x1010af65
jmp 0x1010aff4
push ebx
call fcn.10105fde
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1010af65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1010affc
cmp byte [edi + 0x1c], 0
je 0x1010aff9
mov ebx, dword [edi + 0x18]
jmp 0x1010affc
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10103388
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1010d6e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1010d70d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1010d70d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x44a010
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [sym.imp.USER32.dll_GetKeyboardType]
push 1
mov edi, eax
call ebx
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [esp + 0xc]
mov edi, eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
push 0x84feb0
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push 0
call ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test edi, edi
je 0x44a08f
mov edx, dword [0x64fd60]
push 0x64fa78
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.GlobalVegaPlagiatus
push 0
lea eax, [esp + 0x1c]
push 1
push eax
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
pop edi
pop esi
mov dword [0x64fd5c], eax
pop ebx
add esp, 0x14
ret

Function at 0x525304
Capabilities:
Encode data using xor

Disassembly:
les ebp, [esi + 0x47]
cld
jne 0x5252e8
test dword [eax - 0x46e72b19], eax

Function at 0x525360
Capabilities:
Encode data using xor

Disassembly:
cmpsb byte [esi], byte es:[edi]
mov al, byte [0x6feb50f7]
jmp 0x5253b9
add byte [ebx + edx*4 + 0xa], cl
and dword [esi - 0x203602bf], ecx
inc ecx
std
leave
fistp word [ebx]
mov edi, 0x15577d49
push edi
invalid
xchg ebx, eax
or ah, byte [ecx]
mov es, word [ecx - 3]
inc ecx
std
leave
fistp word [ebx]
mov edi, 0x15577d49
push edi
invalid
fldenv [ecx + 0x43]
xchg ebx, eax
ficomp dword [ecx]
jbe 0x525344
stosb byte es:[edi], al
in eax, dx
push ebx
xor byte [edi - 0x2f29a194], dl
add byte [esi], 0x9e
or eax, 0xce0fb286
into
jnp 0x52534c
mov edi, 0xffc0f774
xchg edi, eax
outsb dx, byte [esi]
in al, dx
sub dword [edi + 0x2e], eax
js 0x525372
adc eax, 0xf3af977a
push ecx
inc ecx
push ss
int 0x6b
jb 0x5253e8
pop ds
cmp eax, 0xae029fcc
ja 0x5253e6
int1
push esp
bound eax, qword [ecx + 0x51]
clc
mov eax, 0xb8404f0a
ljmp 0x8389
mov esp, ecx
adc eax, 0x35af26b0
test al, 0x82
xchg byte [eax], dh
in al, 0x52
js 0x5253e8
xor byte [0xd75aa4d7], dl
cmpsb byte [esi], byte es:[edi]
hlt
Function at 0x4015d0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x5c
mov dword [ebp - 0x2c], eax
cmp ecx, 0x3e7
jg 0x401628
test ecx, ecx
js 0x4016d0
mov eax, 0x51eb851f
imul ecx
mov eax, ecx
sar eax, 0x1f
sar edx, 5
mov edi, edx
sub edi, eax
imul eax, edi, 0x64
sub ecx, eax
mov esi, ecx
mov eax, 0x66666667
imul ecx
sar ecx, 0x1f
sar edx, 2
sub edx, ecx
mov ecx, esi
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
jmp 0x401637
mov edi, 0xa
mov edx, 0xa
mov ecx, 0xa
mov eax, dword [0x407038]
mov dword [ebp - 0x24], edi
lea edi, [ebp - 0x24]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._SelectObject_8
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
sub esp, 8
mov eax, esi
mov esi, edi
mov edi, eax
mov dword [esp + 0x20], 0xcc0020
imul eax, dword [esi], 0x17
add esi, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0x17
mov dword [esp + 0xc], 0xc
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], edi
add edi, 0xc
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._BitBlt_36
lea eax, [ebp - 0x18]
sub esp, 0x24
cmp eax, esi
jne 0x401663
mov eax, dword [ebp - 0x30]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._SelectObject_8
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
neg ecx
mov edi, 0xa
mov esi, ecx
jmp 0x401608
Function at 0x403a00
Capabilities:
Hide graphical window
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x70]
push ebx
push ecx
sub esp, 0xc8
mov ebx, dword [ecx]
mov edi, dword [ecx + 0xc]
call sym._InitCommonControls_0
mov dword [esp + 0xc], 0x14
mov dword [esp + 8], esi
mov dword [esp + 4], 0x44d
mov dword [esp], ebx
call sym._LoadStringW_16
mov dword [ebp - 0x48], 0x30
sub esp, 0x10
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], dbg.MainProc
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], ebx
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._LoadIconW_8
sub esp, 8
mov dword [ebp - 0x30], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call sym._LoadCursorW_8
sub esp, 8
mov dword [ebp - 0x2c], eax
mov dword [esp], 4
call sym._GetStockObject_4
mov dword [ebp - 0x24], 1
sub esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], esi
mov dword [esp], 0x32
call sym._GetSystemMetrics_4
sub esp, 4
mov dword [ebp - 0x9c], eax
mov dword [esp], 0x31
call sym._GetSystemMetrics_4
sub esp, 4
mov dword [esp + 0x14], 0x8000
mov edx, dword [ebp - 0x9c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._LoadImageW_24
mov dword [ebp - 0x1c], eax
sub esp, 0x18
lea eax, [ebp - 0x48]
mov dword [esp], eax
call sym._RegisterClassExW_4
sub esp, 4
test ax, ax
je 0x403c54
mov dword [esp + 8], esi
mov dword [esp + 4], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x80000000
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xca0000
mov dword [esp], 0
call sym._CreateWindowExW_48
sub esp, 0x30
mov esi, eax
test eax, eax
je 0x403c54
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
mov dword [esp], esi
call sym._UpdateWindow_4
sub esp, 4
mov dword [esp], ebx
lea ebx, [ebp - 0x8c]
mov dword [esp + 4], 0x4b1
call sym._LoadAcceleratorsW_8
sub esp, 8
mov edi, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3e8
mov dword [esp + 4], 0x3e8
mov dword [esp], esi
call sym._SetTimer_16
sub esp, 0x10
jmp 0x403bf3
mov dword [esp], ebx
call sym._DispatchMessageW_4
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._GetMessageW_16
sub esp, 0x10
test eax, eax
je 0x403c40
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._TranslateAcceleratorW_12
sub esp, 0xc
test eax, eax
jne 0x403be8
mov dword [esp], ebx
call sym._TranslateMessage_4
sub esp, 4
jmp 0x403be8
mov eax, dword [ebp - 0x84]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x403e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x403eeb
cmp byte [esi + ebx - 1], 0xa
je 0x403ebf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x407f24], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x404440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x407f34]
mov esi, dword [ebp + 8]
test edi, edi
je 0x404600
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x407f34]
movzx eax, al
bt eax, esi
jae 0x404660
mov ecx, dword [0x407f24]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x404506
test byte [0x40501c], 8
jne 0x4045a0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x40502c], 8
jne 0x404550
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4044d5
cmp esi, 3
jbe 0x404510
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x406284]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x4044d5
mov ecx, dword [0x407f34]
test ecx, ecx
je 0x404640
mov dword [esp], 0x40502c
call dword [0x407f34]
test al, 8
je 0x4044ac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x4044ac
mov ebx, dword [0x407f34]
test ebx, ebx
je 0x404620
mov dword [esp], 0x40501c
call dword [0x407f34]
test al, 8
je 0x404499
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x40449f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x407f34
call sym._load_func.part.0
jmp 0x404460
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x407f34
call sym._load_func.part.0
jmp 0x4045aa
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x407f34
call sym._load_func.part.0
jmp 0x40455e
mov eax, 0xffffffff
jmp 0x404506
Function at 0x404820
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x404890
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x4048f7
xor ecx, ecx
xor edx, edx
jmp 0x4048d9
cmp ax, 0x5c
jne 0x404968
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x4048f7
cmp ax, 9
je 0x4048e5
cmp ax, 0x20
jne 0x4048c0
test ecx, ecx
je 0x404953
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x4048d9
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x404988
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.wWinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x404950
cmp ax, 0x20
je 0x404950
jmp 0x4048f7
cmp ax, 0x22
jne 0x4048e9
and edx, 1
jne 0x4048e9
xor ecx, 1
jmp 0x4048cd
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x404910
Function at 0x4012b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42f6ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0xa
push 0x42a7fc
push 0
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4012f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c7c7
mov esp, ebp
pop ebp
ret 0x10
push ebx
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push str.loader64.gif
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xa
push 0x42a804
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401372
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c7c7
mov esp, ebp
pop ebp
ret 0x10
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push str.icon.ico
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x28]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x431b28
push 0x67
push ebx
call esi
push 0x64
push 0x431ac0
push 0x6d
push ebx
call esi
mov ecx, ebx
call fcn.00401470
mov edx, dword [ebp + 0x14]
mov ecx, ebx
call fcn.00401500
test eax, eax
je 0x401455
push 0x6d
push ebx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
je 0x401455
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x401445
lea eax, [ebp - 0x24]
push eax
call edi
lea eax, [ebp - 0x24]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
jne 0x401425
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040c7c7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402770
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x42f6ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x402807
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402807
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea esp, [esp]
mov eax, str.Installer.exe
lea ecx, [ebp - 0x10c]
jmp 0x4027d0
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4027f0
test dl, dl
je 0x4027ec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4027f0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4027d0
xor eax, eax
jmp 0x4027f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x40281a
lea eax, [ebp - 0x130]
push eax
push esi
call edi
test eax, eax
jne 0x4027c0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c7c7
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
mov edi, eax
test edi, edi
je 0x402885
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
lea eax, [ebp - 8]
push eax
push edi
call esi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x128]
je 0x402864
push 2
push edi
call ebx
mov edi, eax
test edi, edi
jne 0x402834
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c7c7
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edi
call esi
push 6
push edi
call esi
push 9
push edi
call esi
push 1
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040c7c7
mov esp, ebp
pop ebp
ret
Function at 0x405770
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40577b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x405845
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42aba8]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42aba8]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42aba8]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42aba8]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42aba8]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42aba8]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42aba8]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42aba8]
add edx, 8
sub esi, 8
dec edi
jne 0x405790
pop edi
test esi, esi
je 0x40586a
lea esp, [esp]
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42aba8]
lea edx, [edx + 1]
dec esi
jne 0x405850
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x405880
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
and eax, 0xff
shr esi, 8
mov eax, dword [eax*4 + 0x42aba8]
xor eax, esi
movzx ecx, al
add ecx, dword [edi + 4]
mov dword [edi], eax
mov eax, dword [edi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x42aba8]
mov dword [edi + 8], eax
pop edi
pop esi
ret

Function at 0x4058d0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov bl, dl
mov edx, ecx
mov edi, dword [edx + 8]
mov ecx, dword [edx]
mov esi, edi
and esi, 0xfffd
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor bl, al
movsx eax, bl
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x42aba8]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, edi
and eax, 0xff
shr edi, 8
xor edi, dword [eax*4 + 0x42aba8]
mov al, bl
mov dword [edx + 8], edi
pop edi
pop esi
pop ebx
ret