joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404350
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x434674]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push edi
mov ebx, str.StartLoop
mov edi, 0x42fa78
call fcn.004101e0
xor ebx, ebx
cmp byte [esi], bl
je 0x4043a5
mov ecx, esi
call fcn.00403fd0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
jne 0x4043b8
mov ebx, str.Failed
mov edi, str.socket__
call fcn.004101e0
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00411d6c
mov esp, ebp
pop ebp
ret
movzx ecx, word [esi + 0x20]
mov eax, 2
push ecx
mov word [esp + 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x10]
mov word [esp + 0x12], ax
mov eax, dword [esi + 0x3c]
push edx
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40440e
mov ebx, str.Failed
mov edi, str.bind__
call fcn.004101e0
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00411d6c
mov esp, ebp
pop ebp
ret
mov ecx, esi
mov byte [esi + 1], bl
call fcn.00404430
mov ecx, dword [esp + 0x1c]
pop edi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00411d6c
mov esp, ebp
pop ebp
ret
Function at 0x404430
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b54b
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, str.RecvfromSocketThread_start
mov edi, str.SocketService
mov dword [ebp - 0x830], esi
call fcn.004101e0
movzx ecx, word [esi + 0x20]
mov eax, 2
push ecx
mov dword [ebp - 0x834], 0x10
mov word [esi + 0x40], ax
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [esi + 0x42], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp byte [esi + 1], 0
mov dword [esi + 0x44], eax
jne 0x404622
nop
mov ecx, dword [esi + 0x3c]
lea edx, [ebp - 0x834]
push edx
lea eax, [esi + 0x40]
push eax
push 0
push 0x800
lea eax, [ebp - 0x810]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x404618
push 0
push 0
push 0xffffffffffffffff
lea edx, [ebp - 0x810]
push edx
push 0
push 0xfde9
mov byte [ebp + eax - 0x810], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea ebx, [edi + edi + 2]
push ebx
call fcn.004138d7
add esp, 4
push ebx
xor ebx, ebx
mov esi, eax
push ebx
push esi
call fcn.0041d850
add esp, 0xc
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x810]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push 0x42fa3d
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x818], 0xf
mov dword [ebp - 0x81c], ebx
mov byte [ebp - 0x82c], bl
call fcn.004014a0
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push 1
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
push ebx
call fcn.004109a4
add esp, 4
push 0
push 0
push ebx
mov edi, eax
push edi
push 0xffffffffffffffff
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404591
sub eax, ecx
push eax
push edi
lea ecx, [ebp - 0x82c]
call fcn.004014a0
push edi
call fcn.0041355a
mov ebx, dword [ebp - 0x82c]
add esp, 4
cmp dword [ebp - 0x818], 0x10
jae 0x4045c5
lea ebx, [ebp - 0x82c]
mov edi, str.socket_recv:
call fcn.004101e0
push 8
call fcn.004122cd
add esp, 4
test eax, eax
je 0x4045ea
mov ecx, dword [ebp - 0x830]
mov dword [eax + 4], ecx
mov dword [eax], esi
jmp 0x4045ec
xor eax, eax
mov ecx, eax
call fcn.00404710
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x818], 0x10
jb 0x404612
mov edx, dword [ebp - 0x82c]
push edx
call fcn.00412271
add esp, 4
mov esi, dword [ebp - 0x830]
cmp byte [esi + 1], 0
je 0x4044b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411d6c
mov esp, ebp
pop ebp
ret
Function at 0x404640
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 6
mov ebx, 1
push ebx
push 2
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.WS2_32.dll_socket]
push 4
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, 2
push 0
mov word [ebp - 0x14], cx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
xor edx, edx
push esi
mov word [ebp - 0x12], dx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4046aa
xor bl, bl
jmp 0x4046d5
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x24]
push edx
push esi
mov dword [ebp - 0x28], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4046c8
xor bl, bl
jmp 0x4046d5
mov eax, dword [ebp - 0x22]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [edi], ax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x4046f2
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d6c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00411d6c
mov esp, ebp
pop ebp
ret
Function at 0x406210
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b447
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x434674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x42fd40
mov dword [edi + 0x10], 0x42fdf0
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0x18]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.00408600
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.0040a720
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x436f4c]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4087e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ada8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x40898e
cmp byte [ebx + 0x49], 0
je 0x40898e
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x408982
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x408855
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x408872
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4088a9
dec eax
je 0x4088ad
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x408989
call fcn.00401470
xor al, al
jmp 0x408990
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4088bd
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4088ea
cmp edi, 0x10
jae 0x4088cc
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00413731
add esp, 0x10
cmp esi, eax
jne 0x40897a
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x408986
test esi, esi
jne 0x408866
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x4089ab
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x4089ab
cmp edi, esi
jae 0x408963
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004017d0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x408866
mov ecx, eax
cmp edi, 0x10
jae 0x40893f
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40895a
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x408860
test esi, esi
jne 0x408935
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x408972
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x408860
lea ecx, [ebp - 0x2c]
call fcn.00401470
xor al, al
jmp 0x408990
lea ecx, [ebp - 0x2c]
call fcn.00401470
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411d6c
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004108e9
int3
Function at 0x40a720
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a82b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x434674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00411087
push 4
mov dword [ebp - 4], 0
call fcn.004122cd
mov edi, eax
add esp, 4
test edi, edi
je 0x40a79c
call fcn.00410f5f
mov dword [edi], eax
call fcn.00410d1e
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00411048
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40a792
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00411070
jmp 0x40a79e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a810
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a82b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x434674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00411087
push 4
mov dword [ebp - 4], 0
call fcn.004122cd
mov edi, eax
add esp, 4
test edi, edi
je 0x40a88c
call fcn.00410f5f
mov dword [edi], eax
call fcn.00410d1e
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00411048
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40a882
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00411070
jmp 0x40a88e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41396b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x413992
call fcn.00413279
mov dword [eax], esi
call fcn.00413266
push 0x16
pop esi
mov dword [eax], esi
call fcn.0041977d
mov eax, esi
jmp 0x4139e7
test dword [ebp + 0xc], 0xfffffff9
jne 0x413978
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4139bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041328c
pop ecx
call fcn.00413266
mov eax, dword [eax]
jmp 0x4139e7
test al, 0x10
jne 0x4139e5
test al, 1
je 0x4139e5
test byte [ebp + 0xc], 2
je 0x4139e5
call fcn.00413279
mov dword [eax], 5
call fcn.00413266
mov dword [eax], 0xd
jmp 0x4139b6
xor eax, eax
pop esi
pop ebp
ret

Function at 0x422a8c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ecx + 0x40fffffc], esi
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00422265
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042221a
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
cld
invalid
inc dword [eax]
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
invalid
test dword [esi - 4], eax
Function at 0x423be0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x423bf6
call fcn.0042221a
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0
push 1
add byte [edx + 1], ch
pop eax
test eax, eax
je 0x4242fb
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x423dd0
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
clc
invalid
invalid
mov ebp, 0xf89485c6
invalid
call dword [edx - 0x76a7a3a]
invalid
call dword [edi - 0x7697a3a]
invalid
call [esi - 0x7687a3a]
invalid
dec dword [eax - 0x7677a3a]
invalid
jmp dword [edi - 0x7667a3a]
invalid
invalid
mov eax, 0xf89a85c6
invalid
call dword [esi + eax*8 - 0x7647b]
call dword [esi - 0x7637a3a]
invalid
call dword [esi - 0x7627a3a]
invalid
call dword [esi + eax*8 - 0x7617b]
call dword [ebp - 0x7607a3a]
invalid
invalid
fcmovnb st(0), st(6)
test dword [eax - 0x42000008], esp
invalid
invalid
invalid
Function at 0x425d01
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004190fc
and dword [ebp - 0x14], 0
cmp dword [0x436f0c], 0
mov dword [ebp - 0x18], eax
jne 0x425db4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x425e5c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x425e5c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x436f0c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x436f10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x436f14], eax
call edi
push eax
call esi
mov dword [0x436f1c], eax
test eax, eax
je 0x425db4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x436f18], eax
mov eax, dword [0x436f18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x425e0d
cmp dword [0x436f1c], ecx
je 0x425e0d
push eax
call esi
push dword [0x436f1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x425e0d
test ebx, ebx
je 0x425e0d
call edi
test eax, eax
je 0x425e04
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x425e04
test byte [ebp - 8], 1
jne 0x425e0d
or dword [ebp + 0x10], 0x200000
jmp 0x425e40
mov eax, dword [0x436f10]
cmp eax, dword [ebp - 0x18]
je 0x425e40
push eax
call esi
test eax, eax
je 0x425e40
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x425e40
mov eax, dword [0x436f14]
cmp eax, dword [ebp - 0x18]
je 0x425e40
push eax
call esi
test eax, eax
je 0x425e40
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x436f0c]
call esi
test eax, eax
je 0x425e5c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x425e5e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411d6c
leave
ret
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push str.nvcpl.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40107d
push edi
push 0
push 0
push esi
push 0
call fcn.004079b0
push esi
call fcn.00407400
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0x14
push str.dtcfgex
push esi
call edi
push str.NvColorGetGammaRamp
push esi
mov dword [0x41cf04], eax
call edi
push str.NvColorSetGammaRamp
push esi
mov dword [0x41cf00], eax
call edi
push str.NvGetDisplayInfo
push esi
mov dword [0x41cf14], eax
call edi
push str.NvSelectDisplayDevice
push esi
mov dword [0x41cf10], eax
call edi
push str.NvCplGetMSOrdinalDeviceString
push esi
mov dword [0x41cf0c], eax
call edi
mov dword [0x41cf08], eax
pop edi
pop esi
ret
Function at 0x402f00
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x402f56
cmp dword [esp + 4], 2
jl 0x402f56
mov ecx, dword [esi + 4]
push ecx
push 0x4174e4
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x402f47
mov edx, dword [esp + 0xc]
push edx
call fcn.00402ec0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x403620
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
mov edx, dword [ebx + 0x1c0]
push ebp
xor eax, eax
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
shr edx, 8
push edi
lea ecx, [esp + 0x10]
and edx, 0xf
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + edx*4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
xor eax, eax
mov edx, ecx
sub edx, edi
cmp edx, 0x400
setg al
push 0
mov edi, eax
neg edi
sbb edi, edi
mov esi, eax
and edi, 0xc
add edi, 0x18
neg esi
sbb esi, esi
and esi, 0x1e
add esi, 0x78
neg eax
sbb eax, eax
and eax, 0x1e
add eax, 0xa
mov ebp, eax
mov eax, dword [esp + 0x20]
push edi
sub eax, ebp
push esi
lea edx, [esi + esi*2]
sub eax, edi
push eax
mov eax, dword [ebx + 0x44]
sub ecx, edx
sub ecx, 0x2c
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push 0
push edi
sub ecx, ebp
push esi
sub ecx, edi
push ecx
mov ecx, dword [ebx + 0x40]
lea edx, [esi + esi + 0x24]
sub eax, edx
push eax
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x48]
push 0
push edi
sub edx, ebp
push esi
sub edx, edi
sub eax, esi
push edx
sub eax, 0x1c
push eax
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 0x44]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push edx
push eax
call esi
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebx + 0x40]
push ecx
push edx
call esi
mov eax, dword [esp + 0x30]
mov ecx, dword [ebx + 0x48]
push eax
push ecx
call esi
mov edx, dword [ebx + 0x44]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edx
call esi
mov eax, dword [ebx + 0x40]
push 5
push eax
call esi
mov ecx, dword [ebx + 0x48]
push 5
push ecx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4066c0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push 0x406570
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ecx
ret

Function at 0x407300
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi], 0
mov dword [esp + 4], 0
jne 0x4073f0
push esi
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 0x406730
push 0
push esi
call dword [sym.imp.GDI32.dll_EnumFontsW]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0xc]
test eax, eax
pop esi
je 0x4073e1
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push str.SOFTWARENVIDIA_CorporationGlobalNVTweak
push 0x80000002
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4073e1
mov ecx, dword [esp + 4]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.GB18030
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4073e1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4073e1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x407120
push 4
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
push str.SendMessageA
push str.USER32.DLL
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42c440], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x4073f0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x10
ret 4