joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x404798
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00404f20
add esp, 4
mov edi, 0x910
cmp word [ebp - 0x28], 9
jne 0x4047f3
cmp dword [section..data], 3
ja 0x4047ee
push 0x5c
push str.DrvInstPolicy.cpp
call fcn.00406f30
add esp, 8
test eax, eax
je 0x4047d2
inc eax
jmp 0x4047d7
mov eax, str.DrvInstPolicy.cpp
push str.amd64
push 0x4e
push eax
push str.RsupS
push 3
call fcn.004024a0
add esp, 0x14
mov edi, 0x14c2
push str.setupapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x404842
push 0x5c
push str.DrvInstPolicy.cpp
call fcn.00406f30
add esp, 8
test eax, eax
je 0x40481a
inc eax
jmp 0x40481f
mov eax, str.DrvInstPolicy.cpp
push edi
push str.ResId___d
push 0
push 0x57
push eax
push str.RsupS
call fcn.00401490
add esp, 0x18
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
movzx eax, di
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x404892
push 0x5c
push str.DrvInstPolicy.cpp
call fcn.00406f30
add esp, 8
test eax, eax
je 0x404870
inc eax
jmp 0x404875
mov eax, str.DrvInstPolicy.cpp
push edi
push str.ResId___d
push 0
push 0x60
push eax
push str.RsupS
call fcn.00401490
add esp, 0x18
jmp 0x40496f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4048d6
push 0x5c
push str.DrvInstPolicy.cpp
call fcn.00406f30
add esp, 8
test eax, eax
je 0x4048b4
inc eax
jmp 0x4048b9
mov eax, str.DrvInstPolicy.cpp
push edi
push str.ResId___d
push 0
push 0x68
push eax
push str.RsupS
call fcn.00401490
add esp, 0x18
jmp 0x40496f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x404907
push edi
push str.ResId___d
push eax
push 0x70
push str.DrvInstPolicy.cpp
call fcn.00401680
add esp, 4
push eax
push str.RsupS
call fcn.00401490
add esp, 0x18
jmp 0x40496f
cmp word [eax], 1
jne 0x40491d
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x40491d
add eax, 0x1e
jmp 0x404920
add eax, 0x16
mov ebx, dword [ebp + 8]
push 0
push 0
push 0x104
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [section..data], 3
ja 0x40496f
push ebx
push edi
push str._d._s
push 0x82
push str.DrvInstPolicy.cpp
call fcn.00401680
add esp, 4
push eax
push str.RsupS
push 3
call fcn.004024a0
add esp, 0x1c
xor ebx, ebx
cmp dword [ebp - 4], ebx
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406c50
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406c80
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406c78
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, 1
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40a78a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [esi + 0x10]
add eax, ebx
cmp dword [ebp + 0xc], eax
jne 0x40a752
call fcn.0040a590
or byte [ecx - 5], al
dec dword [eax]
inc ecx
sti
out dx, al
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x40a761
mov eax, dword [esi + 0x14]
add dword [ebp - 0x10], 4
inc ebx
dec eax
cmp ebx, eax
jbe 0x40a737
jmp fcn.0040a723
mov eax, dword [edi + ebx*4]
shl eax, 6
push es
add byte [eax], al
mov edi, dword [eax + 0x3c]
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.0040a590
jne 0x40a745
invalid

Function at 0x40a962
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub dh, al
inc ebp
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
Function at 0x416199
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004092e0
mov dword [ebp - 0x14], eax
cmp dword [0x4260a8], esi
jne 0x41628c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x416219
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41636c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41636c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41636c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4260a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4260ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4260b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4260b8], eax
test eax, eax
je 0x416289
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4260b4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4162b1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4162a4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4162c6
push 4
pop eax
jmp 0x41636e
cmp dword [ebp - 0x14], esi
je 0x4162c6
push dword [0x4260a8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4162ab
mov eax, dword [0x4260b4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416324
cmp dword [0x4260b8], edi
je 0x416324
push eax
call ebx
push dword [0x4260b8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416324
test eax, eax
je 0x416324
call ecx
test eax, eax
je 0x416319
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x416319
test byte [ebp - 8], 1
jne 0x416324
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x416354
mov eax, dword [0x4260ac]
cmp eax, edi
je 0x416351
push eax
call ebx
test eax, eax
je 0x416351
call eax
mov esi, eax
test esi, esi
je 0x416351
mov eax, dword [0x4260b0]
cmp eax, edi
je 0x416351
push eax
call ebx
test eax, eax
je 0x416351
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4260a8]
call ebx
test eax, eax
je 0x41636c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41636e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407810
mov esp, ebp
pop ebp
ret
Function at 0x100797d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x408
mov eax, dword [0x102a8930]
xor eax, esp
mov dword [esp + 0x404], eax
push ebp
mov ebp, dword [esp + 0x410]
test esi, esi
je 0x1007994f
push ebx
push 0x200
lea eax, [esp + 0x210]
push 0x30
push eax
call fcn.10228aa0
push 0x200
lea ecx, [esp + 0x1c]
push 0x30
push ecx
call fcn.10228aa0
mov bl, 0x43
mov byte [esp + 0x30], bl
mov dl, 0x44
mov cl, 0x45
mov al, 0x46
mov byte [esp + 0x2e4], bl
add esp, 0x18
xor ebx, ebx
mov byte [esp + 0xc], 0x30
mov byte [esp + 0xd], 0x31
mov byte [esp + 0xe], 0x32
mov byte [esp + 0xf], 0x33
mov byte [esp + 0x10], 0x34
mov byte [esp + 0x11], 0x35
mov byte [esp + 0x12], 0x36
mov byte [esp + 0x13], 0x37
mov byte [esp + 0x14], 0x38
mov byte [esp + 0x15], 0x39
mov byte [esp + 0x16], 0x41
mov byte [esp + 0x17], 0x42
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], al
mov byte [esp + 0x21c], 0x31
mov byte [esp + 0x22c], 0x32
mov byte [esp + 0x23c], 0x33
mov byte [esp + 0x24c], 0x34
mov byte [esp + 0x25c], 0x35
mov byte [esp + 0x26c], 0x36
mov byte [esp + 0x27c], 0x37
mov byte [esp + 0x28c], 0x38
mov byte [esp + 0x29c], 0x39
mov byte [esp + 0x2ac], 0x41
mov byte [esp + 0x2bc], 0x42
mov byte [esp + 0x2dc], dl
mov byte [esp + 0x2ec], cl
mov byte [esp + 0x2fc], al
test esi, esi
jle 0x1007994e
jmp 0x100798f0
xor eax, eax
mov word [esp + 8], ax
mov byte [esp + 0xa], al
movzx eax, byte [ebx + ebp]
mov edx, eax
and edx, 0xf0
mov cl, byte [esp + edx + 0x20c]
and eax, 0xf
mov dl, byte [esp + eax + 0xc]
mov byte [esp + 8], cl
mov byte [esp + 9], dl
test ebx, ebx
jne 0x10079928
push 0x1026265c
jmp 0x10079932
test bl, 0x3f
jne 0x1007993b
push str._n
push edi
call fcn.1022704c
add esp, 8
lea eax, [esp + 8]
push eax
push edi
call fcn.1022704c
inc ebx
add esp, 8
cmp ebx, esi
jl 0x100798f0
pop ebx
mov ecx, dword [esp + 0x408]
pop ebp
xor ecx, esp
call fcn.1022649a
add esp, 0x408
ret
Function at 0x10079c10
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x102427db
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x102a8930]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push esi
push edi
mov eax, dword [0x102a8930]
xor eax, esp
push eax
lea eax, [esp + 0x4b4]
mov dword fs:[0], eax
xor ebx, ebx
push 0xff
lea eax, [esp + 0x2b5]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x2bc], bl
call fcn.10228aa0
push str.__DSTK_DO_LOG
push esi
push 0x10262698
lea ecx, [esp + 0x2c8]
push pe_nt_image_headers32
push ecx
mov byte [esi + 0x208], bl
call fcn.10226c37
add esp, 0x20
test eax, eax
jle 0x10079e8f
lea eax, [esp + 0x2b0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10079ca0
sub eax, edx
je 0x10079e8f
lea edx, [esp + 0x2b0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x10079e8f
mov dword [esp + 0x14], vtable.UProfile.0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2b4]
mov dword [esp + 0x4c0], ebx
call fcn.101e7d10
test eax, eax
jg 0x10079e8f
xor eax, eax
push 0x80
lea ecx, [esp + 0x234]
push ebx
push ecx
mov dword [esp + 0x224], eax
mov dword [esp + 0x228], eax
mov word [esp + 0x22c], ax
mov dword [esp + 0x230], eax
mov dword [esp + 0x234], eax
mov word [esp + 0x238], ax
call fcn.10228aa0
add esp, 0xc
push str.LOG_INFO
mov ebx, 0xa
lea edi, [esp + 0x21c]
mov ecx, str.LOG_LEVEL
lea edx, [esp + 0x18]
call fcn.101e7eb0
test eax, eax
je 0x10079e8f
push str.LOG_INFO
lea edi, [esp + 0x228]
mov ecx, str.LOG_TYPE
lea edx, [esp + 0x18]
call fcn.101e7eb0
mov eax, dword [esp + 0x218]
cmp eax, 0x55424544
jne 0x10079d94
cmp byte [esp + 0x21c], 0x47
jne 0x10079df8
mov byte [esi + 0x208], 0x3f
jmp 0x10079dff
cmp eax, 0x4f464e49
jne 0x10079da4
mov byte [esi + 0x208], 0x1f
jmp 0x10079dff
cmp eax, 0x4e524157
jne 0x10079db4
mov byte [esi + 0x208], 0xe
jmp 0x10079dff
cmp eax, 0x4f525245
jne 0x10079dce
cmp byte [esp + 0x21c], 0x52
jne 0x10079df8
mov byte [esi + 0x208], 6
jmp 0x10079dff
cmp eax, 0x41544146
jne 0x10079de8
cmp byte [esp + 0x21c], 0x4c
jne 0x10079df8
mov byte [esi + 0x208], 2
jmp 0x10079dff
cmp eax, 0x4d415845
jne 0x10079df8
mov byte [esi + 0x208], 1
jmp 0x10079dff
mov byte [esi + 0x208], 0
cmp dword [esp + 0x224], 0x454c4946
jne 0x10079e8f
push str.LOG_INFO
mov ebx, 0x80
lea edi, [esp + 0x234]
mov ecx, str.LOG_PATH
lea edx, [esp + 0x18]
call fcn.101e7eb0
push 0xff
lea edx, [esp + 0x3b5]
push 0
push edx
mov byte [esp + 0x3bc], 0
call fcn.10228aa0
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10079e53
sub eax, edx
lea eax, [esp + 0x230]
jne 0x10079e67
mov eax, esi
lea ecx, [esp + 0x3b0]
push ecx
push eax
call fcn.10079970
add esp, 8
test al, al
je 0x10079e8f
lea esi, [esp + 0x218]
lea edx, [esp + 0x3b0]
call fcn.1015ab20
mov ecx, dword [esp + 0x4b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.1022649a
add esp, 0x4b0
ret
Function at 0x10094840
Capabilities:
Connect socket
Initialize winsock library
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x10240358
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x102a8930]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x102a8930]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x20]
push eax
push 0x101
mov edi, edx
call sub.WSOCK32.dll_WSAStartup
xor ebp, ebp
cmp eax, ebp
je 0x100948a3
push eax
push str._socketlib__fncWSAStartup_code0x_x
lea eax, [esi + 8]
call fcn.101e6de0
add esp, 8
lea eax, [ebp + 1]
jmp 0x100949d0
mov dword [esp + 0x18], vtable.C3303::ByteString.0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
push esi
lea ebx, [esp + 0x1c]
mov dword [esp + 0x50], ebp
call fcn.100951d0
test eax, eax
jle 0x100948fc
mov dword [esp + 0x4c], 0xffffffff
mov esi, dword [esp + 0x24]
cmp esi, ebp
je 0x100948f2
mov ecx, dword [esp + 0x20]
push ecx
push ebp
push esi
call fcn.10228aa0
push esi
call fcn.1021b8de
add esp, 0x10
mov eax, 2
jmp 0x100949d0
mov edi, dword [esp + 0x24]
cmp edi, ebp
je 0x1009490a
cmp dword [esp + 0x1c], ebp
jne 0x1009490f
mov edi, 0x1025bd4e
push ebp
push 1
push 2
call sub.WSOCK32.dll_socket
or ebx, 0xffffffff
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x1009494e
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str._socketlib__fncsocket_code0x_x
lea eax, [esi + 8]
call fcn.101e6de0
add esp, 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], ebx
call fcn.101e5b00
lea eax, [ebx + 4]
jmp 0x100949d0
xor eax, eax
mov edx, 2
mov dword [esp + 0x2c], eax
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov word [esp + 0x30], dx
call sub.WSOCK32.dll_inet_addr
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x54]
push eax
call sub.WSOCK32.dll_htons
mov edx, dword [esi + 4]
push 0x10
lea ecx, [esp + 0x30]
push ecx
push edx
mov word [esp + 0x3a], ax
call sub.WSOCK32.dll_connect
cmp eax, ebx
jne 0x100949c1
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str._socketlib__fncconnect_code0x_x
lea eax, [esi + 8]
call fcn.101e6de0
add esp, 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], ebx
call fcn.101e5b00
mov eax, 4
jmp 0x100949d0
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], ebx
call fcn.101e5b00
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1022649a
add esp, 0x3c
ret 4
Function at 0x10094a50
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x1b0]
push ebx
push ebp
push esi
xor ebp, ebp
xor ebx, ebx
push edi
test eax, eax
je 0x10094a8e
mov ecx, dword [esp + 0x1c]
push ecx
push str.Message_length_:__d
mov ebx, eax
push str.CTCPComm::Send
mov ecx, 0xb8
mov edi, str......._srcDSToolkitDSToolkit_TCP.cpp
mov edx, str.INFO
call fcn.1007a350
add esp, 0xc
cmp dword [esp + 0x1c], ebp
jle 0x10094ae8
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
sub eax, ebp
lea edi, [edx + ebp]
mov edx, dword [ecx + 4]
push eax
push edi
push edx
call sub.WSOCK32.dll_send
mov esi, eax
cmp esi, 0xffffffff
je 0x10094af1
test ebx, ebx
je 0x10094ae0
push str.Sent_message
push esi
push edi
push str.CTCPComm::Send
push str......._srcDSToolkitDSToolkit_TCP.cpp
mov ecx, 0xd0
mov edx, str.INFO
call fcn.1007a480
add esp, 0x14
add ebp, esi
cmp ebp, dword [esp + 0x1c]
jl 0x10094a94
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
call sub.WSOCK32.dll_WSAGetLastError
mov esi, dword [esp + 0x14]
push eax
push str._socketlib__fncsend_code0x_x
lea eax, [esi + 8]
call fcn.101e6de0
mov eax, dword [esi + 4]
add esp, 8
cmp eax, 0xffffffff
je 0x10094b20
push eax
call sub.WSOCK32.dll_closesocket
mov dword [esi + 4], 0xffffffff
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
Function at 0x100951d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, edi
push esi
xor edx, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100951e0
sub eax, esi
je 0x10095212
jmp 0x100951f0
mov al, byte [edx + edi]
cmp al, 0x2e
je 0x100951ff
cmp al, 0x30
jl 0x10095221
cmp al, 0x39
jg 0x10095221
mov eax, edi
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10095205
sub eax, esi
cmp edx, eax
jb 0x100951f0
mov edx, edi
push ebx
call fcn.101e5eb0
pop esi
xor eax, eax
pop ebp
ret 4
push edi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x1009527b
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1009527b
cmp dword [ecx], 0
je 0x1009527b
cmp word [eax + 0xa], 4
jb 0x1009527b
mov eax, dword [ecx]
mov eax, dword [eax]
push eax
call sub.WSOCK32.dll_inet_ntoa
test eax, eax
jne 0x1009526c
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str._socketlib__fncinet_ntoa_code0x_x
lea eax, [ebp + 8]
call fcn.101e6de0
add esp, 8
pop esi
mov eax, 2
pop ebp
ret 4
mov edx, eax
push ebx
call fcn.101e5eb0
pop esi
xor eax, eax
pop ebp
ret 4
call sub.WSOCK32.dll_WSAGetLastError
push eax
push edi
push str.Host_Name__s_
lea eax, [ebp + 8]
call fcn.101e6de0
add esp, 0xc
pop esi
mov eax, 1
pop ebp
ret 4
Function at 0x10095470
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x104
push ebp
push edi
xor edi, edi
or ebp, 0xffffffff
lea ecx, [ecx]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
push 0x102bda04
push 0
mov dword [0x102bda04], ecx
push 0
lea ecx, [esp + 0x14]
inc eax
mov dword [0x102bda08], 0
mov edx, dword [esi + 4]
push ecx
push eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 1
call sub.WSOCK32.dll_select
cmp eax, ebp
je 0x10095522
test eax, eax
je 0x10095558
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x100955a3
mov edx, dword [esp + 0x110]
push 0
mov ecx, 1
sub ecx, edi
push ecx
mov ecx, dword [esi + 4]
lea eax, [edi + edx]
push eax
push ecx
call sub.WSOCK32.dll_recv
cmp eax, ebp
je 0x10095586
test eax, eax
je 0x10095593
add edi, eax
cmp edi, 1
jl 0x10095480
pop edi
xor eax, eax
pop ebp
add esp, 0x104
ret 4
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str._socketlib__fncselect_code0x_x
lea eax, [esi + 8]
call fcn.101e6de0
add esp, 8
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x10095548
push eax
call sub.WSOCK32.dll_closesocket
mov dword [esi + 4], ebp
pop edi
mov eax, 1
pop ebp
add esp, 0x104
ret 4
lea edx, [esi + 8]
push edx
mov edx, str.Receive_Body_TimeOut__
call fcn.101e5eb0
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x10095576
push eax
call sub.WSOCK32.dll_closesocket
mov dword [esi + 4], ebp
pop edi
mov eax, pe_nt_image_headers32
pop ebp
add esp, 0x104
ret 4
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str._socketlib__fncrecv_code0x_x
jmp 0x1009552d
lea eax, [esi + 8]
push eax
mov edx, str.The_connection_closed..
call fcn.101e5eb0
jmp 0x10095538
lea ecx, [esi + 8]
push ecx
mov edx, str.FD_ISSET_failed__
call fcn.101e5eb0
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x10095548
push eax
call sub.WSOCK32.dll_closesocket
pop edi
mov dword [esi + 4], ebp
mov eax, 1
pop ebp
add esp, 0x104
ret 4
Function at 0x100a8490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100a84a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100a84e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x100a84e0
lea ebx, [ebx]
cmp esi, eax
jae 0x100a84e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100a84d0
cmp esi, eax
jb 0x100a84ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x100e3100
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1023eb2e
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x102a8930]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
call fcn.100e2e80
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi], vtable.PCRLDistPointsUtil.0
mov dword [esi + 0x38], vtable.C3303::ByteString.0
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x4c], vtable.C3303::ByteString.0
mov dword [esi + 0x5c], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
push fcn.101e5b00
push fcn.101e5a40
push 4
push 0x14
lea eax, [esi + 0x64]
push eax
mov byte [esp + 0x28], 2
call fcn.10226ad7
mov dword [esi + 0xb4], vtable.C3303::ByteString.0
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0x30], str.PCRLDistPointsUtil
mov dword [esi + 0x34], 0x1025bd4e
mov dword [esi + 0x60], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x100e79c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10249dcb
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
push ebx
push edi
mov eax, dword [0x102a8930]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0xc]
mov dword [esi + 0x34], str.parseOcspResponse
call fcn.101946c0
mov dword [esp + 0x1d0], 0
cmp dword [edi + 8], 0
mov eax, dword [edi + 4]
jne 0x100e7a18
mov edi, 0x1025bd4e
jmp 0x100e7a1b
mov edi, dword [edi + 0xc]
push eax
push edi
lea eax, [esp + 0x14]
push eax
call fcn.101947b0
test eax, eax
jle 0x100e7a8d
mov eax, dword [esp + 0x40]
test eax, eax
je 0x100e7a3a
cmp dword [esp + 0x38], 0
jne 0x100e7a3f
mov eax, 0x1025bd4e
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
push eax
push 1
push str.ocspResp
push ecx
push edx
push 0x3d
push esi
mov ecx, str......._srcDSProcessPOCSPResProcess.cpp
call fcn.100e2fd0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.10194730
mov eax, 1
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x1c8
ret
lea eax, [esp + 0x54]
call fcn.101848f0
mov dword [esi + 0x38], eax
test eax, eax
jne 0x100e7bdb
test byte [esp + 0x50], 1
jne 0x100e7afa
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
push str.Response_Bytes_does_not_exist.
push 2
push str.ocspResp
push eax
push ecx
push 0x46
push esi
mov ecx, str......._srcDSProcessPOCSPResProcess.cpp
call fcn.100e2fd0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.10194730
mov eax, 2
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x1c8
ret
lea ebx, [esp + 0xb8]
call fcn.10196910
mov ecx, str.1_3_6_1_5_5_7_48_1_1
call fcn.101e63c0
test al, al
je 0x100e7b66
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
push str.Response_type_is_not_OID_id_pkix_ocsp_basic.
push 3
push str.pRespBytes
push edx
push eax
push 0x4a
push esi
mov ecx, str......._srcDSProcessPOCSPResProcess.cpp
call fcn.100e2fd0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.10194730
mov eax, 3
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x1c8
ret
mov edx, dword [esp + 0x160]
mov eax, dword [edx + 0x1c]
lea ecx, [esp + 0x160]
call eax
push esi
mov ecx, eax
call fcn.100e7c10
test eax, eax
jle 0x100e7bdb
lea ecx, [esi + 0x1c]
call fcn.101e6430
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
push eax
push 4
push str.this
push ecx
push edx
push 0x4d
push esi
mov ecx, str......._srcDSProcessPOCSPResProcess.cpp
call fcn.100e2fd0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.10194730
mov eax, 4
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x1c8
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.10194730
xor eax, eax
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x1c8
ret