joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c98e4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f8d70
push 0x4f8d68
push str.FlsAlloc
push 0x1e
call fcn.004c9711
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c9918
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ee33c]
call esi
jmp 0x4c991e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4c9962
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f8d80
push 0x4f8d78
push str.FlsGetValue
push 0x20
call fcn.004c9711
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c9999
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ee33c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4ceda2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cec13

Function at 0x4d0e74
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x522104]
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 0x4d0ebf
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004d1013
test al, al
jne 0x4d0eb9
sub edx, 2
cmp edx, edi
jne 0x4d0e9f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4d0ee1
lea eax, [edi + 2]
cmp edx, eax
je 0x4d0ee1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004d0dc0
add esp, 0x10
jmp 0x4d0fdb
push esi
lea ecx, [ebp - 0x255]
call fcn.004d1013
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 0x4d0f24
push dword [ebp - 0x25c]
jmp 0x4d0ed1
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 0x4d0f61
cmp word [ebp - 0x226], 0
je 0x4d0f82
cmp word [ebp - 0x226], ax
jne 0x4d0f61
cmp word [ebp - 0x224], 0
je 0x4d0f82
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004d0dc0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4d0fce
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4d0f3b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4d0fb6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4d0fdb
push 0x4d0bf0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004bf370
add esp, 0x10
jmp 0x4d0fab
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.004a4c5b
leave
ret
Function at 0x4d11d7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d11e8
pop esi
ret
push ebx
push edi
push esi
call fcn.004d11a0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004c7cda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4d1210
push ebx
push esi
push edi
call fcn.004a76d0
add esp, 0xc
push 0
call fcn.004c7d28
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4d15d4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d1225
Function at 0x4d167a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004d15f6
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4d17f2
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4d17f2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4d17a1
jg 0x4d16d3
test eax, eax
je 0x4d1797
push 1
push 0x1000
call fcn.004c9413
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d16f9
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4d178e
push 0x8000
push ebx
call fcn.004c2d9b
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4d1725
jg 0x4d1720
cmp ecx, 0x1000
jb 0x4d1725
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004c54ce
add esp, 0x10
cmp eax, 0xffffffff
je 0x4d176a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4d1720
jl 0x4d1751
test ecx, ecx
jne 0x4d1712
push dword [ebp - 0xc]
push ebx
call fcn.004c2d9b
push esi
call fcn.004c7d28
add esp, 0xc
xor edi, edi
jmp 0x4d1803
cmp byte [edi + 0x24], 0
je 0x4d1781
cmp dword [edi + 0x20], 5
jne 0x4d1781
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4d178c
mov edi, dword [edi + 0x18]
jmp 0x4d178e
xor edi, edi
push esi
call fcn.004c7d28
pop ecx
jmp 0x4d1803
test ecx, ecx
jg 0x4d1763
jl 0x4d17a1
test eax, eax
jae 0x4d1763
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c420a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4d17c4
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4d1763
jmp 0x4d17fb
push ebx
call fcn.004c2629
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4d1763
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4d1803
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4d1800
mov edi, dword [edi + 0x18]
jmp 0x4d1803
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004c420a
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d6cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
movzx esi, word [edx]
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, esi
xor eax, 0x7f0
shr esi, 4
shr eax, 4
mov dword [ebp - 8], ebx
mov ecx, dword [edi + esi*4]
mov eax, dword [edi + eax*4]
mov dword [ebp - 4], eax
movzx eax, word [edx + 0x10]
mov esi, dword [ebp - 4]
shr eax, 4
mov dword [ebp - 0x18], ecx
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4d6d5c
mov esi, edx
mov dword [ebp - 0xc], eax
add ebx, 4
push edi
push ebx
push ecx
push esi
call fcn.004daa40
push edi
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 0x14]
lea eax, [esi + 0x10]
push eax
call fcn.004daa40
mov ecx, dword [ebp - 0x18]
add esp, 0x20
add ebx, 0x440
add esi, 0x20
sub dword [ebp - 0xc], 1
jne 0x4d6d24
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
cmp ebx, 0x10
jbe 0x4d6e39
mov eax, dword [ebp - 8]
add ebx, 0xfffffff1
add eax, 0x44
shr ebx, 1
mov dword [ebp - 0x14], eax
movzx eax, word [edx + 0x10]
xor eax, 0x7f0
shr eax, 4
add esi, dword [edi + eax*4]
lea eax, [ebx + 0x180]
mov dword [ebp - 4], esi
lea eax, [edx + eax*2]
dec ebx
sub eax, 2
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x80]
mov ebx, dword [ebp + 8]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x200]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
add esi, dword [edi + ecx*4]
cmp eax, 2
jae 0x4d6da3
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
movzx ecx, word [eax]
mov eax, ecx
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [edx + ebx*8], eax
mov eax, dword [edi + ecx*4]
add eax, esi
mov esi, dword [ebp - 4]
mov dword [edx + ebx*8 + 4], eax
mov eax, dword [ebp - 0xc]
test ebx, ebx
jne 0x4d6d90
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
lea ebx, [eax*4 - 0x40]
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x4d6e39
lea esi, [ecx + 0x484]
lea edi, [eax - 1]
nop dword [eax]
push ebx
push edx
push esi
call fcn.004a76d0
mov edx, dword [ebp - 0x14]
add esp, 0xc
add esi, 0x440
sub edi, 1
jne 0x4d6e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d9090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
or ecx, 0x100
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
shr ecx, 1
and esi, 1
neg esi
shr esi, 4
movzx edx, word [ebx + ecx*2]
and esi, 0x7f
shr edx, 4
xor edx, esi
add eax, dword [edi + edx*4]
cmp ecx, 2
jae 0x4d90a7
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4d90d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, 0x100
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
or ecx, esi
add edi, edi
mov edx, esi
and edx, edi
mov eax, ecx
add edx, esi
shr eax, 8
add eax, edx
mov edx, dword [ebp + 8]
movzx edx, word [edx + eax*2]
mov eax, ecx
shr eax, 7
add ecx, ecx
and eax, 1
shr edx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor edx, eax
mov eax, dword [ebp + 0x14]
add ebx, dword [eax + edx*4]
mov edx, ecx
xor edx, edi
not edx
and esi, edx
cmp ecx, 0x10000
jb 0x4d90e5
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x4da1e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
movaps xmm0, xmmword [0x500090]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x400
push edi
mov edi, 0xc
mov eax, dword [esi + 0x78]
lea edx, [esi + 0x1e54]
mov dword [esi + 0x70], eax
lea eax, [esi + 0x201c]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x40], 1
mov dword [esi + 0x3c], 1
mov dword [esi + 0x38], 1
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
movups xmmword [esi + 0x1e1c], xmm0
movups xmmword [esi + 0x1e2c], xmm0
nop word [eax + eax]
mov ecx, 0x10
nop word [eax + eax]
mov word [eax - 0x180], bx
mov word [eax], bx
add eax, 2
sub ecx, 1
jne 0x4da2a0
mov word [edx - 0x18], bx
mov word [edx], bx
mov word [edx + 0x18], bx
mov word [edx + 0x30], bx
add edx, 2
sub edi, 1
jne 0x4da290
mov eax, 0x4000400
lea edi, [esi + 0x219c]
mov ecx, 0x80
rep stosd dword es:[edi], eax
lea edi, [esi + 0x239c]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x98]
mov eax, 0x300
add ecx, dword [esi + 0x94]
shl eax, cl
test eax, eax
je 0x4da312
mov edi, dword [esi + 0x50]
mov ecx, eax
shr ecx, 1
mov eax, 0x4000400
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, 0x4000400
lea edi, [esi + 0x249c]
mov ecx, 0x80
rep stosd dword es:[edi], eax
lea edi, [esi + 0x269c]
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esi + 0x289c]
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2a9c]
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov dword [esi + 0x1c], 0
lea eax, [esi + 0xbca4]
mov dword [esi + 0x18], 0
mov ecx, 0x800
mov dword [eax], 0x40000000
lea eax, [eax + 0x20]
sub ecx, 1
jne 0x4da364
mov dword [esi + 0x34], ecx
mov eax, 1
mov ecx, dword [esi + 0x9c]
mov edx, 0x100
shl eax, cl
mov ecx, dword [esi + 0x98]
dec eax
mov dword [esi + 0x4c], eax
mov eax, edx
shl eax, cl
mov ecx, dword [esi + 0x94]
shr edx, cl
sub eax, edx
pop edi
mov dword [esi + 0x48], eax
pop esi
pop ebx
pop ebp
ret

Function at 0x4daa40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
mov edx, dword [ebp + 8]
mov edi, ebx
shr edi, 1
mov esi, ebx
shr esi, 2
mov eax, edi
and eax, 1
neg eax
shr eax, 4
movzx ecx, word [edx + esi*2 + 4]
and eax, 0x7f
shr ecx, 4
neg esi
xor ecx, eax
and esi, 0x7f0
movzx eax, word [edx + 2]
xor esi, eax
mov eax, dword [ebp + 0x14]
shr esi, 4
mov edx, dword [eax + ecx*4]
add edx, dword [eax + esi*4]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
add edx, dword [ebp + 0xc]
movzx ecx, word [eax + edi*2 + 8]
mov edi, dword [ebp + 0x10]
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [esi + eax*4]
add eax, edx
mov dword [edi + ebx*4], eax
mov eax, dword [esi + ecx*4]
add eax, edx
mov dword [edi + ebx*4 + 4], eax
add ebx, 2
cmp ebx, 8
jb 0x4daa48
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4dbad0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push esi
mov dword [eax + 0x34], 0
lea esi, [eax + 0x60]
mov word [eax + 0x1e], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x468], 0xffffffff
mov dword [eax + 0x46c], 0xffffffff
mov dword [eax + 0x30], 0x20
mov byte [eax + 0x1d], 1
mov dword [eax + 0x48], 4
mov ecx, edx
lea esi, [esi + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [esi - 4], eax
cmp edx, 0x100
jb 0x4dbb16
pop esi
pop ebp
ret

Function at 0x4dd910
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.004b75dc
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x4dd93b
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x4df5a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4df731
cmp dword [esi + 0x20], 0
je 0x4df731
cmp dword [esi + 0x24], 0
je 0x4df731
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x4df731
cmp dword [edi], esi
jne 0x4df731
mov eax, dword [edi + 4]
cmp eax, 0x2a
je 0x4df608
cmp eax, 0x39
je 0x4df608
cmp eax, 0x45
je 0x4df608
cmp eax, 0x49
je 0x4df608
cmp eax, 0x5b
je 0x4df608
cmp eax, 0x67
je 0x4df608
cmp eax, 0x71
je 0x4df608
cmp eax, 0x29a
jne 0x4df731
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov eax, dword [edi + 8]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x14], 0
test eax, eax
jns 0x4df63d
neg eax
mov dword [edi + 0x18], eax
cmp eax, 2
jne 0x4df647
lea ecx, [eax + 0x37]
jmp 0x4df656
test eax, eax
mov ecx, 0x71
mov edx, 0x2a
cmovne ecx, edx
mov dword [edi + 4], ecx
push 0
push 0
push 0
cmp eax, 2
jne 0x4df66b
call fcn.004a0300
jmp 0x4df670
call fcn.004a0070
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0
push edi
call fcn.004e0670
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.004a7c50
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x5000d2]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x5000d0]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x5000d4]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x5000d6]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
pop ebp
ret
pop edi
mov eax, 0xfffffffe
pop esi
pop ebp
ret

Function at 0x4e1c60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4e1c8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e1c8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404799
Capabilities:
Set current directory

Disassembly:
mov eax, 0x461774
call fcn.00433c64
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
push dword [ebp + 8]
mov ecx, esi
call fcn.004484aa
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x404809
mov ecx, dword [0x47c7d8]
mov dword [ebp + 8], ecx
and dword [ebp - 4], 0
add eax, 0x4be
push eax
lea ecx, [ebp + 8]
call fcn.004484aa
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.00448157
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004480a2
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00447fb5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00447fb5
mov al, byte [edi + 0x231c]
test al, al
je 0x40486e
cmp al, byte [edi + 0x231d]
je 0x40486e
mov ecx, dword [0x47c7d8]
mov dword [ebp + 0xc], ecx
movzx eax, al
add eax, 0x43a
lea ecx, [ebp + 0xc]
push eax
mov dword [ebp - 4], 2
call fcn.004484aa
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00448157
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004480a2
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00447fb5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00447fb5
push dword [edi + 0x232e]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x405ec3
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.user32.dll_wsprintfA]
push edi
and byte [eax + 0x99], 0
add eax, 0x81
mov dword [ebp - 4], eax
push eax
mov edi, 0x47c118
lea eax, [ebp - 0x24]
push edi
push eax
call esi
lea eax, [ebp - 0x24]
push eax
call fcn.00433d30
add esp, 0x10
xor edx, edx
test eax, eax
mov dword [ebp + 0xc], eax
jbe 0x405f25
push ebx
mov bl, byte [ebp + edx - 0x24]
lea ecx, [ebp + edx - 0x24]
cmp bl, 0xcc
je 0x405f1e
mov al, dl
add al, 0x34
imul byte [ebp + 8]
add al, bl
mov byte [ecx], al
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x405f06
pop ebx
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp - 4]
call esi
add esp, 0xc
pop edi
pop esi
leave
ret 8
Function at 0x405f38
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.user32.dll_wsprintfA]
mov dword [ebp - 4], esi
and byte [esi + 0xe], 0
and byte [esi + 0x1d], 0
and byte [esi + 0x50], 0
and byte [esi + 0x5f], 0
and byte [esi + 0x66], 0
and byte [esi + 0x6d], 0
mov dword [ebp - 8], 2
mov ebx, 0x47c118
push dword [ebp - 4]
lea eax, [ebp - 0x44]
push ebx
push eax
call edi
and dword [ebp + 0xc], 0
lea eax, [ebp - 0x44]
push eax
call fcn.00433d30
add esp, 0x10
test eax, eax
jbe 0x405fb9
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
add ecx, eax
mov dl, byte [ecx]
cmp dl, 0xcc
je 0x405fa7
add al, 0x34
imul byte [ebp + 8]
add al, dl
mov byte [ecx], al
inc dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.00433d30
cmp dword [ebp + 0xc], eax
pop ecx
jb 0x405f8f
add dword [ebp - 4], 0xf
dec dword [ebp - 8]
jne 0x405f71
lea eax, [esi + 0x1e]
push eax
lea eax, [ebp - 0x44]
push ebx
push eax
call edi
and dword [ebp + 0xc], 0
lea eax, [ebp - 0x44]
push eax
call fcn.00433d30
add esp, 0x10
test eax, eax
jbe 0x406014
mov eax, dword [ebp + 0xc]
mov dl, byte [esi + eax + 0x1e]
lea ecx, [esi + eax + 0x1e]
cmp dl, 0xcc
jne 0x405ff6
cmp eax, 0x1d
jle 0x406002
mov al, byte [ebp + 0xc]
add al, 0x34
imul byte [ebp + 8]
add al, dl
mov byte [ecx], al
inc dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.00433d30
cmp dword [ebp + 0xc], eax
pop ecx
jb 0x405fe1
lea eax, [esi + 0x51]
push eax
lea eax, [ebp - 0x44]
push ebx
push eax
call edi
and dword [ebp + 0xc], 0
lea eax, [ebp - 0x44]
push eax
call fcn.00433d30
add esp, 0x10
test eax, eax
jbe 0x406053
mov eax, dword [ebp + 0xc]
lea ecx, [esi + eax + 0x51]
add al, 0x34
imul byte [ebp + 8]
add byte [ecx], al
inc dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.00433d30
cmp dword [ebp + 0xc], eax
pop ecx
jb 0x406033
lea eax, [esi + 0x60]
push eax
lea eax, [ebp - 0x44]
push ebx
push eax
call edi
and dword [ebp + 0xc], 0
lea eax, [ebp - 0x44]
push eax
call fcn.00433d30
add esp, 0x10
test eax, eax
jbe 0x406092
mov eax, dword [ebp + 0xc]
lea ecx, [esi + eax + 0x60]
add al, 0x34
imul byte [ebp + 8]
add byte [ecx], al
inc dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.00433d30
cmp dword [ebp + 0xc], eax
pop ecx
jb 0x406072
add esi, 0x67
lea eax, [ebp - 0x44]
push esi
push ebx
push eax
call edi
lea eax, [ebp - 0x44]
xor ebx, ebx
push eax
call fcn.00433d30
add esp, 0x10
test eax, eax
jbe 0x4060c8
mov al, bl
add al, 0x34
imul byte [ebp + 8]
add byte [esi + ebx], al
lea eax, [ebp - 0x44]
push eax
inc ebx
call fcn.00433d30
cmp ebx, eax
pop ecx
jb 0x4060af
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4448f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.gdi32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00437210
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4449bb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.user32.dll_GetWindowTextA]
test eax, eax
je 0x4449bb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x44496e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x444979
or bh, 8
and edi, 0x8000000
je 0x444994
mov eax, dword [0x4843fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.gdi32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.user32.dll_DrawTextA]
test edi, edi
je 0x4449bb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.gdi32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret