joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407120
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x11c], eax
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x4071a5
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x118]
push ecx
push edi
lea edx, [ebp - 0x110]
push edx
push edi
mov dword [ebp - 0x114], edi
push edi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 0x2710
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x4071ca
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x110]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x4071db
mov eax, dword [esi + 8]
cmp eax, 2
je 0x4071e2
cmp eax, edi
je 0x4071ca
cmp eax, 1
jne 0x4071ca
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x11c]
cmp eax, 0x2710
jb 0x407142
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret
mov dword [esi + 8], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop edi
call fcn.00500397
mov esp, ebp
pop ebp
ret

Function at 0x407200
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 4], 1
mov dword [eax], edi
lea ebx, [esi + 0x10]
mov eax, dword [ebp + 0x10]
inc word [eax]
cmp dword [esi + 4], 0xffffffff
jne 0x407271
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x407271
lea ecx, [ebp - 0xc]
push ecx
push 0x8004667e
push eax
mov dword [ebp - 0xc], 1
call sub.WS2_32.dll_ioctlsocket
mov edx, dword [esi + 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 0x80
push 0xffff
push edx
mov dword [ebp - 8], 0x3c0001
call sub.WS2_32.dll_setsockopt
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, 2
push edx
mov word [ebx], ax
mov dword [esi + 0x14], ecx
call sub.WS2_32.dll_htons
push 0x10
mov word [esi + 0x12], ax
mov eax, dword [esi + 4]
push ebx
push eax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4072b2
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4072ce
mov dword [esi + 8], 1
jmp 0x4072b9
mov dword [esi + 8], 2
call fcn.00407120
mov edx, dword [ebp + 0x14]
xor ecx, ecx
mov edi, eax
test edi, edi
sete cl
mov dword [edx], ecx
jmp 0x4072d9
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 4]
test edi, edi
jne 0x4072ea
cmp word [ebp - 4], di
jg 0x40721c
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4073b0
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x11c], eax
xor edi, edi
cmp dword [esi + 8], 2
jne 0x407430
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x118]
push ecx
push edi
push edi
lea edx, [ebp - 0x110]
push edx
mov dword [ebp - 0x114], edi
push edi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 0x2710
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x407430
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x110]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x407454
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x11c]
cmp eax, 0x3a98
jb 0x4073d2
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [esi + 0xc], 1
mov eax, 1
pop edi
call fcn.00500397
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0x275
mov dword [ebp - 4], 0
call fcn.0047c0b3
add esp, 4
push 0
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push 0xc
push edi
push ecx
call sub.WS2_32.dll_recv
test eax, eax
jg 0x40755b
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x407552
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0xc
jb 0x407552
cmp dword [edi + 4], 3
push ebx
mov ebx, eax
je 0x407573
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [edi + 8]
sub esi, eax
test esi, esi
jle 0x4075ad
lea ecx, [ecx]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push 0
push esi
lea edx, [edi + ebx]
push edx
push ecx
call sub.WS2_32.dll_recv
test eax, eax
jg 0x4075a5
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x407617
xor eax, eax
sub esi, eax
add ebx, eax
test esi, esi
jg 0x407580
mov esi, dword [edi + 0x50]
push edi
xor ebx, ebx
call fcn.005001ec
lea edx, [esi + 1]
push edx
call fcn.0047c0b3
add esp, 8
mov edi, eax
test esi, esi
jle 0x4075fd
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push 0
push esi
lea eax, [edi + ebx]
push eax
push edx
call sub.WS2_32.dll_recv
test eax, eax
jg 0x4075f5
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x407617
xor eax, eax
sub esi, eax
add ebx, eax
test esi, esi
jg 0x4075d0
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
test esi, esi
jne 0x40762b
mov ecx, dword [ebp + 0x10]
lea eax, [esi + 1]
pop esi
mov dword [ecx], ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push edi
call fcn.005001ec
add esp, 4
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407730
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
jne 0x407746
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
cmp dword [ebp + 0x10], 0
je 0x407799
mov eax, dword [ebp + 8]
push 0xb6
push eax
push 0xb6
push esi
call fcn.004fe509
push 0x103
push edi
lea ecx, [esi + 0xb6]
push 0x104
push ecx
call fcn.004fe509
add esp, 0x20
push 0
push 0
push esi
push 0x4076f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
push edi
call fcn.004077b0
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4077b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53a4db
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x56d380]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
push edi
mov eax, dword [0x56d380]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [esp + 0xb8]
push 0x103
push eax
mov edi, ecx
call fcn.0050137b
xor eax, eax
xor ebx, ebx
add esp, 0xc
mov dword [esp + 0x1c], vtable.CTcpSwitchSocket.0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x2d0], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
movzx eax, word [edi + 0xac]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [edi + 0x6c]
push ecx
mov dword [esp + 0x24], ebx
call sub.WS2_32.dll_inet_addr
push eax
lea eax, [esp + 0x2c]
call fcn.00407200
test eax, eax
jne 0x4078a3
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x407889
push eax
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], vtable.CTcpSwitchSocket.0
cmp eax, 0xffffffff
je 0x40789c
push eax
call sub.WS2_32.dll_closesocket
xor eax, eax
jmp 0x4079ab
call esi
mov edx, dword [edi + 8]
mov ecx, dword [edi]
mov eax, 0x78
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x50], edx
lea edx, [edi + 0xc]
push edx
mov dword [esp + 0x50], eax
lea eax, [esp + 0x58]
push 0x556a08
push eax
mov dword [esp + 0x4c], 2
mov dword [esp + 0x54], ecx
call fcn.00503899
add esp, 0xc
add edi, 0x2c
push edi
lea ecx, [esp + 0x78]
push 0x556a08
push ecx
call fcn.00503899
mov edi, dword [esp + 0x48]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea ebx, [esp + 0x40]
call fcn.004070d0
cmp eax, dword [esp + 0x3c]
je 0x40791b
mov eax, dword [esp + 0x20]
jmp 0x407889
lea esi, [esp + 0x1c]
call fcn.004073b0
test eax, eax
jne 0x407931
mov eax, dword [esp + 0x20]
jmp 0x407889
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00407510
test eax, eax
je 0x407959
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x407970
push eax
call sub.WS2_32.dll_closesocket
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push eax
lea ecx, [esp + 0xb8]
push ecx
call fcn.004079e0
push esi
call fcn.005001ec
mov eax, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x1c], vtable.CTcpSwitchSocket.0
cmp eax, 0xffffffff
je 0x4079a6
push eax
call sub.WS2_32.dll_closesocket
mov eax, 1
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.00500397
mov esp, ebp
pop ebp
ret 4
Function at 0x408190
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a477
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x56d380]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], eax
je 0x4081de
mov dword [ebx], 0x556a50
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
call fcn.00406db0
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.0040a0b0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x40822a
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00406bf0
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.00409cc0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x571de0]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
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 0x4094d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539258
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x56d380]
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 edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4095f1
cmp byte [edi + 0x49], bl
je 0x4095f1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4095e5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x409545
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40955d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x409586
dec eax
je 0x40958a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4095e0
jmp 0x4095ec
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40959a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4095c3
cmp ebx, 0x10
jae 0x4095a9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.005015a9
add esp, 0x10
cmp esi, eax
jne 0x4095dd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4095e9
test esi, esi
jne 0x409551
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00408e90
jmp 0x40954b
lea ecx, [ebp - 0x2c]
call fcn.00407ba0
xor al, al
jmp 0x4095f3
lea ecx, [ebp - 0x2c]
call fcn.00407ba0
mov al, 1
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.00500397
mov esp, ebp
pop ebp
ret
Function at 0x409cc0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538f5b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x56d380]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0047c015
push 4
mov dword [ebp - 4], 0
call fcn.00500120
mov edi, eax
add esp, 4
test edi, edi
je 0x409d40
call fcn.0047bb27
mov dword [edi], eax
call fcn.0047b868
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0047b6d1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x409d36
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0047b6f9
jmp 0x409d42
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
Function at 0x418ca0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5390b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x56d380]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.00500120
add esp, 4
cmp eax, ebx
je 0x418d84
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.00500120
add esp, 4
cmp eax, ebx
je 0x418d60
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
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
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.004ff798
push 0x566558
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.005001a0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.004ff798
push 0x566558
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.005001a0
int3

Function at 0x41e230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41e24b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41e282
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x41e27e
jmp 0x41e270
cmp esi, eax
jae 0x41e282
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x41e270
cmp esi, eax
jb 0x41e289
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x421120
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
or ecx, 0x2001f
push ecx
xor ebx, ebx
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], ebx
call fcn.00420530
mov edi, eax
cmp edi, ebx
je 0x42119a
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x421185
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
mov dword [ebp - 0x214], 0x100
call ebx
test eax, eax
jne 0x421218
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.00421120
mov edi, eax
test edi, edi
jne 0x421251
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push eax
push eax
push eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
push edx
mov dword [ebp - 0x214], 0x100
call ebx
test eax, eax
je 0x4211d0
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp eax, edi
je 0x421233
push eax
call ebx
mov dword [ebp - 0x210], edi
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x20c], edi
push eax
cmp ecx, edi
je 0x42127b
mov edx, dword [esi]
push edx
call fcn.00420220
jmp 0x421284
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x421185
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x210]
cmp eax, edi
je 0x421293
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00500397
mov esp, ebp
pop ebp
ret 4
Function at 0x4243f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov esi, 0x30
mov dword [ebp - 0x118], 0x114
call fcn.00500080
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x424443
cmp dword [ebp - 0x114], 6
jae 0x424457
mov eax, 0x2c
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00500397
mov esp, ebp
pop ebp
ret

Function at 0x4258b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x40c], ecx
xor ecx, ecx
push 2
push ecx
push eax
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x408], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4258ff
call fcn.004200f0
mov esi, eax
jmp 0x4259a6
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x425918
call fcn.004200f0
jmp 0x42599d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x42592d
call fcn.004200f0
jmp 0x42599d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x425945
mov esi, 0x8007000e
jmp 0x42599f
push eax
lea ecx, [ebp - 0x408]
call fcn.004221b0
mov eax, dword [ebp - 0x408]
test eax, eax
jne 0x425962
mov esi, 0x8007000e
jmp 0x42599f
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x42597b
call fcn.004200f0
jmp 0x42599d
mov edx, dword [ebp - 0x408]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x408]
push eax
push ecx
lea ecx, [ebp - 0x410]
call fcn.00423640
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x404]
cmp dword [ebp - 0x408], edx
je 0x4259c0
lea ecx, [ebp - 0x408]
call fcn.00421000
nop
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00500397
mov esp, ebp
pop ebp
ret 0x10