joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441920
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x481648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00477fd9
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004412c0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00477f07
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004746e8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004746e8
push 1
push 0
push 0
mov ecx, esi
call fcn.00474690
push 1
push 0
push 1
mov ecx, esi
call fcn.00474690
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047804b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x441aa0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x481668
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00477fd9
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004412c0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00477f07
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x441b64
cmp dword [esp + 0x40], 1
jne 0x441b62
cmp ecx, eax
jge 0x441b64
mov eax, ecx
cmp eax, 0xc8
jge 0x441b70
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00441920
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047804b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4422f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4816d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00472b08
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00478281
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004797d9
test eax, eax
je 0x44240c
mov ecx, dword [esp + 0x3c]
call fcn.004782ae
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4423d0
push edi
mov ecx, esi
call fcn.0047586b
mov ecx, esi
call fcn.00442570
cmp dword [esp + 0x38], 1
jne 0x442405
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004759d5
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x444e20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444e53
push esi
call fcn.00447f10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x444e4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x444ed9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444ec2
mov eax, dword [esi + 8]
test eax, eax
je 0x444e77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x444ebe
cmp eax, 2
je 0x444ec2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x444e6a
cmp eax, 3
je 0x444e9d
cmp eax, 1
jne 0x444e6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x444e6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x444e6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444f00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x444ee8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444f00
add esp, 4
pop esi
ret

Function at 0x451ba0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x451c06
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x451c06
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x451be7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x451f90
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x451fc8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x452c50
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x452c99
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x453110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x481e70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00452cc0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00452d40
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00452d40
lea ecx, [esi + 0xc]
call fcn.00471499
lea ecx, [esi + 0x10]
call fcn.00471499
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004542d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004542d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004542d0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047150e
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047150e
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x455f70
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0xa13104]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x455f83
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x455fc4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0xa131ac]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x455ff6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x455ffa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x455feb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x456018
mov bl, byte [esp + ecx + 0x4c]
jmp 0x45601c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x45600d
xor ecx, ecx
mov eax, 0xa13114
xor ebx, ebx
mov bl, byte [ecx + 0xa131bc]
cmp byte [esp + ebx + 0x14], 0
je 0x456047
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0xa131d4]
cmp byte [esp + ebx + 0x14], 0
je 0x45605e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x45602e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x455fb7
lea edx, [esp + 0x84]
push edx
call fcn.004560a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4738fe
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x473936
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004719b5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047198d
jmp 0x473942
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x474fec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47502e
call fcn.0047af9b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47502e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x475025
xor eax, eax
jmp 0x475036
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047503c
pop edi
pop esi
pop ebx
ret 4

Function at 0x47b4cb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47b4f9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47b517
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047b431
jmp 0x47b517
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47b517
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047b431
test edi, edi
mov eax, edi
jne 0x47b501
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10096e07
Capabilities:
Encode data using base64

Disassembly:
xor edx, 0x338e5a2a
call fcn.100c9ce9
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x59b963aa
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4f350a68
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40ddb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
jmp 0x40ddca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40ddd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ddc0
mov eax, 1
add ebx, ebx
jne 0x40dde3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40ddd8
jne 0x40ddf4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ddd8
xor ecx, ecx
sub eax, 3
jb 0x40de08
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40de7a
mov ebp, eax
add ebx, ebx
jne 0x40de13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40de20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40de44
inc ecx
add ebx, ebx
jne 0x40de30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40de25
jne 0x40de41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40de25
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40de64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40de55
jmp 0x40ddc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40de64
add edi, ecx
jmp 0x40ddc6
pop esi
mov edi, esi
mov ecx, 0x9f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40de82
cmp byte [edi], 0
jne 0x40de82
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 0x40de87
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40deff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd394]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd524]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40deb4
mov ecx, edi
jns 0x40dee3
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 + 0xd52c]
or eax, eax
je 0x40def9
mov dword [ebx], eax
add ebx, 4
jmp 0x40ded1
call dword [esi + 0xd528]
mov ebp, dword [esi + 0xd530]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40df33
sub esp, 0xffffff80
jmp 0x4027f4
Function at 0x407439
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
mov edx, ecx
xor dword [esp + 0x14], 0xd73
xor edx, 0xfa
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x18]
push esi
lea esi, [eax + 0x42d]
add ebp, 0xdbf
add eax, 0xea1
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], eax
lea eax, [ecx - 0x7b4]
mov dword [esp + 0x18], eax
add eax, 0xd4a
push edi
lea edi, [ecx + 0x8e8]
mov dword [esp + 0x10], edi
cmp edx, eax
je 0x40750a
mov eax, dword [0x8b0648]
add eax, 0xfff47b39
mov dword [ebx + 0x108], eax
mov eax, dword [0x8b055c]
mov eax, dword [eax + 0x78]
cmp eax, dword [ebx + 0xc]
ja 0x4074c3
mov eax, dword [ebx + 0xdc]
xor eax, 0x160c54
add dword [ebx + 0x118], eax
mov eax, dword [ebx + 0x118]
xor eax, 0x1d2176
mov dword [ebx + 0xe8], eax
mov ecx, dword [0x8b055c]
mov eax, dword [ebx + 0xc4]
add eax, 0x825
add dword [ecx + 0xf0], eax
mov eax, dword [ebx + 0x7c]
mov ecx, dword [0x8b055c]
add eax, dword [0x8b0670]
xor eax, 0x18c59d
sub dword [ecx + 0xf0], eax
jmp 0x4075ea
mov eax, dword [0x8b0668]
mov ecx, dword [esp + 0x14]
and eax, ecx
and eax, 0x5e7
cmp edi, eax
je 0x4075d4
mov eax, ebp
imul eax, ecx
mov dword [esp + 0x20], eax
cmp edi, eax
jne 0x4075ea
mov eax, ebp
xor eax, dword [esp + 0x24]
and eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0xc]
imul eax, dword [ebx + 8]
mov esi, dword [ebx + 0xf8]
sub esi, ebp
add esi, 0x894
imul edi, eax, 0x874
mov eax, dword [0x8b055c]
mov edx, dword [eax + 0x110]
mov ecx, dword [eax + 0xc4]
mov eax, dword [ebx + 0x7c]
sub ecx, 0x93d
xor edx, dword [0x8b0674]
xor eax, 0x74e
sub eax, dword [esp + 0x28]
xor edx, 0x131e
or ecx, dword [0x8b0680]
push eax
push ecx
push edx
push ebx
push esi
push dword [esp + 0x38]
push edi
call fcn.00406a90
mov esi, dword [esp + 0x44]
mov edi, eax
mov eax, dword [0x8b0674]
add esp, 0x1c
imul eax, esi
add eax, 0x5e7
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x20]
je 0x407541
jmp 0x4075ee
mov eax, dword [0x8b05a8]
add eax, 0x109c
cmp edi, eax
je 0x4075ea
and edx, 0x131e
xor ebp, edx
mov edi, dword [esp + 0x1c]
cmp edi, ebp
je 0x40762d
mov eax, 0x3d7
sub eax, dword [ebx + 0x48]
add dword [ebx + 0xf0], eax
cmp dword [0x8b0678], 0x14c8c
jbe 0x407621
mov eax, dword [ebx + 0x98]
add eax, dword [ebx + 0x90]
xor eax, 0xc993e6d9
mov dword [ebx], eax
jmp 0x40762d
mov ecx, dword [0x8b055c]
mov ecx, dword [ecx + 0x5c]
xor dword [ebx + 0x7c], ecx
xor esi, 0x5fc
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x414707
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x14]
push ebx
push ebp
push esi
lea ebx, [eax - 0x808]
mov esi, eax
lea ebp, [edx + 0xb9a]
xor esi, 0x109c
lea ecx, [eax - 0xab5]
lea eax, [ebp + 0x385]
cmp ebx, eax
jge 0x41489e
mov esi, dword [esp + 0x10]
push 0x8b0560
mov eax, dword [esi + 0x120]
add dword [esi + 0xf4], 0xffe6b3e7
add eax, 0x10fd33
mov dword [esi + 0x5c], eax
lea eax, [edx + 0x110]
add dword [0x8b0650], 0xab
push eax
push eax
mov eax, ecx
xor ecx, 0x253
xor eax, 0x73a
push eax
push ecx
call fcn.00407439
mov ecx, dword [0x8b055c]
add esp, 0x14
mov dword [0x8b0564], 0x1bdea829
mov eax, dword [ecx + 0x98]
sub eax, dword [esi + 0x10c]
add eax, 0x19e671
mov dword [0x8b05b0], eax
mov eax, dword [esi + 0x110]
add eax, 0x3c34c192
mov dword [ecx + 0x54], eax
mov eax, dword [esi + 0x108]
sub eax, 0x8e8bf
mov dword [esi + 0xd4], eax
mov edx, dword [0x8b05b0]
jmp 0x414835
mov eax, dword [esi + 0x7c]
add eax, dword [esi + 0xdc]
xor eax, 0x18c976
add dword [ecx + 0x5c], eax
mov eax, dword [0x8b055c]
mov ecx, dword [esi + 0x120]
sub ecx, dword [eax + 8]
add ecx, 0x14
xor dword [esi + 0x110], ecx
mov eax, dword [0x8b0568]
add eax, 0xfff71741
add eax, dword [esi + 0x108]
mov dword [0x8b0568], eax
mov eax, edx
imul eax, edx
add dword [esi + 0xd4], eax
mov eax, dword [esi + 0x44]
xor eax, 0x13ffcb
imul eax, dword [esi + 8]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x1c]
sub eax, 0x12
add dword [esi + 0x108], eax
inc edx
mov ecx, dword [0x8b055c]
cmp edx, dword [ecx + 0x54]
jbe 0x4147d1
mov eax, dword [esi + 0xc4]
xor eax, dword [0x8b0638]
add eax, 5
imul eax, dword [esi + 0xd4]
mov dword [esi + 0xd4], eax
mov ecx, dword [esi + 0xf4]
cmp ecx, 0xaa2
ja 0x414878
lea eax, [ecx + 0x2905b]
mov dword [esi + 0xf4], eax
jmp 0x41487e
mov dword [esi + 0xa4], eax
cmp dword [esi + 0xa0], 0x1d0
je 0x414935
mov eax, dword [0x8b0560]
sub dword [esi + 0xa4], eax
jmp 0x414935
mov eax, dword [0x8b055c]
push edi
mov edi, dword [esp + 0x14]
mov edx, dword [eax + 0xe0]
mov eax, dword [eax + 0xac]
or edx, ecx
imul eax, dword [0x8b0638]
imul edx, ecx
add dword [edi + 0x44], eax
lea eax, [ebx + 0xcc1]
xor eax, 0x894
mov dword [esp + 0x18], edx
push eax
mov eax, dword [edi + 0xe8]
imul eax, esi
imul eax, eax, 0x784
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [esp + 0x24]
lea eax, [ecx*2 - 0xd9]
imul eax, dword [edi + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [edi + 0xdc]
or eax, dword [edi + 0x1c]
cmp ebx, eax
ja 0x414934
mov edx, dword [esp + 0x18]
add edx, ebx
mov eax, edx
add ebx, 4
imul eax, esi
mov dword [0x8b0690], eax
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0xdc]
xor eax, esi
or ecx, dword [edi + 0x1c]
or eax, 0x16a3
sub esi, eax
cmp ebx, ecx
jbe 0x41490e
pop edi
xor ebp, 0x16f9
pop esi
mov eax, ebp
pop ebp
pop ebx
ret