joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408a1c
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.004071bd
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.004071da
push 1
inc edi
push edi
mov ecx, esi
call fcn.004071da
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x4d0]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407823
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.004086eb
mov ecx, esi
mov edi, eax
call fcn.00407b90
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40c9d7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], eax
push dword [ebp - 0x66c]
call dword [ebp - 0x680]
cmp dword [ebp - 0x6cc], 0
je 0x40d7b7
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.0040b595
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x40ca31
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x40ca7a
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
test dword [eax], eax
stc
invalid
dec dword [edi]
mov esi, 0xfc6c0584
invalid
push edi
ror byte [ebx - 0x6ff73], 1
dec dword [eax - 0x393f27c]
invalid
invalid
jmp 0x40ca24
call fcn.0040b624
daa
stc
leave
test byte [eax - 0x72b5b], al
inc dword [eax]
and byte [ebp - 0x72b], 0
add dh, al
test esi, edx
clc
invalid
inc edx
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.0040b624
push es
xchg ecx, ebx
invalid
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x447004]
jne 0x40100a
repz ret
jmp fcn.00401647

Function at 0x4071c9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x447004]
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.00404019
and dword [ebp - 0x14], 0
cmp dword [0x449d84], 0
mov dword [ebp - 0x18], eax
jne 0x40727c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407324
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407324
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x449d84], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x449d88], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x449d8c], eax
call edi
push eax
call esi
mov dword [0x449d94], eax
test eax, eax
je 0x40727c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x449d90], eax
mov eax, dword [0x449d90]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4072d5
cmp dword [0x449d94], ecx
je 0x4072d5
push eax
call esi
push dword [0x449d94]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4072d5
test ebx, ebx
je 0x4072d5
call edi
test eax, eax
je 0x4072cc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4072cc
test byte [ebp - 8], 1
jne 0x4072d5
or dword [ebp + 0x10], 0x200000
jmp 0x407308
mov eax, dword [0x449d88]
cmp eax, dword [ebp - 0x18]
je 0x407308
push eax
call esi
test eax, eax
je 0x407308
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407308
mov eax, dword [0x449d8c]
cmp eax, dword [ebp - 0x18]
je 0x407308
push eax
call esi
test eax, eax
je 0x407308
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x449d84]
call esi
test eax, eax
je 0x407324
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407326
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x442c20
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x808
mov eax, dword [0x447004]
xor eax, esp
mov dword [esp + 0x804], eax
mov eax, dword [0x44a2a4]
imul eax, eax, 0x343fd
cmp dword [0x22ece8c], 0x139e
mov dword [0x44a2a4], eax
jne 0x442c73
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTapePosition]
mov eax, dword [esp]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [0x44a2a4]
add eax, 0x269ec3
push esi
mov dword [0x44a2a4], eax
movzx esi, word [0x44a2a6]
and esi, 0x7fff
cmp dword [0x22ece8c], 0x8e7
jne 0x442ca8
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401000
add esp, 0x808
ret

Function at 0x442d70
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x447004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x4481f0]
push ebx
mov ebx, dword [0x22ec830]
push edi
mov edi, dword [0x22ece8c]
call fcn.00442cc0
cmp dword [0x22ece8c], 0x2f
jne 0x442dd5
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.00442cf0
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.00401000
add esp, 0x24
ret
Function at 0x4430d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1818
call fcn.00409150
mov eax, dword [0x447004]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
jmp 0x4430f9
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xbbe2aa2
jge 0x44319f
cmp dword [0x22ece8c], 0xa5f
jne 0x443143
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
push 0
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x1018]
push edx
push str.keminivefayosexerukugufebaponif
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp dword [ebp - 4], 0x84526b
jne 0x443168
mov eax, dword [0x449010]
mov dword [0x22ece8c], eax
mov ecx, dword [0x22ece8c]
add ecx, 0xa231
mov dword [0x22ece8c], ecx
cmp dword [0x22ece8c], 0x141
jne 0x44319a
push str.renej_luwoyisawopab_dadabayegutenecisufoba_wozonotuwugewiropoxu_vogiwipeladoxakanahotucucuwi
lea edx, [ebp - 0x1818]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x44a2a8], 0xec58acac
mov dword [0x44a2ac], 0xffffffff
jmp 0x4430f0
call fcn.00442df0
jmp dword [0x22ec830]
Function at 0x1000206c
Capabilities:
Encode data using xor

Disassembly:
adc bl, ah
rol dword [ecx], 0x10
jecxz 0x1000202f
add dword [eax], edx
sbb al, 0xdc
add byte [eax], dl
daa
fadd qword [eax]
adc byte [eax + 0x6a], cl
add dl, byte [eax]
stosd dword es:[edi], eax
push 0x66f41002
add dl, byte [eax]
adc ebp, dword [ebx + 2]
adc byte [edx + ebp*2 + 0x66881002], ah
add dl, byte [eax]
sbb al, 0x66
add dl, byte [eax]

Function at 0x1000d79d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xchg ecx, eax
adc ebx, esp
and byte [ebp - 0x544], 0
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
invalid
test esp, ecx

Function at 0x1000d7e5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
mov ebp, 0xfffffed5

Function at 0x1000d7f3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ebp, 0xfffffed5
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40

Function at 0x1000d806
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
invalid

Function at 0x1000d813
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
cli
invalid
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.1000c8ef
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
cmp al, 0xc6
test dword [ebx + 0x27fffffc], esp

Function at 0x1000dd9a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
invalid
dec dword [ecx - 0x3a]
test ebx, esp
clc
invalid
call [eax - 0x3a]
test esp, esp
clc
invalid
call [esi - 0x3a]
test ebp, esp
clc
invalid
dec dword [ecx - 0x3a]
test esi, esp
clc
invalid
invalid
cmp eax, 0xffeb17e8
dec dword [ebx - 0x24]
das
adc eax, 0xf8d4858d
invalid
Function at 0x1001344b
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x1003b035
call fcn.1003a5b1
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x10013551
cmp byte [esi + 0x45], bl
je 0x10013551
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x10013480
xor al, al
jmp 0x10013553
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.10013728
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100134ab
mov dword [ebp - 0x2c], edi
jmp 0x100134b1
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
cmp eax, 0x10
jae 0x100134b9
lea edi, [ebp - 0x28]
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x30]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
push eax
push edi
lea eax, [esi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, ebx
je 0x100134df
dec eax
je 0x100134e2
dec eax
dec eax
jne 0x10013545
inc eax
jmp 0x10013543
mov byte [esi + 0x45], bl
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov edx, edi
cmp eax, 0x10
jae 0x100134f2
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
sub ecx, edx
mov dword [ebp - 0x2c], ecx
je 0x10013521
cmp eax, 0x10
jae 0x10013504
lea edi, [ebp - 0x28]
push dword [esi + 0x50]
push ecx
push 1
push edi
call dword [sym.imp.MSVCR110.dll_fwrite]
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
cmp ecx, eax
jne 0x10013541
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp byte [esi + 0x45], 0
je 0x1001353f
test ecx, ecx
jne 0x100134a1
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.100136c7
jmp 0x1001349b
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.1000f921
mov al, bl
jmp 0x10013553
mov al, 1
call fcn.1003a560
ret
Function at 0x1002c3b5
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x1003b035
call fcn.1003a5b1
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x1002c4c2
cmp byte [esi + 0x46], bl
je 0x1002c4c2
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x1002c3f1
xor al, al
jmp 0x1002c4c4
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.10013728
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1002c41c
mov dword [ebp - 0x2c], edi
jmp 0x1002c422
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
cmp eax, 0x10
jae 0x1002c42a
lea edi, [ebp - 0x28]
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x30]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
push eax
push edi
lea eax, [esi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, ebx
je 0x1002c450
dec eax
je 0x1002c453
dec eax
dec eax
jne 0x1002c4b6
inc eax
jmp 0x1002c4b4
mov byte [esi + 0x46], bl
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov edx, edi
cmp eax, 0x10
jae 0x1002c463
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
sub ecx, edx
mov dword [ebp - 0x2c], ecx
je 0x1002c492
cmp eax, 0x10
jae 0x1002c475
lea edi, [ebp - 0x28]
push dword [esi + 0x50]
push ecx
push 1
push edi
call dword [sym.imp.MSVCR110.dll_fwrite]
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
cmp ecx, eax
jne 0x1002c4b2
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp byte [esi + 0x46], 0
je 0x1002c4b0
test ecx, ecx
jne 0x1002c412
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.100136c7
jmp 0x1002c40c
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.1000f921
mov al, bl
jmp 0x1002c4c4
mov al, 1
call fcn.1003a560
ret

Function at 0x1002e1da
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCR110.dll__beginthreadex]
mov dword [esi], eax
add esp, 0x18
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
pop esi
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cd64
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
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 0x41cd8c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e5a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x832a63
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e655
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x832a6a
ret
Function at 0x41eec4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x833473
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x84d2a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x84d2a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x84c10c]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f045
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x83347a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x100013cb
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x1008774c], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x1000140f
call ebx
test eax, eax
jns 0x10001405
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x10087748], eax
mov dword [0x1008774c], 1
mov eax, dword [0x10087748]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x1000142b
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x1000145b
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x10001451
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x10001445
push dword [eax + 8]
call dword [eax]
jmp 0x1000144b
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x1000145a
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x1000590a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100862c4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
push ebx
mov ebx, ecx
je 0x100059a2
mov ecx, dword [ebx + 0x2c]
call fcn.10004b8a
test eax, eax
je 0x1000593b
push 1
mov ecx, eax
call fcn.10037080
test byte [ebp + 0xc], 2
je 0x1000599a
push esi
push edi
mov edi, 0x10087978
push edi
push str.__supdate_install.exe_
mov esi, 0x104
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.100011f2
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.100441f0
push edi
push 0x1006805c
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.100011f2
add esp, 0x2c
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov ecx, dword [ebx + 0x2c]
call fcn.1000577c
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1004ada8
leave
ret 0x10

Function at 0x100065c5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000661f
cmp dword [ebp + 0x10], 1
je 0x10006604
cmp dword [ebp + 0x10], 2
je 0x10006604
push 0xd
pop eax
jmp 0x1000661f
test edi, edi
mov eax, dword [ebp - 4]
je 0x1000661b
test eax, eax
je 0x10006618
cmp byte [eax + edi - 1], 0
je 0x1000661b
jmp 0x100065ff
mov byte [edi], 0
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x10007340
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x1012
push dword [esi + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x1000739b
cmp dword [ebp - 0xc], 8
jne 0x1000739b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x1000739b
push dword [ebp - 8]
mov ecx, esi
call fcn.100072c0
mov eax, dword [ebp + 0x14]
and dword [eax], 0
xor eax, eax
pop edi
inc eax
pop esi
leave
ret 0x10