joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
xor eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x415c2e
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x254
mov eax, dword [0x4ff684]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
xor ebx, ebx
push 0
push 2
inc ebx
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x415ca0
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x415ca0
cmp ebp, dword [esp + 0x30]
je 0x415c95
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x415c7d
jmp 0x415c99
mov edi, dword [esp + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x415ce4
push ecx
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.00425140
pop ecx
cmp dword [eax + 0x14], 8
jb 0x415cba
mov eax, dword [eax]
push 9
push str.saBSI.exe
push eax
call fcn.00492be1
add esp, 0xc
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00414839
test esi, esi
je 0x415cff
mov ebp, edi
cmp ebx, 0x32
jl 0x415c50
xor al, al
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00488f07
add esp, 0x254
ret
mov al, 1
jmp 0x415ce6

Function at 0x415d03
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push esi
mov esi, ecx
call fcn.00415c2e
test al, al
jne 0x415db8
push str.Global48ca68e_e4ff_43ac_a993_6d162f33de7c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
jne 0x415d94
call fcn.0041a770
push 1
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [esp + 8]
mov dword [esp + 8], str.SaBsi.cpp
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0xbf
call fcn.00412b24
mov edx, str.CreateMutex_failed:
lea ecx, [esp + 0x10]
call fcn.00412b80
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 8]
mov dword [esp + 8], eax
lea ecx, [esp + 0x10]
call fcn.00416e70
lea ecx, [esp + 0x10]
call fcn.0041230c
xor al, al
jmp 0x415dba
push 0xea60
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x415db8
cmp dword [esi], 0
je 0x415d90
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
jmp 0x415d90
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41c770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9d60
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ff684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004892b3
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00473c24
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
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 0x41cc80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9db0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ff684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0xc], 0
call fcn.004892b3
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00473c24
mov dword [esi + 4], eax
add esp, 4
mov dword [edi + 0x30], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41f200
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba02d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4ff684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41f240
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41f2ee
test eax, 0x400
je 0x41f2ee
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x41f265
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f270
sub ecx, ebx
mov dword [ebp - 0x30], 0
xor eax, eax
sar ecx, 1
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x30]
push eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
call fcn.004200e0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0041e290
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x41f2ee
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f2e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f33d
push edx
push ecx
call fcn.00488f15
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x41f2f6
mov esi, dword [esi]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41f329
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41f329
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0048e1b0
int3
Function at 0x423af0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x4ff684]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x423bd6
cmp byte [ebx + 0x3e], 0
je 0x423bd6
mov eax, dword [ebx]
push esi
push 0xffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4ce328]
mov ecx, ebx
call esi
mov ecx, 0xffff
cmp cx, ax
je 0x423bc3
push edi
mov edi, dword [ebx + 0x38]
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x34]
mov ecx, esi
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [0x4ce328]
mov ecx, edi
call esi
pop edi
sub eax, 0
je 0x423b88
sub eax, 1
je 0x423b8c
sub eax, 2
jne 0x423bc3
mov byte [ebx + 0x3e], al
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00488f07
add esp, 0x28
ret
mov byte [ebx + 0x3e], 0
mov esi, dword [esp + 8]
lea eax, [esp + 0xc]
sub esi, eax
je 0x423bab
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.0049623d
add esp, 0x10
cmp esi, eax
jne 0x423bc3
cmp byte [ebx + 0x3e], 0
pop esi
sete al
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00488f07
add esp, 0x28
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00488f07
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop ebx
xor ecx, esp
call fcn.00488f07
add esp, 0x28
ret
Function at 0x425b00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba79d
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4ff684]
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 ebx, ecx
xorps xmm0, xmm0
xor esi, esi
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
cmp dword [ebx], esi
je 0x425c9c
mov eax, dword [ebx + 4]
test eax, eax
je 0x425c9c
cmp eax, 0x8000
ja 0x425c9c
xor edi, edi
mov dword [ebx + 0xc], esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x74], eax
lea edx, [esi + 2]
test eax, eax
je 0x425bbb
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004892e3
add esp, 4
mov esi, eax
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x425ba2
mov edx, esi
mov ecx, eax
jmp 0x425bc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.004892ec
add esp, 4
xor esi, esi
xor ecx, ecx
xor edx, edx
jmp 0x425bc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov edi, eax
xor ecx, ecx
test edx, edx
je 0x425c8b
mov eax, dword [ebx + 4]
mov edx, 2
add eax, 2
mov edi, 0xe
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x74], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004964ef
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
je 0x425c8b
push dword [ebx]
push esi
push str._ls_ls
push dword [ebp - 0x74]
push eax
call fcn.00425870
add esp, 0x14
test eax, eax
js 0x425c86
push 0x50
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.0048b4c0
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x68]
push 0x44
push 0
push eax
call fcn.0048b4c0
add esp, 8
lea ecx, [ebp - 0x70]
call fcn.00427690
cmp byte [ebp - 0x70], 0
mov edi, eax
je 0x425c8b
lea eax, [ebp - 0x58]
mov dword [ebp - 0x20], 0xaac56b
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x11d0cd44
push eax
push 0
mov dword [ebp - 0x18], 0xc000c28c
mov dword [ebp - 0x14], 0xee95c24f
mov dword [ebp - 0x3c], 2
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
jmp 0x425c8b
mov edi, 0x6f
test esi, esi
je 0x425c98
push esi
call fcn.004892ec
add esp, 4
mov eax, edi
jmp 0x425ca1
mov eax, 0x57
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.00488f07
mov esp, ebp
pop ebp
ret
Function at 0x427360
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4ff684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10c], eax
push ebx
push str.Freeing_access_handle__p_n
push 1
call fcn.0041d4c0
add esp, 0xc
test ebx, ebx
je 0x427536
cmp dword [ebx + 0x10], 0
je 0x4274d9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x104
mov esi, eax
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0048b4c0
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push esi
push edi
push str.al_exception_rule__x:_x_res__s
push 0x82
push eax
call fcn.00425870
lea esi, [ebp - 0x108]
add esp, 0x24
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4273f0
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
sub esi, ecx
mov dword [ebp - 0x110], 0
push eax
sar esi, 1
mov dword [ebp - 0x114], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x427494
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x427494
push 0
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x427494
push 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x124]
push eax
push 2
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x4274a5
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x4274b8
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edi, dword [ebx + 0x10]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebx + 0x24]
push eax
mov edx, dword [edi]
mov esi, dword [edx + 0x3c]
mov ecx, esi
call dword [0x4ce328]
mov ecx, edi
call esi
pop edi
pop esi
mov eax, dword [ebx]
test eax, eax
je 0x427507
add dword [ebx + 4], 0xffffffff
jne 0x427507
cmp eax, 0xffffffff
je 0x427507
push 0
lea ecx, [ebp - 0x114]
push ecx
push 0
push 0
push 0
push 0
push 0x9edba51c
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [ebx + 8]
test eax, eax
je 0x427536
add dword [ebx + 0xc], 0xffffffff
jne 0x427536
cmp eax, 0xffffffff
je 0x427536
push 0
lea ecx, [ebp - 0x114]
push ecx
push 0
push 0
push 0
push 0
push 0x9edb651c
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00488f07
mov esp, ebp
pop ebp
ret 4
Function at 0x427780
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba82b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ff684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x10], ebx
lea edi, [ebx + 4]
lea esi, [edi + 4]
mov dword [ebx], 0x4ec890
mov dword [ebp - 0x10], edi
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004892b3
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0xc]
mov dword [ebp - 4], 0
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004892b3
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x14]
mov dword [esi], 0
push 3
push 0x4ec668
push esi
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [esi + 0x10], 3
call fcn.0048af40
mov byte [esi + 3], 0
lea ecx, [ebx + 0x50]
mov dword [ebx + 0x30], 0
xor eax, eax
mov word [ebx + 0x34], 0
push 2
mov dword [ebx + 0x38], 0
push ecx
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 7
mov word [ebx + 0x38], ax
call fcn.0047472a
add esp, 0x1c
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 0x42bb70
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov esi, dword [edi + 8]
cmp eax, esi
je 0x42bbed
mov edx, dword [ebx]
sub esi, eax
push ebp
mov ebp, dword [ebx + 4]
mov ecx, ebp
sub ecx, edx
cmp esi, ecx
jae 0x42bb9b
lea eax, [edx + esi]
mov dword [ebx + 4], eax
jmp 0x42bbc6
jbe 0x42bbc6
mov eax, dword [ebx + 8]
sub eax, edx
cmp esi, eax
jbe 0x42bbb1
push ecx
push esi
mov ecx, ebx
call fcn.00433aa0
jmp 0x42bbc6
sub esi, ecx
je 0x42bbc3
push esi
push 0
push ebp
call fcn.0048b4c0
add esp, 0xc
add ebp, esi
mov dword [ebx + 4], ebp
mov eax, dword [edi + 8]
xor esi, esi
pop ebp
sub eax, dword [edi + 4]
je 0x42bbed
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 4]
mov dl, byte [eax + esi]
mov eax, dword [ebx]
xor dl, byte [esi + ecx]
mov byte [esi + eax], dl
inc esi
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
cmp esi, eax
jb 0x42bbd1
pop edi
pop esi
pop ebx
ret 4
Function at 0x42ea20
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4baf40
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
push esi
mov eax, dword [0x4ff684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x28], 0
je 0x42eac6
call fcn.0041a770
push 3
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], str.EventSender.cpp
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x10], 0xa3
call fcn.00412b24
mov edx, str.Event_Sender_already_initialized_for_Azure
lea ecx, [ebp - 0xb8]
call fcn.00412b80
lea ecx, [ebp - 0x60]
call fcn.0041c460
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.0047379d
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x2c], 0
jne 0x42ebe7
push 0
push 0
push 0
push 0
push 0x4ee0c0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x42ebe7
lea eax, [esi + 0x28c]
mov dword [esi + 0x50], 0x3c
mov dword [esi + 0x60], eax
lea ecx, [esi + 0x50]
lea eax, [esi + 0x8c]
mov dword [esi + 0x64], 0x100
mov dword [esi + 0x7c], eax
lea eax, [esi + 0x38]
mov dword [esi + 0x80], 0x100
cmp dword [eax + 0x14], 8
jb 0x42eb26
mov eax, dword [eax]
push ecx
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x42ebb5
call fcn.0041a770
push 1
lea ecx, [ebp - 0x158]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], str.EventSender.cpp
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x10], 0xb6
call fcn.00412b24
mov edx, str.WinHttpCrackUrl_failed_for_Azure:
lea ecx, [ebp - 0x158]
call fcn.0041a670
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x158]
call fcn.00416e70
lea ecx, [ebp - 0x100]
call fcn.0041c460
mov dword [ebp - 4], 4
lea eax, [ebp - 0x100]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
jmp 0x42ec41
cmp word [esi + 0x68], 0
jne 0x42ebd1
cmp dword [esi + 0x5c], 2
mov eax, 0x50
mov ecx, 0x1bb
cmove eax, ecx
mov word [esi + 0x68], ax
mov byte [esi + 0x28], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0041a770
push 1
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], str.EventSender.cpp
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x10], 0xaa
call fcn.00412b24
mov edx, str.Unable_to_open_HTTP_session_for_Azure
lea ecx, [ebp - 0xb8]
call fcn.00412b80
lea ecx, [ebp - 0x60]
call fcn.0041c460
mov dword [ebp - 4], 3
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], vtable.std::ios_base.0
push eax
call fcn.0047379d
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x438440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4384a0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4384a0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x438492
nop word [eax + eax]
cmp esi, edx
jae 0x4384a0
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x438480
cmp esi, edx
jae 0x4384a0
cmp word [esi], 0
je 0x4384a0
mov eax, esi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4384b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
mov ecx, 0x5075dc
call fcn.0048a41e
mov edi, eax
mov ebp, 1
test edi, edi
je 0x43855d
mov ecx, dword [esp + 0x18]
shr ecx, 4
inc ecx
movzx eax, cx
mov dword [esp + 0x10], eax
nop
push dword [esp + 0x1c]
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x43853d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43853d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x43853d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x438533
cmp esi, edx
jae 0x43853d
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x438521
cmp esi, edx
jae 0x43853d
cmp word [esi], 0
jne 0x438555
push ebp
mov ecx, 0x5075dc
inc ebp
call fcn.0048a41e
mov edi, eax
test edi, edi
je 0x43855d
mov eax, dword [esp + 0x10]
jmp 0x4384e0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret