joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6934ab50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x69467064
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6946705c]
sub esp, 4
test ebx, ebx
je 0x6934aba5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6934ab9e
test esi, esi
je 0x6934ab9e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6934ab80
mov dword [esp], 0x69467064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6934aee0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x69340000], 0x5a4d
jne 0x6934af05
mov ecx, dword [0x6934003c]
cmp dword [ecx + 0x69340000], 0x4550
lea edx, [ecx + 0x69340000]
je 0x6934af10
ret
cmp word [ecx + 0x69340018], 0x10b
jne 0x6934af05
push esi
movzx eax, word [ecx + 0x69340014]
push ebx
movzx esi, word [ecx + 0x69340006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x69340000
test si, si
je 0x6934af58
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6934af4e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6934af5a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6934af40
xor eax, eax
pop ebx
pop esi
ret

Function at 0x69350290
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x694670c0], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
sub esp, 0x10
mov dword [0x694670c4], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x69350300
mov dword [esp + 4], 0x693501a0
mov dword [esp], eax
mov dword [0x694670bc], eax
call fcn.69359b50
test eax, eax
jne 0x69416d79
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x693502ea
Function at 0x69359b70
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x6946702c]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp], 1
mov ebx, dword [esp + 0x40]
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
sub esp, 4
test eax, eax
je 0x69359bad
mov dword [esp], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
sub esp, 4
test eax, eax
jne 0x69359be0
mov dword [esp], 0x6941f176
mov ecx, ebx
call fcn.693e2e80
sub esp, 4
mov eax, dword [esp + 0x2c]
sub eax, dword [0x6946702c]
jne 0x69359c53
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp], 1
call dword [sym.imp.USER32.dll_GetClipboardData]
sub esp, 4
mov esi, eax
test eax, eax
je 0x69359c48
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub esp, 4
test eax, eax
je 0x69359c48
mov dword [esp], eax
lea edi, [esp + 0x14]
mov ecx, edi
call fcn.693e2e80
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
sub esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp], edi
mov ecx, ebx
call fcn.693e2790
mov ecx, edi
sub esp, 4
call fcn.693e3660
jmp 0x69359bbe
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x69359bad
call fcn.69341590
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x6935c170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x69420df5
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x69420e59]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.6934b1c0
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x8c], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.69359a70
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.69415980
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x6941e248], 0
jne 0x6935c296
mov byte [0x6941e248], 1
call fcn.694135a0
test eax, eax
je 0x6935c264
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.6934a340
mov dword [esp], 2
mov esi, dword [fcn.693592d0]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x6935c254
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x694215f9
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x69416164
jmp 0x6941615c
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x6935c21a
mov dword [esp], 2
call dword [0x6941d0a0]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x69416157
mov dword [esp], 2
call dword [0x6941d0a0]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x694215a8
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov dword [esp], edi
call fcn.69359a38
call fcn.694138d0
call fcn.69413490
call fcn.694135d0
jmp 0x69416157
Function at 0x10f94058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10f941a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10f9407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10f9406a
add dl, dl
jne 0x10f94089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10f940dc
xor eax, eax
add dl, dl
jne 0x10f94096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10f9417d
add dl, dl
jne 0x10f940a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10f940b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10f940bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10f940c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10f940d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10f94075
mov eax, 1
add dl, dl
jne 0x10f940ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10f940f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10f940e1
sub eax, ebx
mov ebx, 1
jne 0x10f94128
mov ecx, 1
add dl, dl
jne 0x10f9410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10f94119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10f94105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10f94075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10f9413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10f9414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10f94136
cmp eax, 0x7d00
jae 0x10f9416d
cmp eax, 0x500
jb 0x10f94168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10f94075
cmp eax, 0x7f
ja 0x10f94170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10f94075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10f9419e
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 0x10f94075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0xd1873e9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x4f223157
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4025e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x435210
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
push ebx
mov dword [esp + 0x10], esi
call fcn.0040c866
mov eax, dword [esp + 0x60]
mov ecx, esi
push eax
mov dword [esp + 0x5c], ebx
call fcn.0040c8e5
lea edi, [esi + 0x14]
mov dword [esp + 0x58], 1
mov ecx, edi
mov dword [esp + 0x60], edi
call fcn.004031f0
mov dword [edi + 8], 0xffffffff
mov byte [edi + 0xc], bl
push ebx
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 2
mov dword [edi], 0x4396b8
mov dword [edi + 4], 0x4396ac
mov dword [esp + 0x28], ebx
call fcn.00406020
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x10], bl
lea ecx, [esp + 0x10]
push 1
push ecx
lea edx, [esp + 0x30]
mov bl, 4
push str.InputBuffer
push edx
mov byte [esp + 0x68], bl
call fcn.00407060
add esp, 0x10
push eax
mov ecx, edi
mov byte [esp + 0x5c], 5
call fcn.0040d7bc
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov byte [esp + 0x58], bl
mov ebx, ecx
xor eax, eax
mov edx, edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
push edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.004213f7
add esp, 4
lea ecx, [esp + 0x28]
call fcn.00403440
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebx, ecx
xor eax, eax
shr ecx, 2
mov edx, edi
rep stosd dword es:[edi], eax
mov ecx, ebx
push edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.004213f7
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword [esi], 0x4395e0
mov dword [esi + 4], 0x4395d8
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 4
Function at 0x404050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x435504
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
xor ebx, ebx
push ebp
push esi
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x24]
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 0x14], edi
je 0x40408c
mov dword [edi + 4], 0x4399a4
mov ebx, 1
push 0
mov ecx, edi
call fcn.00405650
lea esi, [edi + 0x10]
or bl, 0xc0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], esi
mov dword [esi + 4], 0x439994
mov dword [esi + 0x38], 0x439984
mov dword [esi + 0xe4], 0x439978
mov dword [esp + 0x10], ebx
push 0
lea ecx, [esi + 0xe0]
mov byte [esp + 0x24], 1
call fcn.00405200
or bh, 1
mov dword [esp + 0x10], ebx
push 0
mov ecx, esi
mov dword [esp + 0x24], 2
call fcn.004052c0
lea ebx, [esi + 0x30]
mov dword [esp + 0x20], 3
mov ecx, ebx
call fcn.00405410
lea ebp, [esi + 0x34]
push 0
mov ecx, ebp
mov byte [esp + 0x24], 4
call fcn.00405420
lea ecx, [esi + 0x60]
mov byte [esp + 0x20], 5
call fcn.00410267
lea ecx, [esi + 0x74]
mov byte [esp + 0x20], 6
call fcn.00410267
lea ecx, [esi + 0x88]
mov byte [esp + 0x20], 7
call fcn.00410267
lea ecx, [esi + 0x9c]
mov byte [esp + 0x20], 8
call fcn.00410267
lea ecx, [esi + 0xb0]
mov byte [esp + 0x20], 9
call fcn.00410267
lea ecx, [esi + 0xc4]
mov byte [esp + 0x20], 0xa
call fcn.00410267
mov eax, dword [esi + 4]
mov dword [esi], 0x439958
mov dword [ebx], 0x439948
mov dword [ebp], 0x43993c
mov ecx, dword [eax + 8]
mov dword [ecx + esi + 4], 0x43992c
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
mov dword [eax + esi + 4], 0x439900
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0xc]
mov dword [edx + esi + 4], 0x4398e8
mov eax, dword [edi + 4]
mov dword [edi], 0x4398bc
mov dword [edi + 8], 0x4398b0
mov dword [edi + 0xc], 0x4398a8
mov ecx, dword [eax + 4]
mov eax, edi
mov dword [ecx + edi + 4], 0x439890
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xc]
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x405db0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4358eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 4
call fcn.00409f16
push 0
mov ecx, esi
mov dword [esp + 8], eax
call fcn.0040c866
push 0
mov dword [esp + 0x54], 0
mov dword [esi + 0x30], 0
call fcn.00406810
add esp, 4
mov dword [esi + 0x34], 0
mov eax, dword [esp + 0x58]
mov ecx, esi
push eax
mov byte [esp + 0x54], 1
mov dword [esi], 0x439cb0
mov dword [esi + 4], 0x439ca8
call fcn.0040c8e5
lea ecx, [esp + 4]
push 1
push ecx
lea edx, [esp + 0x18]
push str.DecodingLookupArray
push edx
call fcn.00407c60
add esp, 0x10
lea ecx, [esp + 8]
lea edx, [esp + 0x24]
push ecx
push str.Log2Base
push edx
mov ecx, eax
mov byte [esp + 0x5c], 2
call fcn.00407d00
push eax
mov ecx, esi
mov byte [esp + 0x54], 3
call fcn.0040a4c6
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 4
call fcn.00403440
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 2
call fcn.00403440
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 1
call fcn.00403440
mov ecx, dword [esp + 0x48]
mov dword [esi], 0x439480
mov dword [esi + 4], 0x439474
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x50
ret 4

Function at 0x406230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x435958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
lea eax, [esp + 0x28]
push esi
xor ebx, ebx
push eax
mov dword [esp + 0xc], ebx
call fcn.00406900
mov esi, eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], ebx
push ecx
call fcn.00406340
push 0x445124
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x58], 1
call fcn.00406e10
push esi
mov esi, dword [esp + 0x64]
push eax
push esi
mov byte [esp + 0x64], 2
call fcn.00406f30
mov eax, dword [esp + 0x30]
add esp, 0x20
cmp eax, ebx
je 0x4062b7
mov cl, byte [eax - 1]
dec eax
cmp cl, bl
je 0x4062ae
cmp cl, 0xff
je 0x4062ae
dec cl
mov byte [eax], cl
jmp 0x4062b7
push eax
call fcn.004213f7
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
cmp eax, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
je 0x4062e7
mov cl, byte [eax - 1]
dec eax
cmp cl, bl
je 0x4062de
cmp cl, 0xff
je 0x4062de
dec cl
mov byte [eax], cl
jmp 0x4062e7
push eax
call fcn.004213f7
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], ebx
cmp eax, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
je 0x406328
mov cl, byte [eax - 1]
dec eax
cmp cl, bl
je 0x40631f
cmp cl, 0xff
je 0x40631f
dec cl
mov byte [eax], cl
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
push eax
call fcn.004213f7
add esp, 4
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x408dd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
push edi
je 0x408e0d
mov edi, dword [esp + 0x18]
shr edi, 2
je 0x408e2b
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
sub esi, edx
mov eax, dword [esi + edx]
add edx, 4
mov ecx, eax
ror ecx, 8
rol eax, 8
xor eax, ecx
and eax, 0xff00ff
xor eax, ecx
dec edi
mov dword [edx - 4], eax
jne 0x408ded
pop edi
pop esi
ret
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp esi, edi
je 0x408e2b
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret

Function at 0x417937
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4375e9
call fcn.00424ab8
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
cmp dword [ebp + 8], ebx
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], ebx
je 0x417991
mov dword [esi + 4], 0x439994
mov dword [esi + 0x38], 0x439984
mov dword [esi + 0xe4], 0x439978
mov dword [ebp - 0x10], 3
push ebx
lea ecx, [esi + 0xe0]
mov dword [ebp - 4], ebx
call fcn.00405200
mov dword [ebp - 0x10], 7
mov dword [ebp - 4], 1
push ebx
mov ecx, esi
call fcn.004052c0
lea edi, [esi + 0x34]
push ebx
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.00405420
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 3
call fcn.00410267
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 4
call fcn.00410267
lea ecx, [esi + 0x88]
mov byte [ebp - 4], 5
call fcn.00410267
lea ecx, [esi + 0x9c]
mov byte [ebp - 4], 6
call fcn.00410267
lea ecx, [esi + 0xb0]
mov byte [ebp - 4], 7
call fcn.00410267
lea ecx, [esi + 0xc4]
mov byte [ebp - 4], 8
call fcn.00410267
mov eax, dword [esi + 4]
mov dword [esi], 0x439958
mov dword [esi + 0x30], 0x439948
mov dword [edi], 0x43993c
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax + esi + 4], 0x43992c
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], 0x439900
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
mov dword [eax + esi + 4], 0x4398e8
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x41d501
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, eax
push esi
mov esi, dword [esp + 0x10]
or edx, ecx
or edx, esi
test dl, 3
jne 0x41d52d
shr esi, 2
je 0x41d53c
sub ecx, eax
mov edx, dword [ecx + eax]
xor dword [eax], edx
add eax, 4
dec esi
jne 0x41d520
pop esi
ret
test esi, esi
jbe 0x41d53c
sub ecx, eax
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x41d533
pop esi
ret
Function at 0x41d53e
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push ebx
mov ebx, edx
push esi
or ebx, ecx
push edi
mov edi, dword [esp + 0x1c]
or ebx, eax
or ebx, edi
test bl, 3
jne 0x41d579
mov esi, edi
shr esi, 2
je 0x41d58f
sub ecx, eax
sub edx, eax
mov edi, dword [ecx + eax]
xor edi, dword [eax]
mov dword [edx + eax], edi
add eax, 4
dec esi
jne 0x41d569
jmp 0x41d58f
test edi, edi
jbe 0x41d58f
mov esi, edx
sub ecx, eax
sub esi, eax
mov dl, byte [eax + ecx]
xor dl, byte [eax]
mov byte [eax + esi], dl
inc eax
dec edi
jne 0x41d583
pop edi
pop esi
pop ebx
ret

Function at 0x41d593
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push 0x10
pop ecx
mov edx, eax
shr edx, cl
xor eax, edx
shr ecx, 1
jne 0x41d59a
and eax, 1
ret

Function at 0x41d847
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x437d12
call fcn.00424ab8
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x1c], esi
call fcn.0040adf0
or dword [esi + 8], 0xffffffff
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.00414b9a
and dword [ebp - 0x14], 0
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0041dbae
and dword [ebp - 0x18], 0
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 2
call fcn.0041dbae
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x43b628
mov dword [esi + 4], 0x43b620
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42dfb8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x446f40
cmp edx, dword [eax]
je 0x42dfda
add eax, 8
inc ecx
cmp eax, 0x446fd0
jl 0x42dfcb
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x446f40]
jne 0x42e108
mov eax, dword [0x45a86c]
cmp eax, 1
je 0x42e0e2
test eax, eax
jne 0x42e00b
cmp dword [0x446588], 1
je 0x42e0e2
cmp edx, 0xfc
je 0x42e108
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42e042
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00428da0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00424ae0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42e085
lea eax, [ebp - 0x1a4]
push eax
call fcn.00424ae0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43cc88
push edi
call fcn.00430d90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00428da0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00428db0
lea eax, [ebp - 0xa0]
push 0x43d0d8
push eax
call fcn.00428db0
push dword [esi + 0x446f44]
lea eax, [ebp - 0xa0]
push eax
call fcn.00428db0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00431d00
add esp, 0x2c
pop edi
jmp 0x42e108
lea eax, [ebp + 8]
lea esi, [esi + 0x446f44]
push 0
push eax
push dword [esi]
call fcn.00424ae0
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 0x5f6dff
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5f6e1a
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124bc03f]
pop edx
test eax, eax
je 0x5f6eec
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5f6edb
test dword [ebp - 0x2a8], 1
jne 0x5f6edb
and dword [ebp - 0x2a8], 0x100
jne 0x5f6edb
push esi
push edx
push 4
push esi
call dword [edx + 0x122d3a6e]
pop edx
pop esi
test eax, eax
je 0x5f6e7e
jmp 0x5f6edb
cmp word [esi], 0x5a4d
jne 0x5f6edb
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5f6edb
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d3bee]
pop edx
test eax, eax
je 0x5f6edb
lea eax, [ebp - 0x28c]
push eax
call fcn.005f6d5b
test eax, eax
jne 0x5f6ed4
jmp 0x5f6edb
mov eax, esi
jmp 0x5f6eec
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5f6e1a
pop esi
leave
ret 4
Function at 0x7f9045b0
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
shl eax, 5
nop
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
mov dword [esp + 0x10], 0
mov edi, dword [eax + esi + 0x4a8]
push ebp
lea ecx, [eax + esi + 0x498]
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], ecx
push eax
push edi
push esi
call fcn.7f8f3dd0
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0x1c]
mov ebp, dword [ecx + 0x14]
test ebp, ebp
jle 0x7f904650
mov eax, dword [esp + 0x28]
cmp eax, 2
jl 0x7f904607
sub eax, 2
jmp 0x7f90460b
mov eax, dword [esp + 0x28]
mov cx, word [ebx + 0x10]
push 0
and ecx, 0x10
mov edx, dword [ebx + 4]
push ecx
push eax
mov eax, dword [esp + 0x24]
push eax
push edx
push edi
push esi
call fcn.7f8f7260
add eax, dword [ebx + 4]
mov edx, dword [esp + 0x14]
cmp edx, eax
jge 0x7f904635
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
push 1
lea ecx, [esp + 0x1c]
push eax
push ecx
dec ebp
push esi
add ebx, 0x14
call fcn.7f8f3e60
add edi, dword [ebx - 0x14]
test ebp, ebp
jne 0x7f9045f9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
test edx, edx
mov dword [ecx + 8], eax
jne 0x7f9046d2
mov eax, dword [esi + 0x60]
test eax, 0x100000
je 0x7f9046d2
mov eax, dword [esp + 0x14]
cmp eax, 1
jg 0x7f90467b
mov eax, 1
mov dword [esi + 0x58], 1
cmp eax, 0x7fff
jle 0x7f90469d
cdq
mov ecx, dword [esi + 0x58]
sub eax, edx
sar eax, 1
add ecx, ecx
mov dword [esi + 0x58], ecx
cmp eax, 0x7fff
jg 0x7f904689
mov ecx, dword [esi + 0x78]
test cl, 0x20
jne 0x7f9046d2
mov ecx, dword [esi + 0x74]
test ecx, 0x20000000
je 0x7f9046c9
or ecx, 0x40000000
pop ebp
pop edi
mov dword [esi + 0x598], eax
mov dword [esi + 0x74], ecx
pop esi
pop ebx
add esp, 0x10
ret 8
push eax
push 0
push esi
call fcn.7f91b2b0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8