joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4034d0
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, 0x443c64
call fcn.0042d550
sub esp, 0x104
push dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x110]
push eax
call fcn.0042d930
lea eax, [ebp - 0x110]
push eax
call fcn.004036ca
add esp, 0xc
test eax, eax
je 0x403525
lea eax, [ebp - 0x110]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043aad3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x40376a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp + 0xc]
xor esi, esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403795
xor eax, eax
jmp 0x4037c3
push dword [ebp + 0x14]
call fcn.0042dd30
pop ecx
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4037b8
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4037c6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x103
push eax
push 1
push 0
mov dword [ebp - 8], 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4037f5
xor eax, eax
leave
ret
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 0x14]
push eax
lea eax, [ebp - 8]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
add eax, esi
pop esi
cmp byte [eax], 0
je 0x40381e
and byte [eax], 0
push 1
pop eax
leave
ret
Function at 0x40483b
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x404857
xor eax, eax
jmp 0x40491b
push ebx
xor eax, eax
push edi
push eax
push eax
push eax
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, dword [esi + 8]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
push 8
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
push dword [ebp + 8]
mov esi, dword [esi + 0xc]
mov dword [ebp - 4], eax
call ebx
push 0xa
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call ebx
xor ecx, ecx
cmp dword [ebp - 8], ecx
jge 0x4048a8
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], ecx
jge 0x4048b0
mov dword [ebp - 4], ecx
cmp edi, dword [ebp - 0xc]
jle 0x4048b8
mov edi, dword [ebp - 0xc]
cmp esi, eax
jle 0x4048be
mov esi, eax
sub edi, dword [ebp - 8]
sub esi, dword [ebp - 4]
mov ebx, edi
push esi
push ebx
mov dword [ebp - 0xc], esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
push 0xcc0020
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 0xc]
push ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x10]
push edi
call esi
push dword [ebp + 8]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, eax
call esi
push edi
call esi
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x404a52
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
push ebx
push esi
cmp ax, 1
push edi
ja 0x404a69
push 1
pop ebx
jmp 0x404a98
push 4
pop ebx
cmp ax, bx
jbe 0x404a98
push 8
pop ebx
cmp ax, bx
jbe 0x404a98
push 0x10
pop ebx
cmp ax, bx
jbe 0x404a98
push 0x18
pop ebx
cmp ax, bx
jbe 0x404a98
mov cx, 0x20
cmp cx, ax
sbb ebx, ebx
and ebx, 0xffffffe4
add ebx, 0x20
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
xor esi, esi
push eax
mov dword [ebp - 0x28], 0x28
mov dword [ebp - 0x24], edi
mov word [ebp - 0x1c], 1
mov word [ebp - 0x1a], bx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00404c2e
pop ecx
mov edx, dword [ebp - 0x28]
movzx ecx, ax
movzx eax, bx
imul eax, edi
add eax, 0x1f
add edx, ecx
shr eax, 3
and eax, 0x1ffffffc
imul eax, dword [ebp + 0xc]
add eax, edx
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, esi
mov dword [ebp + 0xc], eax
jne 0x404b09
xor eax, eax
jmp 0x404bf0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0xa
lea esi, [ebp - 0x28]
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push 4
mov dword [ebp + 0x10], eax
pop esi
cmp bx, si
jne 0x404b2e
mov dword [eax + 0x20], 0x10
jmp 0x404b3b
cmp bx, 8
jne 0x404b3b
mov dword [eax + 0x20], 0x100
mov ecx, dword [eax]
push 0x10
add ecx, eax
mov eax, dword [eax + 0x20]
cdq
pop ebx
xor edi, edi
idiv ebx
test eax, eax
jle 0x404be4
and dword [ecx], 0
add ecx, esi
mov eax, dword [ebp + 0x10]
push 0x10
mov dword [ecx], 0x800000
add ecx, esi
pop ebx
mov dword [ecx], 0x8000
add ecx, esi
mov dword [ecx], 0x808000
add ecx, esi
mov dword [ecx], 0x80
add ecx, esi
mov dword [ecx], 0x800080
add ecx, esi
mov dword [ecx], 0x8080
add ecx, esi
mov dword [ecx], 0xc0c0c0
add ecx, esi
mov dword [ecx], 0x808080
add ecx, esi
mov dword [ecx], 0xff0000
add ecx, esi
mov dword [ecx], 0xff00
add ecx, esi
mov dword [ecx], 0xffff00
add ecx, esi
mov dword [ecx], 0xff
add ecx, esi
mov dword [ecx], 0xff00ff
add ecx, esi
mov dword [ecx], 0xffff
add ecx, esi
mov dword [ecx], 0xffffff
mov eax, dword [eax + 0x20]
cdq
idiv ebx
add ecx, esi
inc edi
cmp edi, eax
jl 0x404b52
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d883
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 0
push eax
mov esi, ecx
push 4
push edi
push dword [esi]
call ebx
test eax, eax
setne dl
test dl, dl
je 0x40d96c
cmp dword [ebp + 8], 4
jne 0x40d96c
cmp dword [ebp + 0xc], 0
jne 0x40d8ce
mov ecx, dword [edi]
mov eax, 0xf0ff
and ecx, eax
cmp ecx, eax
sete al
jmp 0x40d8fb
mov eax, dword [edi]
mov ecx, eax
and ecx, 0xcf8ff
cmp ecx, dword [esi + 0x6d4]
jne 0x40d8f9
mov ecx, 0xc0000000
and eax, ecx
sub eax, ecx
movzx ecx, byte [esi + 0x6d8]
neg eax
sbb eax, eax
inc eax
cmp eax, ecx
je 0x40d926
xor al, al
test al, al
jne 0x40d926
push 1
push 0
push 0xfffffffffffffffd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
setne al
test al, al
je 0x40d96c
lea eax, [ebp + 8]
push 0
push eax
push 4
push edi
push dword [esi]
jmp 0x40d89f
test dl, dl
je 0x40d96c
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
and ecx, 0xff0000
shr edx, 0x10
or ecx, edx
mov edx, eax
and edx, 0xff00
shl eax, 0x10
or edx, eax
lea eax, [esi + 0x6dc]
shr ecx, 8
shl edx, 8
or ecx, edx
mov dword [edi], ecx
inc dword [eax]
mov eax, dword [eax]
lea ecx, [esi + 0x6e0]
cmp dword [ecx], eax
jge 0x40d968
mov dword [ecx], eax
mov al, 1
jmp 0x40d96e
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40d975
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea eax, [ebp - 4]
push 0
lea edi, [esi + 4]
push eax
push ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne byte [ebp + 0xb]
and dword [esi + 0x6d0], 0
mov dword [esi + 0x6c8], ebx
dec ebx
mov dword [esi + 0x6cc], edi
shr ebx, 2
lea eax, [esi + ebx*4 + 4]
cmp eax, edi
jb 0x40d9e6
mov ecx, dword [eax]
mov edx, ecx
mov ebx, ecx
and edx, 0xff0000
shr ebx, 0x10
or edx, ebx
mov ebx, ecx
and ebx, 0xff00
shl ecx, 0x10
or ebx, ecx
shr edx, 8
shl ebx, 8
or edx, ebx
mov dword [eax], edx
sub eax, 4
jmp 0x40d9b5
cmp byte [ebp + 0xb], 0
je 0x40d9fc
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x6c8]
jne 0x40d9fc
push 1
pop eax
jmp 0x40d9fe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4110ae
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4441b7
call fcn.0042d550
sub esp, 0x110
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x14], esi
mov eax, dword [0x452298]
push 1
pop ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
and byte [ebp - 0x11c], 0
cmp dword [ebp + 0xc], esi
mov byte [ebp - 4], 2
je 0x4111f8
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x4111f8
lea eax, [ebp - 0x11c]
push eax
push esi
push 0x44e73c
push 0x4568d8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x11c]
push eax
call fcn.0042dd30
cmp eax, 3
pop ecx
jae 0x41114a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp + 8]
and byte [ebp - 0x11c], 0
lea eax, [ebp - 0x10]
push eax
call fcn.0043a848
mov dword [ebp - 0x14], ebx
jmp 0x411207
push ecx
lea eax, [ebp - 0x11c]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0043ab41
call fcn.004034d0
lea eax, [ebp - 0x11c]
push eax
call fcn.0042dd30
push dword [ebp + 0x14]
lea ecx, [ebp - 0x11c]
sub ecx, 3
and byte [eax + ecx], 0
lea eax, [ebp - 0x11c]
push eax
call fcn.0042d940
add esp, 0x10
lea eax, [ebp - 0x11c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
cmp edi, 0xffffffff
je 0x411237
mov eax, dword [ebp + 0x10]
cmp eax, esi
mov dword [ebp + 0x10], eax
je 0x4111d9
mov esi, 0x7fff
cmp dword [ebp + 0x10], esi
ja 0x4111bd
movzx esi, word [ebp + 0x10]
push esi
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0xffffffff
je 0x411230
sub dword [ebp + 0x10], esi
add dword [ebp - 0x18], esi
cmp dword [ebp + 0x10], 0
jne 0x4111af
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x10]
push eax
call fcn.0043ac10
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0043a848
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0043aad3
and byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.0043aad3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
and byte [ebp - 0x11c], 0
jmp 0x4111f8

Function at 0x412015
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x456d3c]
cmp dword [eax - 8], 0
je 0x412031
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0x456d3c
jmp fcn.0043aa5e
ret
Function at 0x41213c
Capabilities:
Get common file path

Disassembly:
mov eax, 0x444240
call fcn.0042d550
sub esp, 0x108
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
mov dword [ebp - 4], esi
je 0x412287
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x412287
lea eax, [ebp - 0x114]
push eax
push esi
push 0x44e134
push 0x4568d8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x114]
push eax
call fcn.0042dd30
cmp eax, 3
pop ecx
jae 0x4121a7
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x412277
push ecx
lea eax, [ebp - 0x114]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0043ab41
call fcn.004034d0
lea eax, [ebp - 0x114]
push eax
call fcn.0042dd30
push dword [ebp + 0x14]
lea ecx, [ebp - 0x114]
sub ecx, 3
and byte [eax + ecx], 0
lea eax, [ebp - 0x114]
push eax
call fcn.0042d940
add esp, 0x10
lea eax, [ebp - 0x114]
push esi
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41219b
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x41223c
mov esi, 0x7fff
cmp edi, esi
ja 0x412211
movzx esi, di
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0xffffffff
je 0x412228
sub edi, esi
add dword [ebp - 0x10], esi
jmp 0x412201
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor esi, esi
jmp 0x412277
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
call fcn.00412015
lea eax, [ebp - 0x114]
mov ecx, 0x456d3c
push eax
call fcn.0043ac10
push 0
push dword [ebp + 0x10]
push dword [0x456d3c]
call fcn.00412032
add esp, 0xc
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0043aad3
mov eax, esi
jmp 0x412295
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0043aad3
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x412503
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x456d90]
cmp dword [eax - 8], 0
je 0x41251f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0x456d90
jmp fcn.0043aa5e
ret
Function at 0x412757
Capabilities:
Get common file path

Disassembly:
mov eax, 0x444268
call fcn.0042d550
sub esp, 0x108
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
mov dword [ebp - 4], esi
je 0x4128a2
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x4128a2
lea eax, [ebp - 0x114]
push eax
push esi
push 0x44e134
push 0x4568d8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x114]
push eax
call fcn.0042dd30
cmp eax, 3
pop ecx
jae 0x4127c2
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x412892
push ecx
lea eax, [ebp - 0x114]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0043ab41
call fcn.004034d0
lea eax, [ebp - 0x114]
push eax
call fcn.0042dd30
push dword [ebp + 0x14]
lea ecx, [ebp - 0x114]
sub ecx, 3
and byte [eax + ecx], 0
lea eax, [ebp - 0x114]
push eax
call fcn.0042d940
add esp, 0x10
lea eax, [ebp - 0x114]
push esi
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4127b6
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x412857
mov esi, 0x7fff
cmp edi, esi
ja 0x41282c
movzx esi, di
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0xffffffff
je 0x412843
sub edi, esi
add dword [ebp - 0x10], esi
jmp 0x41281c
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor esi, esi
jmp 0x412892
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
call fcn.00412503
lea eax, [ebp - 0x114]
mov ecx, 0x456d90
push eax
call fcn.0043ac10
push 0
push dword [ebp + 0x10]
push dword [0x456d90]
call fcn.00412566
add esp, 0xc
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0043aad3
mov eax, esi
jmp 0x4128b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0043aad3
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x412b23
Capabilities:
Create thread

Disassembly:
xor eax, eax
push 0x456cb0
push eax
push dword [0x456b54]
push 0x411d90
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xfffffffffffffff1
push eax
mov dword [0x456cb4], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
ret

Function at 0x412d33
Capabilities:
Create thread

Disassembly:
xor eax, eax
push 0x456b3c
push eax
push 0x456a10
push 0x411eb5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xfffffffffffffff1
push eax
mov dword [0x456b40], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
ret
Function at 0x41397b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4443c0
call fcn.0042d550
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00413a9a
cmp dword [ebp + 8], ebx
lea esi, [edi + 0xbc]
mov byte [esi], bl
je 0x413a6d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x413a6d
push esi
push ebx
push 0x44e73c
push 0x4568d8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
call fcn.0042dd30
cmp eax, 3
pop ecx
jae 0x4139e9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov byte [esi], bl
jmp 0x413a6d
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.0043ab41
call fcn.004034d0
push esi
call fcn.0042dd30
mov byte [eax + edi + 0xb9], bl
push dword [ebp + 0x10]
push esi
call fcn.0042d940
add esp, 0x10
push ebx
push esi
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4139d9
mov eax, dword [ebp + 0xc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x413a58
mov edi, 0x7fff
cmp dword [ebp + 0xc], edi
ja 0x413a3b
movzx edi, word [ebp + 0xc]
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0xffffffff
je 0x413a8c
sub dword [ebp + 0xc], edi
add dword [ebp - 0x10], edi
cmp dword [ebp + 0xc], ebx
jne 0x413a2d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll__lclose]
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0043aad3
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x4139d9

Function at 0x41410c
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [ecx]
xor ecx, ecx
cmp dword [eax - 8], ecx
jne 0x414118
xor eax, eax
ret
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
Function at 0x420180
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4201b2
push esi
call fcn.00423a60
add esp, 4
cmp dword [esi + 0x40], 0
je 0x4201ab
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 0x420231
mov eax, dword [esi + 0x1b0]
cmp dword [eax + 0x10], 0
je 0x42021a
mov eax, dword [esi + 8]
test eax, eax
je 0x4201d5
push esi
call dword [eax]
add esp, 4
push esi
mov eax, dword [esi + 0x1b0]
call dword [eax]
add esp, 4
test eax, eax
je 0x420216
cmp eax, 2
je 0x42021a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4201c8
cmp eax, 3
je 0x4201fb
cmp eax, 1
jne 0x4201c8
inc dword [ecx + 4]
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 8]
cmp dword [ecx + 4], eax
jl 0x4201c8
mov edx, dword [esi + 0x13c]
add edx, eax
mov dword [ecx + 8], edx
jmp 0x4201c8
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00420260
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x420251
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x12
mov edx, dword [esi + 0x10]
mov eax, dword [esi]
mov dword [eax + 0x18], edx
mov eax, dword [esi]
call dword [eax]
add esp, 4
push esi
call fcn.00420260
add esp, 4
pop esi
ret

Function at 0x420260
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push ebp
cmp dword [esi + 0x10], 0xcc
je 0x42028e
push esi
mov eax, dword [esi + 0x1a0]
call dword [eax]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x10], 0xcc
add esp, 4
xor edi, edi
mov eax, dword [esi + 0x1a0]
cmp dword [eax + 8], edi
je 0x4202ff
lea ebx, [esi + 0x8c]
mov ecx, dword [ebx]
cmp dword [esi + 0x74], ecx
jbe 0x4202e2
mov eax, dword [esi + 8]
test eax, eax
je 0x4202c5
push esi
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 8]
mov dword [ecx + 8], eax
mov ebp, dword [esi + 8]
call dword [ebp]
add esp, 4
mov ebp, dword [ebx]
push edi
push ebx
mov eax, dword [esi + 0x1a4]
push edi
push esi
call dword [eax + 4]
add esp, 0x10
cmp dword [ebx], ebp
jne 0x4202a1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
mov eax, dword [esi + 0x1a0]
call dword [eax + 4]
add esp, 4
mov eax, dword [esi + 0x1a0]
push esi
call dword [eax]
add esp, 4
mov dword [ebx], edi
jmp 0x420290
cmp dword [esi + 0x44], 1
sbb eax, eax
pop ebp
add eax, 0xce
pop edi
mov dword [esi + 0x10], eax
mov eax, 1
pop esi
pop ebx
ret
Function at 0x429d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x24
push ebx
mov ecx, dword [eax + 0x1c8]
mov dword [esp + 8], ecx
push esi
push edi
add ecx, 0x20
mov dword [esp + 0xc], ecx
push ebp
push ecx
push eax
call fcn.00429eb0
mov ecx, dword [esp + 0x40]
add esp, 8
mov esi, eax
cmp dword [ecx + 0x78], 3
jne 0x429da2
mov ecx, dword [ecx]
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x18], esi
add ecx, 0x18
mov ebx, dword [esp + 0x14]
mov edx, dword [eax]
mov dword [ecx + 4], edx
mov eax, dword [ebx + 0x24]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x38]
mov edx, dword [ebx + 0x28]
mov dword [ecx + 0xc], edx
mov ecx, dword [eax]
mov dword [ecx + 0x14], 0x5d
jmp 0x429db4
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov dword [ecx + 0x14], 0x5e
mov ecx, dword [eax]
mov dword [ecx + 0x18], esi
push 1
mov ebx, dword [eax]
push eax
call dword [ebx + 4]
mov eax, dword [esp + 0x40]
add esp, 8
mov ecx, dword [eax + 0x78]
mov ebx, dword [eax + 4]
push ecx
push esi
push 1
push eax
call dword [ebx + 8]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], esi
add esp, 0x10
cmp dword [ecx + 0x78], 0
mov dword [esp + 0x28], 0
jle 0x429e96
mov edi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x24]
cdq
idiv ecx
mov ebx, eax
mov dword [esp + 0x18], ecx
xor eax, eax
mov dword [esp + 0x20], eax
cmp ecx, eax
jle 0x429e75
mov dword [esp + 0x1c], eax
lea eax, [ecx - 1]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
call fcn.00429f90
mov edx, dword [esp + 0x2c]
add esp, 0x10
cmp esi, edx
jle 0x429e63
xor ecx, ecx
test ebx, ebx
jle 0x429e5b
mov ebp, dword [edi]
inc ecx
add ebp, edx
cmp ebx, ecx
mov byte [ebp + ecx - 1], al
jg 0x429e4e
add edx, dword [esp + 0x24]
cmp edx, esi
jl 0x429e48
add dword [esp + 0x1c], ebx
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x18], eax
jg 0x429e24
add edi, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], ebx
inc dword [esp + 0x28]
add dword [esp + 0x2c], 4
mov ecx, dword [esp + 0x28]
cmp dword [eax + 0x78], ecx
jg 0x429dfc
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], esi
pop esi
pop ebx
add esp, 0x24
ret