joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45142a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x451438
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x4514f7
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x552260]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x552260]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x552260]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x552260]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x552260]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x552260]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x552260]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x552260]
sub edi, 1
jne 0x451450
pop edi
test esi, esi
je 0x451513
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x552260]
inc edx
sub esi, 1
jne 0x4514fb
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4561b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5325b6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x59cd24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
call fcn.0041be3c
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push eax
call fcn.00461030
add esp, 4
test eax, eax
jne 0x45620b
push str.VerifyTrust_failed__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x456230
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004578d0
add esp, 8
test eax, eax
jne 0x45622c
push str.GetSignSubject_failed__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x456230
xor eax, eax
jne 0x4561ee
lea ecx, [ebp - 0x28]
push ecx
call fcn.00421699
add esp, 4
push eax
mov ecx, dword [ebp + 8]
call fcn.004218ef
mov edx, dword [ebp - 0x2c]
or edx, 1
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0041be74
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049fb26
mov esp, ebp
pop ebp
ret
Function at 0x456b60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53266d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x59cd24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
push str.Enter_CWebexMTAStub::CreateWebexMTA.
push str.CWebexMTAStub::CreateWebexMTA
call fcn.00461cc0
add esp, 8
push 0x44
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.004c4160
add esp, 0xc
mov dword [ebp - 0x70], 0x44
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.004575d0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x456c41
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x2c]
mov eax, dword [edx + 0x34]
call eax
cmp eax, 2
jne 0x456c24
mov ecx, dword [ebp - 0x10]
mov dword [0x5a1198], ecx
mov edx, dword [ebp - 0x10]
mov dword [0x5a119c], edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00454680
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x457cd0
Capabilities:
Get disk information
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x59cd24]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa40], ecx
push 1
push 0
push 0
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xa38], eax
cmp dword [ebp - 0xa38], 0
je 0x457ef3
push 0x104
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0xa38]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.KERNEL32.dll_K32GetMappedFileNameW
test eax, eax
je 0x457ef3
push 0x400
push 0
lea eax, [ebp - 0xa28]
push eax
call fcn.004c4160
add esp, 0xc
lea ecx, [ebp - 0xa28]
push ecx
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x457ef3
mov edx, dword [0x553d38]
mov dword [ebp - 0xc], edx
mov ax, word [0x553d3c]
mov word [ebp - 8], ax
mov dword [ebp - 0xa34], 0
lea ecx, [ebp - 0xa28]
mov dword [ebp - 0xa2c], ecx
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp - 0xa2c]
mov dx, word [ecx]
mov word [ebp + eax - 0xc], dx
push 0x104
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x457eb0
lea edx, [ebp - 0x420]
push edx
call fcn.00462ba0
add esp, 4
mov dword [ebp - 0xa30], eax
cmp dword [ebp - 0xa30], 0x104
jae 0x457eb0
mov eax, dword [ebp - 0xa30]
push eax
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.004f62fd
add esp, 0xc
test eax, eax
jne 0x457e27
mov eax, dword [ebp - 0xa30]
movzx ecx, word [ebp + eax*2 - 0x218]
cmp ecx, 0x5c
jne 0x457e27
mov dword [ebp - 0xa3c], 1
jmp 0x457e31
mov dword [ebp - 0xa3c], 0
mov edx, dword [ebp - 0xa3c]
mov dword [ebp - 0xa34], edx
cmp dword [ebp - 0xa34], 0
je 0x457eb0
mov eax, dword [ebp - 0xa30]
lea ecx, [ebp + eax*2 - 0x218]
push ecx
lea edx, [ebp - 0xc]
push edx
push str._s_s
push 0x104
lea eax, [ebp - 0x628]
push eax
call fcn.0041dae0
add esp, 0x14
lea ecx, [ebp - 0x628]
push ecx
call fcn.00462ba0
add esp, 4
push eax
lea edx, [ebp - 0x628]
push edx
push 0x105
lea eax, [ebp - 0x218]
push eax
call fcn.00460a10
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x38
call fcn.004551a0
jmp 0x457ef3
mov edx, dword [ebp - 0xa2c]
movzx eax, word [edx]
mov dword [ebp - 0xa44], eax
mov ecx, dword [ebp - 0xa2c]
add ecx, 2
mov dword [ebp - 0xa2c], ecx
cmp dword [ebp - 0xa44], 0
je 0x457ed9
jmp 0x457eb0
cmp dword [ebp - 0xa34], 0
jne 0x457ef3
mov edx, dword [ebp - 0xa2c]
movzx eax, word [edx]
test eax, eax
jne 0x457d8e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fb26
mov esp, ebp
pop ebp
ret 4
Function at 0x45f0e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 8]
call fcn.0040c184
test eax, eax
je 0x45f11a
mov ecx, dword [ebp + 0xc]
call fcn.0040c184
test eax, eax
jne 0x45f11f
jmp 0x45f26e
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040ab72
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x45f13f
jmp 0x45f26e
push 0x55c43d
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0049ffe2
add esp, 8
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x45f164
jmp 0x45f26e
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040ab72
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x45f187
jmp 0x45f26e
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x55474c
mov edx, dword [ebp - 8]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x45f1a6
jmp 0x45f26e
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
and ecx, 0xffff
movzx edx, cx
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + ecx]
and ecx, 0xffff
movzx eax, cx
and eax, 0xffff
movzx ecx, ax
shl ecx, 0x10
or edx, ecx
mov dword [ebp - 0x18], edx
cmp dword [ebp - 8], 0
jne 0x45f1f7
jmp 0x45f26e
push 0x55c43d
push 0x80
call fcn.0049ffe2
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x45f21a
jmp 0x45f26e
mov ecx, dword [ebp + 8]
call fcn.0040ab72
push eax
mov eax, dword [ebp - 0x18]
push eax
push str.StringFileInfo_08lx_s
push 0x80
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040c868
add esp, 0x14
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x45f262
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00407c64
mov byte [ebp - 1], 1
xor ecx, ecx
jne 0x45f102
cmp dword [ebp - 8], 0
je 0x45f28d
mov edx, dword [ebp - 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.0049f576
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x45f2ac
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.0049f576
add esp, 4
mov dword [ebp - 0xc], 0
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x460e60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x460e8f
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x461030
Capabilities:
Print debug messages
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533df0
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x59cd24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x244], 0
mov ecx, dword [ebp + 8]
call fcn.004263be
test eax, eax
ja 0x46108b
push str.strFilePath.GetLength_____0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x461279
mov dword [ebp - 0x248], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004c4160
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str._SYSTEMROOT_SYSTEM32wintrust.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x4610f6
push str.WinVerifyTrust
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jne 0x46110f
push str.pfnWinVerifyTrust__NULL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x461279
xor ecx, ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x268], 0x10
mov ecx, dword [ebp + 8]
call fcn.004109c3
mov dword [ebp - 0x264], eax
push 0x34
push 0
lea edx, [ebp - 0x29c]
push edx
call fcn.004c4160
add esp, 0xc
mov dword [ebp - 0x29c], 0x34
mov dword [ebp - 0x290], 2
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 1
lea eax, [ebp - 0x268]
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x228], 0xaac56b
mov ecx, 0xcd44
mov word [ebp - 0x224], cx
mov edx, 0x11d0
mov word [ebp - 0x222], dx
mov byte [ebp - 0x220], 0x8c
mov byte [ebp - 0x21f], 0xc2
mov byte [ebp - 0x21e], 0
mov byte [ebp - 0x21d], 0xc0
mov byte [ebp - 0x21c], 0x4f
mov byte [ebp - 0x21b], 0xc2
mov byte [ebp - 0x21a], 0x95
mov byte [ebp - 0x219], 0xee
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x228]
push ecx
push 0xffffffffffffffff
call dword [ebp - 0x248]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x461267
push str.Verify_the_digital_signature_fail
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x24c]
push edx
lea eax, [ebp - 0x240]
push eax
call fcn.004373b2
add esp, 8
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x258], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x258]
call fcn.004109c3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.0041be74
jmp 0x461279
mov dword [ebp - 0x250], 1
xor edx, edx
jne 0x46106f
cmp dword [ebp - 0x244], 0
je 0x461299
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x244], 0
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049fb26
mov esp, ebp
pop ebp
ret
Function at 0x467dc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 2
push 0
push str.SoftwareWebExFrameworkRecentlyCall
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x467e21
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 4
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
push 4
push 0
push str.HardwareAcceleration
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x4694b0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5810f8
push 0x4c48c0
mov eax, dword fs:[0]
push eax
add esp, 0xffffff8c
mov eax, dword [0x59cd24]
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
mov dword [ebp - 4], 0
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x70]
push edx
push str.Processors_Number_:__u__Type__u__r_n
push 8
call fcn.0046dca0
add esp, 0x10
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.004c4160
add esp, 0xc
mov dword [ebp - 0x5c], 0x40
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov dword [ebp - 0x60], 0x100000
mov edx, dword [ebp - 0x58]
push edx
push str._u____memory_in_use_r_n
push 8
call fcn.0046dca0
add esp, 0xc
mov eax, dword [ebp - 0x54]
add eax, 0x100000
mov ecx, dword [ebp - 0x50]
adc ecx, 0
sub eax, 1
sbb ecx, 0
push 0
push 0x100000
push ecx
push eax
call fcn.004a0620
push edx
push eax
push str._u_MBytes_physical_memory_r_n
push 8
call fcn.0046dca0
add esp, 0x10
mov edx, dword [ebp - 0x4c]
add edx, 0x100000
mov eax, dword [ebp - 0x48]
adc eax, 0
sub edx, 1
sbb eax, 0
push 0
push 0x100000
push eax
push edx
call fcn.004a0620
push edx
push eax
push str._u_MBytes_physical_memory_free_r_n
push 8
call fcn.0046dca0
add esp, 0x10
mov ecx, dword [ebp - 0x44]
add ecx, 0x100000
mov edx, dword [ebp - 0x40]
adc edx, 0
sub ecx, 1
sbb edx, 0
push 0
push 0x100000
push edx
push ecx
call fcn.004a0620
push edx
push eax
push str._u_MBytes_paging_file_r_n
push 8
call fcn.0046dca0
add esp, 0x10
mov eax, dword [ebp - 0x3c]
add eax, 0x100000
mov ecx, dword [ebp - 0x38]
adc ecx, 0
sub eax, 1
sbb ecx, 0
push 0
push 0x100000
push ecx
push eax
call fcn.004a0620
push edx
push eax
push str._u_MBytes_paging_file_free_r_n
push 8
call fcn.0046dca0
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
jmp 0x46963e
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.0049fb26
mov esp, ebp
pop ebp
ret
Function at 0x46b9f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 6
cmp dword [ebp + 8], 0
je 0x46ba0f
cmp dword [ebp + 0xc], 0
je 0x46ba0f
cmp dword [ebp + 0x10], 0
jne 0x46ba14
mov eax, dword [ebp - 4]
jmp 0x46ba8f
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46ba55
lea edx, [ebp - 8]
push edx
push 1
push 0
mov eax, dword [ebp + 8]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46ba8c
mov ecx, dword [ebp + 0x14]
shl ecx, 1
mov dword [ebp - 4], ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x46ca80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 6
cmp dword [ebp + 8], 0
je 0x46ca9f
cmp dword [ebp + 0xc], 0
je 0x46ca9f
cmp dword [ebp + 0x10], 0
jne 0x46caa4
mov eax, dword [ebp - 4]
jmp 0x46cb1f
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46cae5
lea edx, [ebp - 8]
push edx
push 1
push 0
mov eax, dword [ebp + 8]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46cb1c
mov ecx, dword [ebp + 0x14]
shl ecx, 1
mov dword [ebp - 4], ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x46dd80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x180c
call fcn.0049fd90
mov eax, dword [0x59cd24]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1800
push 0
lea eax, [ebp - 0x1804]
push eax
call fcn.004c4160
add esp, 0xc
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1808], ecx
mov edx, dword [ebp - 0x1808]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1804]
push ecx
call dword [sym.imp.USER32.dll_wvsprintfW]
mov dword [ebp - 0x1808], 0
lea edx, [ebp - 0x1804]
push edx
call fcn.0046d680
add esp, 4
lea eax, [eax + eax - 2]
mov dword [ebp - 0x180c], eax
cmp dword [ebp - 0x180c], 0x1800
jae 0x46ddff
jmp 0x46de04
call fcn.004a0179
xor ecx, ecx
mov edx, dword [ebp - 0x180c]
mov word [ebp + edx - 0x1804], cx
lea eax, [ebp - 0x1804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fb26
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536afe
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x59cd24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp - 0x10]
call fcn.004725b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00472960
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00467670
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.00467670
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x90], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x94
call fcn.004724e0
mov ecx, dword [ebp - 0x10]
add ecx, 0x95
call fcn.004724e0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x98], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x9c], 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x94
call fcn.00474bd0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x95
call fcn.00474bd0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x474cd0
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x474d02
xor al, al
jmp 0x474d34
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x474d28
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
jmp 0x474d34
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
mov esp, ebp
pop ebp
ret 0xc
Function at 0x475860
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x40
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x47588c
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x475890
xor eax, eax
jmp 0x4758d0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 8], edx
push 0xf8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x4758b3
xor eax, eax
jmp 0x4758d0
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4550
jne 0x4758c6
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
jmp 0x4758cd
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x476b90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 8], 0
jne 0x476ba6
xor al, al
jmp 0x476c38
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x476bd9
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 6]
cmp dword [ebp - 8], ecx
jge 0x476c12
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + 0xc]
jb 0x476c10
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0xc]
cmp dword [ebp + 0xc], ecx
jae 0x476c10
mov dword [ebp - 0x10], 1
jmp 0x476c12
jmp 0x476bc7
cmp dword [ebp - 0x10], 0
jne 0x476c1c
xor al, al
jmp 0x476c38
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + 0xc]
sub ecx, dword [eax + 0x14]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov al, 1
mov esp, ebp
pop ebp
ret 0xc