joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d170
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46fe67
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x48b914]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push ebp
push esi
mov eax, dword [0x48b914]
xor eax, esp
push eax
lea eax, [esp + 0x18c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x19c]
push 0x103
lea eax, [esp + 0x85]
push 0
xor bl, bl
push eax
mov byte [esp + 0x8c], bl
call fcn.004592c0
mov ecx, dword [str.dongdong1417]
mov edx, dword [0x47c15c]
mov eax, dword [0x47c160]
mov dword [esp + 0x7c], ecx
mov cl, byte [0x47c164]
mov dword [esp + 0x80], edx
mov edx, dword [str.dawxxx123]
mov dword [esp + 0x84], eax
mov eax, dword [0x47c16c]
mov byte [esp + 0x88], cl
mov cx, word [0x47c170]
add esp, 0xc
push 0
lea esi, [esp + 0x84]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
mov word [esp + 0x70], cx
call fcn.0040f9d0
mov edx, esi
add esp, 4
push edx
call fcn.00403840
add esp, 4
cmp dword [edi + 0x168], 1
mov esi, eax
mov dword [esp + 0x1c], esi
lea ecx, [edi + 0x78]
je 0x40d254
lea ecx, [edi + 0xf0]
push esi
lea eax, [ebp + 4]
push eax
call fcn.004084e0
test al, al
je 0x40d3bf
lea ecx, [esp + 0x28]
push ecx
call fcn.00417c70
push ecx
mov dword [esp + 0x198], 0
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00404050
push ecx
mov byte [esp + 0x19c], 1
lea eax, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00404050
push ecx
lea edx, [esp + 0x8c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x1a4], 2
call fcn.00404050
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x1a8], 0
call fcn.00417dd0
mov byte [esp + 0x194], 3
call fcn.00436c6e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d2fa
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x194], 4
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 8]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._s__s__
push eax
call fcn.0040eed0
add esp, 0x10
cmp dword [edi + 0x168], 1
lea eax, [edi + 0x78]
je 0x40d33f
lea eax, [edi + 0xf0]
mov esi, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.00406020
lea ecx, [esp + 0x80]
push ecx
mov bl, al
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esi - 0x10]
mov byte [esp + 0x194], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d37f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x194], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d3a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x194], 0xffffffff
call fcn.00417d30
mov esi, dword [esp + 0x1c]
push esi
call fcn.00455213
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.00454d22
add esp, 0x188
ret 4
Function at 0x40d530
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x48b914]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push esi
push edi
push 0x103
lea eax, [esp + 0x155]
push 0
push eax
mov byte [esp + 0x15c], 0
call fcn.004592c0
push 0x103
lea ecx, [esp + 0x269]
push 0
push ecx
mov byte [esp + 0x270], 0
call fcn.004592c0
push 0x13c
lea edx, [esp + 0x30]
push 0
push edx
mov dword [esp + 0x34], 0
call fcn.004592c0
lea eax, [esp + 0x174]
add esp, 0x24
test eax, eax
je 0x40d5de
push 0x104
mov ecx, eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
dec eax
cmp eax, 0x102
ja 0x40d5de
lea edx, [esp + 0x150]
push 0x5c
push edx
call fcn.00456f10
add esp, 8
test eax, eax
je 0x40d5de
mov byte [eax + 1], 0
push str.goagentlocalcerts_
lea eax, [esp + 0x154]
push 0x104
push eax
call fcn.004558ea
push 0x47bfb4
lea ecx, [esp + 0x160]
push ecx
push 0x47b70c
lea edx, [esp + 0x270]
push 0x104
push edx
call fcn.004551d4
add esp, 0x20
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d6fe
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [esp + 0x10], 0x10
jne 0x40d6cc
lea edx, [esp + 0x3c]
push str.facebook
push edx
call fcn.00455422
add esp, 8
test eax, eax
jne 0x40d68f
lea eax, [esp + 0x3c]
push str.fbcdn
push eax
call fcn.00455422
add esp, 8
test eax, eax
jne 0x40d68f
lea ecx, [esp + 0x3c]
push str.akamaihd
push ecx
call fcn.00455422
add esp, 8
test eax, eax
je 0x40d6cc
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x154]
push eax
push 0x47b70c
lea ecx, [esp + 0x264]
push 0x104
push ecx
call fcn.004551d4
add esp, 0x14
push 0
lea edx, [esp + 0x25c]
push edx
call esi
lea eax, [esp + 0x258]
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d646
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.00454d22
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.00454d22
mov esp, ebp
pop ebp
ret

Function at 0x40e0f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, eax
jmp 0x40e110
push 1
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40e13d
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0xc8
call esi
call edi
sub eax, ebx
cmp eax, ebp
jb 0x40e110
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x40e1c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x218
mov eax, dword [0x48b914]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [esp + 9]
push ebx
push eax
mov byte [esp + 0x10], bl
call fcn.004592c0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x111]
push ebx
push ecx
mov byte [esp + 0x118], bl
call fcn.004592c0
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
push 0x47c218
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [esp + 4]
push eax
push str._sMacromediaFlash_Playermacromedia.com_support_flashplayer_sys
lea ecx, [esp + 0x114]
push 0x104
push ecx
call fcn.004551d4
add esp, 0x10
lea ebx, [esp + 0x10c]
call fcn.0040f2e0
mov ecx, dword [esp + 0x218]
pop ebx
xor ecx, esp
call fcn.00454d22
add esp, 0x218
ret
Function at 0x40f340
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x670
mov eax, dword [0x48b914]
xor eax, esp
mov dword [esp + 0x66c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x680]
xor eax, eax
push edi
mov dword [esp + 0x14], esi
test esi, esi
je 0x40f5b1
push 0x206
push eax
lea ecx, [esp + 0x272]
push ecx
mov word [esp + 0x274], ax
call fcn.004592c0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x47a]
push eax
mov word [esp + 0x47c], dx
call fcn.004592c0
add esp, 0xc
push 0x24c
lea ecx, [esp + 0x20]
push 0
push ecx
mov dword [esp + 0x24], 0
call fcn.004592c0
add esp, 0xc
push esi
lea edx, [esp + 0x26c]
push 0x104
push edx
call fcn.00456fba
lea eax, [esp + 0x274]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f3e7
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x266], 0x5c
je 0x40f444
lea eax, [esp + 0x268]
lea edx, [eax + 2]
jmp 0x40f410
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f410
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x266], 0x2f
je 0x40f444
push 0x47c590
lea eax, [esp + 0x26c]
push 0x104
push eax
call fcn.00456f3d
add esp, 0xc
lea ecx, [esp + 0x268]
push ecx
lea edx, [esp + 0x474]
push 0x104
push edx
call fcn.00456fba
add esp, 0xc
push 0x47c594
lea eax, [esp + 0x474]
push 0x104
push eax
call fcn.00456f3d
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x474]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f49c
xor eax, eax
jmp 0x40f5b1
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, edi
lea eax, [esp + 0x268]
push eax
lea ecx, [esp + 0x474]
push 0x104
push ecx
call fcn.00456fba
add esp, 0xc
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x474]
push 0x104
push eax
call fcn.00456f3d
add esp, 0xc
test byte [esp + 0x18], 0x10
je 0x40f579
mov ecx, 0x47c598
lea eax, [esp + 0x44]
jmp 0x40f500
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f526
test dx, dx
je 0x40f522
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f526
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f500
xor eax, eax
jmp 0x40f52b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f58f
mov ecx, 0x47c59c
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f55e
test dx, dx
je 0x40f55a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f55e
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f538
xor eax, eax
jmp 0x40f563
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f58f
lea ecx, [esp + 0x470]
push ecx
call fcn.0040f340
add esp, 4
jmp 0x40f58f
push 0
lea edx, [esp + 0x474]
push edx
call edi
lea eax, [esp + 0x470]
push eax
call ebp
lea ecx, [esp + 0x18]
push ecx
push esi
call ebx
test eax, eax
jne 0x40f4b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00454d22
add esp, 0x670
ret
Function at 0x40f7d0
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x48b914]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
mov edi, ecx
lea esi, [esp + 8]
test edi, edi
jne 0x40f809
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00454d22
add esp, 0x20c
ret
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edi
call ebp
mov ebx, eax
test ebx, ebx
jne 0x40f8de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40f8de
cmp word [edi], bx
je 0x40f899
lea eax, [esp + 0x10]
sub edi, eax
lea esp, [esp]
movzx eax, word [edi + esi]
mov ecx, 0x5c
cmp cx, ax
je 0x40f858
mov edx, 0x2f
cmp dx, ax
jne 0x40f880
mov eax, 0x3a
cmp ax, word [edi + esi - 2]
je 0x40f880
push 0
lea ecx, [esp + 0x14]
push ecx
call ebp
mov ebx, eax
test ebx, ebx
jne 0x40f880
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f899
mov dx, word [edi + esi]
mov word [esi], dx
add esi, 2
xor eax, eax
mov word [esi], ax
cmp word [edi + esi], ax
jne 0x40f840
test ebx, ebx
jne 0x40f8a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f8cd
movzx eax, word [esi - 2]
mov ecx, 0x5c
cmp cx, ax
je 0x40f8c9
mov edx, 0x2f
cmp dx, ax
je 0x40f8c9
push 0
lea eax, [esp + 0x14]
push eax
call ebp
mov ebx, eax
test ebx, ebx
jne 0x40f8de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40f8de
xor eax, eax
jmp 0x40f8e3
mov eax, 1
mov ecx, dword [esp + 0x218]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00454d22
add esp, 0x20c
ret

Function at 0x40f9d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x48b914]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
mov dword [esp], 0x706d74
test eax, eax
jne 0x40fa38
lea eax, [esp + 4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40fa43
push esi
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40fa43
mov al, 1
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00454d22
add esp, 0x10c
ret
push esi
push 0
lea ecx, [esp + 8]
push ecx
push eax
jmp 0x40fa17
mov ecx, dword [esp + 0x108]
xor ecx, esp
xor al, al
call fcn.00454d22
add esp, 0x10c
ret
Function at 0x40ffe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
mov ebx, dword [0x48fc48]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
cmp dword [0x48fc64], 0x10
mov eax, dword [0x48fc50]
jae 0x410014
mov eax, 0x48fc50
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call edi
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x410054
mov ecx, esi
shl ebx, cl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x41004a
push ebx
call ebp
inc esi
cmp esi, 3
jl 0x410001
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x48fc84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x48fc74]
cmp esi, dword [0x48fc78]
jbe 0x41007f
call fcn.00455747
mov edi, dword [0x48fc68]
mov ebp, esi
jmp 0x410090
mov esi, dword [0x48fc78]
cmp dword [0x48fc74], esi
jbe 0x4100a3
call fcn.00455747
test edi, edi
je 0x4100af
cmp edi, dword [0x48fc68]
je 0x4100b4
call fcn.00455747
cmp ebp, esi
je 0x41012d
test edi, edi
jne 0x410121
call fcn.00455747
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4100cd
call fcn.00455747
mov ebx, dword [ebp + 0x14]
lea esi, [ebp + 4]
test edi, edi
jne 0x410125
call fcn.00455747
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4100e8
call fcn.00455747
cmp dword [esi + 0x14], 0x10
jb 0x4100f0
mov esi, dword [esi]
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
jne 0x410129
call fcn.00455747
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x410119
call fcn.00455747
add ebp, 0x1c
jmp 0x410090
mov eax, dword [edi]
jmp 0x4100c3
mov eax, dword [edi]
jmp 0x4100de
mov eax, dword [edi]
jmp 0x41010f
mov ebx, dword [0x48fc78]
cmp dword [0x48fc74], ebx
jbe 0x410140
call fcn.00455747
mov edi, dword [0x48fc74]
mov esi, dword [0x48fc68]
cmp edi, dword [0x48fc78]
jbe 0x410159
call fcn.00455747
mov edx, dword [0x48fc68]
push ebx
push esi
push edi
push edx
lea ebx, [esp + 0x28]
mov esi, 0x48fc68
call fcn.004101a0
push 0x48fc84
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410290
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x485318
push 0x45b7d0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x48b914]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x19], 0
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x410446
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x28], 0x288
push 0x288
call fcn.00455c84
add esp, 4
mov esi, eax
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x28]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x410330
mov ecx, dword [ebp - 0x28]
push ecx
push esi
call fcn.00457029
add esp, 8
cmp eax, edi
je 0x410446
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x28]
push edx
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, edi
jne 0x410446
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x410446
cmp dword [esi + 0x1a0], 6
jne 0x410467
cmp byte [esi + 0x194], 0
jne 0x41038d
cmp byte [esi + 0x195], 0
jne 0x41038d
cmp byte [esi + 0x196], 0
jne 0x41038d
cmp byte [esi + 0x197], 0
jne 0x41038d
cmp byte [esi + 0x198], 0
jne 0x41038d
cmp byte [esi + 0x199], 0
je 0x410467
push str.Virtual
lea eax, [esi + 0x10c]
push eax
call fcn.00456e40
add esp, 8
test eax, eax
jne 0x410467
lea eax, [esi + 0x1b0]
push eax
call sub.WS2_32.dll_inet_addr
mov edi, eax
push str.127.0.0.1
call sub.WS2_32.dll_inet_addr
cmp edi, eax
je 0x410467
lea eax, [esi + 0x1b0]
push eax
call sub.WS2_32.dll_inet_addr
mov edi, eax
push str.0.0.0.0
call sub.WS2_32.dll_inet_addr
cmp edi, eax
je 0x410467
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [esi + 0x190]
jae 0x410442
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410400
sub eax, edx
mov edx, eax
mov eax, ebx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410410
sub eax, edi
mov ecx, dword [ebp - 0x20]
movzx ecx, byte [ecx + esi + 0x194]
push ecx
push str._02X
mov ecx, 0x14
sub ecx, edx
push ecx
add eax, ebx
push eax
call fcn.004551d4
add esp, 0x10
inc dword [ebp - 0x20]
jmp 0x4103f0
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.0041046e
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esi]
jmp 0x41033b
Function at 0x412650
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x48b914]
xor eax, esp
mov dword [esp + 0x94], eax
push edi
xor edi, edi
push 0x90
lea eax, [esp + 0xc]
push edi
push eax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x1c], 1
mov dword [esp + 0x10], 0x94
call fcn.004592c0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4127a4
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x41276c
mov eax, dword [esp + 0xc]
cmp eax, edi
jne 0x4126fd
mov dword [esi + 0x34], 0xa0
mov dword [esi + 0x38], 0xa4
mov eax, esi
pop edi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00454d22
add esp, 0x98
ret
cmp eax, 1
jne 0x412728
mov dword [esi + 0x34], 0x88
mov dword [esi + 0x38], 0x8c
mov eax, esi
pop edi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00454d22
add esp, 0x98
ret
cmp eax, 2
mov eax, esi
jne 0x412753
mov dword [esi + 0x34], 0x8a
mov dword [esi + 0x38], 0x8e
pop edi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00454d22
add esp, 0x98
ret
mov dword [esi + 0x1c], edi
pop edi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00454d22
add esp, 0x98
ret
cmp eax, 4
jne 0x4127a4
cmp dword [esp + 0xc], edi
jne 0x4127a4
cmp dword [esp + 0x14], 2
jne 0x4127a4
mov dword [esi + 0x34], 0x98
mov dword [esi + 0x38], 0x9c
mov eax, esi
pop edi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00454d22
add esp, 0x98
ret
mov ecx, dword [esp + 0x98]
mov dword [esi + 0x1c], edi
pop edi
xor ecx, esp
mov eax, esi
call fcn.00454d22
add esp, 0x98
ret

Function at 0x4127c0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x28
xor eax, eax
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
xor esi, esi
lea eax, [esp + 8]
push eax
push 0x28
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x412820
lea ecx, [esp + 0x10]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x412827
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x28
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push esi
push 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x18]
push esi
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp + 8]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x28
ret
Function at 0x412880
Capabilities:
Link many functions at runtime

Disassembly:
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x18], eax
test eax, eax
je 0x412911
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push eax
call edi
mov dword [esi], eax
mov eax, dword [esi + 0x18]
push str.RtlInitUnicodeString
push eax
call edi
mov ecx, dword [esi + 0x18]
push str.ZwOpenSection
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 0x18]
push str.NtOpenSection
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
push str.ZwQuerySystemInformation
push eax
call edi
mov ecx, dword [esi + 0x18]
push str.ZwSystemDebugControl
push ecx
mov dword [esi + 4], eax
call edi
cmp dword [esi], 0
mov dword [esi + 0x14], eax
pop edi
je 0x412911
cmp dword [esi + 8], 0
je 0x412911
cmp dword [esi + 0xc], 0
je 0x412911
cmp dword [esi + 0x10], 0
je 0x412911
cmp dword [esi + 4], 0
je 0x412911
test eax, eax
je 0x412911
mov eax, 1
ret
xor eax, eax
ret