joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415300
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x100
call fcn.004213fc
push 0x100
mov esi, eax
push 0
push esi
mov dword [ebp - 0x10], esi
call fcn.00422d70
push 0x100
call fcn.004213fc
push 0x100
push 0
push eax
mov dword [ebp - 4], eax
call fcn.00422d70
mov ebx, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
add esp, 0x20
xor ecx, ecx
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov ebx, dword [ebp - 4]
sub eax, ebx
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 8], edi
jb 0x41537e
mov eax, dword [edi]
mov dword [ebp - 8], eax
xor edx, edx
lea esi, [ebx + ecx]
mov eax, ecx
mov ebx, dword [ebp - 8]
div dword [edi + 0x10]
mov al, byte [edx + ebx]
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
mov byte [edx + esi], al
mov byte [esi], cl
inc ecx
cmp ecx, 0x100
jl 0x415370
mov esi, ebx
mov dword [ebp - 8], 0x100
mov ebx, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp - 0xc]
mov dl, byte [esi]
movzx ecx, dl
movzx eax, byte [esi + eax]
add edi, eax
add edi, ecx
and edi, 0x800000ff
jns 0x4153d0
dec edi
or edi, 0xffffff00
inc edi
mov ecx, dword [ebp - 4]
mov al, byte [ecx + edi]
mov byte [esi], al
inc esi
sub dword [ebp - 8], 1
mov byte [ecx + edi], dl
jne 0x4153b0
mov edi, dword [ebp + 0x10]
mov ecx, ebx
push 0
push dword [edi + 0x10]
call fcn.00415620
xor eax, eax
xor esi, esi
xor ecx, ecx
cmp dword [edi + 0x10], eax
mov edi, dword [ebp - 4]
jbe 0x415478
nop
inc ecx
and ecx, 0x800000ff
jns 0x415411
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 4], ecx
mov cl, byte [edi + ecx]
movzx edx, cl
add eax, edx
and eax, 0x800000ff
jns 0x41542a
dec eax
or eax, 0xffffff00
inc eax
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov al, byte [edi + eax]
mov byte [edi + ebx], al
mov eax, dword [ebp - 0xc]
mov byte [edi + eax], cl
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
movzx eax, byte [edi + eax]
add eax, edx
cmp dword [ecx + 0x14], 0x10
movzx eax, al
mov dl, byte [eax + edi]
mov eax, ecx
jb 0x41545a
mov eax, dword [ecx]
mov al, byte [eax + esi]
xor al, dl
cmp dword [ebx + 0x14], 0x10
mov edx, ebx
jb 0x415469
mov edx, dword [ebx]
mov byte [edx + esi], al
inc esi
cmp esi, dword [ecx + 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
jb 0x415400
test edi, edi
je 0x41548a
push 0x100
push edi
call fcn.0042142c
add esp, 8
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41549f
push 0x100
push eax
call fcn.0042142c
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e86b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x445b74
push 0x445b6c
push str.FlsAlloc
push 0x1e
call fcn.0042e698
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e89f
push dword [ebp + 8]
mov ecx, esi
call dword [0x440200]
call esi
jmp 0x42e8a5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42e8e9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x445b84
push 0x445b7c
push str.FlsGetValue
push 0x20
call fcn.0042e698
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e920
push dword [ebp + 8]
mov ecx, esi
call dword [0x440200]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x430033
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042fea4

Function at 0x43042d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00421440
mov eax, dword [0x451070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0042ef07
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43046f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4305cb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043e8e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x452f70]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00431424
mov ecx, dword [esi*4 + 0x452f70]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4305c4
cmp eax, dword [edi + ecx + 0x24]
jne 0x4305c4
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4305c4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00431424
add esp, 0x14
test edx, edx
jl 0x4305c4
jg 0x43053a
test eax, eax
jb 0x4305c4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4305c4
jl 0x430554
cmp dword [ebp - 0x1008], eax
ja 0x4305c4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x430572
test ebx, ebx
je 0x4305ab
cmp ecx, edi
jae 0x4305ab
mov al, byte [ecx]
cmp al, 0xd
jne 0x43058c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x430598
cmp byte [ecx + 1], 0xa
jne 0x430598
inc ecx
jmp 0x430598
movzx eax, al
movsx eax, byte [eax + 0x4512e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x430572
cmp edx, ebx
jne 0x430572
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4305c9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00421b06
leave
ret
Function at 0x4308c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x452f70]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x430902
cmp byte [ebx], 0xa
jne 0x430902
or byte [eax + edi + 0x28], 4
jmp 0x430907
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x430a05
mov al, byte [edx]
cmp al, 0x1a
je 0x4309e7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x430936
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x43095b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x430965
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x430918
jmp 0x430a05
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4309e2
cmp dword [ebp - 0xc], 0
je 0x4309e2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x452f70]
test byte [eax + edi + 0x28], 0x48
je 0x4309bc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4309a7
mov byte [esi], dl
jmp 0x4309b8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x452f70]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x430a05
cmp byte [ebp - 1], 0xa
jne 0x4309cb
cmp esi, ebx
jne 0x4309cb
mov byte [esi], 0xa
jmp 0x430a04
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00431442
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x430a05
mov byte [esi], 0xd
jmp 0x430a04
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x452f70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x430a01
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x430a05
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x430a0e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x452f70]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x430a51
cmp word [esi], dx
jne 0x430a51
or byte [edi + eax + 0x28], 4
jmp 0x430a56
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x430ba9
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x430b89
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x430a98
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x430ace
cmp eax, edx
jae 0x430ada
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x430a70
jmp 0x430ba9
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430b85
cmp dword [ebp - 0x14], 0
je 0x430b85
mov eax, dword [ebx*4 + 0x452f70]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x430b5d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x430b26
mov word [esi], cx
jmp 0x430b59
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x452f70]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x452f70]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x452f70]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x430ba9
pop ebx
cmp word [ebp - 4], bx
jne 0x430b6e
cmp esi, dword [ebp + 0xc]
jne 0x430b6e
mov word [esi], bx
jmp 0x430ba6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00431442
add esp, 0x10
cmp word [ebp - 4], bx
je 0x430ba9
push 0xd
jmp 0x430ba2
mov ecx, dword [ebx*4 + 0x452f70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x430ba0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x430ba9
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x436c8d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x436d2a
push ebx
push esi
call fcn.00436c56
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004358db
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x436cd7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x436d29
push edi
push eax
call fcn.004320f3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x436cf7
call fcn.0042e360
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x436d28
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004358db
add esp, 0x20
test eax, eax
jne 0x436d16
push edi
call fcn.0042e360
jmp 0x436d1e
push ebx
call fcn.0042e360
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x43e210
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043e18c
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43e388
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43e388
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43e337
jg 0x43e269
test eax, eax
je 0x43e32d
push 1
push 0x1000
call fcn.0042e39a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43e28f
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x43e324
push 0x8000
push ebx
call fcn.0042b74d
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43e2bb
jg 0x43e2b6
cmp ecx, 0x1000
jb 0x43e2bb
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042fca4
add esp, 0x10
cmp eax, 0xffffffff
je 0x43e300
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43e2b6
jl 0x43e2e7
test ecx, ecx
jne 0x43e2a8
push dword [ebp - 0xc]
push ebx
call fcn.0042b74d
push esi
call fcn.0042e360
add esp, 0xc
xor edi, edi
jmp 0x43e399
cmp byte [edi + 0x24], 0
je 0x43e317
cmp dword [edi + 0x20], 5
jne 0x43e317
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43e322
mov edi, dword [edi + 0x18]
jmp 0x43e324
xor edi, edi
push esi
call fcn.0042e360
pop ecx
jmp 0x43e399
test ecx, ecx
jg 0x43e2f9
jl 0x43e337
test eax, eax
jae 0x43e2f9
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00431442
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43e35a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43e2f9
jmp 0x43e391
push ebx
call fcn.0043747f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43e2f9
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x43e399
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43e396
mov edi, dword [edi + 0x18]
jmp 0x43e399
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00431442
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4184e8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x418515
call fcn.0040609e
mov dword [eax], esi
call fcn.0040608b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b9a4
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418533
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004060b1
pop ecx
jmp 0x418510
test byte [esp + 0xc], 0x80
je 0x41853f
and eax, 0xfffffffe
jmp 0x418542
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x418524
xor eax, eax
pop esi
ret

Function at 0x17b4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.017b41a8
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 0x17b407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17b406a
add dl, dl
jne 0x17b4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17b40dc
xor eax, eax
add dl, dl
jne 0x17b4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17b417d
add dl, dl
jne 0x17b40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17b40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17b40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17b40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x17b40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x17b4075
mov eax, 1
add dl, dl
jne 0x17b40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17b40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17b40e1
sub eax, ebx
mov ebx, 1
jne 0x17b4128
mov ecx, 1
add dl, dl
jne 0x17b410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x17b4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17b4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17b4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x17b413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x17b414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17b4136
cmp eax, 0x7d00
jae 0x17b416d
cmp eax, 0x500
jb 0x17b4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17b4075
cmp eax, 0x7f
ja 0x17b4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17b4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x17b419e
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 0x17b4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401d1a
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0xacc
jge 0x401d3b
push esi
call dword [sym.imp.USER32.dll_SetClipboardViewer]
call dword [sym.imp.USER32.dll_GetCaretBlinkTime]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, 0x45be411
jg 0x401d55
inc edi
cmp edi, 0x3330601
jl 0x401d26
cmp dword [0x20c5b74], 0x400
jne 0x401d8e
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
push esi
call fcn.004045d1
push esi
call fcn.0040497d
push esi
push esi
call fcn.00404c7e
push esi
call fcn.00404cf0
add esp, 0x14
xor edi, edi
cmp edi, 0x16c76
jge 0x401da0
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5c52
jg 0x401dc6
inc edi
cmp edi, 0x3003f
jl 0x401d90
mov eax, dword [0x478b8c]
mov dword [0x20c5b74], eax
call fcn.00401a58
mov edi, 0x3078f
cmp dword [0x20c5b74], 0x51f
jne 0x401df2
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec edi
jne 0x401dda
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x402960
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x47176d
call fcn.004715e8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0040371d
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.00404cff
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4029a8
call fcn.004034d1
mov dword [ebx], eax
call fcn.00403290
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x4029aa
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40584a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x477354]
jne 0x405854
repz ret
jmp fcn.0040c81c
Function at 0x410a01
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x477354]
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.004079d4
and dword [ebp - 0x14], 0
cmp dword [0x483d68], 0
mov dword [ebp - 0x18], eax
jne 0x410ab4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410b5c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x410b5c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x483d68], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x483d6c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x483d70], eax
call edi
push eax
call esi
mov dword [0x483d78], eax
test eax, eax
je 0x410ab4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x483d74], eax
mov eax, dword [0x483d74]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x410b0d
cmp dword [0x483d78], ecx
je 0x410b0d
push eax
call esi
push dword [0x483d78]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x410b0d
test ebx, ebx
je 0x410b0d
call edi
test eax, eax
je 0x410b04
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x410b04
test byte [ebp - 8], 1
jne 0x410b0d
or dword [ebp + 0x10], 0x200000
jmp 0x410b40
mov eax, dword [0x483d6c]
cmp eax, dword [ebp - 0x18]
je 0x410b40
push eax
call esi
test eax, eax
je 0x410b40
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410b40
mov eax, dword [0x483d70]
cmp eax, dword [ebp - 0x18]
je 0x410b40
push eax
call esi
test eax, eax
je 0x410b40
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x483d68]
call esi
test eax, eax
je 0x410b5c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x410b5e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040584a
leave
ret