joyce8/EMBER2024-capa huggingface dataset:
Function at 0x71e2381b
Capabilities:
Create thread
Read file on windows
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x71e239ac
cmp dword [ebp + 0xc], ebx
je 0x71e239ac
cmp dword [ebp + 0x14], ebx
je 0x71e239ac
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x71e238c3
cmp dword [esi + 0x60], 0xffffffff
jne 0x71e238ce
push dword [esi + 0x5c]
lea eax, [esi + 0xc]
push eax
call fcn.71e224dd
cmp eax, 0xffffffff
mov dword [esi + 0x60], eax
je 0x71e238c3
mov edx, dword [ebp + 0x10]
mov ecx, 0x1fa0
cmp edx, ecx
mov dword [ebp + 8], ecx
jb 0x71e23881
mov dword [ebp + 8], edx
push 4
lea ecx, [ebp + 8]
push ecx
push 0x1002
mov edi, pe_overlay
push edi
push eax
call sub.WSOCK32.dll_setsockopt
push 4
lea eax, [ebp + 8]
push eax
push 8
push edi
push dword [esi + 0x60]
call sub.WSOCK32.dll_setsockopt
lea eax, [esi + 0x68]
push eax
push ebx
push esi
push 0x71e23691
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x64], eax
jne 0x71e238ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x71e239af
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x71e23914
call edi
cmp eax, 0x3e5
mov dword [ebp + 0x10], eax
je 0x71e23914
push dword [esi + 0x60]
call sub.WSOCK32.dll_closesocket
push dword [esi + 0x64]
or dword [esi + 0x60], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x71e23997
mov eax, dword [esi + 0x64]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push 0xffffffffffffffff
mov dword [ebp - 8], eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 1
push dword [ebp + 0x14]
test eax, eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x60]
jne 0x71e23961
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x71e23953
cmp dword [esi + 0x74], ebx
jne 0x71e23953
call edi
mov dword [esi + 0x74], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x74]
jmp 0x71e239af
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x71e2399f
call edi
push dword [esi + 0x60]
mov dword [ebp + 0x10], eax
call sub.WSOCK32.dll_closesocket
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x60], 0xffffffff
call edi
push 0xffffffffffffffff
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x64]
call edi
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x64], ebx
jmp 0x71e239af
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x71e239af
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x71e23e42
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x71e23e69
xor al, al
jmp 0x71e23ee5
cmp word [esi], 0x5c
jne 0x71e23e72
add esi, 4
push ebx
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
pop ecx
pop ecx
je 0x71e23ee2
lea eax, [ebp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push 0x71e21cf8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x71e23ee2
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x71e21cd4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x71e23ed9
cmp dword [ebp - 0x10], esi
je 0x71e23ed9
xor bl, bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop esi
leave
ret 4
Function at 0x4861f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x58000]
push edi
jmp 0x48620a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x486211
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x486200
mov eax, 1
add ebx, ebx
jne 0x486223
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x486234
jne 0x486253
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x486253
dec eax
add ebx, ebx
jne 0x486240
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x486218
add ebx, ebx
jne 0x48624f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4862a5
xor ecx, ecx
sub eax, 3
jb 0x48626b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4862da
sar eax, 1
mov ebp, eax
jmp 0x486276
add ebx, ebx
jne 0x486276
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x486244
inc ecx
add ebx, ebx
jne 0x486284
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x486244
add ebx, ebx
jne 0x486291
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x486286
jne 0x4862a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x486286
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4862c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4862b6
jmp 0x486206
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4862c4
add edi, ecx
jmp 0x486206
pop esi
mov edi, esi
mov ecx, 0x1c6a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4862e2
cmp byte [edi], 0x11
jne 0x4862e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4862e7
lea edi, [esi + 0x81000]
mov eax, dword [edi]
or eax, eax
je 0x48635f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8c374]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8c4b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x486314
mov ecx, edi
jns 0x486343
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8c4b8]
or eax, eax
je 0x486359
mov dword [ebx], eax
add ebx, 4
jmp 0x486331
call dword [esi + 0x8c4c8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x486390
cmp al, 0xef
ja 0x486383
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x486365
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x486372
mov ebp, dword [esi + 0x8c4bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4863c4
sub esp, 0xffffff80
jmp 0x432af6
Function at 0x401ca1
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push 0x27
push esi
push 0x401d90
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
mov eax, dword [ebp + 8]
je 0x402e4d
and dword [eax], 0
movzx eax, word [esi]
cmp ax, 0x22
push 2
pop ecx
jne 0x402e35
add esi, ecx
movzx eax, word [esi]
test ax, ax
je 0x401cf0
cmp ax, 0x22
jne 0x401ce0
cmp word [esi], 0x22
jne 0x401cf8
add esi, ecx
movzx eax, word [esi]
test ax, ax
je 0x401d06
cmp ax, 0x20
jbe 0x401cf6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x401d5e
push esi
push edi
push ebx
call fcn.00401ef3
test eax, eax
jl 0x401d5e
push 0x401d84
push edi
push ebx
call fcn.00401de5
test eax, eax
jne 0x401d2e
push 0x401d78
push edi
push ebx
call fcn.00401de5
test eax, eax
jne 0x401d2e
push 0x401d68
push edi
push ebx
call fcn.00401de5
test eax, eax
jne 0x401d2e
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
cmp ax, 0x20
jbe 0x401cf8
add esi, ecx
cmp word [esi], 0x20
jbe 0x401cf8
jmp 0x402e3f
mov dword [eax], 1
add esi, 0x4e
jmp 0x401cd0
Function at 0x40250b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
test byte [0x40b074], 1
push esi
push edi
mov esi, 0x40b0ac
jne 0x40253c
or dword [0x40b074], 1
mov ecx, esi
call fcn.00401927
push 0x402ab6
call fcn.00402077
pop ecx
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.004023e5
cmp eax, edi
mov dword [ebp - 0x20], eax
jl 0x4026cd
test byte [0x40b074], 2
push ebx
mov ebx, 0x80000002
jne 0x40259f
or dword [0x40b074], 2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 0x10
push 0x402774
push 0x4026e8
push ebx
mov dword [ebp - 0x18], 4
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
je 0x403d09
mov byte [0x40b045], 0
cmp byte [0x40b045], 0
jne 0x4026d6
cmp dword [ebp + 0x14], edi
mov dword [ebp + 0x14], edi
jne 0x4026d6
cmp byte [0x40b044], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x402818
jne 0x4025e3
lea eax, [ebp - 4]
push eax
push 1
push 0
push edi
push ebx
call esi
test eax, eax
je 0x4025e7
mov byte [0x40b044], 1
and dword [ebp - 4], 0
cmp byte [0x40b043], 0
jne 0x402611
cmp dword [ebp + 0x14], 0
jne 0x402611
lea eax, [ebp - 8]
push eax
push 1
push 0
push edi
push 0x80000001
call esi
test eax, eax
je 0x402615
mov byte [0x40b043], 1
and dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
push 1
push 0
mov edi, 0x4027a0
push edi
push ebx
call esi
test eax, eax
jne 0x403d1f
cmp byte [0x40b042], 0
jne 0x402658
cmp dword [ebp + 0x14], 0
jne 0x402658
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push edi
push 0x80000001
call esi
test eax, eax
je 0x40265c
mov byte [0x40b042], 1
and dword [ebp - 0xc], 0
and dword [ebp + 0x14], 0
cmp dword [ebp - 4], 0
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
jne 0x403d28
cmp dword [ebp - 8], 0
jne 0x403d42
cmp dword [ebp - 0xc], 0
jne 0x403d5c
cmp dword [ebp - 0x10], 0
je 0x4026a5
lea eax, [ebp + 0x14]
push eax
push edi
push ebx
push dword [esi]
push dword [ebp - 0x10]
call fcn.004028a1
test al, al
jne 0x403d74
cmp dword [0x40b0ac], 0xffffffff
je 0x403d79
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
call esi
pop ebx
mov eax, dword [ebp - 0x20]
pop edi
pop esi
leave
ret 0x10
mov dword [ebp + 0x14], 1
jmp 0x4025b8
cmp dword [ebp - 0x1c], 1
jne 0x402598
mov byte [0x40b045], 1
jmp 0x4026d6
and dword [ebp - 0x10], 0
jmp 0x40262e
lea eax, [ebp + 0x14]
push eax
push edi
push ebx
push dword [esi]
push dword [ebp - 4]
call fcn.00408d9a
test al, al
je 0x402673
jmp 0x403d74
lea eax, [ebp + 0x14]
push eax
push edi
push ebx
push dword [esi]
push dword [ebp - 8]
call fcn.00408d9a
test al, al
je 0x40267d
jmp 0x403d74
lea eax, [ebp + 0x14]
push eax
push edi
push ebx
push dword [esi]
push dword [ebp - 0xc]
call fcn.004028a1
test al, al
je 0x402687
mov eax, dword [ebp + 0x14]
jmp 0x403d7c
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
jmp 0x4026b2
Function at 0x4028a1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403b84
mov al, byte [ebp - 1]
pop ebx
leave
ret 0x14
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push edi
push 4
pop edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x10
push dword [ebp + 0x10]
mov dword [ebp + 0xc], edi
push ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x403bc4
cmp dword [ebp + 0x14], ebx
mov eax, dword [ebp + 8]
je 0x403bbb
cmp eax, ebx
je 0x403bbb
cmp eax, 1
jne 0x403bc4
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
mov dword [ebp + 0xc], edi
jne 0x403c00
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x10
push 0x4069e4
push ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x403c00
cmp dword [ebp + 0x14], ebx
mov eax, dword [ebp + 8]
je 0x403bf7
cmp eax, ebx
je 0x403bf7
cmp eax, 1
jne 0x403c00
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
jmp 0x4028c9
Function at 0x402ba7
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6a8
mov eax, dword [0x40b050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
push edi
mov dword [ebp - 0x690], eax
call fcn.00402bea
test eax, eax
jne 0x4034c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040165d
leave
ret 4
call sub.iertutil.dll_Ordinal_42
test eax, eax
je 0x402bd6
call sub.iertutil.dll_Ordinal_44
test eax, eax
jne 0x402bd6
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x403661
push 0x403788
push esi
lea eax, [ebp - 0x28c]
push eax
call fcn.00407157
test eax, eax
jl 0x403661
push edi
push edi
push 3
push edi
push 1
push 0x80
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x694], eax
je 0x403661
lea ecx, [ebp - 0x6a8]
push ecx
push edi
lea ecx, [ebp - 0x6a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x403655
mov eax, 0x1c81080
cmp dword [ebp - 0x69c], eax
jb 0x40356f
cmp dword [ebp - 0x6a4], eax
jae 0x403655
mov eax, dword [0x40b62c]
cmp eax, edi
jne 0x40357d
call fcn.00406b83
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x200
lea ecx, [ebp - 0x68c]
push ecx
push 0x2c3
push eax
call esi
test eax, eax
je 0x403655
mov eax, dword [0x40b62c]
cmp eax, edi
jne 0x4035ad
call fcn.00406b83
push 0x40
lea ecx, [ebp - 0x84]
push ecx
push 0x2d3
push eax
call esi
test eax, eax
je 0x403655
push 0x31
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x68c]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x403655
push ebx
lea eax, [ebp - 0x698]
push eax
call fcn.004070d9
test eax, eax
jne 0x403609
cmp dword [ebp - 0x698], edi
je 0x403602
mov ebx, 0x403728
jmp 0x40360e
mov ebx, 0x4036c8
jmp 0x40360e
mov ebx, 0x403668
mov eax, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x403613
sub eax, ecx
sar eax, 1
lea esi, [eax + 1]
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x403654
mov eax, dword [ebp - 0x690]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x690]
push ebx
push esi
push edi
mov dword [eax], edi
call fcn.00401ef3
pop ebx
push dword [ebp - 0x694]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
jmp 0x402bd6
Function at 0x402caa
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push 0x25
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x402cc3
call fcn.00402cc9
test al, al
je 0x403072
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x480
mov eax, dword [0x40b050]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x224], 0
push ebx
push 0x206
lea eax, [ebp - 0x222]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.00402e9e
test eax, eax
je 0x40317a
push esi
push edi
push 6
pop ecx
push ebx
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x224]
mov esi, 0x403198
lea edi, [ebp - 0x1c]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x403178
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0x403188
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.004031b5
add esp, 0x14
test eax, eax
jl 0x403178
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x480]
push esi
push eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x480], edi
xor eax, eax
lea edi, [ebp - 0x43c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x480]
push eax
push esi
push esi
push 0x8000020
push esi
push esi
push esi
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403178
push dword [ebp - 0x43c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x438]
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040165d
leave
ret
Function at 0x402e9e
Capabilities:
Accept command line arguments
Persist via active setup registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x40b050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
push 0x2e
pop ecx
mov esi, 0x402fb8
lea edi, [ebp - 0xc0]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc8]
push eax
push 1
movsw word es:[edi], word [esi]
xor edi, edi
push edi
lea eax, [ebp - 0xc0]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402f83
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push edi
push ebx
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc4], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
push ebx
lea eax, [ebp - 0xc4]
push eax
push edi
push 0x402fa4
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402f77
cmp dword [ebp - 0xc4], 1
jne 0x402f96
mov eax, dword [ebp - 0xcc]
shr eax, 1
mov word [ebx + eax*2 - 2], di
lea eax, [ebp - 0xd0]
push eax
push ebx
mov dword [ebp - 0xd0], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp esi, edi
je 0x402f77
push dword [esi]
push dword [ebp + 0xc]
push ebx
call fcn.00401ef3
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
inc edi
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040165d
leave
ret 8
cmp dword [ebp - 0xc4], 2
jne 0x402f77
jmp 0x402f3b

Function at 0x406b83
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x40b050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40b62c]
test eax, eax
jne 0x406c40
push 0x11c
push eax
lea eax, [ebp - 0x328]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
mov dword [ebp - 0x328], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406c32
cmp dword [ebp - 0x318], 2
jne 0x406c28
cmp dword [ebp - 0x324], 6
jae 0x406c28
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x40b058]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x406c32
push 0
push 8
lea eax, [ebp - 0x20c]
push eax
call fcn.00407f43
cmp eax, dword [0x40b058]
mov dword [0x40b62c], eax
jne 0x406c32
push eax
call fcn.00407903
jmp 0x406c32
mov eax, dword [0x40b058]
mov dword [0x40b62c], eax
mov eax, dword [0x40b62c]
test eax, eax
jne 0x406c40
mov eax, dword [0x40b058]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040165d
leave
ret

Function at 0x407518
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x40752b
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407527
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x40754c
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40758b
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x407581
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40758d
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x407571
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407891
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x40b050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4078e5
push 3
lea eax, [ebp - 0x44]
push 0x4078f8
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.0040165d
leave
ret

Function at 0x407914
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x40b050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x40796d
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x11c]
xor eax, eax
dec ecx
pop esi
je 0x4079c1
dec ecx
jne 0x4079e4
cmp edx, 5
jne 0x4079b9
mov ecx, dword [ebp - 0x118]
sub ecx, eax
je 0x4079b5
dec ecx
je 0x4079aa
dec ecx
je 0x40799b
push 0x14
jmp 0x407a0c
cmp word [ebp - 0xc], 1
jb 0x4079a5
push 0x10
pop eax
or eax, 4
jmp 0x4079e4
cmp word [ebp - 0xc], 2
jb 0x4079a5
push 8
jmp 0x4079a4
push 4
jmp 0x407a0c
cmp edx, 4
ja 0x4079f0
push 2
pop eax
cmp edx, 4
jne 0x4079e4
cmp dword [ebp - 0x118], 0
je 0x4079e1
cmp dword [ebp - 0x118], 0xa
je 0x4079e1
cmp dword [ebp - 0x118], 0x5a
jne 0x4079e4
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040165d
leave
ret
cmp edx, 6
jne 0x407a0f
cmp dword [ebp - 0x118], 0
jne 0x407a0f
cmp dword [ebp - 0x114], 0x1554
jae 0x407a0f
push 0x40
pop eax
jmp 0x4079e4
push 0x20
jmp 0x407a0c
Function at 0x407bac
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x40b050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp word [0x40b644], si
jne 0x407c44
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push 0x407d38
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407c44
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x407df0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x407c44
push 3
push dword [esi*8 + 0x407c58]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x407c36
inc esi
cmp esi, 0x1c
jae 0x407c44
jmp 0x407c15
mov ax, word [esi*8 + 0x407c5c]
mov word [0x40b644], ax
mov ecx, dword [ebp - 4]
mov ax, word [0x40b644]
xor ecx, ebp
pop esi
call fcn.0040165d
leave
ret