joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78155e6a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78155e97
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__gmtime64_s
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78155eb5
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
jmp 0x78155e92
test byte [esp + 0xc], 0x80
je 0x78155ec1
and eax, 0xfffffffe
jmp 0x78155ec4
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x78155ea6
xor eax, eax
pop esi
ret

Function at 0x7818145d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x7818146c
pop dword [ebp - 0xc]
mov eax, 0xa1ecfc22
add eax, 0xd62b184a
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x4200b
push 0
mov eax, 0x17c91ca9
add eax, 0x60502417
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0xf7366d66
add ecx, 0x8c9d959
mov esi, eax
mov edi, 0xcc46db04
add edi, 0xabd5d4fc
add edi, dword [ebp - 0xc]
mov edx, 0x31d27176
add edx, 0x13151655
add dword [ebp - 8], 0xaeff8104
mov ebx, dword [edi]
mov dword [ebp - 8], 0xc43186cd
xor ebx, edx
xor dword [ebp - 4], 0xcc5d1bff
mov dword [esi], ebx
add dword [ebp - 4], 0x2a9a3a82
add esi, 0xe8bb3dfc
add esi, 0x1744c208
add edi, 0x82f2f942
add edi, 0x7d0d06c2
loop 0x781814cb
add eax, 0x10dcf
mov ebx, eax
add eax, 0x99a646e0
sub eax, 0x99a646db
mov ecx, 0x78130000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x420b50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [ecx + 0x1b0], 0
setne al
movzx edx, al
mov dword [esp + 4], edx
add ecx, 0x1b4
jmp 0x435910
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4359e0
mov ebx, dword [eax + 0x554]
test ebx, ebx
je 0x4359e0
push edi
push 0x44
lea edi, [esi + 0x1c]
push 0
push edi
call fcn.004f2440
fld dword [esi + 0x60]
fstp dword [edi]
add esp, 0xc
fld dword [esi + 0x64]
push edi
fstp dword [esi + 0x20]
push ebx
fld dword [esi + 0x68]
fstp dword [esi + 0x24]
fld dword [esi + 0x6c]
fstp dword [esi + 0x28]
fld dword [esi + 0x80]
fstp dword [esi + 0x2c]
fld dword [esi + 0x84]
fstp dword [esi + 0x30]
fld dword [esi + 0x88]
fstp dword [esi + 0x34]
fld dword [esi + 0x8c]
fstp dword [esi + 0x38]
fld dword [esi + 0x70]
fstp dword [esi + 0x3c]
fld dword [esi + 0x74]
fstp dword [esi + 0x40]
fld dword [esi + 0x78]
fstp dword [esi + 0x44]
fld dword [esi + 0x7c]
fstp dword [esi + 0x48]
fld dword [esi + 0x90]
fstp dword [esi + 0x4c]
fld dword [esi + 0x94]
fstp dword [esi + 0x50]
fld dword [esi + 0x98]
fstp dword [esi + 0x54]
fld dword [esi + 0x9c]
fstp dword [esi + 0x58]
fld dword [esi + 0xa0]
fstp dword [esi + 0x5c]
mov eax, dword [ebx]
mov ecx, dword [eax + 0xa8]
call ecx
xor edx, edx
test eax, eax
setge dl
pop edi
pop esi
pop ebx
dec edx
and edx, 0x80004005
mov eax, edx
ret 4
pop esi
mov eax, 0x80004005
pop ebx
ret 4
Function at 0x4eded0
Capabilities:
Encode data using xor

Disassembly:
push eax
or dword [eax], 0x46
test al, 0x2b
div dword [eax + 0x5703618f]
cli
ror dword [ecx], 0
adc byte [ebp + 0x72381cb], ah
out dx, al
inc edi
invalid
cmc
adc eax, 0x844332f1
adc ebp, ebx
aam 0xb6
and al, 0x31
pop ecx
pop ebp
les ecx, [ebp + 0x41]
dec edx
push ebp
inc eax
popfd
loope 0x4ede77
sbb eax, 0xc6063751
jno 0x4edf25
int3
xor al, 0xcf
jae 0x4ede97
push cs
stosd dword es:[edi], eax
movsb byte es:[edi], byte [esi]
mov ecx, 0xe4679576
invalid
xor ah, byte [edx]
invalid

Function at 0x4f33d2
Capabilities:
Encode data using xor

Disassembly:
inc ebp
nop
dec eax
cld
fisub word [ecx - 0x7b]
push 0xffffffffffffffc7
pop ebp
jo 0x4f3436
fsubr qword [esi + 0x37]
xchg ebx, eax
mov ecx, 0xcea50c39
lcall 0xf4a9, 0x6b5b5a6c
dec ebp
ja 0x4f3457
pop ss
mov al, 0xe4
xchg byte [eax + 0x57], ch
adc ah, cl
dec edi
mov eax, dword [0x99b764ef]
shl byte [edi], cl
fbstp tbyte [edi + 0x30]
sub byte [ebx - 0x1ef0287d], ch
mov ch, 0xfe
mov eax, 0xd0c68840
add ecx, dword [ebx]
std
cmp al, 0x3d
imul ebx, dword [esi - 0x57], 0xffffffc2
adc byte [edx + 0xcce0270], ch
cwde
xchg ebx, eax
loop 0x4f342b
mov al, byte [0xb9f72f0d]
wait
das
idiv dword [ecx - 0x21f6af65]
push eax
or esi, ebx
hlt
sahf
test al, 0x2d
pop edi
xor dword [edi - 0x21], ebp
and bh, byte [eax]
dec esi
push edi
cmpsd dword [esi], dword es:[edi]
call 0x590ca1b0
invalid
aaa
salc
push 0xfffffffffffffff9
jmp 0x4f3427
adc dword [edx - 0x75], esi
enter 0xffffffffffffe921, 0xffffffffffffffa1
mov edx, 0xcca55a7b
sar dword [esi + 0x5cdae018], cl
mov esi, 0x5cdae018
inc edx
arpl word [ebx], di
pop ds
clc
jle 0x4f34c2
fild dword [ecx + 0x52cf2723]
je 0x4f344e
sbb dh, byte [eax - 0x7b6d1501]
push esi
mov esp, 0x79fcfa8c
out dx, al
jge 0x4f3465
invalid
sbb al, 0x12
sub dh, byte [esi - 0x3c]
bound ebx, qword [ebx]
sbb dword [edi + ebp*8], edx
dec esp
inc esi
int1
xor al, 0x7c
retf
Function at 0x423890
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x4238b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4238b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4238a8
mov eax, 1
add ebx, ebx
jne 0x4238cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4238c0
jne 0x4238dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4238c0
xor ecx, ecx
sub eax, 3
jb 0x4238f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x423962
mov ebp, eax
add ebx, ebx
jne 0x4238fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x423908
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42392c
inc ecx
add ebx, ebx
jne 0x423918
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42390d
jne 0x423929
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42390d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42394c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42393d
jmp 0x4238ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42394c
add edi, ecx
jmp 0x4238ae
pop esi
mov edi, esi
mov ecx, 0x7ae
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42396a
cmp byte [edi], 1
jne 0x42396a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42396f
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x4239e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23730]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x237f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42399c
mov ecx, edi
jns 0x4239cb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x237fc]
or eax, eax
je 0x4239e1
mov dword [ebx], eax
add ebx, 4
jmp 0x4239b9
call dword [esi + 0x23804]
mov ebp, dword [esi + 0x23800]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x423a1b
sub esp, 0xffffff80
jmp 0x403bab
Function at 0x408037
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0x40803d
pop eax
sub eax, 0x3d
push eax
lea edi, [eax - 0x7000]
push edi
add word [edi + 0x65d8], 1
lea esi, [eax + 0x1ec]
or ebp, 0xffffffff
xor ebx, ebx
jmp 0x408066
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408060
mov eax, 1
add ebx, ebx
jne 0x408083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x408078
jne 0x408094
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408078
xor ecx, ecx
sub eax, 3
jb 0x408102
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40811e
mov ebp, eax
add ebx, ebx
jne 0x4080b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4080c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4080e4
inc ecx
add ebx, ebx
jne 0x4080d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x4080c5
jne 0x4080e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4080c5
add ecx, 2
cmp eax, 0xfffff300
adc ecx, 1
lea edx, [edi + eax]
cmp eax, 0xfffffffc
jle 0x408108
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4080f4
jmp 0x408066
mov eax, ebp
jmp 0x4080a8
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x408108
add edi, ecx
jmp 0x408066
pop esi
pop ebp
sub edi, dword [edi - 4]
push edi
lea edi, [esi]
mov ecx, 0xd7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40812f
cmp byte [edi], 2
jne 0x40812f
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x408134
pop edi
mov eax, dword [edi]
or eax, eax
je 0x408199
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6000]
add ebx, esi
push eax
add edi, 8
call dword [ebp]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40815c
push edx
mov ecx, edi
jns 0x408189
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [ebp + 4]
pop edx
mov dword [ebx], eax
add ebx, 4
jmp 0x408176
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4081ca
cmp al, 0xef
ja 0x4081bd
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40819f
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4081ac
popal
jmp 0x40265a
Function at 0x100296d3
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [edi + 0x74]
push eax
xor eax, eax
push eax
push edi
push dword [esp + 0x20]
push eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
test esi, esi
jne 0x1002971a
push dword [eax]
call sym.glib_lite.dll_Ordinal_353
push eax
push str.Error_creating_thread:__s.
push 0x10
push str.Glib
call sym.glib_lite.dll_Ordinal_182
add esp, 0x14
jmp 0x1002974e
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x1002974e
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.1002b259
mov esi, eax
push esi
push str.Error_closing_thread_handle:__s.
push 0x10
push str.Glib
call sym.glib_lite.dll_Ordinal_182
push esi
call sym.glib_lite.dll_Ordinal_105
add esp, 0x18
push 0xffffffffffffffff
push dword [edi + 0x8c]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
pop edi
pop esi
ret

Function at 0x1002b259
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x1002b268
pop dword [ebp - 0x38]
mov eax, 0xb606c41
add eax, 0x4a24627
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xf9d54838
sub dword [ebp - 0x48], 0xab8302ed
mov dword [ebp - 0x44], 0x87c344f8
sub dword [ebp - 0x44], 0x558ff8b3
mov dword [ebp - 0x40], 0x7e1f3812
sub dword [ebp - 0x40], 0x31d2f3e4
mov dword [ebp - 0x3c], 0x24b71ba5
sub dword [ebp - 0x3c], 0x24b71ba5
lea eax, [ebp - 0x48]
push eax
mov eax, 0xcf565f95
sub eax, 0xbf525e81
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x6436d1c8
sub dword [ebp - 0x48], 0xefc46872
mov dword [ebp - 0x44], 0x36ef4f03
add dword [ebp - 0x44], 0xa7d1272
mov dword [ebp - 0x40], 0xab4b53b2
sub dword [ebp - 0x40], 0x47dbe746
mov dword [ebp - 0x3c], 0xe06abd1a
add dword [ebp - 0x3c], 0x1f9542e6
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x8ae0f217
sub eax, 0x7adcf0bf
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3a069
push 0
call eax
mov ecx, 0xa54dac74
add ecx, 0x5ab296d4
xor ebx, ebx
add ebx, eax
mov edi, 0xd8c5818d
sub edi, 0xc8bc378d
add edi, dword [ebp - 0x38]
mov edx, 0x52eac8f2
add edx, 0x727d81bc
sub dword [ebp - 0x1c], ebx
mov esi, dword [edi]
sub dword [ebp - 0x10], edx
sub esi, edx
xor dword [ebp - 0x2c], 0x8cb35f77
mov dword [ebx], esi
add dword [ebp - 0x14], 0x8b3d34a8
add ebx, 4
add edi, 4
loop 0x1002b38c
add eax, 0xeaf51fa3
sub eax, 0xeaf41fb0
xor ebx, ebx
add ebx, eax
add eax, 0x9cb46f0e
add eax, 0x634b90f7
mov ecx, 0x6090e33e
sub ecx, 0x5090e33e
add ecx, dword [ebp - 0x38]
call ebx
Function at 0x401b00
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x401cbd
test esi, esi
je 0x401cbd
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push 0
push esi
push edi
call dword [0x41a950]
test eax, eax
je 0x401b5a
pop edi
mov eax, 0x80070005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402add
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00403530
add esp, 0xc
mov dword [ebp - 0x41c], 0x208
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], 0
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0x4133a8
push dword [ebp - 0x418]
call dword [0x41a94c]
test eax, eax
jne 0x401c22
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401bc0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x4133a4
xor eax, dword [ecx]
push dword [ebp - 0x418]
call dword [0x41a964]
push 0x4133a8
push dword [ebp - 0x418]
call dword [0x80000004]
add dword [eax], eax
add byte [eax], al
add al, 0
add byte [eax], al
add dword [eax], eax
add byte [eax], al
push eax
jb 0x401c7c
jbe 0x401c76
je 0x401c7c
add byte [eax - 1], bh
invalid
jge 0x401be4
pushal
add ebx, edx
add dword [edx], eax
add byte [eax], al
add byte [eax + 1], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add bh, bh
push edi
bound edx, qword gs:[esi + 0x69]
ja 0x401cb0
ja 0x401cb0
inc ebx
outsd dx, dword [esi]
jb 0x401ce8
inc ebx
outsd dx, dword [esi]
jb 0x401ced
push edi
bound edx, qword gs:[esi + 0x69]
ja 0x401cc2
inc ebx
outsd dx, dword [esi]
outsb dx, byte [esi]
je 0x401d07
outsd dx, dword [esi]
insb byte es:[edi], dx
insb byte es:[edi], dx
jb 0x401c9b
add byte [eax], al
add byte [eax], al
add al, bl
invalid
add al, 0
add byte [eax], al
add dword [eax], eax
add byte [eax], al
inc ecx
arpl word [ecx + ebp*2 + 0x76], si
popal
je 0x401d29
outsd dx, dword [esi]
outsb dx, byte [esi]
push esp
jns 0x401d35
add byte gs:[eax], al
loopne 0x401cc9
invalid
invalid
mov eax, 0x4dffffff
add byte [edi], dl
add byte [eax], al
imul edx, dword [0x400], 0xffffff80
add dword [eax], eax
add byte [eax], al
add al, 0
add byte [eax], al
add dword [eax], eax
add byte [eax], al
dec ecx
jae 0x401d9b
popal
arpl word [ebx + 0x61], bp
add byte [eax + 0xf], dh
add byte [eax], al
loopne 0x401da1
invalid
invalid
Function at 0x4063eb
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], 0
add byte [eax], al
add al, 0
add byte [eax], al
add dword [eax], eax
add eax, 0x74634178
imul esi, dword [esi + 0x61], 0x6e6f6974
push esp
jns 0x406475
dec edx
retf
add byte [ecx], bh
imul eax, dword [eax], 0x36
add byte [edx], bh
jp 0x40647e
push 0
xor al, 0
add byte [edi], dh
add byte [eax], dh
add byte [esi], ah
bound eax, qword [eax]
xor eax, dword [eax]
add byte [bx + si], bh
add byte gs:[eax + eax + 0x66], dh
add byte [esi], dh
add byte fs:[eax], ch
xor al, byte [eax]
xor al, byte [eax]
ja 0x4064a4
add byte cs:[ebp], ch
arpl word [eax], ax
popal
add byte [eax], al
add byte [eax], al
add byte [eax + 0x6effffff], ah
imul esp, dword [eax], 0
inc esp
push eax
jge 0x40647c
pushal
add ebx, edx
add dword [edx], eax
add byte [eax], al
add byte [eax], ch
pop es
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
Function at 0x4014a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4014bb
pop edi
pop ebx
pop ebp
ret 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4014f6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4014f2
nop dword [eax]
cmp esi, edx
jae 0x4014f6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4014e0
cmp esi, edx
jb 0x4014ff
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret 4
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x401a90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0x2c]
push esi
mov esi, ecx
mov ecx, dword [eax]
mov dword [esi], vtable.ATL::CImage.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov word [esi + 0x1c], 0
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov eax, dword [0x40d860]
cmp eax, dword [ecx + 4]
jle 0x401b33
push 0x40d860
call fcn.00407838
add esp, 4
cmp dword [0x40d860], 0xffffffff
jne 0x401b33
call fcn.00401a40
push 0x408cc0
call fcn.00407bc2
push 0x40d860
call fcn.004077f9
add esp, 8
push 0x40d874
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x40d88c]
push 0x40d874
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x403390
Capabilities:
Capture screenshot
Get common file path
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4088f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x40d024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4c
call esi
push 0x4d
mov dword [ebp - 0x118], eax
call esi
push 0x4e
mov edi, eax
call esi
mov ebx, eax
sub ebx, dword [ebp - 0x118]
push 0x4f
call esi
mov esi, eax
push 0
sub esi, edi
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x114], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push ebx
push dword [ebp - 0x114]
mov dword [ebp - 0x11c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [ebp - 0x11c]
mov dword [ebp - 0x120], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push edi
push dword [ebp - 0x118]
mov dword [ebp - 0x124], eax
push dword [ebp - 0x114]
push esi
push ebx
mov ebx, dword [ebp - 0x11c]
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [ebp - 0x120]
push esi
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [0x409600]
movq xmm0, qword [str.PS.jpg]
mov dword [ebp - 0x250], eax
mov ax, word [0x409604]
push 0xf2
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x24a]
push 0
push eax
movq qword [ebp - 0x258], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x403506
lea eax, [ebp - 0x258]
mov esi, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4034d0
lea edi, [ebp - 0x110]
sub eax, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4034e6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x120]
lea ecx, [ebp - 0x158]
call fcn.00401a90
push ecx
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x154], esi
call fcn.00402130
push ecx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x158]
call fcn.00401f50
push dword [ebp - 0x124]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x114]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0x158]
call fcn.00401b90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004076ea
mov esp, ebp
pop ebp
ret
Function at 0x4059d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40d024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
cmp dword [ebx + 0x38], 0
je 0x405b88
cmp byte [ebx + 0x3e], 0
je 0x405b88
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
sete al
test al, al
je 0x405a37
xor al, al
jmp 0x405b8a
sub esp, 8
lea ecx, [ebp - 0x28]
call fcn.00403e30
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
jmp 0x405a5a
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
cmp esi, 0x10
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, edi
lea ecx, [ebp - 0x28]
cmovae ecx, edi
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x405aa5
sub eax, 1
je 0x405aa9
sub eax, 2
je 0x405b7a
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00403dc0
mov al, bl
jmp 0x405b8a
mov byte [ebx + 0x3e], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp esi, 0x10
mov ebx, dword [ebp - 0x30]
cmovae eax, edi
sub ebx, eax
je 0x405ae5
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
cmp esi, 0x10
cmovae eax, edi
push dword [ecx + 0x4c]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x405a94
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x3e], 0
je 0x405b7a
test ebx, ebx
mov ebx, eax
jne 0x405a5a
mov ecx, dword [ebp - 0x18]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 8
jbe 0x405b6f
lea ebx, [ecx + 8]
cmp ebx, 0xfffffffe
ja 0x405b6f
cmp esi, ebx
jae 0x405b58
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.004060f0
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
test ebx, ebx
je 0x405a57
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp esi, 0x10
xorps xmm0, xmm0
cmovae ecx, edi
movq qword [ecx + eax], xmm0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x18], ebx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ebx], 0
jmp 0x405a51
test ebx, ebx
jne 0x405b2d
cmp esi, 0x10
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x28]
cmovae eax, edi
mov byte [eax], bl
jmp 0x405a51
push str.string_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.00403dc0
mov al, bl
jmp 0x405b8a
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004076ea
mov esp, ebp
pop ebp
ret