joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c610
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46dbe3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004614fe
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00466b97
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004680b3
test eax, eax
je 0x43c72c
mov ecx, dword [esp + 0x3c]
call fcn.00466bc4
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43c6f0
push edi
mov ecx, esi
call fcn.00464229
mov ecx, esi
call fcn.0043c8d0
cmp dword [esp + 0x38], 1
jne 0x43c725
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00464364
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43e910
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e943
push esi
call fcn.00441a60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e93c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e9c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e9b2
mov eax, dword [esi + 8]
test eax, eax
je 0x43e967
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e9ae
cmp eax, 2
je 0x43e9b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e95a
cmp eax, 3
je 0x43e98d
cmp eax, 1
jne 0x43e95a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43e95a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e95a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e9f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e9d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e9f0
add esp, 4
pop esi
ret

Function at 0x4622f4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46232c
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.004603ab
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00460383
jmp 0x462338
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4639e6
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 0x463a28
call fcn.0046949e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x463a28
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x463a1f
xor eax, eax
jmp 0x463a30
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00463a36
pop edi
pop esi
pop ebx
ret 4

Function at 0x4699ce
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 0x4699fc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x469a1a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469934
jmp 0x469a1a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x469a1a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469934
test edi, edi
mov eax, edi
jne 0x469a04
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x46e778
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
add byte [eax], al
inc ecx
add al, byte [eax]
add byte [edi], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, bh
clc
clc
jae 0x46e781
imul ebx, dword [eax], 0x64
cld
outsb dx, byte [esi]
pop ecx
pushal
jae 0x46e793
sbb ch, bh
and ebx, dword [ebx]
push 0xd
in eax, 0xc5
xlatb
mov edi, 0x89905722
and eax, ebp
add eax, 0xcb000000
fcomp qword [ebp + 0x6f]
pop ebx
jae 0x46e7b1
call 0x46e79d
retf
imul ecx, eax, 0x12d73052
dec eax
insb byte es:[edi], dx
je 0x46e75e
push 0xefbbd7a2
add ebx, 0xffffffb4
add ebx, 0xffffffb4
jmp 0x46e7bd
cmp dword [ebx], 0
clc
jmp 0x46e7da
je 0x46e97d
jae 0x46e80e
inc edx
xor esi, dword [ecx - 0xa]
pop ebp
xor al, bh
aaa
or edx, dword [esi]
mov eax, ds
sahf
mov cl, 0xd0
sar bl, 0x56
xchg ecx, eax
test eax, 0x968f9af1
sal dword [ecx + 0x37e576fc], 0xd6
out 0xdb, al
ret
mov ecx, ebx
jae 0x46e81b
jb 0x46e860
adc dword [ebx - 0x59131f02], edi
push cs
add ebx, 4
jmp 0x46e82f
mov edx, dword [ebx]
jmp 0x46e835
add edx, ebx
clc
jmp 0x46e85e
mov eax, dword [ebx + 4]
add al, 0xeb
sub bh, dh
mov edi, 0x5b4c3fe0
js 0x46e8df
jmp 0x46e88b
idiv byte [esi + 0x6a4f826c]
xchg dword [edi], edx
sbb al, 0x9d
pop edx
xchg edx, eax
adc cl, ah
fist word [ecx + ebx*4]
dec ebp
pop esp
fcmove st(0), st(7)
push esp
mov cl, dl
shl byte [eax], 1
test dword [ebx + 0x35], 0x815aa976
sub dh, dh
out 0x10, al
xchg esp, eax
sub dword [edx], 0x9410e6f6
jmp 0x46e8b5
add edx, 4
jmp 0x46e8d4
sub eax, 1
stc
jmp 0x46e901
mov esp, 0xa633561
cmc
inc eax
sub bh, byte [ebx]
pop es
pop eax
cmp al, byte [edx - 0x6e]
pop ss
sbb byte [ebx + 0x238002f1], bl
pop edx
add al, 6
sub al, 0xa8
sbb al, 0xfd
rcr dword [ebp + 0x52], 1
cwde
xchg edi, esp
jne 0x46e861
jb 0x46e91e
cmc
and ch, ch
test byte [esi], al
pop ds
lodsd eax, dword [esi]
cmp al, 0x24
call 0xe93a302f
or dl, dh
dec edi
clc
scasb al, byte es:[edi]
lodsd eax, dword [esi]
add ebx, 8
jmp 0x46e948
sub dword [ecx], 1
stc
jmp 0x46e954
jne 0x46e81e
jb 0x46e978
bound ebp, qword [esi - 0x2d]
cld
sar esp, cl
test al, 0x9b
mov bl, byte [eax + 0x4c]
leave
cmc
jl 0x46e95e
rcr byte [eax], 1
cmpsd dword [esi], dword es:[edi]
xchg ecx, eax
jecxz 0x46e9cc
sal dword [edi], cl
sal dword fs:[eax], 0xbd
cmp al, byte [esi - 0x18]
and al, 0
add byte [eax], al
call 0x46e9a1
jmp 0x46e995
popal
stc
jmp 0x46e99c
jmp fcn.0044fd57
call fcn.0046ea25
add esp, 8
pop ebx
pop eax
mov esi, ebx
sub esi, 0x400000
je 0x46ea24
mov edx, dword [eax + 4]
add edx, ebx
mov ecx, dword [eax + 8]
cmp ecx, 0
jle 0x46ea24
mov eax, dword [edx]
add eax, ebx
mov edi, dword [edx + 4]
sub ecx, edi
push ecx
sub edi, 8
shr edi, 1
add edx, 8
xor ecx, ecx
cmp edi, 0
je 0x46ea21
mov cx, word [edx]
add edx, 2
test ecx, 0xf000
je 0x46ea1e
and ecx, 0xfff
add ecx, eax
add dword [ecx], esi
dec edi
jmp 0x46ea01
pop ecx
jmp 0x46e9e8
ret
Function at 0x46e79d
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
add byte [eax], al
inc ecx
add al, byte [eax]
add byte [edi], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, bh
clc
clc
jae 0x46e781
imul ebx, dword [eax], 0x64
cld
outsb dx, byte [esi]
pop ecx
pushal
jae 0x46e793
sbb ch, bh
and ebx, dword [ebx]
push 0xd
in eax, 0xc5
xlatb
mov edi, 0x89905722
and eax, ebp
add eax, 0xcb000000
fcomp qword [ebp + 0x6f]
pop ebx
jae 0x46e7b1
call 0x46e79d
retf
imul ecx, eax, 0x12d73052
dec eax
insb byte es:[edi], dx
je 0x46e75e
push 0xefbbd7a2
add ebx, 0xffffffb4
add ebx, 0xffffffb4
jmp 0x46e7bd
cmp dword [ebx], 0
clc
jmp 0x46e7da
je 0x46e97d
jae 0x46e80e
inc edx
xor esi, dword [ecx - 0xa]
pop ebp
xor al, bh
aaa
or edx, dword [esi]
mov eax, ds
sahf
mov cl, 0xd0
sar bl, 0x56
xchg ecx, eax
test eax, 0x968f9af1
sal dword [ecx + 0x37e576fc], 0xd6
out 0xdb, al
ret
mov ecx, ebx
jae 0x46e81b
jb 0x46e860
adc dword [ebx - 0x59131f02], edi
push cs
add ebx, 4
jmp 0x46e82f
mov edx, dword [ebx]
jmp 0x46e835
add edx, ebx
clc
jmp 0x46e85e
mov eax, dword [ebx + 4]
add al, 0xeb
sub bh, dh
mov edi, 0x5b4c3fe0
js 0x46e8df
jmp 0x46e88b
idiv byte [esi + 0x6a4f826c]
xchg dword [edi], edx
sbb al, 0x9d
pop edx
xchg edx, eax
adc cl, ah
fist word [ecx + ebx*4]
dec ebp
pop esp
fcmove st(0), st(7)
push esp
mov cl, dl
shl byte [eax], 1
test dword [ebx + 0x35], 0x815aa976
sub dh, dh
out 0x10, al
xchg esp, eax
sub dword [edx], 0x9410e6f6
jmp 0x46e8b5
add edx, 4
jmp 0x46e8d4
sub eax, 1
stc
jmp 0x46e901
mov esp, 0xa633561
cmc
inc eax
sub bh, byte [ebx]
pop es
pop eax
cmp al, byte [edx - 0x6e]
pop ss
sbb byte [ebx + 0x238002f1], bl
pop edx
add al, 6
sub al, 0xa8
sbb al, 0xfd
rcr dword [ebp + 0x52], 1
cwde
xchg edi, esp
jne 0x46e861
jb 0x46e91e
cmc
and ch, ch
test byte [esi], al
pop ds
lodsd eax, dword [esi]
cmp al, 0x24
call 0xe93a302f
or dl, dh
dec edi
clc
scasb al, byte es:[edi]
lodsd eax, dword [esi]
add ebx, 8
jmp 0x46e948
sub dword [ecx], 1
stc
jmp 0x46e954
jne 0x46e81e
jb 0x46e978
bound ebp, qword [esi - 0x2d]
cld
sar esp, cl
test al, 0x9b
mov bl, byte [eax + 0x4c]
leave
cmc
jl 0x46e95e
rcr byte [eax], 1
cmpsd dword [esi], dword es:[edi]
xchg ecx, eax
jecxz 0x46e9cc
sal dword [edi], cl
sal dword fs:[eax], 0xbd
cmp al, byte [esi - 0x18]
and al, 0
add byte [eax], al
call 0x46e9a1
jmp 0x46e995
popal
stc
jmp 0x46e99c
jmp fcn.0044fd57
call fcn.0046ea25
add esp, 8
pop ebx
pop eax
mov esi, ebx
sub esi, 0x400000
je 0x46ea24
mov edx, dword [eax + 4]
add edx, ebx
mov ecx, dword [eax + 8]
cmp ecx, 0
jle 0x46ea24
mov eax, dword [edx]
add eax, ebx
mov edi, dword [edx + 4]
sub ecx, edi
push ecx
sub edi, 8
shr edi, 1
add edx, 8
xor ecx, ecx
cmp edi, 0
je 0x46ea21
mov cx, word [edx]
add edx, 2
test ecx, 0xf000
je 0x46ea1e
and ecx, 0xfff
add ecx, eax
add dword [ecx], esi
dec edi
jmp 0x46ea01
pop ecx
jmp 0x46e9e8
ret
Function at 0x4738c2
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4735cc
sub esi, esi
and eax, eax
sub esp, 4
mov dword [esp], esi
pop esi
call fcn.00473911
add esi, 1
add eax, 1
xor dword [ecx], edx
or eax, eax
add ecx, 2
add eax, 0x52abc31e
sub esi, esi
cmp ecx, edi
jl fcn.004738c2
inc eax
add eax, 0x5446a565
add eax, 0xdf127fc7
ret
Function at 0x401c3c
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x18], 1
mov eax, dword [edi + 0x440]
je 0x401cf9
cmp eax, dword [edi + 0x438]
jae 0x401cc3
push ebx
mov ebx, 0x10000
mov esi, dword [edi + 0x440]
mov eax, dword [edi + 0x434]
and esi, 0x1ffff
mov ecx, dword [edi + 0x45c]
mov edx, dword [edi + 0x454]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
inc dword [edi + 0x45c]
cmp dword [edi + 0x45c], ebx
jne 0x401cab
push dword [edi + 0x20]
push ebx
push 1
push dword [edi + 0x454]
call fcn.0041375f
add esp, 0x10
and dword [edi + 0x45c], 0
inc dword [edi + 0x440]
mov eax, dword [edi + 0x440]
inc dword [edi + 8]
cmp eax, dword [edi + 0x438]
jb 0x401c5e
pop ebx
and dword [edi + 0x43c], 0
pop edi
pop esi
ret
mov esi, dword [edi + 0x440]
mov eax, dword [edi + 0x434]
and esi, 0x1ffff
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
inc dword [edi + 8]
inc dword [edi + 0x440]
mov eax, dword [edi + 0x440]
cmp eax, dword [edi + 0x438]
jb 0x401ccd
jmp 0x401cc3

Function at 0x402aaa
Capabilities:
Parse pe header

Disassembly:
cmp byte [ecx + 0xd], 0
je 0x402abb
mov dword [ecx + 0x10], 8
xor al, al
jmp 0x402b27
and dword [ecx + 0x10], 0
mov edx, dword [ecx + 8]
push esi
test edx, edx
je 0x402b17
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x402b0e
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x402b05
movzx edx, word [eax + 4]
mov esi, 0x14c
cmp dx, si
je 0x402af6
mov esi, 0x8664
cmp dx, si
jne 0x402b05
push 3
pop edx
cmp word [eax + 0x5c], dx
je 0x402b1e
mov word [eax + 0x5c], dx
jmp 0x402b1e
mov dword [ecx + 0x10], 7
jmp 0x402b1e
mov dword [ecx + 0x10], 6
jmp 0x402b1e
mov dword [ecx + 0x10], 1
xor eax, eax
cmp dword [ecx + 0x10], eax
pop esi
sete al
ret 4

Function at 0x402b2a
Capabilities:
Parse pe header

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0xd], 0
je 0x402b40
mov dword [esi + 0x10], 8
xor al, al
jmp 0x402b91
and dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x402b82
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402b79
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x402b70
call main
test eax, eax
je 0x402b89
mov dword [edi + 8], eax
jmp 0x402b89
mov dword [esi + 0x10], 7
jmp 0x402b89
mov dword [esi + 0x10], 6
jmp 0x402b89
mov dword [esi + 0x10], 1
xor eax, eax
cmp dword [esi + 0x10], eax
sete al
pop edi
pop esi
pop ecx
ret
Function at 0x402b95
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xd], 0
je 0x402ba9
mov dword [esi + 0x10], 8
xor al, al
pop esi
ret
and dword [esi + 0x10], 0
mov eax, dword [esi + 8]
push edi
test eax, eax
je 0x402c05
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402bfc
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x402bf3
movzx eax, word [edi + 4]
mov ecx, 0x14c
cmp ax, cx
je 0x402be4
mov ecx, 0x8664
cmp ax, cx
jne 0x402bf3
push dword [edi + 0x58]
mov ecx, esi
call main
mov dword [edi + 0x58], eax
jmp 0x402c0c
mov dword [esi + 0x10], 7
jmp 0x402c0c
mov dword [esi + 0x10], 6
jmp 0x402c0c
mov dword [esi + 0x10], 1
xor eax, eax
cmp dword [esi + 0x10], eax
pop edi
sete al
pop esi
ret

Function at 0x402d01
Capabilities:
Parse pe header

Disassembly:
and dword [ecx + 0x10], 0
mov edx, dword [ecx + 8]
push esi
test edx, edx
je 0x402d57
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x402d4e
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x402d45
movzx edx, word [eax + 4]
mov esi, 0x14c
cmp dx, si
jne 0x402d3b
and dword [ecx + 0x10], 0
mov eax, dword [eax + 0x58]
pop esi
ret
mov esi, 0x8664
cmp dx, si
je 0x402d32
mov dword [ecx + 0x10], 7
jmp 0x402d5e
mov dword [ecx + 0x10], 6
jmp 0x402d5e
mov dword [ecx + 0x10], 1
xor eax, eax
pop esi
ret
Function at 0x4075d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x4075e4
pop dword [ebp - 0x14]
mov eax, 0x4075e4
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x23c460d6
sub dword [ebp - 0x24], 0xd5721b8b
mov dword [ebp - 0x20], 0x2b913654
add dword [ebp - 0x20], 0x6a215f1
mov dword [ebp - 0x1c], 0x8746065d
add dword [ebp - 0x1c], 0xc5063dd1
mov dword [ebp - 0x18], 0x710d4e67
add dword [ebp - 0x18], 0x8ef2b199
lea eax, [ebp - 0x24]
push eax
mov eax, 0x566127c7
add eax, 0xa9e1788d
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xa69db889
add dword [ebp - 0x24], 0xcdd4b0cd
mov dword [ebp - 0x20], 0x7c6a9b08
add dword [ebp - 0x20], 0xc501c66d
mov dword [ebp - 0x1c], 0x7e6f0029
add dword [ebp - 0x1c], 0xe5006c43
mov dword [ebp - 0x18], 0x7c72da22
sub dword [ebp - 0x18], 0x7c72da22
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xdf03c848
add eax, 0x213ed810
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3effe
push 0
call eax
mov ecx, 0x43f1
xor esi, esi
add esi, eax
mov edx, 0x98072643
sub edx, 0x97b27a43
add edx, dword [ebp - 0x14]
mov ebx, 0x18b84b7b
sub ebx, 0x1b87addf
sub dword [ebp - 0xc], esi
mov edi, dword [edx]
sub dword [ebp - 0xc], 0xe7f23fa6
add edi, ebx
xor dword [ebp - 0x10], 0xafa0ee3c
mov dword [esi], edi
add dword [ebp - 0xc], 0xb0b44efa
add esi, 4
add edx, 4
loop 0x4076fd
add eax, 0x10297
mov ebx, eax
add eax, 5
mov ecx, 0xa173164c
sub ecx, 0xa133164c
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x40d417
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x20], edi
jne 0x40d451
test byte [esi], 2
je 0x40d451
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x40d451
push 0x38
call main
pop ecx
test eax, eax
je 0x40d445
push ebx
mov ecx, eax
call main
jmp 0x40d447
mov eax, edi
mov ecx, eax
mov dword [esi + 0x20], eax
call main
cmp dword [esi + 0x24], edi
jne 0x40d48d
mov eax, dword [esi]
test al, 4
je 0x40d48d
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x40d48d
shr eax, 3
test al, 1
jne 0x40d48d
push 0x38
call main
pop ecx
test eax, eax
je 0x40d480
push ebx
mov ecx, eax
call main
mov edi, eax
mov dword [esi + 0x24], edi
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.0040d68f
pop edi
pop esi
pop ebx
ret

Function at 0x40d6b8
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
cmp dword [edi], 0
je 0x40d717
push ebx
lea ebx, [esi + 0x34]
push dword [ebx]
push ebx
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp eax, 0x1f6
je 0x40d716
add esi, 0x14
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
push 0x1f6
push dword [edi]
call dword [sym.imp.kernel32.dll_TerminateThread]
push 0x3e8
push dword [edi]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.0040d3b8
push 0x1f6
push ebx
call dword [sym.imp.kernel32.dll_InterlockedExchange]
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop esi
ret
Function at 0x40d833
Capabilities:
Read file on windows

Disassembly:
push 0x14
mov eax, 0x428d2f
call fcn.00417869
mov edi, ecx
lea esi, [edi + 0x34]
push 0x1f5
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
push 0xffff
call main
mov ebx, eax
mov eax, 0xffff
push eax
mov dword [edi + 0x10], eax
call main
pop ecx
pop ecx
push 0
mov dword [edi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 0xffff
push ebx
push dword [edi + 0x2c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x40d947
cmp dword [ebp - 0x10], 0
jbe 0x40d944
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x10]
add eax, ecx
cmp dword [edi + 0x10], eax
jae 0x40d903
mov eax, dword [edi + 0xc]
add eax, dword [ebp - 0x10]
mov esi, dword [edi + 8]
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
jns 0x40d8ce
fadd qword [0x4379d8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fmul qword [0x4379b8]
call main
push eax
mov dword [edi + 0x10], eax
call main
push dword [edi + 0xc]
mov dword [edi + 8], eax
push esi
push dword [edi + 8]
call fcn.00412770
push esi
call fcn.00412769
mov ecx, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [edi + 0xc]
add eax, dword [edi + 8]
push ecx
push ebx
push eax
call fcn.00412770
mov eax, dword [ebp - 0x10]
add esp, 0xc
add dword [edi + 0xc], eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push 0
lea eax, [ebp - 0x10]
push eax
push 0xffff
push ebx
push dword [edi + 0x2c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x40d88f
mov esi, dword [ebp - 0x18]
push ebx
call fcn.00412769
pop ecx
mov edi, 0x1f6
push edi
push esi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
mov eax, edi
call fcn.00417846
ret
Function at 0x40e5f1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x428da0
call fcn.00417869
mov ecx, dword [ebp + 0xc]
call fcn.00401715
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 1
push ebx
push str.SoftwareAutoIt_v3AutoIt
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e629
xor al, al
jmp 0x40e6bc
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push str.Include
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e6b1
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call main
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call main
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x1c]
push eax
push esi
push ebx
push ebx
push str.Include
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e69c
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
push esi
mov word [esi + eax*2], cx
mov ecx, dword [ebp + 0xc]
call main
mov bl, 1
mov eax, dword [ebp - 0x18]
dec dword [eax]
jne 0x40e6b1
push eax
call fcn.00412769
push esi
call fcn.00412769
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.00417846
ret

Function at 0x40ebf1
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x24
mov eax, 0x428e41
call fcn.00417869
push ecx
lea ecx, [ebp - 0x30]
call main
xor ebx, ebx
lea ecx, [ebp - 0x30]
push 0x433988
mov dword [ebp - 4], ebx
call main
mov esi, dword [ebp - 0x30]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40eca2
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x40ec40
push ebx
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x40ec45
jmp 0x40eca6
cmp eax, 3
jne 0x40eca8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], eax
inc dword [eax]
push 0x433988
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call main
cmp eax, 0xffffffff
je 0x40ec98
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x20]
call main
lea ecx, [ebp - 0x20]
call fcn.0040ebf1
test al, al
je 0x40ec96
push ebx
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
setne al
mov bl, al
lea ecx, [ebp - 0x20]
call fcn.004015bf
jmp 0x40eca8
test al, 0x10
je 0x40eca8
mov bl, 1
lea ecx, [ebp - 0x30]
call fcn.004015bf
mov al, bl
call fcn.00417846
ret

Function at 0x4107f5
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 1
jne 0x41081b
push dword [esi + 0x448]
mov eax, dword [esi + 0xc]
push dword [esi + 0x444]
add eax, dword [esi + 4]
push eax
call fcn.00412770
add esp, 0xc
jmp 0x410834
push dword [esi + 0x20]
push dword [esi + 0x448]
push 1
push dword [esi + 0x444]
call fcn.0041375f
add esp, 0x10
mov eax, dword [esi + 0x448]
add dword [esi + 0xc], eax
and dword [esi + 0x448], 0
pop esi
ret