joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421690
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x4216fe
cmp si, 0x69
ja 0x4216fe
add esi, 0xffd0
cmp si, 0x11
je 0x4216ce
push 0x11
call edi
test ax, ax
jge 0x4216ce
or esi, 0x2000
cmp si, 0x10
je 0x4216e3
push 0x10
call edi
test ax, ax
jge 0x4216e3
or esi, 0x4000
cmp si, 0x12
je 0x4216f8
push 0x12
call edi
test ax, ax
jge 0x4216f8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42170b
mov esi, 0xbd
jmp 0x4216bf
cmp si, 0x6e
jne 0x421718
mov esi, 0xbe
jmp 0x4216bf
cmp si, 0x6f
jne 0x4216b9
mov esi, 0xbf
jmp 0x4216bf

Function at 0x422db0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4f9e00]
xor edx, edx
cmp eax, edx
jne 0x422dd6
xor eax, eax
mov byte [eax + 0x4f9d00], al
inc eax
cmp eax, 0x100
jl 0x422dbe
mov dword [0x4f9e00], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4f9d00
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x422e67
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x422e3a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x422e08
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x422ee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x422f33
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x422f1a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434b20
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x472548
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0042f420
test eax, eax
je 0x434c28
lea ecx, [esp + 0xc]
call fcn.00406340
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0042f420
mov ecx, eax
call fcn.0042cb00
test eax, eax
je 0x434c0f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x434c0f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x434c0f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00406540
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x434bf1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x434c0f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4fa250]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x4ceb70
call fcn.00406540
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x434c70
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0042f420
test eax, eax
je 0x434d5f
mov ecx, edi
call fcn.0042f420
mov ecx, eax
call fcn.0042c9b0
test eax, eax
jne 0x434d5f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x434d5f
mov eax, dword [0x4fa250]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x434cd2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0042f420
mov ecx, eax
call fcn.0042cbe0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x434d5f
cmp ebx, eax
jne 0x434d5f
cmp dword [esp + 0x10], eax
jne 0x434d45
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x437980
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4727d8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4379b9
inc eax
mov dword [esi + 0x10], eax
jmp 0x437acc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4379cd
mov eax, 0xffffffc7
jmp 0x437ace
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4379de
cmp dword [esi + 8], eax
jne 0x4379cd
cmp dword [esi + 8], eax
jne 0x4379f7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4379f7
mov eax, 0xffffffc7
jmp 0x437ace
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x437a0b
push eax
mov ecx, ebx
call fcn.004371b0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00406340
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x437a3c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00406360
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00436920
test eax, eax
mov dword [esp + 0x38], eax
je 0x437a6f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4ceb70
call fcn.00406540
mov eax, dword [esp + 0x38]
jmp 0x437ace
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004377e0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x437ab3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00437800
mov esi, eax
test esi, esi
jne 0x437ae3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004377e0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x437a85
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4ceb70
call fcn.00406540
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4ceb70
call fcn.00406540
mov eax, esi
jmp 0x437ace

Function at 0x43ac10
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x43ac70
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x43ac70
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x43ac70
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x43ac70
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x43acb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x467428
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x467460
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004654df
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004654b7
jmp 0x46746c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x468b1d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x468b5f
call fcn.0046e5f1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x468b5f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x468b56
xor eax, eax
jmp 0x468b67
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00468b6d
pop edi
pop esi
pop ebx
ret 4

Function at 0x46eb21
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46eb4f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46eb6d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046ea87
jmp 0x46eb6d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46eb6d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046ea87
test edi, edi
mov eax, edi
jne 0x46eb57
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x407f22
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [0x42f1b4], 0x44
mov dword [esp + 0x20], 0x42f1b4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
mov edx, eax
sub esp, 0x28
xor eax, eax
test edx, edx
je 0x407f9e
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x18]
push ecx
leave
ret 4

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

Disassembly:
push ebp
cmp dword [0x42f1fc], 0
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
jne 0x407fe6
xor edx, edx
mov eax, edx
xor edi, edi
mov ecx, eax
inc edi
and ecx, 1
neg ecx
and ecx, 0xedb88320
shr eax, 1
xor eax, ecx
cmp edi, 8
jne 0x407fbf
mov dword [edx*4 + 0x42f1f8], eax
inc edx
cmp edx, 0x100
jne 0x407fbb
mov eax, dword [ebp + 8]
not eax
jmp 0x408000
mov dl, byte [ebx]
dec esi
inc ebx
xor edx, eax
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x42f1f8]
test esi, esi
jne 0x407fed
not eax
pop ebx
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x118993b8
Capabilities:
Encode data using xor

Disassembly:
cmc
mov word [esp], bp
movzx ecx, word [edi + ecx*2]
jmp 0x11899d29
lea esp, [esp + 4]
ja 0x10d88771
pushal
lea esp, [esp + 0x20]
jb 0x1189c40e
pushfd
clc
stc
cmp byte [edi - 1], 0
pushal
mov byte [esp], al
pushal
lea esp, [esp + 0x44]
jne 0x11a42ade
pushfd
sbb di, si
sar di, 0xd
mov edi, dword [edx + 0x24]
pushal
push 0x161aadfe
add edi, eax
jmp 0x11898752
bt edi, ebx
btr edi, 8
shrd edi, edi, 2
mov edi, dword [edx + 0x1c]
call fcn.11a3dea5
xor eax, 0x1a422
add byte [eax], al
add byte [eax], al
add byte [eax], al
add cl, al
shl dword [ebx - 0x764a83ff], cl
add dword [ebp + esi*4 - 0x77], edi
add dword [0x1a422], edi
add byte [eax], al
add byte [eax], al
add byte [eax], al
add bl, dl
jne 0x11899d37
add byte [ebp + esi*4 + 0x22450189], al
movsb byte es:[edi], byte [esi]
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], dh
loope 0x11899d4b
add byte [ebp + esi*4 + 0x224d0189], cl
movsb byte es:[edi], byte [esi]
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebp - 0x6bfe5be3], bh
mov ch, 0x89
add dword [ebp + 0x22], edx
movsb byte es:[edi], byte [esi]
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi + esi*8], dh
fadd dword [eax]
pushfd
mov ch, 0x89
add dword [ebp + 0x22], ebx
movsb byte es:[edi], byte [esi]
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dl, bl
mov ebx, 0xb5a400d8
mov dword [ecx], eax
and ah, byte gs:[ecx + eax]
add byte [eax], al
add byte [eax], al
sub eax, 0xb5ac01a4
mov dword [ecx], eax
insd dword es:[edi], dx
and ah, byte [ecx + eax]
add byte [eax], al
add byte [eax], al
push ss
add byte [ebp + esi*4 + 0x22650189], ah
movsb byte es:[edi], byte [esi]
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebp + ebp - 0x5c], ah
add dword [ebp + esi*4 + 0x226d0189], ebp
movsb byte es:[edi], byte [esi]
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], dl
jp 0x11899daf
add byte [ebp + esi*4 + 0x22750189], dh
movsb byte es:[edi], byte [esi]
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebx], cl
fld dword [eax]
mov esp, 0x7d0189b5
and ah, byte [ecx + eax]
add byte [eax], al
add byte [eax], al
pop esp
or byte [ecx - 0x764a3bff], 1
test dword [edx], esp
movsb byte es:[edi], byte [esi]
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add bh, dl
ljmp 0x189
Function at 0x404d87
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x14
push 0x41f110
call fcn.00407dd0
push 1
call fcn.00407c3c
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x404c32
xor ebx, ebx
jmp 0x404c65
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x404c2e
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x404c2e
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x404c65
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.0040743a
test eax, eax
jne 0x404c79
push 0x1c
call fcn.00404d60
pop ecx
call fcn.004073a7
test eax, eax
jne 0x404c8a
push 0x10
call fcn.00404d60
pop ecx
call fcn.00407d25
and dword [ebp - 4], 0
call fcn.0040744f
test eax, eax
jns 0x404ca4
push 0x1b
call fcn.00404d60
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x4246a0], eax
call fcn.00407d65
mov dword [0x4222c4], eax
call fcn.00407703
test eax, eax
jns 0x404cca
push 8
call fcn.0040508d
pop ecx
call fcn.00407940
test eax, eax
jns 0x404cdb
push 9
call fcn.0040508d
pop ecx
push 1
call fcn.004050c7
pop ecx
test eax, eax
je 0x404cee
push eax
call fcn.0040508d
pop ecx
mov eax, dword [0x4222dc]
mov dword [0x4222f4], eax
push eax
push dword [0x4222d4]
push dword [0x4222cc]
call main
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x404d1c
push esi
call fcn.00405330
call fcn.004050b8
jmp 0x404d51
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00407e15
ret
call fcn.00578000
jmp 0x404c0c
Function at 0x40638a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x60ff0d
call fcn.004fc6c0
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x406407
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x406407
call fcn.00405b68
mov esi, eax
jmp 0x4064fe
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40642a
call fcn.00405b68
jmp 0x4064f1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x406420
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea ecx, [esi + 1]
cmp ecx, esi
jae 0x40645d
mov esi, 0x8007000e
jmp 0x4064f3
push 2
pop edx
mov byte [ebp - 4], 2
call fcn.00408407
cmp eax, 0x400
jbe 0x40647e
push eax
lea ecx, [ebp - 0x418]
call fcn.004082f5
jmp 0x4064a0
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x4064a0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x406453
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x406420
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00406f79
mov esi, eax
test edi, edi
je 0x4064fe
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x406517
lea ecx, [ebp - 0x418]
call fcn.00408297
mov eax, esi
call fcn.004fc60d
ret 0x10
Function at 0x407e43
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00407c11
test eax, eax
jne 0x407ec3
push esi
push dword [ebp + 0xc]
call fcn.0042b630
push 4
call fcn.0042ba60
pop ecx
pop ecx
push 0x690778
push 0x84
call fcn.00423a90
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x407ec0
push edi
push esi
call fcn.00423a90
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x407eb8
push esi
call fcn.00423a90
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x407eb8
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0042ba70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x408577
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6a34f8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4085ee
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4085ee
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fbae6
leave
ret
Function at 0x408678
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push 0x2c4
mov eax, 0x6100e9
call fcn.004fc652
mov esi, ecx
sub esp, 0x18
mov eax, esp
push esi
push eax
call fcn.00415d62
pop ecx
pop ecx
lea eax, [ebp - 0x284]
push eax
call fcn.00413498
add esp, 4
xor ebx, ebx
mov eax, esp
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.00415e60
pop ecx
pop ecx
lea eax, [ebp - 0x26c]
push eax
call fcn.00413498
add esp, 0x1c
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x284]
call fcn.00408ae6
test eax, eax
je 0x40883b
lea ecx, [ebp - 0x23c]
call fcn.004085fa
push 0x20c
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.00515320
add esp, 0xc
lea eax, [ebp - 0x224]
push 0x105
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 8
pop esi
cmp dword [ebp - 0x228], esi
lea eax, [ebp - 0x23c]
push ebx
cmovae eax, dword [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x408830
lea ecx, [ebp - 0x2cc]
call fcn.00415ec2
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 3
call fcn.004163db
lea eax, [ebp - 0x254]
push str.CMD_PARENT_PROCESS_NAME
push eax
call fcn.0040cf53
pop ecx
pop ecx
push 0x6908f4
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 4
call fcn.00402c83
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.00416487
mov byte [ebp - 4], 5
mov ecx, eax
cmp dword [eax + 0x14], esi
jb 0x4087a7
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x254]
call fcn.00403813
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 4
call fcn.0040374c
cmp dword [ebp - 0x240], esi
lea ecx, [ebp - 0x254]
push ebx
cmovae ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x228], esi
push ebx
cmovae eax, dword [ebp - 0x23c]
push ecx
push eax
call fcn.0041435b
add esp, 0x10
test eax, eax
lea eax, [ebp - 0x23c]
setne bl
cmp dword [ebp - 0x228], esi
cmovae eax, dword [ebp - 0x23c]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x254]
call fcn.0040374c
lea ecx, [ebp - 0x2cc]
call fcn.00409ae6
lea ecx, [ebp - 0x23c]
call fcn.0040374c
lea ecx, [ebp - 0x26c]
call fcn.0040374c
lea ecx, [ebp - 0x284]
call fcn.0040374c
mov al, bl
call fcn.004fc5fc
ret