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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x1005ea84], 0xffffffff
push esi
mov esi, ecx
jne 0x1001418a
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp dword [ebp - 0x10], 1
sete al
mov dword [0x1005ea84], eax
push 0
push 0
push 0
push 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x10
mov dword [esi], eax
call fcn.10019788
add esp, 4
mov dword [esi + 8], eax
cmp dword [0x1005ea84], 0
xorps xmm0, xmm0
movups xmmword [eax], xmm0
jne 0x100141d6
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10014260
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10037834
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
setne al
pop esi
pop ebp
ret 0x14
Function at 0x10014450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x1005e068]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 1
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
jne 0x10014509
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x42c]
push 0x400
push eax
call fcn.10010a40
add esp, 0x14
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x430]
push eax
movzx eax, word [ebp - 0x432]
push eax
movzx eax, word [ebp - 0x434]
push eax
movzx eax, word [ebp - 0x436]
push eax
movzx eax, word [ebp - 0x43a]
push eax
movzx eax, word [ebp - 0x43c]
push eax
push str.__d__d__d__d:_d:_d_6_
lea eax, [ebp - 0x28]
push 0x20
push eax
call fcn.1000a6f0
add esp, 0x24
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x28]
push eax
push str._s_s
call fcn.10014340
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret
cmp byte [edi + 4], 0
je 0x100145ec
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x42c]
push 0x400
push eax
call fcn.10010a40
lea esi, [ebp - 0x42c]
add esp, 0x14
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10014540
lea eax, [ebp - 0x43c]
sub esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x430]
push eax
movzx eax, word [ebp - 0x432]
push eax
movzx eax, word [ebp - 0x434]
push eax
movzx eax, word [ebp - 0x436]
push eax
movzx eax, word [ebp - 0x43a]
push eax
movzx eax, word [ebp - 0x43c]
push eax
push str.__d__d__d__d:_d:_d_6_
lea eax, [ebp - 0x28]
push 0x20
push eax
call fcn.1000a6f0
add esp, 0x24
lea ebx, [edi + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x28]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100145b0
push dword [edi + 0x20]
sub ecx, edx
lea eax, [ebp - 0x28]
push ecx
push 1
push eax
call fcn.10034e71
push dword [edi + 0x20]
lea eax, [ebp - 0x42c]
push esi
push 1
push eax
call fcn.10034e71
push dword [edi + 0x20]
call fcn.10034787
add esp, 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10019772
mov esp, ebp
pop ebp
ret
Function at 0x10015140
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100470a7
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1005e068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10060fc8], 0
jne 0x100151df
push 0x68
call fcn.10019788
mov esi, eax
mov dword [ebp - 0x18], esi
push 0x68
push 0
push esi
mov dword [ebp - 4], 0
call fcn.10031920
add esp, 0x10
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [esi + 0xc]
call fcn.10007c80
lea ecx, [esi + 0x28]
call fcn.10007c80
lea ecx, [esi + 0x40]
call fcn.10007c80
sub esp, 8
mov byte [ebp - 4], 4
lea ecx, [esi + 0x5c]
push 0xfa0
call fcn.10014160
mov dword [ebp - 4], 0xffffffff
mov dword [0x10060fc8], esi
cmp dword [0x10060fc4], 0
jne 0x10015276
push 0x2c
call fcn.10019788
mov esi, eax
mov dword [ebp - 0x18], esi
push 0x2c
push 0
push esi
mov dword [ebp - 4], 5
call fcn.10031920
add esp, 0x10
mov ecx, esi
call fcn.10001480
push 1
lea ecx, [ebp - 0x11]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.10005db0
push eax
call fcn.10001500
add esp, 4
mov dword [esi], eax
lea ecx, [ebp - 0x20]
call fcn.10001450
push eax
push dword [esi]
lea eax, [ebp - 0x11]
push eax
call fcn.100063c0
mov eax, dword [esi]
add esp, 0xc
mov dword [eax], esi
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov dword [0x10060fc4], esi
push dword [0x10061348]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [0x10061240], 0x10061110
mov dword [0x1006133c], 0x10061204
call esi
push 0x10061340
push 0
push 0x10061310
push 0x10016d30
push 0
push 0
call fcn.10037834
add esp, 0x18
mov dword [0x10061344], eax
push dword [0x100612f0]
call esi
push 0x100612e8
push 0
push 0x100612ac
push 0x10015e10
push 0
push 0
call fcn.10037834
add esp, 0x18
mov dword [0x100612ec], eax
mov ecx, 0x10061120
mov dword [0x100612a4], 0x10061310
mov dword [0x100612a8], 0x100612ac
call fcn.10017bb0
test al, al
je 0x1001535a
push 0x10017360
mov ecx, 0x10061120
mov dword [0x100611fc], 0x10061110
mov dword [0x10061200], 0x10061294
mov dword [0x10061114], 0x10061120
mov dword [0x10061298], 0x10061120
call fcn.100066c0
mov ecx, dword [0x10061298]
push 0x10061294
call fcn.100067d0
sub esp, 8
mov ecx, 0x10061120
call fcn.10017c20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10017c20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10047412
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1005e068]
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, ecx
cmp byte [edi + 0xc0], 0
jne 0x10017c5d
xor al, al
jmp 0x10017d5b
push 0
push 0x11
call fcn.100066e0
cmp byte [edi + 0x29], 0
mov bl, al
je 0x10017c7a
cmp byte [edi + 0x28], 0
je 0x10017c7a
movzx ecx, word [edi + 0x7e]
jmp 0x10017c9e
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x1e]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov word [edi + 0xc2], cx
test bl, bl
je 0x10017c56
push ecx
mov ecx, edi
call fcn.10012960
test al, al
je 0x10017c56
cmp byte [edi + 0x29], 0
je 0x10017cc7
cmp byte [edi + 0x28], 0
lea eax, [edi + 0x80]
jne 0x10017ccd
lea eax, [edi + 0xc4]
push eax
lea ecx, [ebp - 0x28]
call fcn.10007cd0
mov dword [ebp - 4], 0
mov ebx, dword [0x10060fb4]
test ebx, ebx
jne 0x10017d30
push 0x3c
call fcn.10019788
mov ebx, eax
add esp, 4
mov dword [ebp - 0x2c], ebx
lea ecx, [ebx + 8]
mov dword [ebx], vtable.CBaseLog.0
call fcn.10007c80
mov byte [ebp - 4], 2
lea ecx, [ebx + 8]
push 0x10057560
mov byte [ebx + 4], 0
mov dword [ebx + 0x20], 0
call fcn.10007bd0
lea eax, [ebx + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x10060fb4], ebx
movzx eax, word [edi + 0xc2]
lea ecx, [ebp - 0x28]
push eax
call fcn.10003420
push eax
push str.ip:_s_port_d_n
push 1
push ebx
call fcn.10014450
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.100034a0
mov al, 1
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.10019772
mov esp, ebp
pop ebp
ret 8
Function at 0x10018110
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x608
mov eax, dword [0x1005e068]
xor eax, esp
mov dword [esp + 0x604], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0xc], esi
cmp byte [edi + 0x29], 0
je 0x100181b8
cmp byte [edi + 0x28], 0
je 0x100181b8
push eax
mov dword [esp + 0x2c], 0x1000000
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0x14]
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x32]
push esi
push dword [esp + 0x10]
movzx eax, ax
mov edx, 0x5d2
mov word [esp + 0x38], ax
call fcn.10014600
movzx eax, word [edi + 0x7e]
lea ecx, [edi + 0x80]
add esp, 8
push eax
call fcn.10003420
push eax
lea eax, [esi + 0xa]
mov ecx, edi
push eax
lea eax, [esp + 0x34]
push eax
call fcn.10012a40
pop edi
pop esi
mov ecx, dword [esp + 0x604]
xor ecx, esp
call fcn.10019772
mov esp, ebp
pop ebp
ret 0x10
xorps xmm0, xmm0
mov ecx, 2
movaps xmmword [esp + 0x10], xmm0
push eax
mov word [esp + 0x14], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0x14]
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [esp + 0x16], ax
lea eax, [esp + 0x14]
push eax
push 0
push dword [ebp + 0xc]
push esi
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esp + 0x60c]
pop edi
pop esi
xor ecx, esp
call fcn.10019772
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001b5bf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x404dd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040525c
mov byte [esp], al
cmp byte [esp], 0
jne 0x404f59
test edi, edi
je 0x404f59
mov byte [esp + 1], 0
test ebp, ebp
jle 0x404e99
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x404e74
cmp edi, 0xffffffff
je 0x404e35
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404e35
mov byte [esp], 0
jmp 0x404f59
cmp dword [esi], 1
jg 0x404e74
cmp dword [esi], 0
jne 0x404e66
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x404e66
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x404f59
lea eax, [esp + 0xc]
call fcn.00404a8c
dec ebp
test ebp, ebp
jg 0x404e1a
cmp edi, 0xffffffff
je 0x404e99
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404e97
mov byte [esp], 0
jmp 0x404f59
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x404dde
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x404e99
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00404fc8
mov edx, eax
mov ebx, dword [0x4108e0]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x404efd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x404efb
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x404efd
xor edi, edi
cmp byte [esp], 0
je 0x404f23
mov ebx, dword [esi]
test bl, 1
jne 0x404f39
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x404f03
mov byte [esp + 1], 1
jmp 0x404f39
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x404f23
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x404eb0
cmp byte [esp], 0
je 0x404f59
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405990
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x412b80
cmp dword [ebp + 0xc], 2
jl 0x4059a4
mov ebx, 0x412bb0
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x4059dc
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x40212c
mov dword [0x410018], eax
mov eax, 0x402134
mov dword [0x41001c], eax
mov eax, ebx
call fcn.00405874
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x405a11
cmp al, 3
jge 0x405a11
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x405a22
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x405a2d
call dword [ecx + eax*4]
cmp dword [0x410028], 0
jne 0x405a43
mov byte [0x410030], 1
fnstcw word [0x40e014]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00405b78
call fcn.00405924
ret 4

Function at 0x405ae0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x410040], 0
je 0x405b47
cmp word [0x41032c], 0xd7b2
jne 0x405b09
cmp dword [0x410334], 0
jbe 0x405b09
mov eax, 0x410328
call dword [0x410344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x405b74
call fcn.0040614c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40e01e], 0
jne 0x405b63
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x408bfc
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x409fe4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov ebx, eax
lea eax, [ebp - 0x14]
mov edx, dword [0x409e10]
call fcn.00406638
xor eax, eax
push ebp
push 0x40a19e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x15], 0
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, ebx
call fcn.00406164
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a182
mov eax, dword [0x40a1b0]
mov dword [ebp - 0x14], eax
mov al, byte [0x40a1b4]
mov byte [ebp - 0x10], al
mov word [ebp - 0xe], 1
mov byte [ebp - 0xc], 3
mov byte [ebp - 0xb], 1
mov eax, dword [0x4135a4]
test eax, eax
je 0x40a067
sub eax, 4
mov eax, dword [eax]
mov edx, eax
mov dword [ebp - 8], edx
test edx, edx
jbe 0x40a17c
xor esi, esi
push 0
push 0
push esi
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x1c]
push eax
push 5
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_WriteFile
add esi, 5
push 0
push 0
push esi
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0xe]
push eax
push ebx
call sub.kernel32.dll_WriteFile
add esi, 2
push 0
push 0
push esi
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_WriteFile
inc esi
push 0
push 0
push esi
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 0xb]
push eax
push ebx
call sub.kernel32.dll_WriteFile
inc esi
push 0
push 0
push esi
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_WriteFile
add esi, 4
push 0
push 0
push esi
push ebx
call sub.kernel32.dll_SetFilePointer
mov eax, dword [0x4135a4]
test eax, eax
je 0x40a12b
sub eax, 4
mov eax, dword [eax]
dec eax
test eax, eax
jl 0x40a178
inc eax
mov dword [ebp - 0x20], eax
xor edi, edi
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x12
lea eax, [edi + edi*8]
mov edx, dword [0x4135a4]
lea eax, [edx + eax*2]
push eax
push ebx
call sub.kernel32.dll_WriteFile
mov eax, dword [0x4135a4]
test eax, eax
je 0x40a15f
sub eax, 4
mov eax, dword [eax]
dec eax
cmp edi, eax
jge 0x40a172
add esi, 0x12
push 0
push 0
push esi
push ebx
call sub.kernel32.dll_SetFilePointer
inc edi
dec dword [ebp - 0x20]
jne 0x40a136
mov byte [ebp - 0x15], 1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a1a5
lea eax, [ebp - 0x14]
mov edx, dword [0x409e10]
call fcn.00406708
ret
Function at 0x401550
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00422210
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x4015b5
cmp dword [ebp - 0x118], 0
jne 0x4015b5
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0041a70e
mov esp, ebp
pop ebp
ret

Function at 0x4015d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00422210
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0041a70e
mov esp, ebp
pop ebp
ret

Function at 0x401630
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00422210
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jbe 0x4016a5
cmp eax, 6
jbe 0x401693
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
jne 0x4016a5
mov eax, dword [ebp - 0x118]
cmp eax, 1
jbe 0x4016a5
cmp eax, 2
jae 0x401680
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
Function at 0x4022d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00422210
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x40232c
mov eax, 1
cmp dword [ebp - 0x118], eax
jne 0x40232c
cmp word [ebp - 0xc], ax
je 0x40232e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret

Function at 0x402340
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00422210
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jae 0x40239e
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
jne 0x4023c0
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x40238b
cmp eax, 2
je 0x4023c0
cmp eax, 1
jne 0x4023c0
mov ax, word [ebp - 0xc]
cmp ax, 3
je 0x4023c0
jb 0x40238b
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0041a70e
mov esp, ebp
pop ebp
ret

Function at 0x4023d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00422210
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x40242d
mov eax, 1
cmp dword [ebp - 0x118], eax
jne 0x40242d
cmp word [ebp - 0xc], 0
je 0x40242f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
Function at 0x402800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x18e
push eax
lea ecx, [ebp - 0x192]
push ecx
mov word [ebp - 0x194], ax
call fcn.00422210
add esp, 0xc
mov dword [ebp - 0x19c], 0xc8
mov dword [ebp - 0x1a0], 1
xor eax, eax
jmp 0x402850
movzx ecx, word [eax + str.SystemCurrentControlSetServicesWin_Win7]
mov word [ebp + eax - 0x194], cx
add eax, 2
test cx, cx
jne 0x402850
lea edx, [ebp - 0x198]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x194]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4028a5
mov dword [0xb568bc], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, dword [ebp - 0x198]
lea edx, [ebp - 0x194]
push edx
lea eax, [ebp - 0x1a0]
push eax
push 0
push 0x42f9d8
push ecx
call esi
test eax, eax
je 0x4028f0
mov dword [0xb568bc], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x19c]
push edx
mov edx, dword [ebp - 0x198]
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x1a0]
push ecx
push 0
push str.RegNumber
push edx
mov dword [0xb568bc], 1
call esi
mov esi, eax
mov eax, dword [ebp - 0x198]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402957
push 0
push str.C:Program_Filesww2017cfWM7Ldr.exe
call fcn.0041ad6e
add esp, 8
neg eax
sbb eax, eax
neg eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0041a70e
mov esp, ebp
pop ebp
ret