joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b04c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x412e88
call fcn.0040a200
mov edi, 0x94
mov eax, edi
call fcn.0040ad40
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 [0x4160bc], ecx
mov eax, dword [esi + 4]
mov dword [0x4160c8], eax
mov edx, dword [esi + 8]
mov dword [0x4160cc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4160c0], esi
cmp ecx, 2
je 0x40b0ac
or esi, 0x8000
mov dword [0x4160c0], esi
shl eax, 8
add eax, edx
mov dword [0x4160c4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40b0e7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b0e7
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40b0ff
cmp eax, 0x20b
je 0x40b0ec
mov dword [ebp - 0x1c], esi
jmp 0x40b113
cmp dword [ecx + 0x84], 0xe
jbe 0x40b0e7
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40b10d
cmp dword [ecx + 0x74], 0xe
jbe 0x40b0e7
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040b4bd
pop ecx
test eax, eax
jne 0x40b127
push 0x1c
call fcn.0040b028
pop ecx
call fcn.0040cc3d
test eax, eax
jne 0x40b138
push 0x10
call fcn.0040b028
pop ecx
call fcn.0040e30e
mov dword [ebp - 4], esi
call fcn.0040e110
test eax, eax
jge 0x40b151
push 0x1b
call fcn.0040b003
pop ecx
call fcn.0040e071
mov dword [0x416854], eax
call fcn.0040df07
mov dword [0x415ef4], eax
call fcn.0040de71
test eax, eax
jge 0x40b176
push 8
call fcn.0040b003
pop ecx
call fcn.0040dc3e
test eax, eax
jge 0x40b187
push 9
call fcn.0040b003
pop ecx
push 1
call fcn.0040d4ac
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40b19d
push eax
call fcn.0040b003
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0040dbf8
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40b1be
movzx eax, word [ebp - 0x40]
jmp 0x40b1c1
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004081d6
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40b1df
push edi
call fcn.0040d5d9
call fcn.0040d5fb
jmp 0x40b211
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040a23b
ret
Function at 0x40b27a
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 0x40b2a8
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 0x40b2af
cmp ebx, dword [eax + 4]
jae 0x40b2af
xor eax, eax
jmp 0x40b49f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40b2c0
xor eax, eax
inc eax
jmp 0x40b49e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40b2d6
cmp ecx, edx
jae 0x40b41b
cmp dword [eax + 4], 0
je 0x40b2df
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40b2c7
cmp dword [ebp + 8], 0
je 0x40b301
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40b41b
cmp eax, esi
jae 0x40b41b
mov eax, dword [0x415f00]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40b326
cmp dword [esi*4 + 0x415f08], edi
je 0x40b41f
inc esi
cmp esi, eax
jl 0x40b314
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b49b
cmp dword [ebp - 8], 0x1000000
jne 0x40b49b
test byte [ebp - 0xc], 0xcc
je 0x40b3a4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40b49b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b49b
cmp word [eax + 0x18], 0x10b
jne 0x40b49b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40b49b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40b3a4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40b3a4
test byte [ecx + 0x27], 0x80
jne 0x40b41b
push 1
push 0x415f48
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40b2b8
mov ecx, dword [0x415f00]
test ecx, ecx
mov edx, ecx
jle 0x40b3d8
lea eax, [ecx*4 + 0x415f04]
cmp dword [eax], edi
je 0x40b3d8
dec edx
sub eax, 4
test edx, edx
jg 0x40b3cc
test edx, edx
jne 0x40b409
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40b3e5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40b3fd
lea eax, [edx*4 + 0x415f08]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40b3eb
cmp ecx, 0x10
jge 0x40b409
inc ecx
mov dword [0x415f00], ecx
push 0
push 0x415f48
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40b2b8
xor eax, eax
jmp 0x40b49e
test esi, esi
jle 0x40b2b8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x415f48
call ebx
test eax, eax
jne 0x40b2b8
cmp dword [esi*4 + 0x415f08], edi
je 0x40b475
mov eax, dword [0x415f00]
lea esi, [eax - 1]
test esi, esi
jl 0x40b463
cmp dword [esi*4 + 0x415f08], edi
je 0x40b45f
dec esi
jns 0x40b453
test esi, esi
jge 0x40b473
cmp eax, 0x10
jge 0x40b46e
inc eax
mov dword [0x415f00], eax
lea esi, [eax - 1]
jmp 0x40b475
je 0x40b48d
xor ecx, ecx
test esi, esi
jl 0x40b48d
lea eax, [ecx*4 + 0x415f08]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40b47b
push 0
push 0x415f48
call ebx
jmp 0x40b2b8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d516
Capabilities:
Terminate process

Disassembly:
push 8
push 0x412ff0
call fcn.0040a200
push 8
call fcn.0040b661
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4160fc], esi
jne 0x40d54a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4160f8], esi
mov al, byte [ebp + 0x10]
mov byte [0x4160f4], al
cmp dword [ebp + 0xc], edi
jne 0x40d594
cmp dword [0x416828], edi
je 0x40d584
mov eax, dword [0x416824]
sub eax, 4
mov dword [0x416824], eax
cmp eax, dword [0x416828]
jb 0x40d584
mov eax, dword [eax]
cmp eax, edi
je 0x40d565
call eax
jmp 0x40d565
push 0x41503c
mov eax, 0x415038
call fcn.0040d494
pop ecx
push 0x415048
mov eax, 0x415040
call fcn.0040d494
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40d5c5
cmp dword [ebp + 0x10], edi
jne 0x40d5d3
mov dword [0x4160fc], esi
push dword [ebp + 8]
call fcn.0040d452
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40d5d2
push 8
call fcn.0040b5ac
pop ecx
ret
call fcn.0040a23b
ret

Function at 0x40d8e4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x415154]
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 + 0x4152b0]
je 0x40d919
inc eax
cmp eax, 0x13
jb 0x40d90a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4152b0]
jne 0x40da3f
mov eax, dword [0x415ef8]
cmp eax, 1
je 0x40da17
cmp eax, edx
jne 0x40d949
cmp dword [0x415150], 1
je 0x40da17
cmp ecx, 0xfc
je 0x40da3f
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 0x40d97f
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040ce50
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00409a70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40d9b3
mov eax, edi
push eax
call fcn.00409a70
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4133f8
push edi
call fcn.0040f8b0
add esp, 0x10
push edi
call fcn.00409a70
push dword [esi + 0x4152b4]
mov ebx, eax
call fcn.00409a70
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040ad40
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040ce50
push edi
push ebx
call fcn.0040ce60
push 0x4133d8
push ebx
call fcn.0040ce60
push dword [esi + 0x4152b4]
push ebx
call fcn.0040ce60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040f7ae
add esp, 0x2c
jmp 0x40da3f
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4152b4]
push dword [esi]
call fcn.00409a70
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.0040b26c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40df07
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x416314]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x40df50
call ebp
mov esi, eax
cmp esi, ebx
je 0x40df36
mov dword [0x416314], 1
jmp 0x40df55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40df4b
push 2
pop eax
mov dword [0x416314], eax
jmp 0x40df50
mov eax, dword [0x416314]
cmp eax, 1
jne 0x40dfad
cmp esi, ebx
jne 0x40df68
call ebp
mov esi, eax
cmp esi, ebx
jne 0x40df68
xor eax, eax
jmp 0x40e054
cmp word [esi], bx
mov eax, esi
je 0x40df7d
inc eax
inc eax
cmp word [eax], bx
jne 0x40df6f
inc eax
inc eax
cmp word [eax], bx
jne 0x40df6f
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0040ad21
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x40dfa0
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x40e054
push ebp
push esi
push edi
call fcn.00409b00
add esp, 0xc
jmp 0x40df92
cmp eax, 2
je 0x40dfb6
cmp eax, ebx
jne 0x40df61
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x40df61
cmp byte [ebp], bl
mov esi, ebp
je 0x40dfec
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40df61
push esi
add edi, eax
call fcn.00409a70
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x40dfc9
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0040ad21
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x40e065
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x40e046
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40e05b
push edi
call fcn.00409a70
push esi
lea edi, [edi + eax + 1]
call fcn.0040ac64
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x40e00c
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0040a355
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40df61
Function at 0x40e071
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x416318]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x40e0b1
call esi
test eax, eax
je 0x40e096
mov dword [0x416318], 1
jmp 0x40e0b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40e0ad
mov dword [0x416318], 2
jmp 0x40e0bf
xor eax, eax
jmp 0x40e10d
cmp eax, 1
jne 0x40e0ba
call esi
jmp 0x40e10d
cmp eax, 2
jne 0x40e0ad
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x40e105
lea eax, [esi + esi]
push eax
call fcn.0040ad21
mov ebp, eax
test ebp, ebp
pop ecx
je 0x40e105
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x40e109
push ebp
call fcn.0040a355
pop ecx
xor eax, eax
jmp 0x40e10b
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x40f7ae
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x416338], ebx
push esi
push edi
jne 0x40f82e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40f869
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x416338], eax
je 0x40f869
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41633c], eax
call esi
cmp dword [0x4160bc], 2
mov dword [0x416340], eax
jne 0x40f82e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x416348], eax
je 0x40f82e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x416344], eax
mov eax, dword [0x416344]
test eax, eax
je 0x40f873
call eax
test eax, eax
je 0x40f85a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x416348]
test eax, eax
je 0x40f85a
test byte [ebp - 8], 1
jne 0x40f873
cmp dword [0x4160c8], 4
jb 0x40f86d
or byte [ebp + 0x12], 0x20
jmp 0x40f892
xor eax, eax
jmp 0x40f8a2
or byte [ebp + 0x12], 4
jmp 0x40f892
mov eax, dword [0x41633c]
test eax, eax
je 0x40f892
call eax
mov ebx, eax
test ebx, ebx
je 0x40f892
mov eax, dword [0x416340]
test eax, eax
je 0x40f892
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x416338]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410d94
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.0040ad40
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410e2f
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 [0x4160bc]
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 0x410e2f
cmp eax, 1
je 0x410e50
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 0x410e2f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x410dfc
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x410e2b
xor eax, eax
inc eax
jmp 0x410e6f
cmp edi, eax
jae 0x410e33
xor eax, eax
jmp 0x410e6f
cmp eax, esi
jae 0x410e3a
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 [0x4160bc]
jmp 0x410e53
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x17da4865
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x3945727c
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x10625
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push section.INIT
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 0x10494
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x38], 0x1053f
mov edx, dword [ebp + 8]
mov dword [edx + 0x40], 0x1053f
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 0x1053f
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x44], 0x1053f
mov edx, dword [ebp + 8]
push edx
call fcn.000106d2
mov dword [ebp - 4], eax
push 0x10614
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x106d2
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x10690
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x22
lea ecx, [ebp - 0x24]
push ecx
push 0x14
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x1071b
mov eax, dword [ebp - 0x18]
jmp 0x10790
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
or ecx, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
mov dword [ecx + 8], eax
push 0x106b8
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x10]
mov dword [edx + 0x10], ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x1078e
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 0x18]
jmp 0x10790
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x401560
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key

Disassembly:
sub esp, 0x60
mov ecx, dword [0x40a994]
push esi
push edi
mov dword [esp + 0x1c], ecx
mov ecx, 0xb
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea edi, [esp + 0x38]
mov eax, dword [str.LTWinModem]
rep movsd dword es:[edi], dword [esi]
mov dx, word [0x40a998]
mov dword [esp + 0x18], eax
mov al, byte [0x40a99a]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallLTWinModem
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x80000002
mov word [esp + 0x28], dx
mov byte [esp + 0x2a], al
call esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallLucent_Technologies_Soft_Modem
push 0x80000002
call esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallLucent_Technologies_Soft_Modem_AMR
push 0x80000002
call esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallToshiba_Soft_Modem
push 0x80000002
call esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallToshiba_Soft_Modem_AMR
push 0x80000002
call esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallToshiba_Software_Modem
push 0x80000002
call esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallToshiba_Software_Modem_AMR
push 0x80000002
call esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallAgere_Systems_Soft_Modem
push 0x80000002
call esi
lea ecx, [esp + 8]
lea edx, [esp + 0x38]
push ecx
push 0x20006
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4016b9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, 1
lea eax, [esp + 0x2c]
push 0x40d7d0
push eax
call esi
lea ecx, [esp + 0x14]
push 0x40d7d0
push ecx
call esi
lea edx, [esp + 0x14]
push 0xa
push edx
push edi
call fcn.00407b20
add esp, 0xc
lea eax, [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
push ecx
call esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push eax
call ebp
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push edx
call ebx
inc edi
cmp edi, 0xa
jl 0x401642
mov eax, dword [esp + 0x10]
push str.LTSMMSG
push eax
call ebx
mov ecx, dword [esp + 0x10]
push str.AGRSMMSG
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x60
ret
Function at 0x4016c0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
push 0x104
push 0x40dec0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0x40e120
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push 0x40dec0
push str._sOptionsCABS
push 0x40ef00
call ebx
add esp, 0xc
push 0
push 0x40ef00
call fcn.004055d0
add esp, 8
test eax, eax
je 0x401742
push 0x40dec0
lea eax, [esp + 0x10]
push str._sOptions
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
lea ecx, [esp + 0xc]
push 0
push ecx
call esi
push 0
push 0x40ef00
call esi
push 0x40dec0
push str._sOptionsInstall
push 0x40ecc0
call ebx
add esp, 0xc
push 0x40dec0
push str._sSystem32Drivers
push 0x40e360
call ebx
add esp, 0xc
push 0x40e120
push str._sDrivers
push 0x40e480
call ebx
add esp, 0xc
push 0x104
push 0x40e240
call fcn.00405440
add esp, 8
push 0x40dec0
push str._sINF
push 0x40e860
call ebx
add esp, 0xc
push 0
push 0x40e860
call fcn.004055d0
add esp, 8
test eax, eax
je 0x4017dc
mov edi, 0x40dec0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x40e860
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x40e860
push str._sOTHER
push 0x40eba0
call ebx
add esp, 0xc
push 0x40dec0
push str._swininit.ini
push 0x40e5a0
call ebx
add esp, 0xc
push 0x40dec0
push str._swininit.tmp
push 0x40f020
call ebx
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x104
ret