joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fe50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x448b9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov al, byte [esp + 0x28]
mov dword [esi + 0xc], ebx
mov byte [esi + 8], al
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov cl, byte [esp + 0x28]
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x18], cl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dl, byte [esp + 0x3c]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x20], esp
mov dword [esi], fcn.0042ff60
push ebx
mov ecx, edi
mov byte [esp + 0x34], 3
mov byte [edi], dl
call fcn.00404b50
mov eax, dword [0x44a130]
lea ecx, [esp + 0x4c]
push eax
push ebx
push ecx
mov ecx, edi
call fcn.00404950
sub esp, 0x10
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0x44], 4
call fcn.004045a0
mov eax, dword [esp + 0x48]
mov ecx, esi
push eax
mov byte [esp + 0x44], 3
call fcn.0042ff60
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x42ff19
mov al, byte [ecx - 1]
cmp al, bl
je 0x42ff0f
cmp al, 0xff
je 0x42ff0f
dec al
mov byte [ecx - 1], al
jmp 0x42ff19
dec ecx
push ecx
call fcn.0043d8b0
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x30], ebx
cmp ecx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
je 0x42ff49
mov al, byte [ecx - 1]
cmp al, bl
je 0x42ff3f
cmp al, 0xff
je 0x42ff3f
dec al
mov byte [ecx - 1], al
jmp 0x42ff49
dec ecx
push ecx
call fcn.0043d8b0
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 0x24
Function at 0x433530
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40c
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [0x453d24]
mov esi, dword [esp + 0x41c]
test ecx, ecx
push edi
mov byte [esp + 0x13], 0
je 0x433581
mov ebx, dword [esp + 0x424]
mov eax, dword [ecx]
push ebx
push esi
call dword [eax + 0x10]
mov eax, dword [0x453d24]
test eax, eax
je 0x433588
cmp byte [eax + 0x90], 1
jne 0x433588
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x40c
ret 8
mov ebx, dword [esp + 0x424]
call fcn.004325b0
test al, al
je 0x4335a0
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x40c
ret 8
cmp dword [ebp], 0
je 0x433732
mov al, byte [ebp + 8]
mov dl, bl
inc al
lea edi, [esp + 0x23]
mov byte [ebp + 8], al
mov cl, al
mov eax, ebx
mov byte [esp + 0x22], cl
sar eax, 8
mov byte [esp + 0x1e], al
mov ecx, ebx
not al
mov byte [esp + 0x20], al
mov eax, ecx
not dl
shr ecx, 2
mov byte [esp + 0x1c], 0xcf
mov byte [esp + 0x1d], 0x33
mov byte [esp + 0x1f], bl
mov byte [esp + 0x21], dl
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 7]
xor cl, cl
test esi, esi
jle 0x433607
mov dl, byte [esp + eax + 0x1c]
add cl, dl
inc eax
cmp eax, esi
jl 0x4335fc
mov byte [esp + ebx + 0x23], cl
add ebx, 8
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp]
push eax
lea eax, [esp + 0x20]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
xor bl, bl
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 4]
sub eax, edi
cmp eax, ecx
ja 0x433720
mov ecx, dword [ebp]
lea eax, [esp + 0x11]
push 1
push eax
mov edx, dword [ecx]
call dword [edx + 0xc]
cmp eax, 1
jne 0x433638
mov al, byte [esp + 0x11]
mov cl, byte [esp + 0x13]
test bl, bl
mov byte [esp + 0x13], al
jne 0x43368f
cmp cl, 0xcf
jne 0x433638
cmp al, 0x33
jne 0x433638
mov byte [esp + 0x21c], cl
mov byte [esp + 0x21d], al
mov bl, 1
mov esi, 2
jmp 0x433638
mov byte [esp + esi + 0x21c], al
inc esi
cmp esi, 9
jne 0x433638
mov al, byte [esp + 0x21e]
mov cl, byte [esp + 0x21f]
xor dx, dx
xor bx, bx
mov dl, al
mov bl, cl
shl edx, 8
add edx, ebx
cmp dx, 1
je 0x4336c6
xor bl, bl
jmp 0x433638
mov dl, byte [esp + 0x220]
not dl
cmp al, dl
jne 0x4336bf
mov al, byte [esp + 0x221]
not al
cmp cl, al
jne 0x4336bf
mov al, byte [ebp + 8]
mov cl, byte [esp + 0x222]
cmp cl, al
jne 0x4336fb
mov cl, byte [esp + 0x223]
not cl
cmp al, cl
je 0x433704
xor bl, bl
xor esi, esi
jmp 0x433638
xor cl, cl
xor eax, eax
mov bl, byte [esp + eax + 0x21c]
add cl, bl
inc eax
cmp eax, 8
jl 0x433708
cmp cl, byte [esp + 0x224]
je 0x433741
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 3
mov dword [esp + 0x14], eax
jl 0x43361a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40c
ret 8
mov eax, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret 8
Function at 0x434970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x448f04
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x44a52c
mov dword [esp + 0x40], 3
call fcn.00434f00
mov eax, dword [esi + 0x74]
push eax
mov dword [esp + 0x18], eax
call fcn.0043d8b0
xor ebx, ebx
add esp, 4
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov eax, dword [esi + 0x6c]
cmp eax, ebx
mov byte [esp + 0x40], 1
je 0x434a88
mov edi, dword [esi + 0x4c]
add edi, 4
dec eax
cmp eax, ebx
mov dword [esi + 0x4c], edi
mov ecx, edi
mov dword [esi + 0x6c], eax
je 0x4349ec
cmp ecx, dword [esi + 0x48]
jne 0x434a7d
mov eax, dword [esi + 0x50]
lea ecx, [eax + 4]
mov dword [esi + 0x50], ecx
mov eax, dword [eax]
push eax
call fcn.0043d8b0
mov eax, dword [esi + 0x6c]
add esp, 4
cmp eax, ebx
jne 0x434a4e
lea ecx, [esp + 0x18]
call fcn.0043ba30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [esi + 0x44]
mov edi, dword [esp + 0x24]
mov ebp, edx
mov edx, dword [esp + 0x20]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
lea ebp, [esi + 0x54]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x64]
push eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
call fcn.0043d8b0
add esp, 4
jmp 0x434a7d
mov eax, dword [esi + 0x50]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x30]
call fcn.00436270
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
lea eax, [esi + 0x44]
mov dword [esi + 0x44], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x6c]
cmp eax, ebx
jne 0x4349d0
mov eax, dword [esi + 0x34]
push eax
mov dword [esp + 0x18], eax
call fcn.0043d8b0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
add esi, 4
add esp, 4
mov dword [esp + 0x14], esi
mov ebp, dword [esi + 0x18]
mov edi, dword [esi + 0x14]
cmp edi, ebp
mov dword [esp + 0x40], 4
je 0x434ac8
mov ecx, edi
call fcn.0041f130
add edi, 4
cmp edi, ebp
jne 0x434aba
mov eax, dword [esi + 0x14]
push eax
call fcn.0043d8b0
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov eax, dword [esi + 4]
add esp, 4
cmp eax, ebx
je 0x434b01
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x434af8
cmp al, 0xff
je 0x434af8
dec al
mov byte [ecx], al
jmp 0x434b01
push ecx
call fcn.0043d8b0
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x43d580
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x60
mov ecx, 8
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
push edi
lea edi, [esp + 0x10]
push 0x30
push 0x4522b4
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0043d4a0
mov esi, dword [esp + 0x80]
lea ecx, [esp + 0x1c]
add esp, 0xc
xor eax, eax
sub esi, ecx
mov bl, byte [esp + eax + 0x10]
lea ecx, [esp + eax + 0x10]
mov dl, byte [esi + ecx]
xor dl, bl
mov byte [esp + eax + 0x40], dl
inc eax
cmp eax, 0x30
jl 0x43d5b9
mov ebp, dword [esp + 0x7c]
xor ebx, ebx
lea ecx, [esp + 0x45]
lea esi, [ebp + 2]
movsx eax, byte [ecx - 5]
movsx edx, byte [ecx]
lea eax, [edx + eax*2]
movsx edx, byte [ecx - 4]
lea eax, [edx + eax*2]
movsx edx, byte [ecx - 3]
lea eax, [edx + eax*2]
movsx edx, byte [ecx - 2]
lea eax, [edx + eax*2]
movsx edx, byte [ecx - 1]
lea eax, [edx + eax*2]
lea edi, [ebx + eax]
mov eax, dword [edi*4 + 0x4523f4]
cdq
and edx, 7
add eax, edx
sar eax, 3
movsx eax, al
and eax, 0x80000001
jns 0x43d625
dec eax
or eax, 0xfffffffe
inc eax
mov byte [esi - 2], al
mov eax, dword [edi*4 + 0x4523f4]
cdq
and edx, 3
add eax, edx
sar eax, 2
movsx edx, al
and edx, 0x80000001
jns 0x43d648
dec edx
or edx, 0xfffffffe
inc edx
mov byte [esi - 1], dl
mov eax, dword [edi*4 + 0x4523f4]
cdq
sub eax, edx
sar eax, 1
movsx eax, al
and eax, 0x80000001
jns 0x43d666
dec eax
or eax, 0xfffffffe
inc eax
mov byte [esi], al
movsx edx, byte [edi*4 + 0x4523f4]
and edx, 0x80000001
jns 0x43d67d
dec edx
or edx, 0xfffffffe
inc edx
mov byte [esi + 1], dl
add ebx, 0x40
add ecx, 6
add esi, 4
cmp ebx, 0x200
jl 0x43d5dd
push 0x20
push 0x452374
push ebp
call fcn.0043d4a0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
Function at 0x43d6b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x50c
mov ecx, dword [esp + 0x514]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x520]
sub ecx, edi
lea ebp, [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 8
jmp 0x43d6e0
mov ecx, dword [esp + 0x18]
mov cl, byte [ecx + edi]
mov dl, byte [edi]
mov byte [esp + 0x13], cl
mov esi, ebp
lea ecx, [esp + 0x5c]
xor eax, eax
mov byte [esp + 0x12], dl
mov edx, 7
sub esi, ecx
mov bl, byte [esp + 0x13]
mov cl, dl
sar bl, cl
lea ecx, [esi + eax]
and bl, 1
mov byte [esp + ecx + 0x5c], bl
mov bl, byte [esp + 0x12]
mov cl, dl
sar bl, cl
lea ecx, [esi + eax]
and bl, 1
inc eax
dec edx
cmp eax, 8
mov byte [esp + ecx + 0x1c], bl
jl 0x43d6fc
mov eax, dword [esp + 0x14]
inc edi
add ebp, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x43d6dc
push 0x40
lea edx, [esp + 0x20]
push 0x451ed4
push edx
call fcn.0043d4a0
push 0x38
lea eax, [esp + 0x6c]
push 0x4520d4
push eax
call fcn.0043d4a0
add esp, 0x18
lea ebp, [esp + 0x11c]
mov ebx, 0x4521b4
mov ecx, dword [ebx]
lea edx, [esp + 0x5c]
push ecx
push edx
call fcn.0043d520
mov edi, ebp
add ebx, 4
add esp, 8
mov ecx, 0x10
lea esi, [esp + 0x5c]
add ebp, 0x40
cmp ebx, 0x4521f4
rep movsd dword es:[edi], dword [esi]
jl 0x43d767
push 0x30
lea eax, [esp + 0x4e0]
push 0x4521f4
push eax
call fcn.0043d4a0
mov ecx, 8
lea esi, [esp + 0x28]
lea edi, [esp + 0xe8]
lea edx, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x48]
lea edi, [esp + 0x28]
lea eax, [esp + 0x4e8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xa8]
push ecx
push edx
push eax
call fcn.0043d580
add esp, 0x18
xor eax, eax
mov cl, byte [esp + eax + 0x9c]
mov bl, byte [esp + eax + 0xdc]
xor cl, bl
mov byte [esp + eax + 0x1c], cl
inc eax
cmp eax, 0x20
jl 0x43d7e6
lea ebx, [esp + 0x49c]
mov ebp, 0xf
mov ecx, 8
lea esi, [esp + 0x3c]
lea edi, [esp + 0xdc]
push 0x30
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x20]
lea edi, [esp + 0x40]
push 0x4521f4
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.0043d4a0
lea edx, [esp + 0xa8]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
call fcn.0043d580
add esp, 0x18
xor eax, eax
mov cl, byte [esp + eax + 0x9c]
mov dl, byte [esp + eax + 0xdc]
xor cl, dl
mov byte [esp + eax + 0x1c], cl
inc eax
cmp eax, 0x20
jl 0x43d852
sub ebx, 0x40
dec ebp
jne 0x43d80c
push 0x40
lea edx, [esp + 0x20]
push 0x451fd4
push edx
call fcn.0043d4a0
mov eax, dword [esp + 0x534]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0043d4e0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50c
ret
Function at 0x4415e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x452dc0
cmp edx, dword [eax]
je 0x44160b
add eax, 8
inc ecx
cmp eax, 0x452e50
jl 0x4415fc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x452dc0]
jne 0x441739
mov eax, dword [0x453d3c]
cmp eax, 1
je 0x441713
test eax, eax
jne 0x44163c
cmp dword [0x452ce4], 1
je 0x441713
cmp edx, 0xfc
je 0x441739
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x441673
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00442d10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0043eef0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4416b6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0043eef0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x44aa9c
push edi
call fcn.00443db0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00442d10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00442d20
lea eax, [ebp - 0xa0]
push 0x44aa7c
push eax
call fcn.00442d20
push dword [esi + 0x452dc4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00442d20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00443d27
add esp, 0x2c
pop edi
jmp 0x441739
lea eax, [ebp + 8]
lea esi, [esi + 0x452dc4]
push 0
push eax
push dword [esi]
call fcn.0043eef0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4239a8
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00423a27
jae 0x4239b4
xor ecx, ecx
call fcn.00423a27
jae 0x4239de
xor eax, eax
call fcn.00423a27
jae 0x4239ef
mov al, 0x10
call fcn.00423a27
adc al, al
jae 0x4239d0
jne 0x423a1c
stosb byte es:[edi], al
jmp 0x4239b5
call fcn.00423a33
dec ecx
loop 0x4239fb
mov eax, ebp
call fcn.00423a31
jmp 0x423a1d
lodsb al, byte [esi]
shr eax, 1
je 0x423a43
adc ecx, 2
mov ebp, eax
jmp 0x423a1d
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00423a31
cmp eax, 0x7d00
jae 0x423a1b
cmp eax, 0x500
jae 0x423a1c
cmp eax, 0x7f
ja 0x423a1d
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4239b5
pop ebp
ret 8

Function at 0x4319a8
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00431a27
jae 0x4319b4
xor ecx, ecx
call fcn.00431a27
jae 0x4319de
xor eax, eax
call fcn.00431a27
jae 0x4319ef
mov al, 0x10
call fcn.00431a27
adc al, al
jae 0x4319d0
jne 0x431a1c
stosb byte es:[edi], al
jmp 0x4319b5
call fcn.00431a33
dec ecx
loop 0x4319fb
mov eax, ebp
call fcn.00431a31
jmp 0x431a1d
lodsb al, byte [esi]
shr eax, 1
je 0x431a43
adc ecx, 2
mov ebp, eax
jmp 0x431a1d
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00431a31
cmp eax, 0x7d00
jae 0x431a1b
cmp eax, 0x500
jae 0x431a1c
cmp eax, 0x7f
ja 0x431a1d
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4319b5
pop ebp
ret 8
Function at 0x78fbea
Capabilities:
Encode data using xor

Disassembly:
pushal
lea esp, [esp + 0x20]
je 0x7927f7
call fcn.007870f5
test eax, 0x3cab41f5
test byte [eax - 0x19293401], dh
hlt
inc ecx
stosd dword es:[edi], eax
cmp al, 0x84
mov al, 0xff
retf
bt si, 0xf
pushal
mov word [esp], ax
cmc
test eax, 0x80000000
pushal
pushfd
lea esp, [esp + 0x44]
je 0x7927f7
pushfd
call fcn.0078ee2f
shl dword [ebx - 0x59], 1
sbb ebx, dword [edi + 0x2f1ba793]
xchg ebx, eax
daa
jnp 0x78617a
jecxz 0x78617c
out 0x97, eax
invalid
jmp 0x768576
cmp al, bl
pushfd
lea esp, [esp + 4]
jle 0x7861ac
test eax, 0x80000000
jmp 0x78c622
lahf
mov ax, 0xfef1
cwde
mov eax, 1
push 0x1c9e95be
mov byte [esp], cl
pushal
push edi
lea esp, [esp + 0x28]
jmp fcn.0078725c
pushfd
push 0x68ba1a2
lea esp, [esp + 0x2c]
je 0x78cc9b
pushfd
mov dword [ebp - 8], eax
lea esp, [esp + 4]
daa
rol ah, 6
mov eax, dword [esi]
stc
test eax, eax
push 0x3d77265c
lea esp, [esp + 4]
je 0x7909b2
jmp 0x78c9f5
Function at 0x405720
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46fddb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00466285
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4057a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046067b
mov eax, dword [eax]
push 0x48cb90
push eax
call fcn.0045312a
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00466510
test bl, bl
je 0x4057a2
push 0x48cb90
lea ecx, [esp + 0xc]
call fcn.004668ec
push 0x48cb9c
lea ecx, [esp + 0xc]
call fcn.004668ec
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4057de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00466510
jmp 0x4058a9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x405862
lea edx, [esp + 0x7c]
push 0x48cb98
push edx
call fcn.0045312a
add esp, 8
test eax, eax
je 0x405862
lea eax, [esp + 0x7c]
push 0x48cb94
push eax
call fcn.0045312a
add esp, 8
test eax, eax
je 0x405862
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4057f2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00466510
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4060c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x406122
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x406130
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46fe5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x493fb8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x406268
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406196
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00466510
xor eax, eax
jmp 0x4062df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00466699
push esi
lea ecx, [esp + 0xc]
call fcn.00466928
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4062bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.004060c0
test eax, eax
jne 0x4062bd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocStringLen
mov ecx, edi
call fcn.004060c0
test eax, eax
jne 0x4062bd
lea eax, [esp + 0x14]
push 0x48cbb4
push eax
call fcn.00453660
mov esi, eax
add esp, 8
test esi, esi
jne 0x40629c
lea ecx, [esp + 0x14]
push 0x48cbb0
push ecx
call fcn.004535e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40629c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40629f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00466649
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4061ae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00466510
xor eax, eax
jmp 0x4062df
mov byte [esi], 0
push 0x48cbac
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00466510
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41a990
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x471048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0041b510
lea edx, [esp + 0x18]
push eax
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x41aa39
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0041a620
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push edi
lea ecx, [esp + 0x4c]
call fcn.0046a129
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.004309c0
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.0046a19b
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14