joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421669
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x4a321c]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x44
mov eax, 0x4755ab
call fcn.004547e6
push 4
push 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Oxg_JDM2QisjFR1KIxU0OSILNzA0Czs0MyMVGDgZKwA7IB0IIyYBOyILJ10xCDMKPTMVCDcxMyg6Jx0KMQonEzsYK10xNhUrOiYZQTgbPDc9BRVdOiYVOTMnN0c1Nj8ZPAsrQSUmJwg4Nj9LMRsjGzgVJCImBU9P
mov byte [ebp - 0xd], 0
call fcn.0040238c
lea eax, [ebp - 0x14]
push eax
call fcn.00403ca0
add esp, 0x28
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
mov ebx, 0x20019
push ebx
push 0
push dword [ebp - 0x14]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
test eax, eax
jne 0x4217b9
push 0xfe
push eax
mov byte [ebp], al
lea eax, [ebp + 1]
push eax
call fcn.00454130
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x1c], 1
jbe 0x42173b
mov byte [ebp - 0xd], 0
jmp 0x4217b0
push 5
push 5
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.OxUVQSMmBR8jGwFFMTE8Oj8gAjE3NkIFMyRCQjwZOzk9JzwxIxgVJDhDGUU_NxEKOwUVQTkIERg0JwFDMTcBBSI2MyQ1NjdANSYjQTszNDk8IBUgOAhCCDohI0M8GR1FPAsrKDUYJzkjGCNLMTA0ND8mKzQ1GAYxOEI_Qz8mSzEiIT8kNBg3QDg2N0c8GhkQIgg_Qjw2Sgg0IxUYOyYBNCIzHSQ1NjMVIwgrSzAjNxU_MSg5PDEoMSEZSk8
call fcn.0040238c
lea eax, [ebp - 0x20]
push eax
call fcn.00403ca0
add esp, 0x28
lea eax, [ebp - 0x28]
push eax
push ebx
xor ebx, ebx
push ebx
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x4217a5
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x4847e4
push dword [ebp - 0x28]
mov dword [ebp - 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42179c
cmp dword [ebp - 0x18], 1
je 0x42179c
mov byte [ebp - 0xd], 1
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401268
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401268
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.004547d7
add ebp, 0x104
leave
ret
Function at 0x4219bd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4a321c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x110], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00454130
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, edi
call fcn.00404092
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004547d7
leave
ret

Function at 0x421a1f
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x108
lea ebp, [esp - 4]
mov eax, dword [0x4a321c]
xor eax, ebp
mov dword [ebp + 0x108], eax
push 8
mov eax, 0x475616
call fcn.004547e6
mov esi, dword [ebp + 0x114]
and dword [ebp - 0x10], 0
push 0x105
lea eax, [ebp]
push 0
push eax
call fcn.00454130
add esp, 0xc
lea eax, [ebp]
push eax
push 0
push 2
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.IzEBNToFO08
call fcn.0040238c
lea eax, [ebp - 0x10]
push eax
call fcn.00403ca0
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.004219bd
mov edi, dword [edi]
mov eax, dword [eax]
add esp, 0x2c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401268
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401268
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00404092
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x108]
xor ecx, ebp
call fcn.004547d7
add ebp, 0x10c
leave
ret
Function at 0x421d70
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x318
lea ebp, [esp - 4]
mov eax, dword [0x4a321c]
xor eax, ebp
mov dword [ebp + 0x318], eax
push 0x10
mov eax, 0x4756f9
call fcn.004547e6
mov eax, dword [ebp + 0x328]
and dword [ebp - 4], 0
mov edi, dword [ebp + 0x324]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x1c], edi
call fcn.00421d32
mov esi, 0x105
push esi
xor ebx, ebx
lea eax, [ebp + 0x108]
push 0
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00454130
add esp, 0x10
push esi
lea eax, [ebp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea eax, [ebp]
push 0
push eax
call fcn.00454130
add esp, 0xc
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp + 0x210]
push 0
push eax
call fcn.00454130
add esp, 0xc
lea eax, [ebp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00404092
push dword [ebp - 0x10]
mov ecx, edi
push str.APPPATH
mov dword [ebp - 0x14], ebx
call fcn.00407110
lea eax, [ebp + 0x108]
push eax
push str.SYSTEMPATH
mov ecx, edi
call fcn.00407110
lea eax, [ebp]
push eax
push str.WINDOWSPATH
mov ecx, edi
call fcn.00407110
lea eax, [ebp + 0x210]
push eax
push str.TEMPPATH
mov ecx, edi
call fcn.00407110
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401268
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x318]
xor ecx, ebp
call fcn.004547d7
add ebp, 0x31c
leave
ret

Function at 0x421fa3
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x47577c
call fcn.004547e6
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040366b
push 3
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PwUVNDAmRhc1GjceP0JLIg
mov byte [ebp - 4], 1
call fcn.0040238c
lea eax, [ebp - 0x14]
push eax
call fcn.00403ca0
add esp, 0x28
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.00403823
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401268
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.0040366b
call fcn.00421e9e
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401268
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401268
call fcn.004548be
ret
Function at 0x426ac4
Capabilities:
Resume thread

Disassembly:
push 0
mov eax, 0x4764af
call fcn.004547e6
mov edi, ecx
push 0x20
mov dword [ebp - 4], 2
call fcn.004301be
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x426af2
mov ecx, eax
call fcn.00422ef4
mov esi, eax
jmp 0x426af4
xor esi, esi
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.00403923
lea eax, [ebp + 0x10]
push eax
lea ecx, [esi + 0x10]
call fcn.00403923
mov eax, dword [edi + 0x124]
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 8]
call fcn.00403923
mov eax, dword [edi + 0x20]
push ebx
push 4
push ebx
push ebx
push esi
push 0x4267c7
mov dword [esi], eax
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
call fcn.00434413
lea ecx, [edi + 0x148]
mov dword [ecx], eax
cmp eax, ebx
je 0x426b58
mov dword [eax + 0x28], ebx
mov eax, dword [ecx]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x426b66
mov byte [edi + 0x14d], 1
mov byte [edi + 0x14e], 1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401268
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401268
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401268
call fcn.004548be
ret 0xc
Function at 0x42ad69
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.00454130
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x44], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
pop esi
leave
ret 8

Function at 0x432e75
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4756bd
call fcn.004547e6
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x432e9a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x432ee0
lea ecx, [ebp - 0x10]
call fcn.00403657
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00430356
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401268
mov eax, esi
call fcn.004548be
ret 8

Function at 0x435441
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x435489
call fcn.0043213e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x435489
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4354cc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4354b5
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4354b5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4354c9
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4367d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4367f8
cmp dword [edi + 0x54], 0
jne 0x4367f8
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0043213e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00436795
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x43d068
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x43d0af
call fcn.0043213e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43d0af
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x43d0cb
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043cbe2
mov esi, eax
test edi, edi
je 0x43d0c9
test ebx, ebx
je 0x43d0c9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44052d
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x440558
call fcn.0043213e
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x44057b
push eax
push dword [esi + 4]
call fcn.004404b3
push esi
push eax
mov ecx, 0x4b47d8
call fcn.00440127
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x440de0
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4785f7
call fcn.004547e6
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00440da0
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00403657
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x440e46
push eax
push dword [esi + 8]
call fcn.004404b3
push dword [esi + 0xc]
mov ecx, 0x4b47d8
push eax
call fcn.00440127
mov eax, esi
call fcn.004548be
ret 0x18
Function at 0x4547d7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a321c]
jne 0x4547e1
repz ret
jmp fcn.0045ed3c

Function at 0x46b614
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0045cd14
and dword [ebp - 4], 0
cmp dword [0x4b55a8], 0
mov ebx, eax
jne 0x46b6c5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46b776
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48ecdc
push edi
call esi
test eax, eax
je 0x46b776
push eax
call fcn.0045cca2
mov dword [esp], 0x48eccc
push edi
mov dword [0x4b55a8], eax
call esi
push eax
call fcn.0045cca2
mov dword [esp], 0x48ecb8
push edi
mov dword [0x4b55ac], eax
call esi
push eax
call fcn.0045cca2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b55b0], eax
call esi
push eax
call fcn.0045cca2
pop ecx
mov dword [0x4b55b8], eax
test eax, eax
je 0x46b6c5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045cca2
pop ecx
mov dword [0x4b55b4], eax
mov eax, dword [0x4b55b4]
cmp eax, ebx
je 0x46b71d
cmp dword [0x4b55b8], ebx
je 0x46b71d
push eax
call fcn.0045cd1d
push dword [0x4b55b8]
mov esi, eax
call fcn.0045cd1d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x46b71d
test edi, edi
je 0x46b71d
call esi
test eax, eax
je 0x46b714
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46b714
test byte [ebp - 0xc], 1
jne 0x46b71d
or dword [ebp + 0x10], 0x200000
jmp 0x46b756
mov eax, dword [0x4b55ac]
cmp eax, ebx
je 0x46b756
push eax
call fcn.0045cd1d
pop ecx
test eax, eax
je 0x46b756
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x46b756
mov eax, dword [0x4b55b0]
cmp eax, ebx
je 0x46b756
push eax
call fcn.0045cd1d
pop ecx
test eax, eax
je 0x46b756
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b55a8]
call fcn.0045cd1d
pop ecx
test eax, eax
je 0x46b776
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46b778
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret