joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a620
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472ff3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046659f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046bc35
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046d151
test eax, eax
je 0x43a73c
mov ecx, dword [esp + 0x3c]
call fcn.0046bc62
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43a700
push edi
mov ecx, esi
call fcn.004692c6
mov ecx, esi
call fcn.0043a900
cmp dword [esp + 0x38], 1
jne 0x43a735
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00469401
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43c940
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43c973
push esi
call fcn.0043fab0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43c96c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43c9f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43c9e2
mov eax, dword [esi + 8]
test eax, eax
je 0x43c997
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43c9de
cmp eax, 2
je 0x43c9e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43c98a
cmp eax, 3
je 0x43c9bd
cmp eax, 1
jne 0x43c98a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43c98a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43c98a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043ca20
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43ca08
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043ca20
add esp, 4
pop esi
ret
Function at 0x44e9b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x44e9fc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x44e9fc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x44e9e6
push eax
call ebp
test ax, ax
jl 0x44e9f4
inc esi
add edi, 4
cmp esi, 6
jb 0x44e9d8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0044e6b0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4527b0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x452810
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x452810
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x452810
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x452810
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x452820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x467395
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4673cd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00465449
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00465421
jmp 0x4673d9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x468a83
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x468ac5
call fcn.0046e6c7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x468ac5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x468abc
xor eax, eax
jmp 0x468acd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00468ad3
pop edi
pop esi
pop ebx
ret 4

Function at 0x46ebf7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46ec25
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46ec43
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046eb5d
jmp 0x46ec43
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46ec43
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046eb5d
test edi, edi
mov eax, edi
jne 0x46ec2d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x474660
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4e000]
push edi
or ebp, 0xffffffff
jmp 0x474682
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x474689
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x474678
mov eax, 1
add ebx, ebx
jne 0x47469b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4746ac
jne 0x4746cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4746cb
dec eax
add ebx, ebx
jne 0x4746b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x474690
add ebx, ebx
jne 0x4746c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47471d
xor ecx, ecx
sub eax, 3
jb 0x4746e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x474752
sar eax, 1
mov ebp, eax
jmp 0x4746ee
add ebx, ebx
jne 0x4746ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4746bc
inc ecx
add ebx, ebx
jne 0x4746fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4746bc
add ebx, ebx
jne 0x474709
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4746fe
jne 0x47471a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4746fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47473c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47472e
jmp 0x47467e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47473c
add edi, ecx
jmp 0x47467e
pop esi
mov edi, esi
mov ecx, 0x1585
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47475a
cmp byte [edi], 0xa
jne 0x47475a
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 0x47475f
lea edi, [esi + 0x71000]
mov eax, dword [edi]
or eax, eax
je 0x4747d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x78114]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x781dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47478c
mov ecx, edi
jns 0x4747bb
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 + 0x781e0]
or eax, eax
je 0x4747d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4747a9
call dword [esi + 0x781f0]
mov ebp, dword [esi + 0x781e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x47480b
sub esp, 0xffffff80
jmp 0x42e530
Function at 0x55ec40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd5000]
push edi
or ebp, 0xffffffff
jmp 0x55ec62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x55ec69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55ec58
mov eax, 1
add ebx, ebx
jne 0x55ec7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x55ec8c
jne 0x55ecab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55ecab
dec eax
add ebx, ebx
jne 0x55ec98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x55ec70
add ebx, ebx
jne 0x55eca7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x55ecfd
xor ecx, ecx
sub eax, 3
jb 0x55ecc3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x55ed32
sar eax, 1
mov ebp, eax
jmp 0x55ecce
add ebx, ebx
jne 0x55ecce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55ec9c
inc ecx
add ebx, ebx
jne 0x55ecdc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55ec9c
add ebx, ebx
jne 0x55ece9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x55ecde
jne 0x55ecfa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x55ecde
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x55ed1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x55ed0e
jmp 0x55ec5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x55ed1c
add edi, ecx
jmp 0x55ec5e
pop esi
mov edi, esi
mov ecx, 3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55ed3a
cmp byte [edi], 0x45
jne 0x55ed3a
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 0x55ed3f
lea edi, [esi + 0x15b000]
mov eax, dword [edi]
or eax, eax
je 0x55edb7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x165494]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1655e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x55ed6c
mov ecx, edi
jns 0x55ed9b
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 + 0x1655ec]
or eax, eax
je 0x55edb1
mov dword [ebx], eax
add ebx, 4
jmp 0x55ed89
call dword [esi + 0x1655f4]
mov ebp, dword [esi + 0x1655f0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x55edeb
sub esp, 0xffffff80
jmp 0x4bd2c4
Function at 0x4010e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [0x415014], 0
push eax
mov dword [0x415018], 0
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401145
cmp dword [esp + 0x10], 2
jne 0x401145
cmp dword [esp + 4], 5
jb 0x401145
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..Winguard
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x415010], eax
add esp, 0x94
ret
push 0
push 0x4000000
push 0
push 0
push 0
push 0
push str..Winguard
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x415010], eax
jne 0x40118e
push str.SgDisk32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x415014], eax
je 0x40118e
push str.BiosDeviceControl
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415018], eax
add esp, 0x94
ret

Function at 0x401290
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x200
lea eax, [esp]
push eax
call fcn.00401260
add esp, 4
test eax, eax
jne 0x4012ae
add esp, 0x200
ret
push ebx
push esi
mov esi, dword [esp + 0x20c]
xor ecx, ecx
mov edx, esi
xor eax, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
lea ecx, [esp + 0x89]
mov bl, byte [ecx]
mov dl, al
add dl, 0xd
add ecx, 4
xor dl, bl
mov byte [eax + esi], dl
inc eax
cmp eax, 0x13
jb 0x4012d2
mov byte [esi + 0x13], 0
pop esi
mov eax, 1
pop ebx
add esp, 0x200
ret

Function at 0x401560
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x186a8
call fcn.00402800
push ebx
push ebp
push esi
mov eax, dword [esp + 0x186b8]
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [esp + 0x186c0]
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x186a0
push edx
push ebx
mov esi, eax
call ebp
test eax, eax
je 0x4015f2
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4015f2
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edi, ecx
test eax, eax
je 0x401606
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0x186a0
push ecx
push ebx
call ebp
test eax, eax
jne 0x4015b2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x186a8
ret
lea edx, [esp + 0x186c4]
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x186a8
ret
Function at 0x401680
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x104
lea eax, [esp]
push 0
push eax
push ecx
call fcn.00401630
mov edx, dword [esp + 0x114]
add esp, 0xc
lea eax, [esp]
push edx
push 0
push 0x4120f8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
add esp, 0x104
ret

Function at 0x4016c0
Capabilities:
Create http request
Move file
Set file attributes

Disassembly:
sub esp, 0x10c
push ebp
push esi
push 0
push 0
push 0
push 0
push str.HTTPTEST
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
test ebp, ebp
jne 0x4016ea
pop esi
pop ebp
add esp, 0x10c
ret
mov eax, dword [esp + 0x118]
push 0
push 0x80000000
push 0
push 0
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x40171c
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret
push ebx
lea ecx, [esp + 0xc]
push edi
push ecx
push esi
call fcn.004013f0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x12c]
push edx
push eax
push ebx
mov edi, 1
call fcn.00401510
add esp, 0x14
test eax, eax
je 0x401798
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.00401680
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.00401560
add esp, 0x18
test eax, eax
je 0x401796
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x401796
push edi
lea edx, [esp + 0x1c]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x401796
jmp 0x401798
xor edi, edi
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x10c
ret

Function at 0x4017c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x1bc
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c4]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push 0x168
lea edx, [esp + 0x5c]
mov dword [esp + 0x10], eax
push ecx
push edx
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x74]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
add esp, 0x1bc
ret
Function at 0x401d50
Capabilities:
Check os version
Create thread
Shutdown system

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xac
mov dword [0x415134], eax
push esi
push edi
call fcn.004010e0
mov ecx, dword [esp + 0xc0]
push 0x4121b4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401e56
lea edx, [esp + 0xc]
push edx
call fcn.00401290
add esp, 4
call fcn.00401330
test eax, eax
je 0x401ef0
call fcn.00401300
test eax, eax
je 0x401ef0
lea eax, [esp + 0x20]
push eax
call fcn.00401000
push str.C:Sguard_Patch.exe
push str.http:__www.ezicon.co.kr_test__Patch.exe
mov dword [0x41512c], 1
xor esi, esi
call fcn.004016c0
add esp, 0xc
test eax, eax
jne 0x401e01
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x14
jg 0x401ef0
push 0x1388
call edi
push str.C:Sguard_Patch.exe
push str.http:__www.ezicon.co.kr_test__Patch.exe
call fcn.004016c0
add esp, 8
test eax, eax
je 0x401dda
push 0x415128
push 0
push 0
push 0x401360
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x415134]
push 0
push 0x4019a0
push 0
push 0x65
push ecx
mov dword [0x415130], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
jge 0x401ef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.004011a0
pop edi
xor eax, eax
pop esi
add esp, 0xac
ret 0x10
call fcn.00401240
test eax, eax
je 0x401ef0
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0x94
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401ee6
mov eax, dword [esp + 0x30]
mov esi, 2
cmp eax, esi
jne 0x401ee6
cmp dword [esp + 0x24], 5
jb 0x401ee6
lea eax, [esp + 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401ef0
lea ecx, [esp + 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401ef0
push 0
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
call fcn.004011a0
pop edi
xor eax, eax
pop esi
add esp, 0xac
ret 0x10
Function at 0x4228e0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x402ad6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401290
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x38]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
call fcn.00416738
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 0x44], eax
call esi
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x1c]
push eax
push 0x28
push ecx
call fcn.00416814
mov dword [ebp - 0x48], eax
call esi
mov edi, dword [ebp - 0x48]
call fcn.0041685c
mov dword [ebp - 0x44], eax
call esi
mov edx, dword [ebp - 0x44]
not edx
test edi, edx
je 0x4229e9
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x40]
push eax
push 0x416698
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push ebx
call fcn.0041665c
mov dword [ebp - 0x44], eax
call esi
mov edi, dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call fcn.0041685c
mov dword [ebp - 0x44], eax
call esi
mov edx, dword [ebp - 0x44]
not edx
test edi, edx
je 0x4229e9
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x38]
push 0x1c
push edx
push ebx
push eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.004166d8
call esi
call fcn.0041685c
mov dword [ebp - 0x44], eax
call esi
mov edx, dword [ebp - 0x44]
xor ecx, ecx
cmp edx, ebx
sete cl
neg ecx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004167c8
call esi
push 0x422a06
jmp 0x422a05
ret
Function at 0x408d30
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46437b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00458fa6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408db2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00456ebd
mov eax, dword [eax]
push 0x47b1c0
push eax
call fcn.00449d24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00459231
test bl, bl
je 0x408db2
push 0x47b1c0
lea ecx, [esp + 0xc]
call fcn.004595c1
push 0x47ed2c
lea ecx, [esp + 0xc]
call fcn.004595c1
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x408dee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00459231
jmp 0x408eb9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x408e72
lea edx, [esp + 0x7c]
push 0x47ed28
push edx
call fcn.00449d24
add esp, 8
test eax, eax
je 0x408e72
lea eax, [esp + 0x7c]
push 0x47ed24
push eax
call fcn.00449d24
add esp, 8
test eax, eax
je 0x408e72
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408e02
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00459231
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4096b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409712
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc