joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043e4
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x42e348]
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ecx]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42e34c]
push esi
push edi
mov edi, dword [ecx + 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], 0x9e3779b9
call fcn.004043dd
mov eax, dword [0x42e350]
add dword [ebp - 4], 0x23f
mov dword [ebp - 0x18], eax
mov eax, dword [0x42e354]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [0x282879c]
cmp eax, 0xfa9
jne 0x404465
mov dword [0x2828798], 0xedeb2e40
cmp eax, 0x3eb
jne 0x404473
and dword [0x2828224], 0
mov edx, dword [ebp - 4]
add edx, ebx
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x1c]
mov dword [0x2828794], 0xf4ea3dee
xor eax, edx
xor eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
sub edi, eax
mov eax, edi
shr eax, 5
add edx, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], eax
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x28]
xor esi, edx
cmp dword [0x282879c], 0xb03
jne 0x4044d8
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
xor eax, esi
sub ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 4], eax
dec dword [ebp - 0x14]
jne 0x404439
mov dword [ecx + 4], edi
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
leave
ret 4

Function at 0x4044fd
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x282879c]
mov ecx, dword [0x2828228]
sub esp, 0xc00
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x4045cf
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x282879c], 0x959
jne 0x4045bd
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x403ef0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0x403f3c
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0x403f68
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
push 0x403fa0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
call fcn.004043e4
add edi, 8
dec ebx
jne 0x404525
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4048ce
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1004
call fcn.00410580
push ebx
push esi
xor esi, esi
cmp dword [0x282879c], 0x400
push edi
jne 0x4049ce
push esi
call dword [sym.imp.USER32.dll_GetDC]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push esi
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
lea eax, [esp + 0x814]
push eax
push 0x4041b0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0x4041d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateA]
push esi
push esi
call fcn.0040565a
push esi
push esi
call fcn.00404f69
push esi
call fcn.004055f5
add esp, 0x14
push esi
call fcn.004058f4
fldz
sub esp, 0xc
fst qword [esp + 8]
fstp qword [esp]
call fcn.00404aa0
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404c20
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004050b0
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404d50
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00405340
fstp st(0)
push esi
call fcn.00405968
add esp, 0xc
push esi
push esi
call fcn.00404e6d
push esi
call fcn.00405707
add esp, 0xc
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidthI]
xor edi, edi
cmp edi, 0xacd
jge 0x4049fb
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
push esi
push esi
push esi
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x45be410
jg 0x404a1d
inc edi
cmp edi, 0x33309e9
jl 0x4049d6
xor edi, edi
cmp edi, 0x16d2a
jge 0x404a2e
push esi
push esi
push esi
push esi
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x12e82fe
jg 0x404a4c
inc edi
cmp edi, 0x3011b
jl 0x404a1f
mov eax, dword [0x430c8c]
mov dword [0x282879c], eax
call fcn.004045d2
mov edi, 0x2ec37
cmp dword [0x282879c], 0x51f
jne 0x404a78
push esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x404a60
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40a68e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d480]
jne 0x40a698
repz ret
jmp fcn.0040f840
Function at 0x40f46a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a038
and dword [ebp - 0x14], 0
cmp dword [0x44545c], 0
mov dword [ebp - 0x18], eax
jne 0x40f51d
push 0x403690
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40f5c5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403684
push ebx
call edi
test eax, eax
je 0x40f5c5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403674
push ebx
mov dword [0x44545c], eax
call edi
push eax
call esi
push 0x403660
push ebx
mov dword [0x445460], eax
call edi
push eax
call esi
push 0x403644
push ebx
mov dword [0x445464], eax
call edi
push eax
call esi
mov dword [0x44546c], eax
test eax, eax
je 0x40f51d
push 0x40362c
push ebx
call edi
push eax
call esi
mov dword [0x445468], eax
mov eax, dword [0x445468]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40f576
cmp dword [0x44546c], ecx
je 0x40f576
push eax
call esi
push dword [0x44546c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40f576
test ebx, ebx
je 0x40f576
call edi
test eax, eax
je 0x40f56d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40f56d
test byte [ebp - 8], 1
jne 0x40f576
or dword [ebp + 0x10], 0x200000
jmp 0x40f5a9
mov eax, dword [0x445460]
cmp eax, dword [ebp - 0x18]
je 0x40f5a9
push eax
call esi
test eax, eax
je 0x40f5a9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f5a9
mov eax, dword [0x445464]
cmp eax, dword [ebp - 0x18]
je 0x40f5a9
push eax
call esi
test eax, eax
je 0x40f5a9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44545c]
call esi
test eax, eax
je 0x40f5c5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40f5c7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a68e
leave
ret
Function at 0x909058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009091a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x90907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x90906a
add dl, dl
jne 0x909089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9090dc
xor eax, eax
add dl, dl
jne 0x909096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x90917d
add dl, dl
jne 0x9090a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9090b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9090bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9090c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9090d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x909075
mov eax, 1
add dl, dl
jne 0x9090ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9090f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9090e1
sub eax, ebx
mov ebx, 1
jne 0x909128
mov ecx, 1
add dl, dl
jne 0x90910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x909119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x909105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x909075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x90913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x90914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x909136
cmp eax, 0x7d00
jae 0x90916d
cmp eax, 0x500
jb 0x909168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x909075
cmp eax, 0x7f
ja 0x909170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x909075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x90919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x909075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x154e780
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x154e964
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd45000]
push edi
or ebp, 0xffffffff
jmp 0x154e7aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x154e7b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x154e7a0
mov eax, 1
add ebx, ebx
jne 0x154e7c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x154e7d4
jne 0x154e7f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x154e7f3
dec eax
add ebx, ebx
jne 0x154e7e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x154e7b8
add ebx, ebx
jne 0x154e7ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x154e845
xor ecx, ecx
sub eax, 3
jb 0x154e80b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x154e87a
sar eax, 1
mov ebp, eax
jmp 0x154e816
add ebx, ebx
jne 0x154e816
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x154e7e4
inc ecx
add ebx, ebx
jne 0x154e824
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x154e7e4
add ebx, ebx
jne 0x154e831
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x154e826
jne 0x154e842
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x154e826
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x154e864
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x154e856
jmp 0x154e7a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x154e864
add edi, ecx
jmp 0x154e7a6
pop esi
mov edi, esi
mov ecx, 0x12c08
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x154e882
cmp byte [edi], 0x32
jne 0x154e882
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 0x154e887
lea edi, [esi + 0x1126000]
mov eax, dword [edi]
or eax, eax
je 0x154e8f6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x114f1a8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x114f2c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x154e8b4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x114f2c4]
or eax, eax
je 0x154e8f0
mov dword [ebx], eax
add ebx, 4
jmp 0x154e8d1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x154e927
cmp al, 0xef
ja 0x154e91a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x154e8fc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x154e909
mov ebp, dword [esi + 0x114f2c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x154e95b
sub esp, 0xffffff80
jmp 0x73fba0
Function at 0x404244
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x238
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x234], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
cmp dword [eax + 4], 0x193
jne 0x4042ee
cmp dword [eax + 8], 0xfffffffc
je 0x40427c
cmp dword [eax + 8], 0xfffffffe
jne 0x4042ea
mov edi, dword [esi + 0x24]
test edi, edi
je 0x4042ea
xor eax, eax
push 0x206
push eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x3a]
push eax
call sub.msvcrt.dll_memset
push 0xffffffffffffffff
lea eax, [edi + 0x600]
push eax
lea eax, [esp + 0x44]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x1c
lea ecx, [esp + 8]
push 0x258
call fcn.004035c7
push dword [esi + 4]
lea eax, [esp + 0x34]
mov edi, 0x4020d0
mov dword [esp + 0xc], edi
mov dword [esp + 0x30], eax
call fcn.00403620
lea ecx, [esp + 8]
mov dword [esp + 8], edi
call fcn.004035f9
xor eax, eax
jmp 0x404327
cmp dword [eax + 4], 0x194
jne 0x404324
cmp dword [eax + 8], 0xfffffffc
je 0x404303
cmp dword [eax + 8], 0xfffffffe
jne 0x4042ea
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4042ea
push 1
xor ecx, ecx
add eax, 0x808
push ecx
push ecx
push eax
push 0x402278
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4042ea
xor eax, eax
inc eax
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
xor ecx, esp
call fcn.0040e960
mov esp, ebp
pop ebp
ret 8
Function at 0x404e84
Capabilities:
Create process on windows
Log keystrokes via polling

Disassembly:
push 0xc
mov eax, 0x40f377
call fcn.0040ebb8
mov edi, ecx
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 4], 0x6a
jne 0x404fb2
mov eax, dword [ebx + 8]
cmp eax, 0xffffff4b
je 0x404f86
cmp eax, 0xffffff4f
je 0x404f19
cmp eax, 0xffffff65
je 0x404ee9
cmp eax, 0xffffff9b
je 0x404ed5
cmp eax, 0xfffffffd
jne 0x404eca
call fcn.00405174
xor eax, eax
inc eax
call fcn.0040eb8b
ret 8
xor esi, esi
push esi
push esi
push 0x400
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x404eca
movzx eax, word [ebx + 0xc]
cmp eax, 0x2e
jne 0x404ef9
call fcn.0040529f
jmp 0x404eca
cmp eax, 0x41
jne 0x404eca
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x404eca
mov ecx, edi
call fcn.00405432
jmp 0x404eca
xor eax, eax
mov dword [ebp - 0x18], 0x402108
xor esi, esi
mov word [0x411528], ax
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], esi
push eax
push dword [ebx + 0x2c]
lea ecx, [edi + 0x34]
call fcn.0040a99b
test eax, eax
jne 0x404f6e
imul ecx, dword [ebx + 0x14], 0x34
mov eax, dword [edi + 0xbc]
add ecx, 0x18
add eax, ecx
cmp dword [eax + 0x14], 8
jb 0x404f5a
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
push esi
push 0x400
push 0x411528
push eax
call fcn.00409ee6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
mov dword [ebx + 0x20], 0x411528
call fcn.00404777
jmp 0x404eca
push 0x6a
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x404eca
xor esi, esi
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x404eca
cmp dword [ebx + 4], 0x78
jne 0x404eca
cmp dword [ebx + 8], 0xfffffffc
je 0x404fc8
cmp dword [ebx + 8], 0xfffffffe
jne 0x404fe1
push 1
xor esi, esi
lea eax, [edi + 0x140]
push esi
push esi
push eax
push 0x402278
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
jmp 0x404ecd

Function at 0x40805e
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x214]
push esi
push edi
push 0x210
push 0
push eax
mov edi, edx
mov esi, ecx
call sub.msvcrt.dll_memset
and dword [ebp - 8], 0
lea ecx, [ebp - 0x210]
add esp, 0xc
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], edi
call fcn.0040dfd2
lea eax, [ebp - 0x218]
push eax
push 0x407f70
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 8]
test ebx, ebx
je 0x4080c9
mov dword [ebx], ecx
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 4]
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0040e960
mov esp, ebp
pop ebp
ret 4
Function at 0x40810c
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040f1a0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, 0x7fe
push ebx
push eax
mov word [ebp - 0x804], ax
mov di, dx
lea eax, [ebp - 0x802]
mov si, cx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push ebx
mov word [ebp - 0x1004], ax
xor ebx, ebx
lea eax, [ebp - 0x1002]
push ebx
push eax
call sub.msvcrt.dll_memset
movzx eax, si
add esp, 0x18
sub eax, 0x404
je 0x408197
sub eax, 0xd
je 0x408190
sub eax, 1
je 0x40818c
sub eax, 0x3f2
je 0x408188
mov eax, 0x80070057
jmp 0x4081f3
push 0x7d
jmp 0x408199
push 0x7f
jmp 0x408199
mov eax, 0x80
jmp 0x40819a
push 0x7e
pop eax
push 0x3ff
lea ecx, [ebp - 0x804]
push ecx
push eax
call fcn.0040863a
movzx eax, di
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x1004]
push 0x400
push eax
call fcn.00404342
add esp, 0x10
lea eax, [ebp - 0x1004]
push 1
push ebx
push ebx
push eax
push 0x402278
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e960
mov esp, ebp
pop ebp
ret
Function at 0x408360
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x408384
xor eax, eax
jmp 0x4084a3
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x40837d
mov edx, dword [ebx + 4]
cmp dword [eax], edx
je 0x40839b
add eax, 4
cmp eax, dword [ecx + 8]
jne 0x40838f
cmp eax, dword [ecx + 8]
je 0x40837d
push esi
push edi
push 0x100
lea eax, [ebp - 0x204]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xfffffffffffffff0
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0
push 0
push 0x31
push dword [ebx + 0x14]
mov esi, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
and esi, 0x8000000
mov eax, dword [ebx + 0x28]
or esi, 0x800000
sub eax, dword [ebx + 0x20]
shr esi, 0x16
push esi
push eax
mov eax, dword [ebx + 0x24]
xor esi, esi
sub eax, dword [ebx + 0x1c]
push eax
push dword [ebx + 0x20]
lea eax, [ebp - 0x204]
push dword [ebx + 0x1c]
push esi
push eax
push esi
push esi
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawStateW]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], esi
push eax
lea ecx, [ebp - 0x204]
mov dword [ebp - 0x218], esi
call fcn.004085ed
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebx + 0x1c]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
add ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x214], ecx
mov ecx, dword [ebx + 0x20]
add ecx, eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x20c], eax
push 8
push 6
lea eax, [ecx + 1]
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x214]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawEdge]
push edi
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
xor eax, eax
pop edi
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040e960
mov esp, ebp
pop ebp
ret 4
Function at 0x4087a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [0x411484]
mov esi, edx
test edi, edi
jne 0x4087be
xor eax, eax
jmp 0x408853
push ebx
push dword [ebp + 0x10]
mov eax, esi
and esi, 0xf
sar eax, 4
inc eax
movzx ebx, ax
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x4087f6
mov eax, 0x400
cmp word [ebp + 0x10], ax
je 0x40880f
push eax
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x40880f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40880f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
jne 0x408813
xor eax, eax
jmp 0x408852
test esi, esi
je 0x408825
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub esi, 1
jne 0x408817
mov ebx, dword [ebp + 8]
movzx edi, word [ecx]
test ebx, ebx
je 0x408850
mov eax, dword [ebp + 0xc]
dec eax
cmp edi, eax
jb 0x408839
mov edi, eax
lea esi, [edi + edi]
add ecx, 2
push esi
push ecx
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40a0bf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0xc], 0
jmp 0x40a0f3
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x40a1a5
mov edx, dword [ebp - 8]
add edx, 1
and edx, 0x800000ff
jns 0x40a115
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
add ecx, dword [ebp - 0x10]
and ecx, 0x800000ff
jns 0x40a134
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 1], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 1]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
movzx eax, byte [edx]
add ecx, eax
and ecx, 0x800000ff
jns 0x40a181
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x14]
movzx edx, byte [ecx]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0xc]
mov byte [edx], cl
jmp 0x40a0ea
mov esp, ebp
pop ebp
ret