joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401520
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x34], str.DemoWindowsExApp
mov dword [ebp - 0x54], dbg.WindowProcedure@16
mov dword [ebp - 0x58], 8
mov dword [ebp - 0x5c], 0x30
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_LoadIconA]
call eax
sub esp, 8
mov dword [ebp - 0x44], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_LoadIconA]
call eax
sub esp, 8
mov dword [ebp - 0x30], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_LoadCursorA]
call eax
sub esp, 8
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 5
lea eax, [ebp - 0x5c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_RegisterClassExA]
call eax
sub esp, 4
test ax, ax
jne 0x4015ef
mov eax, 0
jmp 0x4016c2
mov dword [esp + 0x2c], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x177
mov dword [esp + 0x18], 0x220
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], str.Demo_Template_WindowsEx_App
mov dword [esp + 4], str.DemoWindowsExApp
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExA]
call eax
sub esp, 0x30
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
jmp 0x401693
lea eax, [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_TranslateMessage]
call eax
sub esp, 4
lea eax, [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DispatchMessageA]
call eax
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetMessageA]
call eax
sub esp, 0x10
test eax, eax
jne 0x401673
mov eax, dword [ebp - 0x24]
leave
ret 0x10

Function at 0x4019e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x401a40
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x405058]
test esi, esi
jle 0x401b60
mov eax, dword [0x40505c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401a74
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401af7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401a60
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401b87
mov eax, dword [0x40505c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x40505c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b67
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401af0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x401b00
add dword [0x405058], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40505c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401a7e
mov eax, dword [0x40505c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop
Function at 0x4021e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
cmp eax, 2
je 0x402310
ja 0x402228
test eax, eax
je 0x4022a8
mov eax, dword [0x405070]
test eax, eax
je 0x402390
mov dword [0x405070], 1
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 3
jne 0x402215
mov eax, dword [0x405070]
test eax, eax
je 0x402215
mov dword [esp], 0x405074
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40506c]
sub esp, 4
test ebx, ebx
je 0x40228d
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call edi
mov ebp, eax
sub esp, 4
call esi
test ebp, ebp
je 0x4023b8
test eax, eax
jne 0x4023b8
mov eax, dword [ebx + 4]
mov dword [esp], ebp
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402260
mov dword [esp], 0x405074
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x402215
mov eax, dword [0x405070]
test eax, eax
jne 0x402328
mov eax, dword [0x405070]
cmp eax, 1
jne 0x402215
mov ebx, dword [0x40506c]
test ebx, ebx
je 0x4022e1
lea esi, [esi]
mov eax, ebx
mov ebx, dword [ebx + 8]
mov dword [esp], eax
call sym._free
test ebx, ebx
jne 0x4022d0
mov dword [0x40506c], 0
mov dword [0x405070], 0
mov dword [esp], 0x405074
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
sub esp, 4
jmp 0x402215
call sym.__fpreset
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x405074
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40506c]
sub esp, 4
test ebx, ebx
je 0x402375
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov eax, dword [ebx]
mov dword [esp], eax
call edi
sub esp, 4
mov ebp, eax
call esi
test eax, eax
jne 0x4023a8
test ebp, ebp
je 0x4023a8
mov eax, dword [ebx + 4]
mov dword [esp], ebp
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402350
mov dword [esp], 0x405074
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x4022b1
mov dword [esp], 0x405074
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
sub esp, 4
jmp 0x40220b
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402350
jmp 0x402375
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402260
jmp 0x40228d

Function at 0x4024e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402505
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402510
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402505
push esi
push ebx
mov ebx, dword [esp + 0xc]
movzx eax, word [ecx + 0x400014]
movzx esi, word [ecx + 0x400006]
sub ebx, 0x400000
lea eax, [edx + eax + 0x18]
test si, si
je 0x402558
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40254e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40255a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402540
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401000
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x61df80]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a0], ecx
push str.ICMP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x1a0]
cmp dword [edx + 0x10], 0
jne 0x40103e
jmp 0x40112c
push str.IcmpCreateFile
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x1a0]
mov dword [edx + 4], eax
push str.IcmpCloseHandle
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x1a0]
mov dword [edx + 8], eax
push str.IcmpSendEcho
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x1a0]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x1a0]
cmp dword [eax + 4], 0
je 0x4010bc
mov ecx, dword [ebp - 0x1a0]
cmp dword [ecx + 8], 0
je 0x4010bc
mov edx, dword [ebp - 0x1a0]
cmp dword [edx + 0xc], 0
jne 0x4010ce
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40112c
lea edx, [ebp - 0x198]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x401107
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40112c
movzx edx, word [ebp - 0x198]
cmp edx, 0x101
je 0x40112c
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c7d13
mov esp, ebp
pop ebp
ret
Function at 0x40a860
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x61df80]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4], 0
mov al, byte [0x5def46]
mov byte [0x62aff8], al
push 0x94
push 0
lea ecx, [ebp - 0xa0]
push ecx
call fcn.004ce490
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea edx, [ebp - 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x40a8eb
call fcn.004094f0
mov dword [ebp - 0xa4], eax
call fcn.0040a260
mov dword [ebp - 0xa4], eax
call fcn.00409c30
mov dword [ebp - 0xa4], eax
call fcn.00409730
mov dword [ebp - 0xa4], eax
jmp 0x40a93a
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa8], 0
jmp 0x40a910
mov eax, dword [ebp - 0xa8]
add eax, 1
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0xa
jge 0x40a93a
cmp dword [ebp - 0xa4], 0
jne 0x40a93a
movsx ecx, byte [0x62aff8]
test ecx, ecx
jne 0x40a93a
call fcn.0040a0e0
mov dword [ebp - 0xa4], eax
jmp 0x40a901
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c7d13
mov esp, ebp
pop ebp
ret
Function at 0x40ab70
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x6f
jne 0x40abe5
cmp dword [ebp - 0x10], 0
je 0x40abc0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004bdea5
add esp, 4
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004bde9a
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov dword [ebp - 0x24], str.Microsoft_Loopback_Adapter
mov eax, dword [ebp - 8]
add eax, 0x10c
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dl, byte [ecx]
mov byte [ebp - 0x29], dl
mov eax, dword [ebp - 0x24]
cmp dl, byte [eax]
jne 0x40ac3a
cmp byte [ebp - 0x29], 0
je 0x40ac31
mov ecx, dword [ebp - 0x28]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x2a], dl
mov eax, dword [ebp - 0x24]
cmp dl, byte [eax + 1]
jne 0x40ac3a
add dword [ebp - 0x28], 2
add dword [ebp - 0x24], 2
cmp byte [ebp - 0x2a], 0
jne 0x40abfd
mov dword [ebp - 0x30], 0
jmp 0x40ac42
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
jne 0x40ac5a
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
jmp 0x40acc7
cmp dword [ebp - 4], 0
jne 0x40aca3
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x199]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x198]
shl edx, 8
add eax, edx
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x197]
shl edx, 8
shl edx, 8
add eax, edx
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x196]
shl edx, 8
shl edx, 8
shl edx, 8
add eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1a0]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x194
push edx
call fcn.0040a950
add esp, 8
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x40abeb
cmp dword [ebp - 0x10], 0
je 0x40acf0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004bdea5
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x410ef0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a22f6
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x61df80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00401ff0
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x410f87
push 0
call fcn.00405d70
movzx eax, al
push eax
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x13c]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x410f87
push str.GetRegPath
push 0x5ed564
push 0x1c
push 0x5ed570
push 0
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x13c]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x1c
xor ecx, ecx
jne 0x410f1b
push 0x5deea7
lea ecx, [ebp - 0x138]
call fcn.00403100
mov dword [ebp - 4], 0
push 0x104
push 0
lea edx, [ebp - 0x11c]
push edx
call fcn.004ce490
add esp, 0xc
push 0x103
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x138]
call fcn.004031c0
mov edx, dword [0x5f0818]
push edx
push 0x5c
lea ecx, [ebp - 0x138]
call fcn.00411f40
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x5f0818]
je 0x411064
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
push 0
lea edx, [ebp - 0x158]
push edx
lea ecx, [ebp - 0x138]
call fcn.00403280
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x160], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x160]
push ecx
lea ecx, [ebp - 0x138]
call fcn.004031a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x158]
call fcn.00403180
push 0x5ed588
lea ecx, [ebp - 0x138]
call fcn.00409380
jmp 0x411074
push str.Language.ini
lea ecx, [ebp - 0x138]
call fcn.004031c0
push 0x104
push 0
lea edx, [ebp - 0x11c]
push edx
call fcn.004ce490
add esp, 0xc
lea ecx, [ebp - 0x138]
call fcn.00403210
push eax
push 0x103
lea eax, [ebp - 0x11c]
push eax
push str.SOFTWAREgnwayesoonlinkClient
push str.RegistryPath
push str.Registry
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004031c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.00403180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c7d13
mov esp, ebp
pop ebp
ret
Function at 0x411390
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a469a
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x61df80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1bc], ecx
mov eax, dword [ebp - 0x1bc]
mov byte [eax], 1
mov ecx, dword [ebp - 0x1bc]
add ecx, 8
call fcn.004127a0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1bc]
mov dword [ecx + 0x28], 0
mov ecx, dword [ebp - 0x1bc]
add ecx, 0x2c
call fcn.004127a0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1bc]
mov byte [edx + 0x4c], 0
mov eax, dword [ebp - 0x1bc]
mov dword [eax + 0x6c], 0
xor ecx, ecx
mov edx, dword [ebp - 0x1bc]
mov word [edx + 0x70], cx
call fcn.00401ff0
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
je 0x411490
push 0
call fcn.00405d70
movzx eax, al
push eax
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1ac]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x411490
push 0x5ed9dc
push 0x5eda04
push 0xdc
push 0x5eda10
push 0
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1ac]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x1c
xor ecx, ecx
jne 0x411421
push 0x3c
call fcn.004bde6b
add esp, 4
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1b8], 0
je 0x4114d4
push 0
push 1
push 0x100
push str.GNProxyDomain
push 0
mov ecx, dword [ebp - 0x1b8]
call fcn.00401810
mov dword [ebp - 0x1c0], eax
jmp 0x4114de
mov dword [ebp - 0x1c0], 0
mov edx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1b4], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0x1b4]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x1bc]
add edx, 0x50
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x1bc]
mov dword [ecx + 0x68], eax
mov edx, 2
mov word [ebp - 0x1a8], dx
lea eax, [ebp - 0x1a4]
push eax
movzx ecx, word [ebp - 0x1a8]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4115b7
call fcn.00401ff0
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0
je 0x4115b3
push 4
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x1b0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1b0]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x4115b3
push str.WSAStartup_err_n
push 0xe5
push 0x5eda48
push 4
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1b0]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x18
xor ecx, ecx
jne 0x411549
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c7d13
mov esp, ebp
pop ebp
ret
Function at 0x411620
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aded0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x61df80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
push 0x5deeb7
lea ecx, [ebp - 0x48]
call fcn.00403100
mov dword [ebp - 4], 0
push 0x5deee7
lea ecx, [ebp - 0x2c]
call fcn.00403100
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
call fcn.00410ef0
add esp, 4
push str.VpnClient
lea ecx, [ebp - 0x48]
call fcn.00409380
lea ecx, [ebp - 0x2c]
push ecx
push str.LoginDomainName
lea ecx, [ebp - 0x48]
call fcn.00403210
push eax
push reloc.WS2_32.dll_bind
call fcn.00411100
add esp, 0x10
push 0
push 0
mov edx, dword [ebp - 0x58]
push edx
push 0x411bb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x6c], eax
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x58]
call fcn.004119b0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
call fcn.00410e80
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx]
test edx, edx
je 0x41177d
call fcn.00401ff0
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x411754
push 0
call fcn.00405d70
movzx eax, al
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x411754
push str.CGNServiceHandler::Run
push str.In_func__s_while__m_bRunning__n
push 0x105
push 0x5edb08
push 0
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x1c
xor ecx, ecx
jne 0x4116f7
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx + 4]
call fcn.00410ea0
push eax
lea ecx, [ebp - 0x2c]
call fcn.004031c0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x58]
call fcn.004119b0
jmp 0x4116e9
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x4117a1
push 1
mov ecx, dword [ebp - 0x50]
call fcn.00402300
mov dword [ebp - 0x5c], eax
jmp 0x4117a8
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00403180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00403180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c7d13
mov esp, ebp
pop ebp
ret
Function at 0x4117f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
call fcn.00401ff0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x411856
push 0
call fcn.00405d70
movzx eax, al
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x411856
push str.CGNServiceHandler::ExitAllProxyInstance
push 0x5edb48
push 0x110
push 0x5edb54
push 0
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x1c
xor ecx, ecx
jne 0x4117f9
mov edx, dword [ebp - 0x24]
mov byte [edx], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
call fcn.00401f20
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x28], 0
je 0x4118aa
push 0x2710
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x68], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 8
call fcn.00433420
jmp 0x4118e0
push 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 8]
call fcn.0043a660
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 8
call fcn.0041e030
push eax
lea ecx, [ebp - 8]
call fcn.00412890
movzx eax, al
test eax, eax
je 0x411996
call fcn.00401ff0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x411967
push 0
call fcn.00405d70
movzx ecx, al
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
call edx
movzx eax, al
test eax, eax
je 0x411967
lea ecx, [ebp - 8]
call fcn.0043ccd0
mov ecx, dword [eax + 0x1c]
push ecx
push str.Terminate_Process__u_n
push 0x122
push 0x5edb84
push 0
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x1c
xor ecx, ecx
jne 0x411903
push 0
lea ecx, [ebp - 8]
call fcn.0043ccd0
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 8]
call fcn.0043ccd0
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4118d2
mov ecx, dword [ebp - 0x24]
add ecx, 8
call fcn.00412830
mov esp, ebp
pop ebp
ret