joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bc90
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4e362c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [edi], 1
cmp dword [0x4e3108], 0xffffffff
jne 0x43bcdb
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp dword [ebp - 0x84], 1
sete al
mov dword [0x4e3108], eax
mov dword [ebp - 0x6c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x74], xmm0
test esi, esi
je 0x43bcf8
mov dword [ebp - 0x74], 0xc
mov dword [ebp - 0x70], esi
test ebx, ebx
jne 0x43bd24
push ebx
push ebx
push ebx
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x10
mov dword [edi + 4], eax
call fcn.0046d70e
xorps xmm0, xmm0
mov dword [edi + 0xc], eax
add esp, 4
movups xmmword [eax], xmm0
jmp 0x43bda9
cmp dword [ebp + 0xc], 0
mov eax, str.Global_s_s
push ebx
mov esi, str.Global_s_S
mov byte [ebp - 0x68], 0
cmove esi, eax
lea eax, [ebp - 0x68]
push str.Optex_Event_
push esi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
push 0
push 0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push str.Optex_MMF_
mov dword [edi + 4], eax
lea eax, [ebp - 0x68]
push esi
push eax
mov byte [ebp - 0x68], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
push 0x10
push 0
push 4
lea eax, [ebp - 0x74]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi + 8], eax
test eax, eax
je 0x43bda9
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0xc], eax
cmp dword [edi], 0
je 0x43bdc3
cmp dword [0x4e3108], 0
jne 0x43bdc3
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x43bdc3
mov eax, dword [ebp + 8]
xchg dword [ecx], eax
cmp dword [edi + 4], 0
je 0x43bdd5
cmp dword [edi + 0xc], 0
je 0x43bdd5
cmp dword [edi + 8], 0
jne 0x43bddb
mov dword [edi], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d700
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43bfc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4dea08
push 0x46feb0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e362c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, dword [0x4e64e0]
mov dword [ebp - 0x1c], esi
mov ebx, dword [ebp + 8]
lea eax, [ebx - 1]
cmp eax, 3
ja case.default.0x43c004
jmp dword [eax*4 + 0x43c120]
mov esi, dword [0x4e64e4]
jmp 0x43c029
mov esi, dword [0x4e64e8]
jmp 0x43c029
mov esi, dword [0x4e64ec]
jmp 0x43c029
mov esi, dword [0x4e64f0]
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 0x20], edi
push 0x102
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x43c0bd
mov ecx, esi
call fcn.0043be50
test eax, eax
je 0x43c0bd
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], 1
push ebx
call fcn.0043c4f0
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x43c075
push ebx
call fcn.0043c130
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0x24], 0
call fcn.0043c090
jmp 0x43c0c0
mov ebx, dword [ebp + 0xc]
test edi, edi
jne 0x43c10c
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push str.Unable_to_open_MYDEBUG_log_file
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x4e64f4]
xor ecx, ecx
test ebx, ebx
cmovne eax, ecx
mov dword [0x4e64f4], eax
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d1f0
Capabilities:
Delete file
Get file attributes
Get file size
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4dea50
push 0x46feb0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4e362c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor bl, bl
mov byte [ebp - 0x1d], bl
mov edi, 0x4e6560
mov eax, dword [ebp + 8]
dec eax
cmp eax, 3
ja case.default.0x43d239
jmp dword [eax*4 + 0x43d428]
mov edi, 0x4e6768
jmp case.default.0x43d239
mov edi, 0x4e6970
jmp case.default.0x43d239
mov edi, 0x4e6b78
jmp case.default.0x43d239
mov edi, 0x4e6d80
push 0x102
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43d3e7
cmp dword [ebp + 0x10], 0
je 0x43d3e7
mov ecx, eax
call fcn.0043be50
test eax, eax
je 0x43d3e7
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
je 0x43d2ac
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
call fcn.0043d780
add esp, 8
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
je 0x43d3d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.0043d730
add esp, 8
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x24], 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0043ce40
add esp, 8
mov dword [ebp - 0x2c], eax
inc eax
lea ecx, [eax + 8]
cmp eax, ecx
sbb eax, eax
and eax, ecx
je 0x43d39d
cmp eax, 0x400
ja 0x43d330
call fcn.0046e060
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x30], esi
test esi, esi
je 0x43d39d
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 0x30], esi
jmp 0x43d34e
push eax
call fcn.0047a020
add esp, 4
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x43d39d
mov dword [esi], 0xdddd
add esi, 8
mov dword [ebp - 0x34], esi
test esi, esi
je 0x43d39d
mov eax, dword [ebp - 0x2c]
inc eax
push eax
push 0
push esi
call fcn.00470010
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x2c]
push esi
call fcn.0043bdf0
add esp, 0x1c
push 0
lea ecx, [ebp - 0x24]
push ecx
push eax
push esi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov byte [ebp - 0x1d], bl
push esi
call fcn.0043f430
add esp, 4
jmp 0x43d3a8
push str.MyDebug_LogToFile_ALT:_memory_allocation_failed__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [ebp - 0x24]
push esi
call fcn.0043b850
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0x38], 0
call fcn.0043d40b
mov al, bl
lea esp, [ebp - 0x48]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
Function at 0x43d440
Capabilities:
Print debug messages
Reference absolute stream path on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4e362c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str..CmgShieldFFE
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x43d48a
push str.C:_bambooxml_data_build_dirCRED_CBV99_JOB1_srcBaseComponentCmgClientCommonLib_srcMyDebug.cpp:MyDebug_LogToFile_CEF____error_opening_CEF_device_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x43d5ac
mov edi, dword [ebp + 0xc]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x43d490
sub edi, ecx
sar edi, 1
lea eax, [edi + 0x19]
lea ecx, [eax + 8]
cmp eax, ecx
sbb eax, eax
and eax, ecx
je 0x43d593
cmp eax, 0x400
ja 0x43d4cf
call fcn.0046e060
mov esi, esp
test esi, esi
je 0x43d593
mov dword [esi], 0xcccc
jmp 0x43d4e8
push eax
call fcn.0047a020
mov esi, eax
add esp, 4
test esi, esi
je 0x43d593
mov dword [esi], 0xdddd
add esi, 8
test esi, esi
je 0x43d593
lea eax, [edi + 0x19]
push eax
push 0
push esi
call fcn.00470010
lea ecx, [edi + 1]
mov dword [esi + 4], 0
push edi
push dword [ebp + 0xc]
lea eax, [ecx + 0x18]
mov dword [esi + 8], 0x18
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x18]
push ecx
push eax
lea eax, [ebp - 0xc]
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 0
mov dword [ebp - 0xc], 0
call fcn.00478df2
add esp, 0x20
test eax, eax
jne 0x43d56f
mov edi, dword [ebp - 8]
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push dword [esi]
push esi
push 0x83210124
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43d57d
mov bl, 1
jmp 0x43d57d
push str.MyDebug_LogToFile_CEF:_wcstombs_s_failed__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [ebp - 8]
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x43d5a1
push esi
call fcn.00479a10
add esp, 4
jmp 0x43d5a1
push str.MyDebug_LogToFile_CEF:_memory_allocation_failed__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [ebp - 8]
test edi, edi
je 0x43d5ac
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
Function at 0x43d780
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af7d0
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4e362c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 4
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43d7d3
or eax, eax
jmp 0x43d8df
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00470010
xor eax, eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x230]
push eax
call fcn.0043c870
add esp, 0x10
test al, al
je 0x43d87c
push 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
test eax, eax
je 0x43d87c
lea eax, [ebp - 0x218]
push 0x3a
push eax
call fcn.00470d85
add esp, 8
test eax, eax
je 0x43d87c
push dword [ebp - 0x220]
sub eax, 2
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae ecx, dword [ebp - 0x230]
push ecx
push eax
call fcn.00479fe6
add esp, 0xc
test eax, eax
je 0x43d8a1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x218]
push eax
je 0x43d898
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x43d89e
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or esi, 0xffffffff
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x43d8dd
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43d8d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43d8f9
push edx
push ecx
call fcn.0046d73e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
call fcn.00479239
int3
Function at 0x43df60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af80d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4e362c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 8
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0xc], 0
call fcn.0046d70e
mov esi, eax
add esp, 4
test esi, esi
je 0x43dffd
push 1
mov dword [ebp - 4], 0
call fcn.0046ebe4
add esp, 4
mov dword [esi + 4], eax
jmp 0x43dfff
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov edi, dword [esi + 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4b24e4]
mov ecx, edi
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
call fcn.0043af90
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x4b24e4]
mov ecx, edi
call esi
movzx edi, ax
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x43e08e
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4b24e4]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x43e08e
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x4b24e4]
mov ecx, edi
call esi
cmp dword [ebx + 0x38], 0
mov eax, dword [ebp - 0x14]
mov word [ebx + 0x40], ax
jne 0x43e0ae
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
and eax, 0x13
or eax, 4
mov dword [ebx + 0xc], eax
and ecx, eax
jne 0x43e0d1
cmp byte [ebp + 0xc], 0
je 0x43e0bd
push ebx
call fcn.0046f130
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x43e0dd
mov esi, str.ios_base::badbit_set
jmp 0x43e0ed
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.00428a70
add esp, 8
lea ecx, [ebp - 0x2c]
push eax
push esi
call fcn.00425470
push 0x4de668
lea eax, [ebp - 0x2c]
push eax
call fcn.00470766
int3
Function at 0x446d00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
jle 0x446df1
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax + 8]
mov ebx, ecx
add ebx, dword [eax]
mov edx, dword [eax + 0xc]
mov esi, edx
mov edi, dword [eax + 4]
adc edi, edx
mov eax, dword [ebp + 8]
shld edx, ecx, 0xd
shr esi, 0x13
shl ecx, 0xd
mov dword [ebp - 4], esi
xor esi, esi
or dword [ebp - 4], ecx
or esi, edx
xor dword [ebp - 4], ebx
xor esi, edi
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x10], ebx
mov ebx, edx
mov dword [ebp - 0x18], esi
mov esi, ecx
add esi, dword [eax + 0x10]
mov dword [ebp - 8], edi
adc ebx, dword [eax + 0x14]
xor edi, edi
mov dword [ebp - 0xc], ebx
mov ebx, edx
shld edx, ecx, 0x10
shr ebx, 0x10
shl ecx, 0x10
or edi, edx
xor edi, dword [ebp - 0xc]
or ebx, ecx
mov ecx, dword [ebp - 8]
xor ebx, esi
mov dword [ebp - 0x14], esi
mov edx, edi
xor esi, esi
or esi, dword [ebp - 0x10]
add ecx, ebx
mov dword [eax], ecx
adc esi, edi
mov dword [ebp - 8], ecx
shld edi, ebx, 0x15
xor ecx, ecx
shr edx, 0xb
or ecx, edi
shl ebx, 0x15
mov edi, dword [ebp - 4]
or edx, ebx
xor edx, dword [ebp - 8]
xor ecx, esi
add edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x18], edx
mov edx, ebx
mov dword [eax + 4], esi
mov esi, ebx
adc esi, dword [ebp - 0xc]
xor ecx, ecx
mov eax, dword [ebp - 4]
shld ebx, eax, 0x11
shr edx, 0xf
shl eax, 0x11
or ecx, ebx
or edx, eax
xor ecx, esi
mov eax, dword [ebp + 8]
xor edx, edi
mov dword [eax + 0xc], ecx
xor ecx, ecx
or ecx, edi
mov dword [eax + 8], edx
sub dword [ebp + 0xc], 1
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], ecx
jne 0x446d16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458ee0
Capabilities:
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afc6d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e362c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x458fc1
mov eax, dword [ebp - 0x10]
mov ecx, 0x800100
mov ebx, dword [esi + 0x20]
mov esi, 0x100
cmp byte [eax + 0x34], 0
mov edi, dword [ebx - 8]
cmovne esi, ecx
add eax, 0x30
push eax
lea ecx, [ebp - 0x14]
call fcn.00436660
push esi
mov esi, dword [ebp - 0x10]
xor eax, eax
push 0x4e3120
push 0
push 0
test edi, edi
mov dword [ebp - 4], 0
cmove ebx, eax
push ebx
push dword [ebp - 0x14]
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x458f84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, esi
push str.Creating_HTTP_handle
push ebx
call fcn.00458350
jmp 0x458fb5
push 0
push 0x10000
push 0x4591f0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x458fb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, esi
push str.Failed_to_set_the_status_callback_with_WinHTTP_request.
push ebx
call fcn.00458350
jmp 0x458fb5
xor ebx, ebx
lea ecx, [ebp - 0x14]
call fcn.00436850
test ebx, ebx
jne 0x458fea
mov eax, dword [ebp + 0xc]
push esi
push eax
push eax
push dword [ebp + 8]
push 0
push 0
push dword [esi + 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x459000
push 0
push dword [esi + 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x459000
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 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45c350
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b00b3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e362c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00455d20
lea ecx, [esi + 0x24]
mov dword [ebp - 4], 0
mov dword [esi], vtable.crXmlRpcClientIterator.0
mov dword [esi + 0xc], 0x200000f1
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 8
call fcn.00499730
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.00499730
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
mov dword [esi + 0x2c], 0
call fcn.00437c90
mov eax, dword [ebp + 8]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x3c], eax
mov eax, esi
mov byte [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x45c550
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0124
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4e362c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0x30]
call fcn.00478a4f
add esp, 4
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [esi + 0x3c]
push eax
call fcn.00437670
mov dword [esi + 0xc], eax
test eax, eax
jne 0x45c5c9
push 0xc
call fcn.0046d70e
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x45c5c9
push dword [ebp - 0x10]
mov ecx, eax
call fcn.0045c2b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45ea60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45eab9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x45eab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x45eaaa
cmp esi, edx
jae 0x45eab9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x45ea98
cmp esi, edx
jae 0x45eab9
cmp word [esi], 0
je 0x45eab9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x45f680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4e362c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ebx
mov dword [ebp - 0x18], ebx
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
sub edi, eax
mov esi, 0x10
sub ebx, eax
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x45f6b2
mov edi, dword [ebp - 0x1c]
mov esi, 0x10
mov al, byte [edx + 0xf]
sub edi, edx
movzx ecx, byte [edi + edx]
movzx eax, al
xor ecx, eax
movzx eax, byte [ecx + str._.C]
xor byte [edx], al
mov al, byte [edx]
inc edx
sub esi, 1
jne 0x45f6d1
mov eax, dword [ebp - 0x1c]
xor dl, dl
mov edi, dword [ebp - 0x18]
xor ebx, ebx
inc eax
mov dword [ebp - 0x18], eax
nop dword [eax]
lea ecx, [edi + 1]
mov esi, 4
nop dword [eax + eax]
movzx eax, dl
lea ecx, [ecx + 4]
movzx eax, byte [eax + str._.C]
xor byte [ecx - 5], al
movzx eax, byte [ecx - 5]
movzx eax, byte [eax + str._.C]
xor byte [ecx - 4], al
movzx eax, byte [ecx - 4]
movzx eax, byte [eax + str._.C]
xor byte [ecx - 3], al
movzx eax, byte [ecx - 3]
movzx eax, byte [eax + str._.C]
xor byte [ecx - 2], al
mov dl, byte [ecx - 2]
sub esi, 1
jne 0x45f710
mov eax, dword [ebp - 0x18]
mov esi, 4
nop word [eax + eax]
movzx ecx, dl
lea eax, [eax + 4]
movzx ecx, byte [ecx + str._.C]
xor byte [eax - 5], cl
movzx ecx, byte [eax - 5]
movzx ecx, byte [ecx + str._.C]
xor byte [eax - 4], cl
movzx ecx, byte [eax - 4]
movzx ecx, byte [ecx + str._.C]
xor byte [eax - 3], cl
movzx ecx, byte [eax - 3]
movzx ecx, byte [ecx + str._.C]
xor byte [eax - 2], cl
mov dl, byte [eax - 2]
sub esi, 1
jne 0x45f760
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
movzx eax, dl
movzx eax, byte [eax + str._.C]
xor byte [ebp + ecx - 0x14], al
movzx eax, byte [ebp + ecx - 0x14]
movzx eax, byte [eax + str._.C]
xor byte [ebp + ecx - 0x13], al
movzx eax, byte [ebp + ecx - 0x13]
movzx eax, byte [eax + str._.C]
xor byte [ebp + ecx - 0x12], al
movzx eax, byte [ebp + ecx - 0x12]
movzx eax, byte [eax + str._.C]
xor byte [ebp + ecx - 0x11], al
mov dl, byte [ebp + ecx - 0x11]
add ecx, 4
cmp ecx, 0x10
jl 0x45f7b0
add dl, bl
inc ebx
cmp ebx, 0x12
jl 0x45f700
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d700
mov esp, ebp
pop ebp
ret