joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40949a
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ecx
cmp dword [esp + 0xc], 0
movups xmm1, xmmword [ecx + 8]
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [ecx + 0x18]
jbe 0x409513
mov edx, dword [esp + 0x18]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x4094c4
xorps xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
xorps xmm1, xmm0
cmp eax, 1
jle 0x4094f5
lea edx, [edi + 0x10]
lea edi, [eax - 1]
mov dword [esp + 8], edi
lea edi, [ecx + 0x18]
sub dword [esp + 8], 1
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
aesenc xmm1, xmm0
jne 0x4094df
mov edx, dword [esp + 0x18]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov eax, edx
add edx, 0x10
sub dword [esp + 0x14], 1
aesenclast xmm1, xmm0
mov dword [esp + 0x18], edx
movups xmmword [eax], xmm1
jne 0x4094b3
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
pop ecx
ret 0xc

Function at 0x409547
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x43f780]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
inc ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 8], ebx
cmp dword [ebp + 4], ebx
jle 0x409600
push esi
push edi
lea edi, [ebp + 0x28]
mov dword [esp + 0x14], edi
lea eax, [edi + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea ebx, [esp + 0x20]
mov ebp, eax
push 4
add ebx, esi
pop edi
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x44adc8]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x44a5c8]
xor dl, byte [esi + eax*4 + 0x44a1c8]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x44a9c8]
mov byte [ebx], dl
lea ebx, [ebx + 4]
sub edi, 1
jne 0x40958a
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x40957f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push edi
call fcn.0041e590
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc ebx
add edi, 0x10
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
cmp ebx, dword [ebp + 4]
jl 0x409576
pop edi
pop esi
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d184
add esp, 0x24
ret
Function at 0x409611
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x30
mov eax, dword [0x43f780]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x20
push eax
mov esi, dword [ebp + 4]
lea eax, [esp + 0x24]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x20], esi
call fcn.0041e590
add esp, 0xc
xor ebx, ebx
xor edx, edx
xor edi, edi
test esi, esi
jle 0x40969d
cmp ebx, dword [ebp + 4]
jg 0x4097f5
cmp edi, esi
jge 0x40968a
lea ebp, [esp + 0x1c]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x409686
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edi, esi
jl 0x409666
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x409690
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x409651
cmp ebx, dword [ebp + 4]
jg 0x4097f5
mov edi, 0x43f108
movzx eax, byte [esp + esi*4 + 0x19]
mov cl, byte [esp + 0x1c]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x1c], cl
movzx eax, byte [esp + esi*4 + 0x1a]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1d], al
movzx eax, byte [esp + esi*4 + 0x1b]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1e], al
movzx eax, byte [esp + esi*4 + 0x18]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1f], al
mov al, byte [edi]
xor al, cl
inc edi
mov byte [esp + 0x1c], al
mov dword [esp + 0x18], edi
cmp esi, 8
je 0x40972c
cmp esi, 1
jle 0x409720
lea ecx, [esp + 0x20]
lea ebp, [esi - 1]
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x40970c
sub ebp, 1
jne 0x409709
mov ebp, dword [esp + 0x10]
xor edi, edi
test esi, esi
jle 0x4097e8
jmp 0x40979c
push 3
lea ecx, [esp + 0x24]
pop ebp
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x409736
sub ebp, 1
jne 0x409733
movzx eax, byte [esp + 0x28]
lea ecx, [esp + 0x30]
push 3
pop ebp
mov al, byte [eax + str.cw]
xor byte [esp + 0x2c], al
movzx eax, byte [esp + 0x29]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2d], al
movzx eax, byte [esp + 0x2a]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2e], al
movzx eax, byte [esp + 0x2b]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2f], al
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x40978c
sub ebp, 1
jne 0x409789
mov eax, dword [esp + 0x10]
cmp ebx, dword [eax + 4]
jg 0x4097e4
cmp edi, esi
jge 0x4097d1
lea ebp, [esp + 0x1c]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x4097d4
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edi, esi
jl 0x4097b1
cmp edx, 4
jne 0x4097d7
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x40979c
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp ebx, dword [ebp + 4]
jle 0x4096ab
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d184
add esp, 0x30
ret 4
Function at 0x40995b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x44b1d0]
test esi, esi
jne 0x40997e
mov ecx, 0x44b1c8
call fcn.004098e6
mov esi, dword [0x44b1d0]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x14]
and eax, 0xfffffff0
cmp byte [ebp + 0x10], 0
je 0x4099c7
test esi, esi
je 0x4099e9
push ecx
push eax
push ebx
mov ecx, esi
call dword [0x433258]
call esi
test eax, eax
jne 0x409a0b
push str.CryptProtectMemory_failed
mov esi, 0x45c598
push esi
call fcn.004035f5
pop ecx
pop ecx
mov ecx, esi
call fcn.004037f7
push 2
mov ecx, esi
call fcn.004035f0
jmp 0x409a0b
mov esi, dword [0x44b1d4]
test esi, esi
je 0x4099e9
push ecx
push eax
push ebx
mov ecx, esi
call dword [0x433258]
call esi
test eax, eax
jne 0x409a0b
push str.CryptUnprotectMemory_failed
jmp 0x4099a8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edx
jbe 0x409a0b
add al, 0x4b
lea ecx, [ebx + edx]
add al, dl
xor byte [ecx], al
inc edx
mov eax, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jb 0x4099f9
pop esi
pop ebx
leave
ret 0x10
Function at 0x40a54a
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x40a977
Capabilities:
Query environment variable

Disassembly:
push 0x10
mov eax, 0x430f6f
call fcn.0041d1f5
mov edi, dword [ebp + 8]
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x40a990
mov eax, dword [edi]
xor ebx, ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40a9a3
xor al, al
jmp 0x40aa08
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004018dd
mov eax, dword [ebp - 0x18]
mov ecx, edi
mov esi, dword [ebp - 0x1c]
sub eax, esi
sar eax, 1
cmp dword [edi + 0x14], 7
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
jbe 0x40a9cf
mov ecx, dword [edi]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40a9f3
cmp eax, dword [ebp - 0x10]
ja 0x40a9f3
push esi
call fcn.004223ce
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040181c
mov bl, 1
test esi, esi
je 0x40aa06
mov ecx, dword [ebp - 0x14]
sub ecx, esi
and ecx, 0xfffffffe
push ecx
push esi
call fcn.0040127e
mov al, bl
call fcn.0041d1c3
ret 4
Function at 0x40b32f
Capabilities:
Get common file path

Disassembly:
push 0x60
mov eax, 0x430ffe
call fcn.0041d228
mov eax, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x5c], eax
call fcn.0041d146
mov ebx, eax
pop ecx
mov dword [ebp - 0x6c], ebx
lea esi, [ebx + 0x208]
push esi
push ebx
mov dword [ebp - 0x64], esi
call fcn.00401460
mov dword [ebp - 0x68], esi
and dword [ebp - 4], 0
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40b37f
xor edi, edi
jmp 0x40b43a
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x18], 0
pop edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.004014a2
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004014a2
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00406b7e
lea ecx, [ebp - 0x40]
call fcn.00401780
lea ecx, [ebp - 0x58]
call fcn.00401780
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jbe 0x40b3e4
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x14]
mov edi, eax
cmp ecx, 7
jbe 0x40b429
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edx
cmp ecx, 0x1000
jb 0x40b420
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004016c3
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
push ecx
push edx
call fcn.0041d176
pop ecx
pop ecx
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ebx, ebx
je 0x40b44a
sub esi, ebx
and esi, 0xfffffffe
push esi
push ebx
call fcn.0040127e
mov eax, edi
call fcn.0041d1d7
ret 4
Function at 0x410051
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x45b840], 0
je 0x41005e
or eax, 0xffffffff
ret
mov eax, dword [0x44b71c]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x41009c
mov ecx, dword [0x44b718]
jl 0x410077
cmp ecx, ebp
ja 0x41009c
or ebx, 0xffffffff
mov dword [0x45b760], ebp
add ecx, ebx
mov dword [0x45b764], ebp
mov dword [0x44b718], ecx
adc eax, ebx
mov dword [0x44b71c], eax
mov eax, ebx
jmp 0x4101a9
push esi
push edi
mov edi, dword [0x45b764]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x410101
jl 0x4100b7
mov esi, dword [0x45b760]
cmp esi, ebp
ja 0x410107
mov esi, 0x2000
push esi
push dword [0x45b754]
call fcn.00410383
cdq
mov ecx, eax
mov dword [0x45b760], eax
or ecx, edx
mov dword [0x45b764], edx
je 0x410146
and eax, edx
cmp eax, ebx
je 0x410137
add dword [0x45b798], esi
mov eax, dword [0x45b754]
adc dword [0x45b79c], ebp
mov dword [0x45b758], eax
call fcn.0040fac7
mov edi, dword [0x45b764]
mov esi, dword [0x45b760]
mov eax, dword [0x44b748]
test byte [eax + 0x80], 1
je 0x410189
cmp byte [0x45b918], 0
mov eax, esi
je 0x410156
or eax, edi
je 0x410189
push esi
push dword [0x45b758]
push 0x45b928
call fcn.004139de
jmp 0x41017d
push 0x45c294
mov ecx, 0x45c598
call fcn.0040374a
mov dword [0x45b760], ebp
mov eax, ebx
mov dword [0x45b764], ebp
jmp 0x4101a7
or eax, edi
mov ebp, dword [0x45b758]
je 0x410189
add esi, ebx
adc edi, ebx
call fcn.004137a6
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.004138d0
mov eax, esi
inc ebp
or eax, edi
jne 0x410160
mov esi, dword [0x45b760]
mov edi, dword [0x45b764]
mov eax, dword [0x45b758]
add esi, ebx
mov dword [0x45b760], esi
adc edi, ebx
mov dword [0x45b764], edi
movzx eax, byte [eax]
inc dword [0x45b758]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x413807
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43f780]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push eax
call fcn.004137c4
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0041e590
add esp, 0xc
xor esi, esi
call fcn.004137a6
xor byte [ebp + esi - 0x10], al
movzx eax, byte [ebp + esi - 0x10]
push eax
call fcn.004138d0
inc esi
cmp esi, 0xc
jl 0x413835
mov eax, dword [0x44b748]
movzx edx, byte [ebp - 5]
movzx ecx, byte [0x45b7b7]
test byte [eax + 0x80], 2
jne 0x41386f
movzx ecx, byte [0x45b7bf]
cmp edx, ecx
je 0x413878
or eax, 0xffffffff
jmp 0x4138c1
cmp byte [ebp + 0x10], 0
je 0x4138bf
mov ecx, dword [0x45b760]
mov eax, ecx
cdq
cmp edx, dword [0x44b71c]
jl 0x41389b
mov esi, dword [0x44b718]
jg 0x41389d
cmp eax, esi
ja 0x41389d
mov esi, ecx
push edi
mov edi, dword [0x45b758]
test esi, esi
je 0x4138be
call fcn.004137a6
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.004138d0
inc edi
sub esi, 1
jne 0x4138a8
pop edi
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041d184
leave
ret 0xc

Function at 0x4138d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x45b898]
mov eax, dword [esp + 4]
mov edx, dword [0x45b8a0]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x44b2f0]
movzx eax, cl
add eax, dword [0x45b89c]
mov dword [0x45b898], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x45b89c], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x44b2f0]
mov dword [0x45b8a0], edx
ret 4

Function at 0x413b14
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov eax, dword [0x43f780]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x40]
push edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x18], esi
call fcn.00413eba
test ebp, ebp
je 0x413b61
cmp byte [esi], 0
je 0x413b61
push 0x18
pop ecx
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
jmp 0x413b85
lea edi, [ebx + 0x60]
push 0x40
mov eax, edi
pop ecx
xor byte [eax], 0x6a
inc eax
sub ecx, 1
jne 0x413b69
push ebx
call fcn.0040a54a
push 0x40
push edi
push ebx
call fcn.0040a57b
test ebp, ebp
je 0x413b9a
cmp byte [esi], 0
jne 0x413b9a
mov eax, dword [esp + 0x10]
mov esi, ebx
push 0x18
pop ecx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x14
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.0040a57b
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00413eba
cmp dword [esp + 0x3c], 0
pop edi
pop esi
pop ebp
pop ebx
jbe 0x413bd2
push dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
call fcn.0041e590
add esp, 0xc
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041d184
add esp, 0x20
ret 0x14
Function at 0x413be3
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
lea ebx, [esi + 0x60]
cmp edi, 0x40
jbe 0x413c1a
push esi
call fcn.0040a54a
push edi
push dword [esp + 0x18]
push esi
call fcn.0040a57b
push ebx
push esi
call fcn.00413eba
mov dword [esi + 0xa0], 0x14
jmp 0x413c32
push edi
push dword [esp + 0x18]
push ebx
call fcn.0041e590
add esp, 0xc
mov dword [esi + 0xa0], edi
test edi, edi
je 0x413c4a
push 0xffffffffffffffa0
pop edx
mov ecx, ebx
sub edx, esi
xor byte [ecx], 0x36
inc ecx
mov edi, dword [esi + 0xa0]
lea eax, [edx + ecx]
cmp eax, edi
jb 0x413c39
push 0x40
pop eax
sub eax, edi
push eax
lea eax, [esi + 0x60]
add eax, edi
push 0x36
push eax
call fcn.0041eb10
add esp, 0xc
push esi
call fcn.0040a54a
push 0x40
push ebx
push esi
call fcn.0040a57b
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x413c75
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x23c
mov eax, dword [0x43f780]
xor eax, esp
mov dword [esp + 0x238], eax
mov eax, dword [esp + 0x250]
mov ecx, dword [esp + 0x248]
push ebx
mov ebx, dword [esp + 0x250]
push esi
mov esi, dword [esp + 0x248]
push 0x40
mov dword [esp + 0x1c], eax
pop eax
mov dword [esp + 0x14], ebx
cmp ebx, eax
jae 0x413cb8
mov eax, ebx
push eax
push ecx
lea eax, [esp + 0x204]
push eax
call fcn.0041e590
push 0xa8
lea eax, [esp + 0x13c]
push 0
push eax
call fcn.0041eb10
add esp, 0x18
lea eax, [esp + 0x12c]
push dword [esp + 0x24c]
push esi
push eax
call fcn.00413be3
mov eax, dword [esp + 0x25c]
xor edx, edx
push 0x14
dec eax
pop esi
div esi
add eax, 1
mov dword [esp + 0x20], eax
je 0x413e76
mov eax, dword [esp + 0x260]
xor edx, edx
push ebp
dec eax
xor ebp, ebp
inc edx
mov dword [esp + 0x14], eax
push edi
mov dword [esp + 0x14], edx
mov eax, edx
mov dword [esp + 0x24], edx
shr eax, 0x18
lea esi, [esp + 0x134]
mov byte [esp + ebx + 0x204], al
lea edi, [esp + 0x8c]
mov eax, edx
mov byte [esp + ebx + 0x207], dl
shr eax, 0x10
mov byte [esp + ebx + 0x205], al
mov eax, edx
shr eax, 8
push 0x2a
mov byte [esp + ebx + 0x20a], al
lea eax, [ebx + 4]
pop ecx
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x413d85
push eax
lea eax, [esp + 0x208]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.0040a57b
push 0
push 0
push 0x14
pop esi
push esi
lea eax, [esp + 0x1e8]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.00413b14
push esi
lea eax, [esp + 0x1e0]
push eax
lea eax, [esp + 0x1f8]
push eax
call fcn.0041e590
mov eax, dword [esp + 0x24]
add esp, 0xc
mov byte [esp + 0x13], 0
test eax, eax
je 0x413e34
mov ebx, eax
push 0x2a
pop ecx
push 0x14
lea esi, [esp + 0x138]
lea edi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea eax, [esp + 0x1e0]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.0040a57b
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x30]
push eax
push esi
lea eax, [esp + 0x1e8]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.00413b14
xor ecx, ecx
mov al, byte [esp + ecx + 0x1dc]
xor byte [esp + ecx + 0x1f0], al
inc ecx
cmp ecx, esi
jb 0x413e18
sub ebx, 1
jne 0x413dca
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x264]
sub eax, ebp
cmp eax, esi
jbe 0x413e43
mov eax, esi
push eax
lea eax, [esp + 0x1f4]
push eax
mov eax, dword [esp + 0x28]
add eax, ebp
push eax
call fcn.0041e590
mov edx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x24]
inc edx
add ebp, esi
mov dword [esp + 0x14], edx
cmp eax, dword [esp + 0x28]
jb 0x413d26
pop edi
pop ebp
push 0x44
lea eax, [esp + 0x200]
push eax
call fcn.00409a4a
push esi
lea eax, [esp + 0x1ec]
push eax
call fcn.00409a4a
push esi
lea eax, [esp + 0x1d8]
push eax
call fcn.00409a4a
mov ecx, dword [esp + 0x240]
pop esi
pop ebx
xor ecx, esp
call fcn.0041d184
add esp, 0x23c
ret 0x1c
Function at 0x41473a
Capabilities:
Parse pe header

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x43f780]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x94]
xor ebx, ebx
push ebx
push ebx
push ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x433258]
mov ecx, edi
call esi
mov eax, dword [edi]
lea ecx, [ebp - 0x80]
push 0x40
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x433258]
mov ecx, edi
call esi
cmp eax, 0x40
jne 0x41481f
cmp byte [ebp - 0x80], 0x4d
jne 0x41481f
cmp byte [ebp - 0x7f], 0x5a
jne 0x41481f
mov eax, dword [edi]
push ebx
push ebx
push dword [ebp - 0x44]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x433258]
mov ecx, edi
call esi
mov eax, dword [edi]
lea ecx, [ebp - 0x80]
mov ebx, 0x108
push ebx
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x433258]
mov ecx, edi
call esi
cmp eax, ebx
jne 0x41481f
cmp byte [ebp - 0x80], 0x50
jne 0x41481f
cmp byte [ebp - 0x7f], 0x45
jne 0x41481f
cmp byte [ebp - 0x7e], 0
jne 0x41481f
cmp byte [ebp - 0x7d], 0
jne 0x41481f
cmp byte [ebp - 0x68], 0xb
jne 0x41481f
cmp byte [ebp - 0x67], 1
jne 0x414808
cmp dword [ebp - 0xc], 4
jbe 0x414808
mov eax, dword [ebp + 0x18]
jmp 0x414821
cmp byte [ebp - 0x68], 0xb
jne 0x41481f
cmp byte [ebp - 0x67], 2
jne 0x41481f
cmp dword [ebp + 4], 4
jbe 0x41481f
mov eax, dword [ebp + 0x28]
jmp 0x414821
xor eax, eax
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d184
add ebp, 0x8c
leave
ret 4
Function at 0x415c45
Capabilities:
Hide graphical window

Disassembly:
push 0x38
mov eax, 0x4317b3
call fcn.0041d228
mov ebx, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov al, byte [ebp + 0x18]
push 0
push edi
mov dword [ebp - 0x3c], edi
mov dword [ebx + 8], edi
mov byte [ebx + 0x42], al
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
mov ecx, ebx
call fcn.00415974
cmp dword [ebx + 0x20], 0
je 0x415c91
push dword [ebx + 0x20]
call fcn.004224a8
pop ecx
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x415c9f
push eax
call fcn.00425b86
pop ecx
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x415cb0
push eax
call fcn.00425b86
pop ecx
mov dword [ebx + 0x24], eax
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [ebx + 4], 0
je 0x415ce3
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
push ebx
push dword [ebx]
sub esi, eax
lea edi, [eax + 1]
push 0
push dword [ebp - 0x3c]
sub esi, 2
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
push eax
push esi
push dword [ebp - 0x34]
push edi
push 0x40000000
xor edi, edi
push edi
push 0x434364
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp byte [ebx + 0x1c], 0
mov dword [ebx + 4], eax
jne 0x415d6d
cmp dword [ebx + 0x10], edi
jne 0x415d6d
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x415d83
cmp dword [ebx + 0x24], edi
jne 0x415d83
cmp dword [ebx + 0x20], edi
je 0x415d83
push dword [ebx + 0x20]
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00415a6e
push 5
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00401c11
lea ecx, [ebp - 0x28]
call fcn.00401780
jmp 0x415d83
test eax, eax
je 0x415d83
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.0041d1d7
ret 0x14