joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x198
mov eax, dword [0x42c300]
push ebx
xor ebx, ebx
cmp edi, ebx
mov dword [ebp + 0x6c], eax
push esi
je 0x412d69
push dword [ebp + 0x7c]
lea ecx, [ebp - 0x18]
mov dword [edi], ebx
call fcn.00405759
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp + 0x7c]
push ecx
push ebx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
push dword [ebp + 0x78]
mov dword [ebp - 0x20], eax
mov dword [ebp + 0x7c], ebx
call esi
cmp eax, ebx
jle 0x412ca7
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jne 0x412d51
cmp dword [ebp - 0x24], 1
jne 0x412d51
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
je 0x412d51
inc eax
push eax
call fcn.0041c1d1
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x412d4a
lea ecx, [ebp + 0x7c]
push ecx
push eax
push ebx
push ebx
push dword [ebp - 0x20]
push dword [ebp + 0x78]
call esi
cmp eax, ebx
jle 0x412cee
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jne 0x412d3f
mov ecx, dword [ebp + 0x7c]
mov eax, dword [ebp - 0x1c]
mov byte [eax + ecx], bl
push eax
lea ecx, [ebp - 0x128]
call fcn.00410e43
push dword [eax]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
lea eax, [ebp - 0x124]
cmp dword [ebp - 0x128], eax
je 0x412d2d
push dword [ebp - 0x128]
call fcn.0041b1d4
pop ecx
mov esi, dword [edi]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, 0x8007000e
push dword [ebp - 0x1c]
call fcn.0041bace
pop ecx
jmp 0x412d56
mov esi, 0x8007000e
jmp 0x412d56
mov esi, 0x80004005
lea eax, [ebp - 0x14]
cmp dword [ebp - 0x18], eax
je 0x412d6e
push dword [ebp - 0x18]
call fcn.0041b1d4
pop ecx
jmp 0x412d6e
mov esi, 0x80070057
mov ecx, dword [ebp + 0x6c]
mov eax, esi
pop esi
pop ebx
call fcn.0041b4ee
add ebp, 0x70
leave
ret 8
Function at 0x413459
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0x4030dc
push 0x42cfe0
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.004130f1
lea ecx, [ebp - 4]
call fcn.004069b2
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0x18], 1
call dword [0x42c090]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edi, eax
cmp edi, esi
jl 0x413528
push dword [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.0040e2a5
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push dword [ebp - 0x10]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4134f9
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 4]
call fcn.00406a10
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push 0x4030e4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x413500
mov edi, 0x80004005
jmp 0x413528
push dword [ebp - 4]
call fcn.00407497
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00406452
push esi
lea ecx, [ebp - 4]
call fcn.0040f977
lea ecx, [ebp - 4]
call fcn.00413072
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [ebp - 8], esi
je 0x413536
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0xc], esi
je 0x413544
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00406362
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406362
mov eax, edi
pop edi
pop esi
leave
ret 8
Function at 0x413793
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x4137a7
mov dword [eax], edi
cmp dword [ebp + 8], edi
je 0x413956
cmp eax, edi
je 0x413956
cmp dword [0x42c288], edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jbe 0x41388e
mov esi, 0x42c238
push dword [esi]
push dword [ebp + 8]
call fcn.0041c460
test eax, eax
pop ecx
pop ecx
je 0x4137f0
inc edi
add esi, 0x14
cmp edi, dword [0x42c288]
jb 0x4137cf
jmp 0x41388e
xor esi, esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push esi
push esi
lea edi, [edi + edi*4]
shl edi, 2
push esi
push dword [edi + 0x42c248]
xor eax, eax
mov al, byte [edi + 0x42c242]
push dword [edi + 0x42c244]
push eax
lea eax, [edi + 0x42c23c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x413848
call ebx
test eax, eax
jg 0x413834
call ebx
mov esi, eax
jmp 0x413844
call ebx
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jne 0x41388e
xor eax, eax
mov al, byte [edi + 0x42c242]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidLengthRequired]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x413878
push dword [ebp - 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CopySid]
jmp 0x41387d
mov esi, 0x8007000e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x41395b
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea ecx, [ebp - 0x10]
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 0xc]
push dword [ecx]
mov dword [ebp - 8], eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push eax
call edi
call ebx
mov esi, eax
cmp esi, 0x7a
jne 0x413944
push dword [ebp - 4]
call fcn.0041c1d1
xor esi, esi
cmp eax, esi
pop ecx
mov dword [ebp - 0xc], eax
je 0x41393d
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x41392d
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 8]
push esi
call edi
test eax, eax
jne 0x413932
call ebx
test eax, eax
jg 0x41390c
call ebx
mov esi, eax
jmp 0x41391c
call ebx
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
test esi, esi
je 0x413932
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x413932
mov esi, 0x8007000e
push dword [ebp - 0xc]
call fcn.0041bace
pop ecx
jmp 0x41395b
mov esi, 0x8007000e
jmp 0x41395b
test esi, esi
jle 0x41395b
and esi, 0xffff
or esi, 0x80070000
jmp 0x41395b
mov esi, 0x80070057
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x41421e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x427c57
call fcn.0041ba64
sub esp, 0x214
mov eax, dword [0x42c300]
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x10], eax
inc edi
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 4], ebx
push 0x20019
push 0x403274
push bind
lea ecx, [ebp - 0x21c]
call fcn.0040a973
test eax, eax
jne 0x414325
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], 0x105
call fcn.0040c4ad
cmp eax, ebx
jle 0x41429a
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jne 0x414325
lea eax, [ebp - 0x118]
xor edi, edi
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x414325
mov dword [ebp - 0x220], ebx
mov byte [ebp - 4], 1
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.0041c4c9
lea eax, [ebp - 0x218]
push 0x403270
push eax
call fcn.0041c460
add esp, 0x1c
test eax, eax
je 0x41431b
xor edi, edi
cmp dword [ebp + 0xc], 0x7fffffff
push esi
mov esi, dword [ebp + 8]
ja 0x414314
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0xc]
push esi
call fcn.0040615b
cmp eax, ebx
je 0x41431a
cmp esi, ebx
je 0x41431a
mov byte [esi], bl
pop esi
mov byte [ebp - 4], bl
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040a95c
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0041b4ee
leave
ret 8
Function at 0x41465d
Capabilities:
Get session user name

Disassembly:
mov eax, 0x427c77
call fcn.0041ba64
sub esp, 0x118
mov eax, dword [0x42c300]
push ebx
push esi
mov dword [ebp - 0x10], eax
call dword [0x42c090]
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x414809
push edi
push 0x40323c
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x120], eax
je 0x4147b3
push 0x4032c4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4147a7
lea ecx, [ebp - 0x11c]
push ecx
push 1
push ebx
call eax
test eax, eax
jne 0x4147a7
mov eax, dword [ebp - 0x11c]
push dword [eax]
lea ecx, [ebp - 0x118]
call fcn.00405759
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x11c]
push dword [eax + 4]
mov ebx, dword [ebp - 0x118]
lea ecx, [ebp - 0x94]
call fcn.00405759
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x94]
mov eax, ebx
mov dword [ebp - 0x124], edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x414713
sub eax, ecx
mov ecx, eax
mov eax, edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x414723
sub eax, edi
lea edi, [eax + ecx + 2]
push edi
call fcn.0041c1d1
test eax, eax
pop ecx
mov dword [esi], eax
je 0x414769
push dword [ebp - 0x124]
push edi
push eax
call fcn.0040f869
cmp edi, 0x7fffffff
mov eax, dword [esi]
ja 0x414760
push 0x4032c0
push edi
push eax
call fcn.0040637c
push ebx
push edi
push dword [esi]
call fcn.00406530
mov byte [ebp - 4], 0
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x414787
push dword [ebp - 0x94]
call fcn.0041b1d4
pop ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x4147a5
push dword [ebp - 0x118]
call fcn.0041b1d4
pop ecx
xor ebx, ebx
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esi], ebx
jne 0x4147f6
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp + 8]
push eax
push ebx
mov dword [ebp + 8], ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4147f6
push dword [ebp + 8]
call fcn.0041c1d1
cmp eax, ebx
pop ecx
mov dword [esi], eax
je 0x4147f6
lea ecx, [ebp + 8]
push ecx
push eax
call edi
test eax, eax
jne 0x4147f6
push dword [esi]
call fcn.0041bace
pop ecx
mov dword [esi], ebx
mov eax, dword [esi]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop edi
jmp 0x41480e
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0041b4ee
leave
ret 4
Function at 0x4155ee
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x427d5d
call fcn.0041ba64
sub esp, 0x10
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], esi
call fcn.004069b2
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x415637
push eax
call fcn.004058cc
jmp 0x415639
xor eax, eax
cmp eax, edi
jge 0x415644
mov esi, eax
jmp 0x4156c8
cmp dword [ebp - 0x18], 1
je 0x415651
mov esi, 0x8007000d
jmp 0x4156c8
mov esi, dword [ebp - 0x1c]
push ebx
push esi
lea ecx, [ebp - 0x10]
call fcn.00406a10
lea ecx, [esi + 1]
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040c4ad
mov edi, dword [ebp + 8]
test edi, edi
mov ebx, eax
jbe 0x41567e
dec edi
cmp esi, edi
mov eax, esi
jb 0x415686
mov eax, edi
push eax
lea ecx, [ebp - 0x10]
call fcn.0040cb08
cmp ebx, 0xea
jne 0x4156a3
cmp edi, esi
ja 0x41569f
add esi, esi
jmp 0x415655
mov esi, edi
jmp 0x415655
test ebx, ebx
je 0x4156b1
push ebx
call fcn.004058cc
mov esi, eax
jmp 0x4156b3
xor esi, esi
and dword [ebp - 0x14], 0
test esi, esi
pop ebx
jl 0x4156c8
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
call fcn.0041314c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004069e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040a95c
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x416255
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0041618f
mov esi, eax
test esi, esi
jl 0x41628d
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp - 4]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call fcn.00416248
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x4177b6
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x42c300]
push ebx
push esi
push edi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x40
mov dword [ebp + 0x94], eax
pop ecx
xor ebx, ebx
xor eax, eax
mov byte [ebp - 0x70], bl
lea edi, [ebp - 0x6f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x74]
push eax
push 0x1a
push ebx
mov dword [ebp - 0x74], ebx
call esi
cmp dword [ebp - 0x74], ebx
jne 0x417858
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push ebx
push 0x403570
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x417845
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x403568
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417845
cmp dword [ebp - 0x80], 1
je 0x41789e
cmp dword [ebp - 0x74], ebx
jne 0x417858
lea eax, [ebp - 0x74]
push eax
push 5
push ebx
call esi
cmp dword [ebp - 0x74], ebx
je 0x417893
push dword [ebp + 0xa0]
push dword [ebp - 0x74]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x41789e
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x41789e
push dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x41789e
mov eax, dword [ebp + 0xa0]
mov word [eax], 0xa
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
pop ebx
call fcn.0041b4ee
add ebp, 0x98
leave
ret 4
Function at 0x4178fc
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
xor esi, esi
push edi
push esi
mov dword [ebp - 4], 0x80004005
mov dword [ebp - 8], esi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x417957
push 0x5c
push edi
call fcn.0041c690
cmp eax, esi
pop ecx
pop ecx
je 0x417957
cmp dword [ebp + 0xc], 0x7fffffff
mov byte [eax + 1], 0
ja 0x417950
push 0x4033dc
push dword [ebp + 0xc]
push edi
call fcn.0040637c
xor eax, eax
jmp 0x417ab2
push ebx
lea eax, [ebp - 8]
push eax
push 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x402238
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ebx, eax
test ebx, ebx
jne 0x417a8b
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
push 0x401814
push dword [ebp - 8]
call esi
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x4179da
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x40180c
push dword [ebp - 0xc]
call esi
mov ebx, eax
test ebx, ebx
jne 0x4179cd
cmp dword [ebp - 0x10], 1
jne 0x4179ca
mov eax, dword [ebp + 8]
cmp eax, 2
jb 0x4179ca
mov byte [eax + edi], bl
jmp 0x4179cd
push 0xd
pop ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x417a0d
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x40181c
push dword [ebp - 8]
call esi
mov ebx, eax
test ebx, ebx
jne 0x417a79
cmp dword [ebp - 0x10], 1
jne 0x417a32
mov eax, dword [ebp + 8]
cmp eax, 2
jb 0x417a32
mov byte [eax + edi], bl
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417a12
sub eax, edx
cmp byte [eax + edi - 1], 0x5c
jne 0x417a37
cmp dword [ebp + 0xc], 0x7fffffff
ja 0x417a40
push 0x4033dc
jmp 0x417a4c
push 0xd
pop ebx
jmp 0x417a79
cmp dword [ebp + 0xc], 0x7fffffff
jbe 0x417a47
mov eax, 0x80070057
jmp 0x417a55
push 0x4033d4
push dword [ebp + 0xc]
push edi
call fcn.0040637c
test eax, eax
jl 0x417aae
cmp dword [ebp + 0x10], 0
je 0x417a75
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417a75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x417a79
and dword [ebp - 4], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0x80004005
jne 0x417aae
test ebx, ebx
mov edx, 0xffff
mov ecx, 0x80070000
mov eax, ebx
jle 0x417a9f
and eax, edx
or eax, ecx
test eax, eax
jge 0x417aae
test ebx, ebx
jle 0x417aab
and ebx, edx
or ebx, ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x4183a7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x42c300]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x4183df
mov dword [0x42d018], eax
cmp dword [ebp - 0x88], 2
jne 0x4183f9
cmp dword [ebp - 0x94], 5
sbb eax, eax
add eax, 3
mov dword [0x42d018], eax
mov ecx, dword [ebp - 4]
call fcn.0041b4ee
leave
ret
Function at 0x418e4c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
jne 0x418e67
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
jmp 0x418e6a
push dword [ebp + 0xc]
call fcn.00418d79
test eax, eax
je 0x418e8a
call fcn.00418a55
test eax, eax
je 0x418e8a
push 0xffffffffffffffff
push dword [0x42d034]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00418aaf
xor eax, eax
inc eax
pop ebp
ret 0x10

Function at 0x418ee6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
jmp 0x418f19
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
push dword [edi + 4]
call sub.WSOCK32.dll_recv
test eax, eax
je 0x418f0a
cmp eax, 0xffffffff
jne 0x418f10
test byte [edi + 8], 2
jne 0x418f26
cmp esi, eax
je 0x418f1d
sub esi, eax
add dword [ebp + 8], eax
test esi, esi
jne 0x418ef2
xor eax, eax
pop edi
inc eax
pop esi
pop ebp
ret 0xc
mov al, byte [0x42d039]
mov byte [ebp + 0xb], al
push 0x42a230
lea eax, [ebp + 0xb]
push eax
call fcn.0041b55e
int3

Function at 0x418f53
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
push dword [esp + 8]
call sub.WSOCK32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x418f78
push dword [esp + 8]
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x418f78
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov eax, esi
pop esi
ret 4

Function at 0x419129
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42c300]
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov word [ebp - 0x14], 2
mov dword [ebp - 0x10], eax
call sub.WSOCK32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call sub.WSOCK32.dll_connect
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
inc eax
pop esi
call fcn.0041b4ee
leave
ret 8

Function at 0x419172
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x42c300]
push esi
push edi
push 0xe
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
call sub.ICMP.dll_IcmpCreateFile
mov esi, eax
cmp esi, 0xffffffff
je 0x4191d2
push dword [ebp + 0xc]
lea eax, [ebp - 0x90]
push 0x54
push eax
push 0
push 0x38
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
push esi
call sub.ICMP.dll_IcmpSendEcho
push esi
mov edi, eax
call sub.ICMP.dll_IcmpCloseHandle
test edi, edi
je 0x4191d2
cmp dword [ebp - 0x8c], 0
jne 0x4191d2
xor eax, eax
inc eax
jmp 0x4191d4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0041b4ee
leave
ret 8
Function at 0x41950e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
test edi, edi
je 0x419572
lea eax, [ebp - 0xc]
push eax
push 0x403974
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x419572
push dword [ebp + 8]
and dword [ebp - 0x10], 0
xor eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
mov edi, eax
cmp dword [ebp - 4], 0
je 0x419581
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
leave
ret 4

Function at 0x419588
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
cmp edi, esi
je 0x419600
lea eax, [ebp - 0xc]
push eax
push 0x403974
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x419600
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
neg eax
push esi
sbb eax, eax
push esi
and eax, 2
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x419600
xor edi, edi
cmp dword [ebp - 4], esi
je 0x41960e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x41965f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.00419616
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4196b2
mov eax, dword [ebp + 0x10]
cmp eax, 0x48
jbe 0x419691
push 0x48
pop eax
push 0
lea ecx, [ebp + 0x18]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0xffffffff
je 0x4196b2
xor eax, eax
inc eax
test byte [ebp - 0x38], al
jne 0x4196b4
xor eax, eax
leave
ret 0x14