joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4198a4
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc9c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x419a85
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 4]
xchg edx, eax
call fcn.0040cf68
mov eax, dword [ebp - 4]
mov dl, 6
call fcn.0040cc2c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 0
jne 0x419a69
mov eax, dword [ebp - 4]
call fcn.0040d004
cmp al, 6
jne 0x419a69
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x406fe000
push 0
push 0x3ff00000
push 0
lea eax, [ebp - 0x340]
call fcn.00419454
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
shl eax, 2
call fcn.004024e4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x18]
dec esi
test esi, esi
jl 0x419948
inc esi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.0040cefc
mov edx, dword [ebp - 8]
mov dword [edx + ebx*4], eax
inc ebx
dec esi
jne 0x419934
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0x100
jle 0x419977
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0x100
jle 0x419977
lea eax, [ebp - 0x364]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0xc], eax
jmp 0x41997e
mov dword [ebp - 0xc], 1
call fcn.00405520
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x419890]
call fcn.00403e6c
add esp, 4
mov esi, dword [ebp - 0xc]
test esi, esi
jle 0x419a19
mov edi, 1
mov eax, 0x33c
call fcn.004024e4
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [ebx + 4], eax
push esi
push edi
lea esi, [ebp - 0x340]
lea edi, [ebx + 0x14]
mov ecx, 0xca
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [ebx + 0xc], edi
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 8], eax
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
push 0x419738
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebx]
mov dword [eax + edi*4 - 4], edx
mov eax, dword [ebp - 0x18]
mov edx, ebx
call fcn.0040559c
push 2
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_SetThreadPriority
inc edi
dec esi
jne 0x4199ac
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WaitForMultipleObjects
mov esi, dword [ebp - 0xc]
dec esi
test esi, esi
jl 0x419a59
inc esi
xor edi, edi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + edi*4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x18]
mov edx, edi
call fcn.00405634
mov edx, 0x33c
call fcn.004024fc
inc edi
dec esi
jne 0x419a35
mov eax, dword [ebp - 0x18]
call fcn.004054a4
mov eax, dword [ebp - 8]
call fcn.004024fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419a8c
lea eax, [ebp - 0x14]
mov edx, dword [0x419890]
call fcn.00403e78
ret
Function at 0x41afc4
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x248], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41b175
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x144]
mov ecx, 0x41b18c
mov edx, edi
call fcn.004032b8
mov eax, dword [ebp - 0x144]
call fcn.00403430
push eax
call sub.kernel32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x41b151
lea eax, [ebp - 0x140]
mov dword [ebx + 0x10], eax
lea eax, [ebp - 0x244]
lea edx, [ebp - 0x114]
call fcn.0040270c
lea eax, [ebp - 0x244]
mov edx, 0x41b190
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.0040267c
je 0x41b130
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x114]
call fcn.00403218
mov eax, dword [ebp - 0x144]
mov edx, 0x41b19c
call fcn.0040337c
je 0x41b130
test byte [ebp - 0x140], 0x10
je 0x41b105
cmp byte [ebx + 0x1f], 0
jbe 0x41b0b5
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00403254
mov ecx, dword [ebp - 0x144]
mov edx, edi
mov eax, ebx
call fcn.0041aebc
cmp byte [ebx + 0x1c], 0
jne 0x41b130
push edi
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00403254
push dword [ebp - 0x248]
push 0x41b1a8
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.0040332c
mov edx, dword [ebp - 0x144]
mov eax, ebx
call fcn.0041afc4
lea eax, [ebp - 0x140]
mov dword [ebx + 0x10], eax
jmp 0x41b130
cmp byte [ebx + 0x1f], 1
je 0x41b130
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00403254
mov ecx, dword [ebp - 0x144]
mov edx, edi
mov eax, ebx
call fcn.0041aebc
cmp byte [ebx + 8], 0
jne 0x41b14b
lea eax, [ebp - 0x140]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x41b02e
push esi
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b17c
lea eax, [ebp - 0x248]
call fcn.004030f4
lea eax, [ebp - 0x144]
call fcn.004030f4
ret
Function at 0x4ed4d4
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4ed4f5
lea eax, [ebp - 4]
push eax
call fcn.00497bcd
mov eax, dword [ebp - 4]
pop ecx
mov dword [ebp - 8], eax
lea edi, [ebp - 8]
lea eax, [edi + 4]
push eax
call fcn.004981cb
test eax, eax
pop ecx
jne 0x4ed516
call fcn.004980c9
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x4ed617
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x2a], cx
mov cx, word [eax + 8]
mov word [ebp - 0x28], cx
mov cx, word [eax + 4]
mov word [ebp - 0x26], cx
mov ax, word [eax]
and word [ebp - 0x22], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x4ed608
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x4ed608
push edi
call fcn.004981cb
test eax, eax
pop ecx
je 0x4ed608
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x2a], cx
mov cx, word [eax + 8]
mov word [ebp - 0x28], cx
mov cx, word [eax + 4]
mov word [ebp - 0x26], cx
mov ax, word [eax]
and word [ebp - 0x22], 0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x4ed608
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x4ed608
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 8]
call fcn.004a1e76
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x4ed608
xor eax, eax
jmp 0x4ed616
call fcn.004980c9
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop edi
leave
ret
Function at 0x4010af
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a3c8
mov eax, dword fs:[0]
push eax
mov eax, 0x19064
call fcn.0045c530
mov eax, dword [0x495280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x19070], edi
mov dword [ebp - 0x19058], esi
push esi
push esi
xor ebx, ebx
push esi
inc ebx
push ebx
push esi
mov dword [ebp - 4], ebx
call dword [0x4765f0]
mov dword [ebp - 0x1905c], eax
cmp eax, esi
jne 0x401120
push 0xffffffffffffffff
push 0x47674c
mov ecx, edi
call fcn.00403c98
jmp 0x40126b
push esi
push 0x102
push esi
push esi
lea ecx, [ebp + 0xc]
call fcn.00403b80
push eax
push dword [ebp - 0x1905c]
call dword [0x4765f4]
mov dword [ebp - 0x19060], eax
cmp eax, esi
jne 0x401158
push dword [ebp - 0x1905c]
call dword [0x4765f8]
jmp 0x40125d
push esi
lea ecx, [ebp - 0x1906c]
push ecx
lea ecx, [ebp - 0x19068]
push ecx
push 0x20000013
push eax
mov dword [ebp - 0x19068], esi
mov dword [ebp - 0x1906c], esi
call dword [0x4765fc]
cmp dword [ebp - 0x19068], 0x190
ja 0x401247
push 0x19000
lea eax, [ebp - 0x19010]
push esi
push eax
mov dword [ebp - 0x19064], esi
call fcn.0045c4b0
add esp, 0xc
lea eax, [ebp - 0x19064]
push eax
push 0x19000
lea eax, [ebp - 0x19010]
push eax
push dword [ebp - 0x19060]
call dword [0x4765ec]
test eax, eax
je 0x401247
mov eax, dword [ebp - 0x19064]
cmp eax, esi
jbe 0x401247
push dword [ebp - 0x19060]
mov esi, dword [0x4765f8]
mov byte [ebp + eax - 0x19010], 0
call esi
push dword [ebp - 0x1905c]
call esi
push 0xffffffffffffffff
lea eax, [ebp - 0x19010]
push eax
lea ecx, [ebp - 0x19054]
call fcn.00403c98
push 0x19000
lea eax, [ebp - 0x19010]
push 0
push eax
mov byte [ebp - 4], 2
call fcn.0045c4b0
add esp, 0xc
lea eax, [ebp - 0x19054]
push eax
mov ecx, edi
call fcn.00403cb8
lea ecx, [ebp - 0x19054]
mov dword [ebp - 0x19058], ebx
mov byte [ebp - 4], bl
call fcn.00403ac9
jmp 0x401271
push dword [ebp - 0x19060]
mov esi, dword [0x4765f8]
call esi
push dword [ebp - 0x1905c]
call esi
push 0xffffffffffffffff
push 0x47674c
mov ecx, edi
call fcn.00403c98
mov dword [ebp - 0x19058], ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.00403ac9
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045b58a
leave
ret 0x48

Function at 0x40269e
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push 0x40260f
call fcn.0045ca81
add esp, 0xc
ret

Function at 0x40269f
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push 0x40260f
call fcn.0045ca81
add esp, 0xc
ret

Function at 0x406c7a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x406ca0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
xor dl, byte [eax]
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x406c93
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x445c7f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.0045fdcd
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.00445c31
pop ebp
ret 0xc
Function at 0x454a7b
Capabilities:
Parse pe header

Disassembly:
push 0xba4
push 0x48e7b8
call fcn.0045f390
mov ebx, ecx
mov esi, edx
mov byte [ebp - 0xba1], 0
push 0x208
push 0
lea eax, [ebp - 0x358]
push eax
call fcn.0045c4b0
add esp, 0xc
and dword [ebp - 4], 0
push 0x206
lea eax, [ebp - 0x358]
push eax
push esi
call dword [0x476310]
test eax, eax
je 0x454cf3
mov eax, 0x5a4d
cmp ax, word [esi]
je 0x454ae2
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x454d00
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x454ad4
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
lea eax, [ebp - 0x358]
push eax
call dword [0x476334]
mov dword [ebp - 0xba8], eax
mov byte [ebp - 0x88], 0
mov dword [ebp - 0xbac], esi
cmp eax, 0xffffffff
je 0x454b70
push esi
push eax
call dword [0x4761e0]
mov dword [ebp - 0xbac], eax
lea eax, [ebp - 0xbb4]
push eax
push esi
push esi
push dword [ebp - 0xba8]
call dword [0x476260]
test eax, eax
je 0x454b64
push dword [ebp - 0xbb0]
push dword [ebp - 0xbb4]
lea esi, [ebp - 0x88]
call fcn.00454a05
push dword [ebp - 0xba8]
call dword [0x47633c]
push dword [ebp + 8]
push 0x47b748
push ebx
call fcn.00454926
lea eax, [ebp - 0x358]
push eax
push 0x47b740
push ebx
call fcn.00454926
push dword [edi + 0x50]
push dword [edi + 0x34]
push 0x47b714
push ebx
call fcn.00454926
push dword [edi + 8]
push dword [edi + 0x58]
push 0x47b6e8
push ebx
call fcn.00454926
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0xbac]
push 0x47b6c4
push ebx
call fcn.00454926
add esp, 0x48
push 0x47b6ac
push ebx
call fcn.00454926
pop ecx
pop ecx
lea eax, [ebp - 0x358]
push eax
lea ecx, [ebp - 0xba0]
call fcn.00455d97
mov esi, 0xc7
push esi
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0xba0]
call fcn.00455ad6
lea eax, [ebp - 0x150]
push eax
push 0x47b698
push ebx
call fcn.00454926
add esp, 0xc
push esi
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0xba0]
call fcn.00455b50
lea eax, [ebp - 0x150]
push eax
push 0x47b684
push ebx
call fcn.00454926
add esp, 0xc
push esi
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0xba0]
call fcn.00455b13
lea eax, [ebp - 0x150]
push eax
push 0x47b670
push ebx
call fcn.00454926
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xba0]
call fcn.00455a8e
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x24]
push eax
push 0x47b650
push ebx
call fcn.00454926
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xba0]
call fcn.00455ab2
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x24]
push eax
push 0x47b630
push ebx
call fcn.00454926
add esp, 0x18
lea ecx, [ebp - 0xba0]
call fcn.00455a79
push 0x47b62c
push ebx
call fcn.00454926
pop ecx
pop ecx
mov byte [ebp - 0xba1], 1
jmp 0x454cf3
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0xba1]
call fcn.0045f3d8
ret 4
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5ce008], 0x8088405
inc edx
mov dword [ebx + 0x5ce008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d254
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
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 0x41d27c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x5b189e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b18a5
ret
Function at 0x4205fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5b2c17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0x5d05f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0x5d05f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0x5cf3fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4207e9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b2c1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x407550
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x426004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push str.SOFTWARESecureW2MethodsDefaultProfiles
lea eax, [ebp - 0x414]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x414]
push ecx
push str.SW2_TRACE_LEVEL_INFO
push str.__23s::SW2_DeleteProfile__::Path:__s
mov eax, 0x40000
call fcn.0040b690
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add esp, 0x1c
lea edx, [ebp - 0x414]
push edx
push 0x80000002
call esi
lea eax, [ebp - 0x414]
push eax
push 0x80000001
call esi
mov esi, eax
cmp esi, 2
jne 0x4075c8
xor esi, esi
push esi
push str.SW2_TRACE_LEVEL_INFO
push str.__23s::SW2_DeleteProfile__::returning__ld
mov eax, 0x40000
call fcn.0040b690
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040f43d
mov esp, ebp
pop ebp
ret
Function at 0x40ab20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x426004]
xor eax, ebp
mov dword [ebp - 8], eax
movzx eax, byte [ebp + 0xc]
push ebx
push esi
push eax
mov esi, ecx
push esi
push str.SW2_TRACE_LEVEL_INFO
push str.__23s::SW2_WriteInnerEapMethod__::__s___ld_
mov eax, 0x40000
call fcn.0040b690
add esp, 0x10
cmp dword [0x4285c0], 0
je 0x40ab81
push str.SW2_TRACE_LEVEL_INFO::SW2_WriteInnerEapMethod::NOT_storing_information
mov eax, 0x40000
call fcn.0040b690
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040f43d
mov esp, ebp
pop ebp
ret
push esi
push str.SOFTWARESecureW2MethodsDefaultProfiles
lea ecx, [ebp - 0x80c]
push str._s_sRASEAP
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x80c]
push edx
push str.SW2_TRACE_LEVEL_INFO::SW2_WriteInnerEapMethod::_s
mov eax, 0x40000
call fcn.0040b690
lea eax, [ebp - 0x80c]
push eax
lea edx, [ebp - 0x81c]
lea ecx, [ebp - 0x810]
call fcn.0040c2e0
add esp, 0x1c
test eax, eax
jne 0x40ac36
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x810]
lea ecx, [ebp - 0x818]
push ecx
push 1
lea edx, [ebp - 0x814]
mov ecx, edi
call fcn.0040ba10
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ac27
mov edx, dword [ebp - 0x818]
mov eax, dword [ebp - 0x814]
push edx
push eax
push 3
push esi
push str.ConnectionData
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40ac1c
mov esi, 0x6e
lea eax, [ebp - 0x814]
call fcn.0040bb70
mov ecx, dword [ebp - 0x810]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ac3b
mov esi, 0x3f3
push esi
push str.SW2_TRACE_LEVEL_INFO
push str.__23s::SW2_WriteInnerEapMethod__::returning__ld
mov eax, 0x40000
call fcn.0040b690
mov ecx, dword [ebp - 8]
add esp, 0xc
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f43d
mov esp, ebp
pop ebp
ret