joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44efd4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, 0x44ee54
call fcn.00406564
xor eax, eax
push ebp
push 0x44f109
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x44f0dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x44e6a0]
call fcn.0044e770
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.0044e810
mov cl, 1
mov edx, 0x44f120
mov eax, ebx
call fcn.0044e874
mov edx, 0x44f138
mov eax, ebx
call fcn.0044eb1c
test al, al
jne 0x44f059
push 1
push 0x44f13c
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44f0f3
lea ecx, [ebp - 0x14]
mov edx, 0x44f138
mov eax, ebx
call fcn.0044ea30
cmp dword [ebp - 0x14], 0
jne 0x44f084
push 1
push 0x44f13c
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44f0f3
mov eax, dword [0x450e00]
mov eax, dword [eax]
call fcn.0044d0ec
mov eax, dword [0x450e00]
mov eax, dword [eax]
mov edx, 0x44f154
call fcn.0044cd10
mov ecx, dword [0x450f04]
mov eax, dword [0x450e00]
mov eax, dword [eax]
mov edx, dword [0x44eb94]
call fcn.0044d104
mov eax, dword [0x450e00]
mov eax, dword [eax]
call fcn.0044d184
mov eax, ebx
call fcn.0044e7e0
mov eax, ebx
call fcn.004034a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44f0f3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f110
lea eax, [ebp - 0x14]
call fcn.004041f8
ret
Function at 0x401370
Capabilities:
Create directory

Disassembly:
push esi
push edi
mov esi, ecx
push str.SHFolder.dll
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4013cd
push str.SHGetFolderPathA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4013c6
push esi
push 0
push 0
push 5
push 0
call eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013a8
sub eax, edx
je 0x4013c6
cmp byte [eax + esi - 1], 0x5c
je 0x4013c6
push 0x40c234
mov ecx, esi
call fcn.00401280
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401409
push eax
mov ecx, esi
call fcn.00401280
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013e2
sub eax, edx
je 0x401400
cmp byte [eax + esi - 1], 0x5c
je 0x401400
push 0x40c234
mov ecx, esi
call fcn.00401280
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov cl, byte [esi]
xor eax, eax
test cl, cl
pop edi
setne al
pop esi
ret 4

Function at 0x4018f0
Capabilities:
Persist via screensaver registry key
Set registry value

Disassembly:
sub esp, 0x210
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
xor edi, edi
call fcn.004012d0
lea ecx, [esp + 0xc]
call fcn.00401330
mov eax, dword [esp + 0x21c]
push eax
lea ecx, [esp + 0x10]
call fcn.00401280
push str.Control_PanelDesktop
push 0x80000001
mov ecx, esi
call fcn.00401870
test eax, eax
je 0x40198c
lea eax, [esp + 0xc]
lea edx, [eax + 1]
jmp 0x401940
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401940
mov ecx, dword [esi + 8]
sub eax, edx
inc eax
push eax
lea edx, [esp + 0x10]
push edx
push 1
push 0
push str.SCRNSAVE.EXE
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x40197f
push 0
push 0
push 0x1a
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.USER32.dll_BroadcastSystemMessageA]
pop edi
mov eax, esi
pop esi
add esp, 0x210
ret 4
mov eax, edi
pop edi
pop esi
add esp, 0x210
ret 4
Function at 0x4020c0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x34c
push ebx
mov ebx, ecx
push ebp
lea ecx, [esp + 0x148]
call fcn.004012d0
mov ecx, ebx
call fcn.00401690
mov ecx, dword [esp + 0x358]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4021e7
push esi
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x150]
and esi, 0x10
call fcn.00401210
test esi, esi
je 0x402124
lea ecx, [esp + 0x14c]
call fcn.00401300
mov eax, dword [esp + 0x364]
test eax, eax
je 0x402133
test esi, esi
je 0x402142
lea eax, [esp + 0x14c]
push eax
mov ecx, ebx
call fcn.00401ed0
lea ecx, [esp + 0xc]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4021df
push edi
mov edi, dword [esp + 0x364]
mov edi, edi
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x154]
and esi, 0x10
call fcn.00401210
test esi, esi
je 0x402188
lea ecx, [esp + 0x150]
call fcn.00401300
mov eax, dword [esp + 0x368]
test eax, eax
je 0x402197
test esi, esi
je 0x4021ce
test edi, edi
jle 0x4021ac
lea eax, [esp + 0x150]
push eax
mov ecx, ebx
call fcn.00401f40
jmp 0x4021ce
jge 0x4021bf
lea ecx, [esp + 0x150]
push ecx
mov ecx, ebx
call fcn.00402000
jmp 0x4021ce
lea edx, [esp + 0x150]
push edx
mov ecx, ebx
call fcn.00401ed0
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402160
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret 0xc

Function at 0x402280
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 4]
push 0xffffffffffffffff
push 0x40bdab
push eax
mov dword fs:[0], esp
sub esp, 0x42c
test edx, edx
push esi
mov esi, ecx
je 0x40238d
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4022b0
sub eax, edi
mov dword [esp + 0x18], eax
je 0x40238c
push edx
lea ecx, [esp + 0x22c]
call fcn.00401210
lea ecx, [esp + 0x228]
call fcn.00401300
push 0
push 0
push 0x40c294
lea eax, [esp + 0x234]
push eax
mov ecx, esi
call fcn.00402200
lea ecx, [esp + 8]
call fcn.004014c0
mov dword [esp + 8], 0x40c1c8
mov esi, dword [esi + 0xc]
test esi, esi
mov dword [esp + 0x43c], 0
je 0x40236a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, edi
mov edi, dword [esi + 4]
lea ecx, [esp + 0x22c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401210
push edi
lea ecx, [esp + 0x24]
call fcn.00401280
lea ecx, [esp + 0x20]
call fcn.00401250
test eax, eax
je 0x40235b
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.00402280
jmp 0x402362
lea eax, [esp + 0x20]
push eax
call ebx
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x402320
pop ebx
lea ecx, [esp + 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 8]
mov dword [esp + 0x43c], 0xffffffff
call fcn.00401720
pop edi
mov ecx, dword [esp + 0x430]
pop esi
mov dword fs:[0], ecx
add esp, 0x438
ret 4
Function at 0x402a47
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40c2e0
call fcn.0040598c
mov edi, 0x94
mov eax, edi
call fcn.004031b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4104dc], ecx
mov eax, dword [esi + 4]
mov dword [0x4104e8], eax
mov edx, dword [esi + 8]
mov dword [0x4104ec], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4104e0], esi
cmp ecx, 2
je 0x402aa7
or esi, 0x8000
mov dword [0x4104e0], esi
shl eax, 8
add eax, edx
mov dword [0x4104e4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x402ae2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402ae2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402afa
cmp eax, 0x20b
je 0x402ae7
mov dword [ebp - 0x1c], esi
jmp 0x402b0e
cmp dword [ecx + 0x84], 0xe
jbe 0x402ae2
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x402b08
cmp dword [ecx + 0x74], 0xe
jbe 0x402ae2
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040593b
pop ecx
test eax, eax
jne 0x402b22
push 0x1c
call fcn.00402a23
pop ecx
call fcn.004042a8
test eax, eax
jne 0x402b33
push 0x10
call fcn.00402a23
pop ecx
call fcn.00405899
mov dword [ebp - 4], esi
call fcn.0040569b
test eax, eax
jge 0x402b4c
push 0x1b
call fcn.004029fe
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x464c70], eax
call fcn.00405579
mov dword [0x4104ac], eax
call fcn.004054d7
test eax, eax
jge 0x402b72
push 8
call fcn.004029fe
pop ecx
call fcn.004052a4
test eax, eax
jge 0x402b83
push 9
call fcn.004029fe
pop ecx
push 1
call fcn.00404dc6
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x402b99
push eax
call fcn.004029fe
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00405247
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x402bba
movzx eax, word [ebp - 0x40]
jmp 0x402bbd
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401060
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x402bdb
push edi
call fcn.00404ef3
call fcn.00404f15
jmp 0x402c0d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004059c7
ret
Function at 0x4033a1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x40f44c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4033d2
xor eax, eax
jmp 0x40355b
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x464b60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40340e
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00406612
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4034e9
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x403527
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x403472
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x403463
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x403443
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4034b2
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4034bb
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x403434
jmp 0x4034bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x403556
cmp dword [ebp - 0x6c], edi
je 0x403527
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x40351c
call fcn.00405ae1
mov dword [eax], 9
call fcn.00405aea
mov dword [eax], esi
jmp 0x403551
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403511
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4034bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4034bd
push dword [ebp - 0x6c]
call fcn.00405af3
pop ecx
jmp 0x403551
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40353f
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x40353f
xor eax, eax
jmp 0x403559
call fcn.00405ae1
mov dword [eax], 0x1c
call fcn.00405aea
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x403559
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004066c6
add ebp, 0x3a0
leave
ret
Function at 0x404e30
Capabilities:
Terminate process

Disassembly:
push 8
push 0x40c6b0
call fcn.0040598c
push 8
call fcn.00406827
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41051c], esi
jne 0x404e64
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x410518], esi
mov al, byte [ebp + 0x10]
mov byte [0x410514], al
cmp dword [ebp + 0xc], edi
jne 0x404eae
cmp dword [0x464c68], edi
je 0x404e9e
mov eax, dword [0x464c64]
sub eax, 4
mov dword [0x464c64], eax
cmp eax, dword [0x464c68]
jb 0x404e9e
mov eax, dword [eax]
cmp eax, edi
je 0x404e7f
call eax
jmp 0x404e7f
push 0x40f034
mov eax, 0x40f02c
call fcn.00404dae
pop ecx
push 0x40f040
mov eax, 0x40f038
call fcn.00404dae
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x404edf
cmp dword [ebp + 0x10], edi
jne 0x404eed
mov dword [0x41051c], esi
push dword [ebp + 8]
call fcn.00404d6c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x404eec
push 8
call fcn.00406772
pop ecx
ret
call fcn.004059c7
ret

Function at 0x404f33
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40f44c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40f460]
je 0x404f68
inc eax
cmp eax, 0x13
jb 0x404f59
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40f460]
jne 0x40508e
mov eax, dword [0x4104b4]
cmp eax, 1
je 0x405066
cmp eax, edx
jne 0x404f98
cmp dword [0x40f26c], 1
je 0x405066
cmp ecx, 0xfc
je 0x40508e
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404fce
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00407380
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00406050
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x405002
mov eax, edi
push eax
call fcn.00406050
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40caa8
push edi
call fcn.00402c20
add esp, 0x10
push edi
call fcn.00406050
push dword [esi + 0x40f464]
mov ebx, eax
call fcn.00406050
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004031b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00407380
push edi
push ebx
call fcn.00407390
push 0x40ca88
push ebx
call fcn.00407390
push dword [esi + 0x40f464]
push ebx
call fcn.00407390
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004095c5
add esp, 0x2c
jmp 0x40508e
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40f464]
push dword [esi]
call fcn.00406050
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004066c6
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4095c5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x410818], ebx
push esi
push edi
jne 0x409645
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x409680
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x410818], eax
je 0x409680
push str.GetActiveWindow
push edi
call esi
push 0x40d358
push edi
mov dword [0x41081c], eax
call esi
cmp dword [0x4104dc], 2
mov dword [0x410820], eax
jne 0x409645
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x410828], eax
je 0x409645
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x410824], eax
mov eax, dword [0x410824]
test eax, eax
je 0x40968a
call eax
test eax, eax
je 0x409671
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x410828]
test eax, eax
je 0x409671
test byte [ebp - 8], 1
jne 0x40968a
cmp dword [0x4104e8], 4
jb 0x409684
or byte [ebp + 0x12], 0x20
jmp 0x4096a9
xor eax, eax
jmp 0x4096b9
or byte [ebp + 0x12], 4
jmp 0x4096a9
mov eax, dword [0x41081c]
test eax, eax
je 0x4096a9
call eax
mov ebx, eax
test ebx, ebx
je 0x4096a9
mov eax, dword [0x410820]
test eax, eax
je 0x4096a9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x410818]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40979d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4097cb
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4097d2
cmp ebx, dword [eax + 4]
jae 0x4097d2
xor eax, eax
jmp 0x4099c2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4097e3
xor eax, eax
inc eax
jmp 0x4099c1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4097f9
cmp ecx, edx
jae 0x40993e
cmp dword [eax + 4], 0
je 0x409802
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4097ea
cmp dword [ebp + 8], 0
je 0x409824
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40993e
cmp eax, esi
jae 0x40993e
mov eax, dword [0x410830]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x409849
cmp dword [esi*4 + 0x410838], edi
je 0x409942
inc esi
cmp esi, eax
jl 0x409837
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4099be
cmp dword [ebp - 8], 0x1000000
jne 0x4099be
test byte [ebp - 0xc], 0xcc
je 0x4098c7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4099be
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4099be
cmp word [eax + 0x18], 0x10b
jne 0x4099be
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4099be
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4098c7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4098c7
test byte [ecx + 0x27], 0x80
jne 0x40993e
push 1
push 0x410878
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4097db
mov ecx, dword [0x410830]
test ecx, ecx
mov edx, ecx
jle 0x4098fb
lea eax, [ecx*4 + 0x410834]
cmp dword [eax], edi
je 0x4098fb
dec edx
sub eax, 4
test edx, edx
jg 0x4098ef
test edx, edx
jne 0x40992c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x409908
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x409920
lea eax, [edx*4 + 0x410838]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40990e
cmp ecx, 0x10
jge 0x40992c
inc ecx
mov dword [0x410830], ecx
push 0
push 0x410878
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4097db
xor eax, eax
jmp 0x4099c1
test esi, esi
jle 0x4097db
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x410878
call ebx
test eax, eax
jne 0x4097db
cmp dword [esi*4 + 0x410838], edi
je 0x409998
mov eax, dword [0x410830]
lea esi, [eax - 1]
test esi, esi
jl 0x409986
cmp dword [esi*4 + 0x410838], edi
je 0x409982
dec esi
jns 0x409976
test esi, esi
jge 0x409996
cmp eax, 0x10
jge 0x409991
inc eax
mov dword [0x410830], eax
lea esi, [eax - 1]
jmp 0x409998
je 0x4099b0
xor ecx, ecx
test esi, esi
jl 0x4099b0
lea eax, [ecx*4 + 0x410838]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40999e
push 0
push 0x410878
call ebx
jmp 0x4097db
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409bbc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004031b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409c57
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4104dc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x409c57
cmp eax, 1
je 0x409c78
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409c57
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x409c24
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x409c53
xor eax, eax
inc eax
jmp 0x409c97
cmp edi, eax
jae 0x409c5b
xor eax, eax
jmp 0x409c97
cmp eax, esi
jae 0x409c62
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4104dc]
jmp 0x409c7b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5023eb
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4ecb77
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x4ecb93
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
rol eax, 7
xor eax, edx
inc ecx
cmp ecx, dword [esp + 8]
jb 0x4ecb7f
jmp 0x4ecb9e
ret
lea esp, [esp + 8]
jmp 0x4ecb6c

Function at 0x5169e4
Capabilities:
Encrypt data using aes

Disassembly:
mov eax, edx
add si, 0xbffc
jmp 0x516a1e
lea esp, [esp + 4]
mov esi, 0xff
not edi
mov bl, 0xf8
xchg bl, bh
jmp 0x516a67
shr eax, 0x10
lea esi, [ebp*4]
bsf si, ax
mov bl, 0x1c
mov si, 0x4c97
jmp 0x5169ed
mov esi, eax
lea esi, [esi*4]
lea esi, reloc.RASAPI32.dll_RasHangUpA
mov eax, dword [esi]
jmp 0x516a72
xchg bl, bh
and eax, esi
mov bx, 0x7f7b
push esi
jmp 0x516a4f
pop esi
mov bp, 0x52d9
mov bx, 0xaa41
jmp 0x516ab6
pushal
mov esi, 0xb2300fe8
mov ax, 0x8ddd
mov dword [esp], edx
push edx
jmp 0x516b11
xor eax, 0x1000000
push edx
not di
mov di, word [esp + 2]
jmp 0x516a9f
and edi, esi
btr ebp, esp
call fcn.00516c65
invalid
shr edi, 8
setl bl
lea ebp, [esp + esi]
cmc
jmp 0x516adc
push dword [esp + 2]
lea esp, [esp + 8]
popal
mov bl, bh
jmp 0x516af3

Function at 0x51754c
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x517579
push dword [esp + 8]
and ebx, ecx
push esp
lea esp, [esp + 1]
add esp, 1
jmp 0x5175aa
lea esp, [esp + 3]
mov edi, dword [edi*4 + reloc.RASAPI32.dll_RasHangUpA]
stc
sub esp, 0x14
push dword [esp + 6]
jmp 0x51754e
lea esp, [esp + 2]
lea esp, [esp + 0x20]
xor edi, dword [ebx*4 + reloc.RASAPI32.dll_RasHangUpA]
mov bl, 0x38
jmp 0x5175cf
movzx ebx, byte [esi + 2]
push edx
call 0x5175da
cmpsb byte [esi], byte es:[edi]
push word [esp + 7]
mov dword [esp + 3], ebp
lea esp, [esp + 2]
jmp 0x517a36
mov dword [esp + 0xb], eax
and edx, ecx
cmc
call fcn.0051761d
mov ebx, dword [ebx*4 + reloc.RASAPI32.dll_RasHangUpA]
call fcn.005176df
push edx
rol byte [esi + 0x21], 1
shr byte [esi - 0x34], 1
dec ebp
frstor dword [edi + edx*2 + reloc.RASAPI32.dll_RasHangUpA]
btr edi, esp
mov edi, dword [esp]
and di, 0xb29e
jmp 0x517648
and edx, ecx
mov edx, dword [edx*4 + reloc.RASAPI32.dll_RasHangUpA]
stc
sub esp, 0x1c
jmp 0x51763c
xor edi, dword [ebx*4 + reloc.RASAPI32.dll_RasHangUpA]
mov ebx, 0x932436ba
bswap ebx
movzx ebx, byte [esi + 5]
sub esp, 0x14
jmp 0x51767f
mov ebx, dword [ebx*4 + reloc.RASAPI32.dll_RasHangUpA]
and ebx, ecx
lea esp, [esp + 8]
jmp 0x51789e

Function at 0x5175f3
Capabilities:
Encrypt data using aes

Disassembly:
lea esp, [esp + 0x2c]
add esi, 0x10
mov edi, dword [esp]
jmp 0x517528

Function at 0x51761d
Capabilities:
Encrypt data using aes

Disassembly:
lea esp, [esp + 0x34]
xor edi, dword [edx*4 + reloc.RASAPI32.dll_RasHangUpA]
clc
mov dx, word [esp]
jmp 0x517622
sub esp, 0
jmp 0x517602
mov edx, dword [esi + 4]
sub esp, 8
sub esp, 2
push word [esp + 7]
jmp 0x517661
mov dword [esi], edi