joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412e51
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e658]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040bde6
and dword [ebp - 0x14], 0
cmp dword [0x4313d8], 0
mov dword [ebp - 0x18], eax
jne 0x412f04
push 0x404070
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412fac
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404064
push ebx
call edi
test eax, eax
je 0x412fac
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x404054
push ebx
mov dword [0x4313d8], eax
call edi
push eax
call esi
push 0x404040
push ebx
mov dword [0x4313dc], eax
call edi
push eax
call esi
push 0x404024
push ebx
mov dword [0x4313e0], eax
call edi
push eax
call esi
mov dword [0x4313e8], eax
test eax, eax
je 0x412f04
push 0x40400c
push ebx
call edi
push eax
call esi
mov dword [0x4313e4], eax
mov eax, dword [0x4313e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412f5d
cmp dword [0x4313e8], ecx
je 0x412f5d
push eax
call esi
push dword [0x4313e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412f5d
test ebx, ebx
je 0x412f5d
call edi
test eax, eax
je 0x412f54
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412f54
test byte [ebp - 8], 1
jne 0x412f5d
or dword [ebp + 0x10], 0x200000
jmp 0x412f90
mov eax, dword [0x4313dc]
cmp eax, dword [ebp - 0x18]
je 0x412f90
push eax
call esi
test eax, eax
je 0x412f90
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412f90
mov eax, dword [0x4313e0]
cmp eax, dword [ebp - 0x18]
je 0x412f90
push eax
call esi
test eax, eax
je 0x412f90
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4313d8]
call esi
test eax, eax
je 0x412fac
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412fae
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408821
leave
ret
Function at 0x4294c0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0x80c
cmp dword [0x7b6120], 0x37
jne 0x429566
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
lea eax, [esp + 0x410]
push eax
push 0
push 0x404118
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0x404160
push 0x4041a4
push 0x4041d0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0x7b6124]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x436184]
mov byte [ecx + esi], al
add esp, 0x80c
ret
Function at 0x429770
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b6120]
sub esp, 0x484
push ebx
mov ebx, dword [0x436184]
push ebp
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x429961
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
jmp 0x4297a6
mov ebx, dword [esp + 0x20]
xor esi, esi
cmp dword [0x7b6120], 0x1c
jne 0x4297bd
lea eax, [esp + 0x40]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [ebx + 4]
mov edx, dword [0x42f708]
mov eax, dword [0x42f70c]
mov edi, dword [ebx]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x42f710]
mov dword [esp + 0x34], edx
mov edx, dword [0x42f714]
mov ebx, 0xc6ef3720
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], 0x20
jmp 0x429802
xor esi, esi
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x3c]
lea edx, [ebx + edi]
xor ecx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [0x7b50a4], esi
mov eax, dword [esp + 0x1c]
add dword [0x7b50a4], eax
mov eax, dword [0x7b50a4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x38]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
shl edx, 4
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x34]
add dword [esp + 0x14], eax
cmp dword [0x7b6120], 0x1be
mov eax, dword [esp + 0x18]
lea ebp, [ebx + eax]
jne 0x429896
lea ecx, [esp + 0x44]
push ecx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov esi, dword [esp + 0x18]
shr esi, 5
add esi, dword [esp + 0x30]
cmp dword [0x7b6120], 0x979
mov dword [0x7b50a8], 0xff6b3619
mov dword [0x7b50ac], 0xffffffff
jne 0x4298e5
push 0
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push 0
lea edx, [esp + 0x94]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [esp + 0x14]
xor esi, ebp
xor eax, esi
sub edi, eax
add ebx, 0x61c88647
dec dword [esp + 0x24]
mov dword [esp + 0x14], eax
jne 0x429800
cmp dword [0x7b6120], 0x8d4
jne 0x42991a
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ecx
cmp dword [0x7b6120], 0x17
jne 0x429950
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x90]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x28]
mov dword [esp + 0x20], esi
jne 0x4297a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x484
ret
Function at 0x28174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0x2817a6
cmp eax, 0xffffffff
je 0x2817a6
cmp dword [ebp + 8], ebx
je 0x2817a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x28f302
cmp esi, dword [ebp - 4]
jne 0x28f31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0x28179e

Function at 0x28227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x29621c
call fcn.00281350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0x29b458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00282097
test eax, eax
jne 0x2823c4
lea eax, [ebp - 0x20]
push eax
push dword [0x29b45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.002823dc
test eax, eax
jne 0x2823c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.002813e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x2823c4
lea eax, [ebp - 0x20]
push eax
push dword [0x29b45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.002823dc
test eax, eax
jne 0x2823bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x2823bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.002813e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x2823bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0x2823b2
cmp dword [ebp + 8], ebx
je 0x28ea08
push dword [0x29b460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.002813e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x2823b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.002821cb
push dword [0x29b460]
push edi
push dword [ebp - 0x18]
call fcn.00282436
push dword [ebp - 0x14]
call fcn.002813c0
pop ecx
push dword [ebp - 0x1c]
call fcn.002813c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00281f10
mov eax, dword [ebp - 0x18]
call fcn.00281390
ret 4
Function at 0x2823dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0x28242c
cmp dword [ebp - 4], 2
ja 0x28e965
mov ecx, dword [edi]
test cl, 1
jne 0x28242c
cmp esi, ebx
je 0x282425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0x28242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0x282425
Function at 0x283a67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x283ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x283ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x283ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
pop esi
je 0x28e30e
mov eax, dword [ebp - 8]
leave
ret
Function at 0x284267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x29b00c], esi
jne 0x2842be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x282c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x29b00c], eax
cmp eax, esi
je 0x28e4ec
push 0xffffffffffffffff
push dword [0x29b014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x29b014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x29b018], esi
jl 0x28e50a
pop esi
leave
ret

Function at 0x284441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x284498
call fcn.00282712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x284490
cmp ecx, 0xffffffff
je 0x284490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x284489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x284489
cmp edx, 0x10000000
jae 0x284489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x28e892
mov dword [ebp - 4], 0xfffffffe
call fcn.00282757
ret 4

Function at 0x28681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x29b004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0x286933
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0x28ed16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.002821cb
test eax, eax
jl 0x286932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0x2868c3
push 0x286994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00282436
test eax, eax
jl 0x286932
push 0x286980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00282436
test eax, eax
jl 0x286932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x28ed20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x286970
push eax
call edi
push 0x28695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0x286948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0x286940
cmp dword [esi + 0x34], 0
je 0x286940
test eax, eax
je 0x286940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.002820d4
leave
ret
mov eax, 0x8007007f
jmp 0x286932
Function at 0x2871f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x29608c
call fcn.002839dd
lea ecx, [ebp - 0x34]
call fcn.00286c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.0028758b
test eax, eax
jl 0x28722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.002872a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0x287298
cmp ax, si
jne 0x28e4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.00281451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0028758b
mov esi, eax
test esi, esi
jl 0x287280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.002872a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.0028760b
mov eax, esi
call fcn.00282b9f
ret

Function at 0x28791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x28dc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0x287900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0x2879a8
push 1
lea ecx, [ebp - 0x20]
call fcn.002879e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x2878ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.002871e0
cmp esi, ebx
jl 0x2879a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0x287992
push 0x24
mov eax, 0x295c85
call fcn.002826dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0x287854
push 1
lea ecx, [ebp - 0x20]
call fcn.002879e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x283984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x2879a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0x2879d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00287455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.002871e0
mov eax, esi
call fcn.00281390
ret 0xc
Function at 0x287b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x295fc0
call fcn.002839dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.00287c2b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x287b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x287b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x287b5b
inc esi
cmp esi, edi
jb 0x287b46
cmp esi, edi
jb 0x287c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0x287c0e
cmp word [edx], 0x30
jne 0x287b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0x287b6f
cmp eax, edi
jae 0x287c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x287b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0x287c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0x287c03
movzx eax, ax
movzx eax, ax
push eax
push 0x287c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00281451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.00286c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.0028760b
mov eax, dword [ebp - 0x54]
call fcn.00282b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0x287bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0x287be9

Function at 0x290d7d
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
push edi
lea eax, [ecx + eax + 0x18]
test esi, esi
jbe 0x290dba
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x290db2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x290dbc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x290da2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403eff
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x403f37
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x403f25
mov al, 1
jmp 0x403f96
cmp dword [ebx + 0x54], ecx
jne 0x403f2e
mov al, 2
jmp 0x403f96
cmp dword [ebx + 0x7c], ecx
jne 0x403f96
mov al, 3
jmp 0x403f96
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x403f4c
mov al, 4
jmp 0x403f96
cmp ecx, 5
jne 0x403f6c
cmp ebx, 0
jne 0x403f5a
mov al, 5
jmp 0x403f96
cmp ebx, 1
jne 0x403f63
mov al, 6
jmp 0x403f96
cmp ebx, 2
jne 0x403f6c
mov al, 7
jmp 0x403f96
cmp ecx, 6
jne 0x403f94
cmp ebx, 0
jne 0x403f7a
mov al, 8
jmp 0x403f96
cmp ebx, 1
jne 0x403f81
mov al, 9
cmp ebx, 2
jne 0x403f88
mov al, 0xa
cmp ebx, 3
jne 0x403f8f
mov al, 0xb
cmp ebx, 4
jne 0x403f96
mov al, 0xc
pop ebx
leave
ret
Function at 0x4195a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c4360
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.004b97be
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.0041b210
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x4195f4
jmp dword [ecx*4 + 0x41975c]
mov al, byte [esi]
test al, al
je 0x419622
cmp al, 0x20
je 0x41960e
cmp al, 0xa1
jne 0x419622
cmp byte [esi + 1], al
jne 0x419622
test al, 0x80
je 0x41961a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x419622
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x419601
test ecx, ecx
je case.default.0x4195f4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x4195f4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x419668
cmp dl, 0xa1
jne 0x41965c
cmp byte [eax + 1], 0xa1
jne 0x41965c
test ecx, ecx
jne 0x419654
mov edi, eax
mov ecx, 1
inc eax
jmp 0x41967c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x419696
jmp 0x41967c
cmp dl, 0x20
jne 0x41967a
test ecx, ecx
jne 0x419673
mov edi, eax
mov ecx, 1
jmp 0x41967c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x41963c
cmp ecx, 1
jne case.default.0x4195f4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x4195f4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x4195f4
mov al, byte [esi]
test al, al
je 0x4196ee
test al, 0x80
mov byte [esp + 0x3c], al
je 0x4196d4
mov cl, byte [esi + 1]
test cl, cl
je 0x4196ee
cmp al, 0xa1
jne 0x4196c4
cmp cl, al
je 0x4196d1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.0041b4e0
inc esi
jmp 0x4196e6
cmp al, 0x20
je 0x4196e6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041b520
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4196ad
push 0
lea ecx, [esp + 0x14]
call fcn.0041b520
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042d500
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x419721
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x546cf0
call fcn.0041b410
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004b9750
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x41a720
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4c43b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x575c10]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.0041a5c0
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41a7c2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x41a87b
mov edx, dword [esi + 8]
push edx
call fcn.0042c130
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x41a812
cmp eax, 0x80000301
jne 0x41a7e0
mov eax, dword [esi]
jmp 0x41a7ed
push 0
push esi
push 0x7d1
call fcn.00431950
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41a870
jmp 0x41a86a
cmp eax, 0x80000004
jne 0x41a841
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41a870
jmp 0x41a86a
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x41a870
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41a870
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004b9750
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret