joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008b10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003bf60
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10051060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
push 8
mov dword [ebp - 0x18], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1001c0a2
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1001abc1
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea edi, [eax + 0x14]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x10], esi
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x10055720]
mov edx, dword [0x10055724]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100098d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c09c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10051060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea ebx, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], ebx
mov dword [ebx + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x10009984
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov al, byte [ebp + 0xc]
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 5
mov byte [edi + 0x60], al
push 9
mov byte [edi + 0x68], 9
call fcn.10009000
mov byte [ebp - 4], 6
xor ebx, ebx
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x10]
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], edx
test ecx, ecx
jns 0x100099cf
mov eax, ecx
neg eax
cmp ebx, eax
jae 0x100099cf
add ecx, ebx
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x100099d9
add ecx, ebx
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
and ecx, 0x1f
lea eax, [ebp - 0xd]
push ecx
push edx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x10]
call fcn.1000c9a0
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x10009a07
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x1000aa00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c290
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10051060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1001c0a2
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1001abc1
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10015710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003cf7d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10051060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push 4
call fcn.1001c0a2
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ecx]
mov dword [eax], ecx
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push eax
push 0x10016d00
push 0
push 0
call fcn.10024666
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x1001578d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001bcac
mov esp, ebp
pop ebp
ret
push 6
mov dword [edi], 0
call fcn.1001a881
int3

Function at 0x10016fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10017180
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1001709d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1001701a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10051004]
ja 0x1001701a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10016fea
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1001db30
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10017040
jmp 0x1001709d
cmp dword [ebp - 0x14], 0x10000
jne 0x10017083
cmp dword [ebp - 0x18], 0x10000
jb 0x10017083
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10017076
mov eax, dword [ebp - 8]
jmp 0x1001709f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10017098
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10017180
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10016fea
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100170b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100171b0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10017175
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100170f5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10051004]
ja 0x100170f5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100170c5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1001db30
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1001711b
jmp 0x10017175
cmp dword [ebp - 0x14], 0x10000
jne 0x1001715e
cmp dword [ebp - 0x18], 0x10000
jb 0x1001715e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10017151
mov eax, dword [ebp - 8]
jmp 0x10017177
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10017170
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100171b0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100170c5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100171e0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100175d0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10052544], 0
jne 0x1001721d
cmp dword [0x10052540], 0
je 0x1001721d
mov eax, dword [0x10052540]
mov dword [0x10052544], eax
cmp dword [0x10052544], 0
je 0x1001729a
mov ecx, dword [0x10052544]
cmp dword [ecx + 8], 0
je 0x1001729a
mov edx, dword [0x10052544]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1001729a
mov ecx, dword [0x10052544]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1001729a
mov eax, dword [0x10052544]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10017269
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10017270
xor eax, eax
jmp 0x100173b9
mov ecx, dword [0x10052544]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1001db30
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x100173b9
mov edx, dword [0x10052540]
mov dword [0x10052544], edx
jmp 0x100172b6
mov eax, dword [0x10052544]
mov ecx, dword [eax + 4]
mov dword [0x10052544], ecx
cmp dword [0x10052544], 0
je 0x100172f6
cmp dword [0x10052544], 0
je 0x100172f4
mov edx, dword [0x10052544]
cmp dword [edx + 8], 0
je 0x100172f4
mov eax, dword [0x10052544]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100172f4
mov edx, dword [0x10052544]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100172f4
jmp 0x1001724e
jmp 0x100172a8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100173c0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100173b7
mov eax, dword [ebp - 0x18]
mov dword [0x10052544], eax
mov ecx, dword [0x10052544]
mov dword [ecx], 0x52727464
mov edx, dword [0x10052544]
mov dword [edx + 8], 0
mov eax, dword [0x10052544]
mov ecx, dword [0x10052540]
mov dword [eax + 4], ecx
mov edx, dword [0x10052544]
mov dword [0x10052540], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10052544]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10017387
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x100173a7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1001737e
mov eax, dword [0x10052544]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1001724e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002e496
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002e30c

Function at 0x1003b080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003b0ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003b0ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x55fbd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x120000]
push edi
jmp 0x55fbea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x55fbf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55fbe0
mov eax, 1
add ebx, ebx
jne 0x55fc03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x55fc14
jne 0x55fc33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55fc33
dec eax
add ebx, ebx
jne 0x55fc20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x55fbf8
add ebx, ebx
jne 0x55fc2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x55fc85
xor ecx, ecx
sub eax, 3
jb 0x55fc4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x55fcba
sar eax, 1
mov ebp, eax
jmp 0x55fc56
add ebx, ebx
jne 0x55fc56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55fc24
inc ecx
add ebx, ebx
jne 0x55fc64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55fc24
add ebx, ebx
jne 0x55fc71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x55fc66
jne 0x55fc82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x55fc66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x55fca4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x55fc96
jmp 0x55fbe6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x55fca4
add edi, ecx
jmp 0x55fbe6
pop esi
mov edi, esi
mov ecx, 0x11fb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55fcc2
cmp byte [edi], 0xb
jne 0x55fcc2
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 0x55fcc7
lea edi, [esi + 0x15c000]
mov eax, dword [edi]
or eax, eax
je 0x55fd3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1852f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x185424]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x55fcf4
mov ecx, edi
jns 0x55fd23
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 + 0x185428]
or eax, eax
je 0x55fd39
mov dword [ebx], eax
add ebx, 4
jmp 0x55fd11
call dword [esi + 0x185438]
mov ebp, dword [esi + 0x18542c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x55fd73
sub esp, 0xffffff80
jmp 0x4127aa
Function at 0x1041000
Capabilities:
Accept command line arguments
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x10410bd
cmp dword [esp + 0x34], 2
jne 0x10410b6
push 0x40
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], 0x44
push 0
push eax
call fcn.010421b0
add esp, 0xc
xor edi, edi
push dword [esi + 4]
call fcn.01044936
add esp, 4
test eax, eax
jle 0x10410b2
lea eax, [esp + 0x80]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x3c]
movaps xmmword [esp + 0x84], xmm0
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [esi + 4]
inc edi
call fcn.01044936
add esp, 4
cmp edi, eax
jl 0x1041074
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x10564d0
push 0x67
push edi
call esi
push 0x64
push 0x1056408
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push edi
mov dword [esp + 0x40], 0x30
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 0x1041240
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], edi
call esi
push 0x7f00
push 0
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6b
push dword [esp + 0x50]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 6
mov dword [esp + 0x64], 0x6d
mov dword [esp + 0x68], 0x1056408
call esi
mov dword [esp + 0x64], eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x10564d0
push 0x1056408
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x104119e
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0104126a
mov esp, ebp
pop ebp
ret 0x10
push 7
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push 0
push eax
call esi
test eax, eax
je 0x104121a
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax + eax]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1041209
lea eax, [esp + 0x18]
push eax
call edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call esi
test eax, eax
jne 0x10411e0
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x20]
pop edi
pop esi
xor ecx, esp
call fcn.0104126a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1041aa0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1041adf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1041adf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1041adf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1041adf
cmp dword [ecx + 0x74], 0xe
jbe 0x1041adf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1046bd0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x1046c1b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.01046d6b
test al, al
jne 0x1046c15
sub edx, 2
cmp edx, edi
jne 0x1046bfb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1046c3d
lea eax, [edi + 2]
cmp edx, eax
je 0x1046c3d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.01046b1c
add esp, 0x10
jmp 0x1046d37
push esi
lea ecx, [ebp - 0x255]
call fcn.01046d6b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1046c80
push dword [ebp - 0x25c]
jmp 0x1046c2d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x1046cbd
cmp word [ebp - 0x226], 0
je 0x1046cde
cmp word [ebp - 0x226], ax
jne 0x1046cbd
cmp word [ebp - 0x224], 0
je 0x1046cde
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.01046b1c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1046d2a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1046c97
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1046d12
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1046d37
push 0x104694c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.01049870
add esp, 0x10
jmp 0x1046d07
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0104126a
leave
ret

Function at 0x10487e8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10501f4
push 0x10501ec
push str.FlsAlloc
push 0x1f
call fcn.01048723
mov esi, eax
add esp, 0x10
test esi, esi
je 0x104881c
push dword [ebp + 8]
mov ecx, esi
call dword [0x104e150]
call esi
jmp 0x1048822
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x1048866
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1050204
push 0x10501fc
push str.FlsGetValue
push 0x21
call fcn.01048723
mov esi, eax
add esp, 0x10
test esi, esi
je 0x104889d
push dword [ebp + 8]
mov ecx, esi
call dword [0x104e150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10488a5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x105020c
push 0x1050204
push str.FlsSetValue
push 0x22
call fcn.01048723
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10488df
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x104e150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x104d5a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x104d5cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x104d5cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx