joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406a06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406b9a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b74
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc

Function at 0x545e65
Capabilities:
Encode data using xor

Disassembly:
out 0x83, eax
aad 0x18
neg dword [edx]
and dword gs:[eax + 0x9530f27], eax
inc ebp
in eax, dx
inc ebp
xchg esp, eax
or dh, ch
test byte [edx + 0x4c], ah
mov esp, 0xa6445da8
invalid
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 0x20e3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.020e378f
jae 0x20e370e
xor ecx, ecx
call fcn.020e378f
jae 0x20e373d
xor eax, eax
call fcn.020e378f
jae 0x20e374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.020e378f
adc al, al
jae 0x20e372f
jne 0x20e3779
stosb byte es:[edi], al
jmp 0x20e3711
call fcn.020e379b
sub ecx, ebx
jne 0x20e3756
call fcn.020e3799
jmp 0x20e3775
lodsb al, byte [esi]
shr eax, 1
je 0x20e3783
adc ecx, ecx
jmp 0x20e3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.020e3799
cmp eax, 0x7d00
jae 0x20e3772
cmp ah, 5
jae 0x20e3773
cmp eax, 0x7f
ja 0x20e3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x20e3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x10001100
Capabilities:
Encode data using xor
Hash data with crc32
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push str.NtSetInformationThread
push 0x1001a770
push edi
call 0x100d7fc9
push eax
call dword [0x10015014]
push 0
push 0
push 0x11
push 0xffffffffffffffff
call eax
push 0
call dword [0x10015018]
mov ebx, eax
mov eax, 0x5a4d
mov dword [ebp - 0xc], ebx
cmp word [ebx], ax
jne 0x10001295
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
mov dword [ebp - 0x10], ecx
cmp dword [ecx], 0x4550
jne 0x10001295
mov eax, dword [ebp - 0x10]
xor edx, edx
push esi
movzx esi, word [ecx + 0x14]
add esi, ecx
mov dword [ebp - 8], edx
mov ecx, dword [0x1001e294]
push edi
xor edi, edi
mov dword [0x1001e298], ecx
cmp di, word [eax + 6]
jae 0x1000127e
lea eax, [esi + 0x24]
mov dword [ebp - 4], eax
nop word [eax + eax]
test dword [eax + 0x18], 0x20000000
je 0x10001262
mov edi, dword [eax]
or esi, 0xffffffff
add edi, ebx
xor edx, edx
mov ebx, dword [eax - 4]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x100011cb
movzx eax, byte [edx + edi]
inc edx
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x1001a790]
cmp edx, ebx
jb 0x100011b3
lea eax, [ebp - 0x1c]
not esi
mov dword [ebp - 0x14], esi
cmp eax, ecx
jae 0x10001226
mov edx, eax
mov eax, dword [0x1001e294]
cmp eax, edx
ja 0x10001226
sub edx, eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ecx, dword [0x1001e29c]
jne 0x10001208
push ecx
call fcn.100013e0
mov ecx, dword [0x1001e298]
test ecx, ecx
je 0x10001250
mov eax, dword [0x1001e294]
lea edx, [esi + esi*2]
movq xmm0, qword [eax + edx*4]
movq qword [ecx], xmm0
mov eax, dword [eax + edx*4 + 8]
mov dword [ecx + 8], eax
jmp 0x1000124a
cmp ecx, dword [0x1001e29c]
jne 0x1000123a
push ecx
call fcn.100013e0
mov ecx, dword [0x1001e298]
test ecx, ecx
je 0x10001250
movq xmm0, qword [ebp - 0x1c]
movq qword [ecx], xmm0
mov dword [ecx + 8], esi
mov ecx, dword [0x1001e298]
mov ebx, dword [ebp - 0xc]
add ecx, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [0x1001e298], ecx
add eax, 0x28
inc edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], edx
movzx eax, word [eax + 6]
cmp edx, eax
mov eax, dword [ebp - 4]
jl 0x10001190
push 0
push 0
push 0
push 0x10001070
push 0
push 0
call 0x100af9df
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100023c0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x1001e290], 0
push ebx
push esi
push edi
jne 0x100023dd
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0x14]
test ecx, ecx
jle 0x100023fc
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x1c]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0xc], eax
jmp 0x10002404
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
test ecx, ecx
jle 0x1000241d
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x10002425
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
test ecx, ecx
jle 0x1000243e
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10002446
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
test ecx, ecx
jle 0x1000245f
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x10002467
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov eax, edx
mov dword [ebp - 4], 0
cdq
xorps xmm0, xmm0
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x100024a8
add dword [esp], 5
retf

Function at 0x10002530
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
push ebx
push esi
push edi
test ecx, ecx
je 0x100025a2
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test ecx, ecx
jne 0x10002551
test eax, eax
je 0x100025a2
test edx, edx
je 0x100025a2
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
push 0x33
call fcn.10002562
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100025b0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d4
cmp dword [0x1001e290], 0
push ebx
push esi
push edi
je 0x1000288f
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
push 0x33
call fcn.100025d8
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100028c0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x1001d008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1001e2e8]
mov edx, dword [0x1001e2ec]
push ebx
push esi
push edi
test eax, eax
jne 0x100028f9
test edx, edx
jne 0x100028f9
call fcn.100025b0
mov dword [0x1001e2e8], eax
mov dword [0x1001e2ec], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x124], eax
test eax, eax
jne 0x10002922
test edx, edx
jne 0x10002922
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003cf6
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x12c], edx
push 0x33
call fcn.10002941
Function at 0x10003c30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [0x1001e2c8], 0
push esi
je 0x10003cef
push 0
push 0
push 0
push 0
push 0
push 0x11
push 0xffffffffffffffff
push 0xfffffffffffffffe
push 4
push 0
push dword [0x1001e2d8]
call fcn.100023c0
add esp, 0x2c
push edx
push eax
push 0x1001af5c
call fcn.100039f0
mov esi, dword [0x1001e2d0]
add esp, 0xc
or eax, 0xffffffff
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1001a790]
movzx ecx, byte [esi + edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1001a790]
movzx ecx, byte [esi + edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1001a790]
movzx ecx, byte [esi + edx + 3]
add edx, 4
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1001a790]
cmp edx, 0x1000
jb 0x10003c81
not eax
cmp eax, dword [0x1001e2b8]
je 0x10003cef
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

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 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 0x4a089c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x4a0921
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0047ba10
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4a08e4
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4a0906
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x4a097c
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.004a05ec
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x4a0968
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x4a097c
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4a08a5
pop esi
pop ebx
leave
ret
Function at 0x412495
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4124dc
call fcn.00404eb8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4124dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4124f8
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00411f95
mov esi, eax
test edi, edi
je 0x4124f6
test ebx, ebx
je 0x4124f6
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4128d7
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x514cb3
call fcn.004f7c42
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4128fc
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41294e
call fcn.00405133
push eax
lea ecx, [ebp - 0x10]
call fcn.00402fed
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f810c
push eax
call fcn.0040333d
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402d7b
mov eax, esi
call fcn.004f7d1a
ret 8

Function at 0x415d98
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00404eb8
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x415dd1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004159d5
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x415e2f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x415e53
cmp dword [edi + 0x74], 0
jne 0x415e53
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00404eb8
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00415df0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42ae95
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0042ab39
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x42aedf
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00404281
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404009
jmp 0x42aeea
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004190b7
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x42aef0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004125a1
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x42af2d
call fcn.0042ab39
mov dword [esi + 0xc], 1
jmp 0x42af32
call fcn.0042ab39
cmp dword [esi], 0
je 0x42af7b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x42af53
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00404281
jmp 0x42af65
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00403015
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404009
jmp 0x42af9f
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x42af9f
push dword [esi]
push dword [ebp + 8]
call fcn.004190b7
pop esi
pop ebp
ret 0xc

Function at 0x450e44
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004d28f0
call fcn.004048d5
cmp dword [eax + 0x14], 0
jne 0x450e61
mov ecx, esi
pop esi
jmp fcn.00450949
pop esi
ret

Function at 0x45445c
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004853ca
call fcn.004048d5
cmp dword [eax + 0x14], 0
jne 0x454479
mov ecx, esi
pop esi
jmp fcn.00453e2f
pop esi
ret
Function at 0x48afb5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x48afcf
call fcn.00404eb8
mov esi, dword [eax + 0xc]
push dword [0x5679c0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x48afed
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x48afe5
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x48b01a
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x48afe7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048aee1
mov esi, eax
jmp 0x48b00c

Function at 0x4dba61
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4dba79
mov edi, dword [esi + 0xc]
jmp 0x4dbab9
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4dba92
call fcn.00405c9f
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4dbaa7
call fcn.00405c9f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4dbab9
call fcn.00405c9f
call fcn.00404eb8
cmp dword [eax + 0x3c], 0
je 0x4dbace
push edi
mov ecx, ebx
call fcn.004da88b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004db97b
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4dbaec
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4dbaf8
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4f68f7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5624d0]
jne 0x4f6901
repz ret
jmp fcn.004fd8c3
Function at 0x508028
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5624d0]
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.004fd2eb
and dword [ebp - 0x14], 0
cmp dword [0x569f64], 0
mov dword [ebp - 0x18], eax
jne 0x5080db
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x508183
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x543718
push ebx
call edi
test eax, eax
je 0x508183
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x543708
push ebx
mov dword [0x569f64], eax
call edi
push eax
call esi
push 0x5436f4
push ebx
mov dword [0x569f68], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x569f6c], eax
call edi
push eax
call esi
mov dword [0x569f74], eax
test eax, eax
je 0x5080db
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x569f70], eax
mov eax, dword [0x569f70]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x508134
cmp dword [0x569f74], ecx
je 0x508134
push eax
call esi
push dword [0x569f74]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x508134
test ebx, ebx
je 0x508134
call edi
test eax, eax
je 0x50812b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x50812b
test byte [ebp - 8], 1
jne 0x508134
or dword [ebp + 0x10], 0x200000
jmp 0x508167
mov eax, dword [0x569f68]
cmp eax, dword [ebp - 0x18]
je 0x508167
push eax
call esi
test eax, eax
je 0x508167
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x508167
mov eax, dword [0x569f6c]
cmp eax, dword [ebp - 0x18]
je 0x508167
push eax
call esi
test eax, eax
je 0x508167
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x569f64]
call esi
test eax, eax
je 0x508183
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x508185
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f68f7
leave
ret
Function at 0x402a24
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404660
test esi, esi
jne 0x402a5a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404750
jmp 0x402a78
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402938
mov edi, eax
test esi, esi
je 0x402a78
cmp dword [ebx], 0
je 0x402a78
dec esi
jmp 0x402a61
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x459020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403838
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403818
xor eax, eax
push ebp
push 0x403811
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403854
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403818
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x459020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x459020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45b048], 0
je 0x404545
cmp word [0x45b21c], 0xd7b2
jne 0x40450d
cmp dword [0x45b224], 0
jbe 0x40450d
mov eax, 0x45b218
call dword [0x45b234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x459070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40456c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x459030], 0
jne 0x404561
push 0
push 0x459068
push 0x459070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret