joyce8/EMBER2024-capa huggingface dataset:
Function at 0x23696798
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
push 0x10
pop ecx
mov esi, 0x236a3fb8
mov edi, dword [eax + 4]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x23696891
mov ecx, dword [ebp + 8]
xor edi, edi
sub ecx, edi
je 0x236968a4
dec ecx
jne 0x23696887
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0xec]
push edx
lea edx, [ebp - 0x6c]
push edx
lea edx, [ebp - 0x38]
add ecx, 0x104
push edx
push ecx
mov dword [ebp - 0x10], 1
push dword [eax]
mov dword [ebp - 4], ecx
push dword [eax + 4]
call fcn.236965a9
add esp, 0x18
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x178]
push str._sCLSID
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 0xc
lea eax, [ebp - 0x178]
mov edi, SQLAllocEnv
push eax
push edi
call esi
lea eax, [ebp - 0xec]
push eax
push edi
call esi
lea eax, [ebp - 0x38]
push eax
call fcn.236966c2
mov eax, dword [ebx + 4]
pop ecx
push 0x10
mov esi, 0x236a3fb8
mov edi, dword [eax + 8]
pop ecx
xor edx, edx
mov dword [ebp - 0xc], edi
repe cmpsb byte [esi], byte es:[edi]
je 0x23696887
lea ecx, [ebp - 0xec]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push dword [ebp - 4]
push dword [eax]
push dword [ebp - 0xc]
call fcn.236965a9
add esp, 0x18
lea eax, [ebp - 0x38]
push eax
call fcn.236966c2
pop ecx
cmp dword [ebp - 0x10], 0
je 0x23696992
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x236967a6
push 1
pop eax
jmp 0x23696994
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0xec]
push edx
lea edx, [ebp - 0x6c]
push edx
lea edx, [ebp - 0x38]
lea ecx, [esi + 0x104]
push edx
push ecx
mov dword [ebp - 4], ecx
push dword [eax]
push dword [eax + 4]
call fcn.236965a9
add esp, 0x18
lea eax, [ebp - 0xec]
push esi
push dword [ebx + 4]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.23696602
add esp, 0x10
cmp eax, edi
je 0x23696992
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xec]
push eax
push SQLAllocEnv
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x23696992
lea eax, [ebp - 0x38]
push edi
push eax
lea eax, [ebp - 0xec]
push str.CLSID
push eax
push 0x236ab748
push dword [ebp - 8]
call fcn.23695a0f
add esp, 0x18
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx + 4]
push 0x10
pop ecx
mov esi, 0x236a3fb8
mov edi, dword [eax + 8]
xor edx, edx
mov dword [ebp - 0xc], edi
repe cmpsb byte [esi], byte es:[edi]
je 0x23696887
lea ecx, [ebp - 0xec]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push dword [ebp - 4]
push dword [eax]
push dword [ebp - 0xc]
call fcn.236965a9
add esp, 0x18
lea eax, [ebp - 0xec]
push dword [ebp + 0xc]
push dword [ebx + 4]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.23696602
add esp, 0x10
jmp 0x23696887
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x236999b5
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ax, word [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov word [esi + 0x74], ax
mov eax, dword [esi + 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [esi]
push esi
call dword [eax + 4]
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x2369993b
push 0x1fa0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
je 0x23699a1f
push edi
mov word [esi + 0xa0], 1
mov dword [esi + 0xa4], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push pe_nt_image_headers32
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, dword [esi + 0x58]
push esi
mov eax, dword [esi]
call dword [eax + 8]
mov ebx, 0x80004005
jmp 0x23699a16

Function at 0x2369c77b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x236a99a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x2369c7e9
push 0x74
push 1
call fcn.23679ff5
mov esi, eax
add esp, 8
test esi, esi
je 0x2369c7df
mov ecx, dword [0x236a99a0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x2369c7df
push esi
call fcn.2367a086
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.2369c220
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x2369e97a
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x236ac4d8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x2369e99e
add eax, 8
inc ebp
cmp eax, 0x236ac568
jb 0x2369e98f
cmp ecx, dword [ebp*8 + 0x236ac4d8]
jne 0x2369eb45
mov eax, dword [0x236ac9e0]
cmp eax, 1
je 0x2369eb07
test eax, eax
jne 0x2369e9ca
cmp dword [0x236a9984], 1
je 0x2369eb07
cmp ecx, 0xfc
je 0x2369eb45
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x2369ea05
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x2369ea4e
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x236a62e8
add ebx, ecx
push ebx
call fcn.2369ed5c
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x236a62c6
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + str.xbj_b]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.2369fd23
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x236a99c0]
test eax, eax
je 0x2369eb18
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x2369eb22
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + str.xbj_b]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x2369f8d7
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x2369f903
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x236a99c0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x2369f93e
push 2
push ebp
push ecx
call fcn.2369f7e5
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x2369faa0
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x2369f9e8
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x2369f999
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x2369f986
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x2369f969
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x2369fa91
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x2369f9e4
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x2369f965
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x2369fa80
mov eax, dword [esp + 0x18]
test eax, eax
je 0x2369fa3c
cmp eax, 5
jne 0x2369fa25
call fcn.2369f70b
mov dword [eax], 9
call fcn.2369f714
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.2369f698
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x2369fa5c
cmp byte [ebp], 0x1a
jne 0x2369fa5c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.2369f70b
mov dword [eax], 0x1c
call fcn.2369f714
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x2369f9e4
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x2369fad1
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x2369f9e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x2369f9e8
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x606008], 0x8088405
inc edx
mov dword [ebx + 0x606008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
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 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f04c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x5ea53a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f09b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
jmp 0x41f0ba
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f12c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f115
test esi, esi
jbe 0x41f12c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f107
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f12c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0e4
jmp 0x41f12c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f12c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ea541
ret
Function at 0x420284
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5eb89f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202bf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202d8
lea eax, [ebp - 0x10]
mov edx, dword [0x608348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202eb
lea eax, [ebp - 0x10]
mov edx, dword [0x608348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4202f7
adc edx, 0
mov edx, dword [edx*4 + 0x607178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420471
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420464
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420464
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420402
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420402
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420402
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420402
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420464
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420464
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420489
inc ebx
cmp ebx, 0x19
jne 0x4202b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5eb8a6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x7ed2982
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x62a07339
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402530
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
push 0
lea eax, [esp + 0x44]
mov dword [esp + 0x34], ecx
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x48], 1
push eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call dword [sym.imp.8_I]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
mov dword [esp + 0x20], eax
call esi
push 0
mov edi, eax
call esi
push dword [esp + 0x1c]
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
push esi
push dword [esp + 0x24]
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push dword [esp + 0x28]
mov dword [esp + 0x48], eax
push edi
push esi
push 0
push 0
push dword [esp + 0x38]
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
push dword [esp + 0x34]
call dword [sym.imp.8_Gd]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.8_GdipGetImageEncodersSize]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4026b2
push eax
call dword [sym.imp.v_P]
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
test edi, edi
je 0x4026b2
push edi
push dword [esp + 0x24]
push dword [esp + 0x1c]
call dword [sym.imp.8_V]
xor esi, esi
cmp dword [esp + 0x14], esi
jbe 0x4026a8
add edi, 0x30
nop
mov ecx, dword [edi]
mov eax, str.image_jpeg
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40268d
test dx, dx
je 0x402689
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40268d
add ecx, 4
add eax, 4
test dx, dx
jne 0x402667
xor eax, eax
jmp 0x402692
sbb eax, eax
or eax, 1
test eax, eax
je 0x402721
inc esi
add edi, 0x4c
cmp esi, dword [esp + 0x14]
jb 0x402660
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.v_0_1]
add esp, 4
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x50]
push 0
push eax
push dword [esp + 0x38]
push edi
call dword [sym.imp.8_GdipSaveImageToFile]
push dword [esp + 0x38]
test eax, eax
push dword [esp + 0x1c]
sete byte [esp + 0x1b]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x2c]
call esi
push dword [esp + 0x1c]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call dword [sym.imp.8_GdipDisposeImage]
push dword [esp + 0x3c]
call dword [sym.imp.8_0]
mov ecx, dword [esp + 0x6c]
mov al, byte [esp + 0x13]
pop edi
pop esi
xor ecx, esp
call fcn.00402829
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x28]
imul eax, esi, 0x4c
push ecx
movups xmm0, xmmword [eax + ecx]
movups xmmword [esp + 0x54], xmm0
jmp 0x4026a9

Function at 0x40382c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408020]
jne 0x403836
repz ret
jmp fcn.00403c71